Bug 1197983

Summary: rhsc-setup should restart nagios service, instead of starting it
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Shruti Sampat <ssampat>
Component: rhscAssignee: Shubhendu Tripathi <shtripat>
Status: CLOSED ERRATA QA Contact: Shruti Sampat <ssampat>
Severity: high Docs Contact:
Priority: high    
Version: rhgs-3.0CC: asrivast, dpati, nlevinki, rhs-bugs, rhsc-qe-bugs, rnachimu, sharne, shtripat
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.0.4Flags: sharne: needinfo-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhsc-setup-plugins-3.0.4-1.2.el6rhs Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-26 06:33:44 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:    
Bug Blocks: 1182947    

Description Shruti Sampat 2015-03-03 06:39:29 UTC
Description of problem:
-------------------------

On running `rhsc-setup' command, the nagios service is started by executing `service nagios start'. This can cause a problem if the Nagios service is already running (in case of an upgrade). It would be better to execute restart of nagios service instead of start. 

This issue causes all cluster level services to be in warning state with "null" status information after an upgrade from RHSC 3.0.3 to RHSC 3.0.4

Version-Release number of selected component (if applicable):
--------------------------------------------------------------
rhsc-setup-3.0.4-1.25.el6rhs.noarch

How reproducible:
-------------------
Frequently

Steps to Reproduce:
-------------------
1. Setup RHSC 3.0.3 with Nagios monitoring
2. Upgrade RHSC, Nagios and the RHSS nodes to 3.0.4
3. Observe the Cluster services after upgrade.

Actual results:
----------------
Cluster services are seen to be in warning state with "null" status information.

Expected results:
------------------
Cluster services are expected to be OK, or reflecting correct states instead of being in warning state.

Additional info:

Comment 2 Shruti Sampat 2015-03-05 11:19:15 UTC
Verified as fixed in rhsc-setup-plugins-3.0.4-1.2.el6rhs.noarch

Tested by upgrading from RHSC 3.0.3 to 3.0.4 without any issues. Cluster services behave as expected. 

Checked that livestatus works without any issues by running -

# /usr/lib64/nagios/plugins/gluster/check_cluster_status.py <cluster-name>
OK : None of the Volumes in the cluster are in Critical State

No errors or exceptions seen in /var/log/messages

Checked that nagios service is restarted after running `rhsc-setup' by comparing process id before and after running `rhsc-setup' command.

Comment 3 Shalaka 2015-03-16 04:45:00 UTC
Please add doc text.

Comment 4 Shalaka 2015-03-16 05:37:18 UTC
Setting requires_doc_text flag to "-" based on discussion with Ramesh and Shubhendu.

Comment 6 errata-xmlrpc 2015-03-26 06:33:44 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-2015-0681.html