The cron job update-lma-configuration lma_infrastructure_alerting removes configuration files when we apply the nagios.pp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StackLight |
Fix Released
|
High
|
guillaume thouvenin | ||
0.10 |
Fix Released
|
High
|
guillaume thouvenin |
Bug Description
Something very strange happens on MOS 8 environment after an upgrade from SL 0.9.0 to 0.10.1. For the upgrade the following document has been used: https:/
After the upgrade the nagios3 was not able to start. The configuration files prefixed by "lma_" in the /etc/nagios3 were not present on all three SL nodes. To reconfigure nagios we run several times the following command:
# puppet apply --debug --modulepath=
Each time the configuration files were created but right after they were deleted.
We modified the file /etc/fuel/
If we run the cron job manually on the node we got the following error:
root@lma-
Error: Could not run: Could not find file /etc/fuel/
/etc/fuel/
root@lma-
apache2.conf cgi.cfg commands.cfg conf.d htpasswd.users nagios.cfg resource.cfg stylesheets
root@lma-
cmd_notify-
contacts_
extinfo_
root@lma-
And lma_ configuration files have been removed.
Changed in lma-toolchain: | |
assignee: | LMA-Toolchain Fuel Plugins (mos-lma-toolchain) → guillaume thouvenin (guillaume-thouvenin) |
Changed in lma-toolchain: | |
status: | Fix Committed → Fix Released |
There are two problems:
1) The script is setting PLUGIN_ PUPPET_ DIR=$(ls -d /etc/fuel/ plugins/ "$PLUGIN_ NAME"*/ puppet) . It works when we have one version of the plugin, but if we have two versions then the puppet apply failed to apply because PLUGIN_ PUPPET_ DIR="lma_ infrastructure_ alerting- 0.9 lma_infrastruct ure_alerting- 0.10". It is the error we are seeing in the description.
2) And as the script failed, the file LAST_CHECK and LAST_CHECK_NODES are never updated. So the cron job is running over and over....
We need to fix the script to check what version of the plugin is running.