Bug 1016184
| Summary: | Packstack fails to install /etc/nagios/nrpe.cfg | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] RDO | Reporter: | Steven Hardy <shardy> | ||||
| Component: | openstack-packstack | Assignee: | Ivan Chavero <ichavero> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Ami Jeain <ajeain> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | unspecified | CC: | aortega, derekh, ichavero, mmagr, yeylon | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-02-07 10:01:54 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: | |||||||
| Attachments: |
|
||||||
|
Description
Steven Hardy
2013-10-07 16:50:51 UTC
Ok, so further info after some investigation: 1. The problem is that packstack/puppet won't create the /etc/nagios/nrpe.cfg file if it doesn't exist, simply doing "touch /etc/nagios/nrpe.cfg" allows the file to be populated: 2. Even after the file is populated, there are config problems with the /etc/nagios/nagios_host.cfg and /etc/nagios/nagios_command.cfg files, which mean starting nagios fails: # systemctl restart nagios.service Job for nagios.service failed. See 'systemctl status nagios.service' and 'journalctl -xn' for details. [root@t430slt ~]# systemctl status nagios.service nagios.service - SYSV: Starts and stops the Nagios monitor Loaded: loaded (/etc/rc.d/init.d/nagios) Active: failed (Result: exit-code) since Tue 2013-10-08 14:36:46 BST; 10s ago Process: 10941 ExecStart=/etc/rc.d/init.d/nagios start (code=exited, status=1/FAILURE) Oct 08 14:36:46 t430slt systemd[1]: nagios.service: control process exited, code=exited status=1 Oct 08 14:36:46 t430slt systemd[1]: Failed to start SYSV: Starts and stops the Nagios monitor. Oct 08 14:36:46 t430slt systemd[1]: Unit nagios.service entered failed state. The problems are: - /etc/nagios/nagios_command.cfg contains a duplicate cinder-list section - /etc/nagios/nagios_host.cfg contains a duplicate linux-server section for localhost. Added the creation of the file on the puppet modules. https://review.openstack.org/#/c/51277/ |