We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gluster_volume
ValueError: invalid literal for int() with base 10
The problem is on the line 430 in gluster_volume.py:
gluster-ansible-collection/plugins/modules/gluster_volume.py
Lines 426 to 431 in 3b3d406
Because it expects output from gluster volume heal [name] info like this:
gluster volume heal [name] info
Brick 10.10.1.102:/opt/volume Status: Connected Number of entries: 0
But in case the peer disconnected, the output is
Brick 10.10.1.102:/opt/volume Status: Transport endpoint is not connected Number of entries: -
So the condition on line 430 fails, because ' -' is not an int.
- name: Configure Gluster volume. gluster_volume: state: present name: "{{ brick_name }}" brick: "{{ brick_dir }}" replicas: "{{ groups[gluster_group] | length }}" cluster: "{{ groups[gluster_group] | map('extract', hostvars, 'ansible_all_ipv4_addresses') | map('select', 'search', '^10\\.') | map('first') | list }}" host: "{{ ansible_all_ipv4_addresses | select('search', '^10\\.') | first }}" force: yes run_once: true
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The scenario:
Expected result
gluster_volume
task automatically removes the bricks from the disconnected peerReal behaviour
ValueError: invalid literal for int() with base 10
.Reason
The problem is on the line 430 in gluster_volume.py:
gluster-ansible-collection/plugins/modules/gluster_volume.py
Lines 426 to 431 in 3b3d406
Because it expects output from
gluster volume heal [name] info
like this:But in case the peer disconnected, the output is
So the condition on line 430 fails, because ' -' is not an int.
Task used:
The text was updated successfully, but these errors were encountered: