File "/usr/lib/python2.6/site-packages/salt/modules/glusterfs.py", line 243, in status brick, port, online, pid = line.split()[1:] #25169
Labels
Bug
broken, incorrect, or confusing behavior
Execution-Module
fixed-pls-verify
fix is linked, bug author to confirm fix
help-wanted
Community help is needed to resolve this
P3
Priority 3
Platform
Relates to OS, containers, platform-based utilities like FS, system based apps
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
If the name of the Brick exceeds a single line, this command breaks because there are no brick,port,online,pid values to split.
You can probably solve this by using libgfapi, but you guys don't seem to use external dependencies.
To clarify: In line 229 of /usr/lib/python2.6/site-packages/salt/modules/glusterfs.py, your command is cmd = 'gluster volume status {0}'.format(name). That gives you a table like this:
On line 240 you check if line.startswith('Brick'):, however, there's limited space for a path, such that the line wraps and port, online, and pid are pushed to a second line. This breaks functionality.
The text was updated successfully, but these errors were encountered: