Bug #6673
closedNo reporting on agents on ncf directives on SLES
Description
On SLES 11, when using directives from ncf, there is no reporting from agent nodes. It happens because the agent does not use the ncf logger (but only the default logger).
On the agent:
cat /var/rudder/cfengine-community/ncf.conf.cache # This file can be used to adjust some elements in ncf. # # With CFEngine 3.6 or more, this is a Mustache template file, and allows variation # of configuration based on CFEngine classes # see http://mustache.github.io/ for the full mustache specification # and https://docs.cfengine.com/docs/3.6/reference-promise-types-files.html for # CFEngine implementation # # If you are using CFEngine 3.5, only lines with key=value will be read # and no class specific configuration can apply # # Which logger(s) should be used in ncf? (comma separated list) loggers=_logger_default # Which port should be for CFEngine connections/data transfers cfengine_port=5308
It appears that the agent does not have the right "g.rudder_ncf_origin_local" value, and uses the default (/var/rudder/configuration-repository/ncf), which only exists on the server. The problem disappears when changing site.cf from:
# defines the path to the ncf configuration file bundle common ncf_configuration { vars: "ncf_configuration_file" string => "${g.rudder_ncf_origin_local}/ncf.conf"; }
To:
# defines the path to the ncf configuration file bundle common ncf_configuration { vars: "ncf_configuration_file" string => "/var/rudder/ncf/local/ncf.conf"; }
The problem does not occur on CentOS.
Updated by Alexis Mousset over 9 years ago
The cause of this problem is that /usr/share/ncf/tree/ncf.conf, which contains the logger configuration, is modified by rudder-upgrade (called after rudder-webapp installation), to add the rudder logger.
The installation log, just after installing rudder-webapp, shows:
==> sles_server: INFO: Launching script to check if a migration is needed ==> sles_server: INFO: Checking if rudder-web.properties database access credentials are all right... LDAP OK, SQL Credentials updated ==> sles_server: INFO: Checking if inventory-web.properties database access credentials are all right... non existant, skipping ==> sles_server: INFO: Checking LDAP service status............ FAILED ==> sles_server: LDAP service verification failed after 10 tries. Aborting the migration. ==> sles_server: Please restart the LDAP service, and start the migration script again. ==> sles_server: (on a single Rudder server, try service rudder-server-root restart) ==> sles_server: Once it is working, run: ==> sles_server: # /opt/rudder/bin/rudder-upgrade ==> sles_server: INFO: End of migration script
The problem comes from the installation order: rudder-inventory-ldap is installed after rudder-webapp, and cannot be found by the post-installation script.
After running /opt/rudder/bin/rudder-upgrade again, everything works.
Updated by Alexis Mousset over 9 years ago
The same thing happens on CentOS, but the ncf.conf file is not modified on SLES (but is modified on CentOS).
Updated by Alexis Mousset over 9 years ago
- Assignee set to Alexis Mousset
- Target version changed from 2.11.11 to 2.10.14
Updated by Alexis Mousset over 9 years ago
- Status changed from New to In progress
Updated by Alexis Mousset over 9 years ago
- Target version changed from 2.10.14 to 2.11.11
On 2.10, rudder-webapp depends on rudder-inventory, and the script works properly. Targeting 2.11 and after.
Updated by Alexis Mousset over 9 years ago
- Pull Request set to https://github.com/Normation/rudder-packages/pull/671
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.11.11 to 2.11.12
Updated by Alexis Mousset over 9 years ago
- Status changed from In progress to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder-packages|acf82bb94a5a3f1c914014da49a075b1eebbafd2.
Updated by Matthieu CERDA over 9 years ago
Applied in changeset rudder-packages|76b2609d99f97db278fd79bcb71cdb0e0cc82d0b.
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.11.12 to 2.11.11
Updated by Matthieu CERDA over 9 years ago
- Has duplicate Bug #6447: Can't install rudder-server-root on ubuntu 14.04 server without postgresql started before added
Updated by Vincent MEMBRÉ over 9 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.11.11 and 3.0.5 which were released today.
- Announcement 2.11
- Changelog 2.11 3.0
- Download information: https://www.rudder-project.org/site/get-rudder/downloads/