| Summary: | "gluster vol status all clients --xml" get malformed at times, causes gstatus to fail | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Giuseppe Ragusa <giuseppe.ragusa> |
| Component: | cli | Assignee: | Atin Mukherjee <amukherj> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.7.15 | CC: | amukherj, ashah, bugs, rcyriac, rhinduja, rhs-bugs, rnalakka, sbairagy |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | glusterfs-3.7.18 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1359619 | Environment: | |
| Last Closed: | 2016-12-13 07:19:35 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | 1372553 | ||
| Bug Blocks: | |||
|
Description
Giuseppe Ragusa
2016-11-05 18:08:48 UTC
Verified on GlusterFS 3.7.16 (CentOS Storage SIG packages):
[root@shockley ~]# gluster vol status all clients
Client connections for volume ctdb
----------------------------------------------
Brick : read.gluster.private:/srv/glusterfs/disk0/ctdb_brick
Clients connected : 3
Hostname BytesRead BytesWritten
-------- --------- ------------
172.25.5.21:49125 1032 624
172.25.5.22:49127 199404 177816
172.25.5.23:49116 1020 624
----------------------------------------------
Brick : hall.gluster.private:/srv/glusterfs/disk0/ctdb_brick
Clients connected : 3
Hostname BytesRead BytesWritten
-------- --------- ------------
172.25.5.21:49122 1032 624
172.25.5.23:49114 199404 177816
172.25.5.22:49124 1020 624
----------------------------------------------
Brick : shockley.gluster.private:/srv/glusterfs/disk0/ctdb_arbiter_brick
Clients connected : 3
Hostname BytesRead BytesWritten
-------- --------- ------------
172.25.5.21:49112 199428 180340
172.25.5.23:49034 1032 648
172.25.5.22:49049 1032 648
----------------------------------------------
...
(Output cut for brevity)
[root@shockley ~]# echo $?
0
[root@shockley ~]# gluster vol status all clients --xml
[root@shockley ~]# echo $?
96
[root@shockley ~]# gstatus
Traceback (most recent call last):e
File "/bin/gstatus", line 221, in <module>
main()
File "/bin/gstatus", line 135, in main
cluster.update_state(self_heal_backlog)
File "/usr/lib/python2.7/site-packages/gstatus/libgluster/cluster.py", line 542, in update_state
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
I didn't find any trace of the 3.8.x fixes being backported on 3.6.17 or newer, sorry if I missed something.
I can conform that http://review.gluster.org/15384 applies cleanly to latest 3.7.17 sources and the resulting packages do not exhibit the problem anymore (gstatus executes as expected). REVIEW: http://review.gluster.org/15820 (cli: fix volume status xml generation) posted (#1) for review on release-3.7 by Atin Mukherjee (amukherj) COMMIT: http://review.gluster.org/15820 committed in release-3.7 by Atin Mukherjee (amukherj) ------ commit a4ecc73a5cd7029dd5ad4a8545a4ec41365ffce9 Author: Atin Mukherjee <amukherj> Date: Fri Sep 2 10:42:44 2016 +0530 cli: fix volume status xml generation While generating xml, if CLI fails in between xml output doesn't get dumped into stdout. Fix is to invoke cli_xml_output_vol_status_end () in such failures. >Reviewed-on: http://review.gluster.org/15384 >NetBSD-regression: NetBSD Build System <jenkins.org> >CentOS-regression: Gluster Build System <jenkins.org> >Smoke: Gluster Build System <jenkins.org> >Reviewed-by: Samikshan Bairagya <samikshan> >Reviewed-by: Prashanth Pai <ppai> Change-Id: I7cb3097f5ae23092e6d20f68bd75aa190c31ed88 BUG: 1392181 Signed-off-by: Atin Mukherjee <amukherj> Reviewed-on: http://review.gluster.org/15820 Smoke: Gluster Build System <jenkins.org> CentOS-regression: Gluster Build System <jenkins.org> NetBSD-regression: NetBSD Build System <jenkins.org> Reviewed-by: Prashanth Pai <ppai> This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.18, please open a new bug report. glusterfs-3.7.18 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] https://www.gluster.org/pipermail/gluster-users/2016-December/029427.html [2] https://www.gluster.org/pipermail/gluster-users/ |