[Bugs] [Bug 1372553] "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 2 04:30:51 UTC 2016
https://bugzilla.redhat.com/show_bug.cgi?id=1372553
--- Comment #1 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
scripts.
# gstatus
Traceback (most recent call last):ons
File "/usr/bin/gstatus", line 221, in <module>
main()
File "/usr/bin/gstatus", line 135, in main
cluster.update_state(self_heal_backlog)
File "/usr/lib/python2.7/site-packages/gstatus/libgluster/cluster.py", line
638, in update_state
self.calc_connections()
File "/usr/lib/python2.7/site-packages/gstatus/libgluster/cluster.py", line
713, in calc_connections
cmd.run()
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
self._raiseerror(v)
File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1506, in
_raiseerror
raise err
xml.etree.ElementTree.ParseError: no element found: line 1, column 0
Version-Release number of selected component (if applicable):
mainline
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