[Bugs] [Bug 1374290] "gluster vol status all clients --xml" doesn' t generate xml if there is a failure in between

bugzilla at redhat.com bugzilla at redhat.com
Fri Sep 9 08:32:07 UTC 2016


--- Comment #4 from Atin Mukherjee <amukherj at redhat.com> ---
Description of problem:

Sometimes the gstatus command below traceback instead of proper output. The
issue is because the glusterd is giving malformed xml outputs to gstatus

# gstatus

Traceback (most recent call last):ons
  File "/usr/bin/gstatus", line 221, in <module>
  File "/usr/bin/gstatus", line 135, in main
  File "/usr/lib/python2.7/site-packages/gstatus/libgluster/cluster.py", line
638, in update_state
  File "/usr/lib/python2.7/site-packages/gstatus/libgluster/cluster.py", line
713, in calc_connections
  File "/usr/lib/python2.7/site-packages/gstatus/libcommand/glustercmd.py",
line 100, in run
    xmldoc = ETree.fromstring(''.join(self.stdout))
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1301, in XML
    return parser.close()
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1654, in close
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1506, in
    raise err
xml.etree.ElementTree.ParseError: no element found: line 1, column 0

Version-Release number of selected component (if applicable):

How reproducible:

Not always reproducible. 

Steps to Reproduce:

1. Install glusterfs
2. Install gstatus
3. Run gstatus

Actual results:

gstatus gives traceback at times instead of cluster health status. 

Expected results:

cli should provide the xml output

You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

More information about the Bugs mailing list