Bug 1267848

Summary: [New] - Running Configure-gluster-nagios command fails with error 'restore_sigpipe' on RHEL7.2 nodes
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: RamaKasturi <knarra>
Component: nagios-server-addonsAssignee: Ramesh N <rnachimu>
Status: CLOSED ERRATA QA Contact: RHS-C QE <rhsc-qe-bugs>
Severity: high Docs Contact:
Priority: high    
Version: rhgs-3.1CC: asrivast, byarlaga, jneedle, knarra, sabose, sankarshan
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-2.7.5-34.el7.x86_64 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-01 06:12:08 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:
Embargoed:
Bug Depends On: 1117751    
Bug Blocks: 1260783    

Description RamaKasturi 2015-10-01 08:41:09 UTC
Description of problem:
When user tries to run configure-gluster-nagios command on RHEL7.2 nodes where nagios is installed, it throws out the following error.
[root@dhcp37-54 ~]# configure-gluster-nagios -c cluster1 -H dhcp37-54.lab.eng.blr.redhat.com
Traceback (most recent call last):
  File "/usr/bin/configure-gluster-nagios", line 541, in <module>
    clusterdata = discoverCluster(args.hostip, args.cluster, args.timeout)
  File "/usr/bin/configure-gluster-nagios", line 90, in discoverCluster
    componentlist = discoverVolumes(hostip, timeout)
  File "/usr/bin/configure-gluster-nagios", line 53, in discoverVolumes
    timeout=timeout)
  File "/usr/lib64/nagios/plugins/gluster/server_utils.py", line 114, in execNRPECommand
    (returncode, outputStr, err) = utils.execCmd(nrpeCmd, raw=True)
  File "/usr/lib64/python2.7/site-packages/glusternagios/utils.py", line 403, in execCmd
    deathSignal=deathSignal, childUmask=childUmask)
  File "/usr/lib64/python2.7/site-packages/cpopen/__init__.py", line 51, in __init__
    stderr=PIPE)
  File "/usr/lib64/python2.7/subprocess.py", line 712, in __init__
    restore_sigpipe=restore_sigpipe)
TypeError: _execute_child_v276() got an unexpected keyword argument 'restore_sigpipe'

Version-Release number of selected component (if applicable):
nagios-server-addons-0.2.2-1.el7rhgs.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install two RHEL7.2 machines
2. Subscribe to all RHGS and nagios channels
3. Run 'yum install redhat-storage-server' on all the nodes in the cluster.
4. Install nagios on one of the node in the cluster by running the command 'yum install nagios-server-addons'
5. Run the command 'configure-gluster-nagios' to start monitor the nodes.

Actual results:
configure-gluster-nagios command fails with restore_sigpipe  error.

Expected results:
configure-gluster-nagios should run successfully with out any error

Additional info:

Comment 3 RamaKasturi 2015-10-07 08:46:05 UTC
Hi,

   I have installed the latest compose which is mentioned in comment 2 and i still see the issue reported. Following are my observations:

I tried doing a layered install of redhat-storage-server and while the installation is going i see trace back errors on the stdout:

http://pastebin.test.redhat.com/317957

Following is the python version :

[root@dhcp37-83 rhn]# rpm -qa | grep python-2.7.5-33.el7
python-2.7.5-33.el7.x86_64

Running configure-gluster-nagios or adding the node to console gives the same issue which is reported above.

Thanks
kasturi.

Comment 8 Ramesh N 2015-10-30 09:20:02 UTC
Issue is fixed in python version python-2.7.5-34.el7.x86_64 which is now part of RHEL 7.2 issue. Moving the bug to ON_QA.

Comment 9 RamaKasturi 2015-10-30 10:16:01 UTC
Verified and works fine with python version python-2.7.5-34.el7.x86_64.

The above python version is included in the compose http://download.eng.bos.redhat.com/rel-eng/RHEL-7.2-Snapshot-5.0/compose/Server/x86_64/iso/ and tested with this compose as well.

Marking it verified.

Comment 13 errata-xmlrpc 2016-03-01 06:12:08 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://rhn.redhat.com/errata/RHBA-2016-0310.html