Bug 1305456

Summary: Errors seen in cli.log, while executing the command 'gluster snapshot info --xml'
Product: Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: snapshotAssignee: Avra Sengupta <asengupt>
Status: CLOSED ERRATA QA Contact: Anil Shah <ashah>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: asengupt, rcyriac, rhinduja, rhs-bugs, rjoseph, sankarshan, storage-qa-internal
Target Milestone: ---Keywords: Patch, Triaged, ZStream
Target Release: RHGS 3.1.3   
Hardware: x86_64   
OS: Linux   
Whiteboard: snapshot xml
Fixed In Version: glusterfs-3.7.9-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1316819 (view as bug list) Environment:
Last Closed: 2016-06-23 05:06:57 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:    
Bug Blocks: 1299184, 1316819, 1317363    

Description SATHEESARAN 2016-02-08 10:06:48 UTC
Description of problem:
-----------------------
Error messages are seen in the cli.log, while executing 'gluster snapshot info --xml'

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
RHGS 3.1.2 nightly ( glusterfs-3.7.5-19.el7rhgs )

How reproducible:
-----------------
Always

Steps to Reproduce:
-------------------
1. Execute 'gluster snapshot info --xml'

Actual results:
---------------
Error messages seen in cli.log

Expected results:
-----------------
There shouldn't be any errors seen

Additional info:
----------------
Execution ' gluster snapshot info --xml' in one of the RHGS node triggers the following error in cli.log

<snip>
[2016-02-08 15:24:27.293580] I [cli.c:721:main] 0-cli: Started running gluster with version 3.7.5
[2016-02-08 15:24:27.400471] I [MSGID: 101190] [event-epoll.c:632:event_dispatch_epoll_worker] 0-epoll: Started thread with index 1
[2016-02-08 15:24:27.400634] I [socket.c:2355:socket_event_handler] 0-transport: disconnecting now
[2016-02-08 15:24:27.400865] E [cli-xml-output.c:5996:cli_xml_snapshot_begin_composite_op] 0-cli: Failed to get sub-cmd
[2016-02-08 15:24:27.403990] E [cli-xml-output.c:6041:cli_xml_snapshot_end_composite_op] 0-cli: Failed to get sub-cmd
[2016-02-08 15:24:27.404081] I [input.c:36:cli_batch] 0-: Exiting with: 0
</snip> 

Consequences
-------------
When RHGS nodes are managed with RHGS-C or RHEVM, the engine issues 'gluster snapshot info --xml' with periodic interval, which triggers lots of such errors in cli.log

Comment 1 SATHEESARAN 2016-02-08 10:27:37 UTC
Moving the component to snapshot as the issue is with getting xml output of snap info

Comment 3 Avra Sengupta 2016-03-11 08:35:00 UTC
Master URL: http://review.gluster.org/#/c/13677/ (IN REVIEW)

Comment 4 Avra Sengupta 2016-03-14 06:22:44 UTC
Master URL: http://review.gluster.org/#/c/13677/ (MERGED)
Release 3.7 URL: http://review.gluster.org/#/c/13691/ (IN REVIEW)

Comment 7 Anil Shah 2016-03-30 09:40:27 UTC
Seeing error logs again while executing gluster snapshot info --xml on build glusterfs-3.7.9-1.el7rhgs.x86_64.

Moving bug to assigned state.



[2016-03-30 14:36:19.301603] I [cli.c:721:main] 0-cli: Started running gluster with version 3.7.9
[2016-03-30 14:36:19.441205] I [MSGID: 101190] [event-epoll.c:632:event_dispatch_epoll_worker] 0-epoll: Started thread with index 1
[2016-03-30 14:36:19.441402] I [socket.c:2356:socket_event_handler] 0-transport: disconnecting now
[2016-03-30 14:36:19.441562] E [cli-xml-output.c:6040:cli_xml_snapshot_begin_composite_op] 0-cli: Failed to get sub-cmd
[2016-03-30 14:36:19.445338] E [cli-xml-output.c:6085:cli_xml_snapshot_end_composite_op] 0-cli: Failed to get sub-cmd
[2016-03-30 14:36:19.445383] I [input.c:36:cli_batch] 0-: Exiting with: 0

Comment 8 Avra Sengupta 2016-04-05 08:29:55 UTC
Failed QA because the build got spawned right before this patch got merged into the 3.1.3 branch. Moving it to POST.

Comment 9 Anil Shah 2016-04-25 13:13:57 UTC
Not seeing error logs after executing gluster snapshot info --xml command.
Bug verified on build  glusterfs-3.7.9-2.el7rhgs.x86_64

Comment 11 errata-xmlrpc 2016-06-23 05:06:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1240