Red Hat Bugzilla – Bug 1267848
[New] - Running Configure-gluster-nagios command fails with error 'restore_sigpipe' on RHEL7.2 nodes
Last modified: 2016-03-01 01:12:08 EST
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
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
File "/usr/lib64/python2.7/site-packages/cpopen/__init__.py", line 51, in __init__
File "/usr/lib64/python2.7/subprocess.py", line 712, in __init__
TypeError: _execute_child_v276() got an unexpected keyword argument 'restore_sigpipe'
Version-Release number of selected component (if applicable):
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.
configure-gluster-nagios command fails with restore_sigpipe error.
configure-gluster-nagios should run successfully with out any error
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:
Following is the python version :
[root@dhcp37-83 rhn]# rpm -qa | grep python-2.7.5-33.el7
Running configure-gluster-nagios or adding the node to console gives the same issue which is reported above.
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.
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.
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.