Project

General

Profile

Actions

Bug #6673

closed

No reporting on agents on ncf directives on SLES

Added by Alexis MOUSSET almost 6 years ago. Updated almost 6 years ago.

Status:
Released
Priority:
N/A
Category:
Techniques
Target version:
Severity:
User visibility:
Effort required:
Priority:

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.


Related issues

Has duplicate Rudder - Bug #6447: Can't install rudder-server-root on ubuntu 14.04 server without postgresql started beforeRejectedJérémy HOCDÉ2015-03-27Actions
Actions #1

Updated by Alexis MOUSSET almost 6 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.

Actions #2

Updated by Alexis MOUSSET almost 6 years ago

The same thing happens on CentOS, but the ncf.conf file is not modified on SLES (but is modified on CentOS).

Actions #3

Updated by Alexis MOUSSET almost 6 years ago

  • Assignee set to Alexis MOUSSET
  • Target version changed from 2.11.11 to 2.10.14
Actions #4

Updated by Alexis MOUSSET almost 6 years ago

  • Status changed from New to In progress
Actions #5

Updated by Alexis MOUSSET almost 6 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.

Actions #6

Updated by Alexis MOUSSET almost 6 years ago

  • Pull Request set to https://github.com/Normation/rudder-packages/pull/671
Actions #7

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 2.11.11 to 2.11.12
Actions #8

Updated by Alexis MOUSSET almost 6 years ago

  • Status changed from In progress to Pending release
  • % Done changed from 0 to 100
Actions #9

Updated by Matthieu CERDA almost 6 years ago

Actions #10

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 2.11.12 to 2.11.11
Actions #11

Updated by Matthieu CERDA almost 6 years ago

  • Has duplicate Bug #6447: Can't install rudder-server-root on ubuntu 14.04 server without postgresql started before added
Actions #12

Updated by Vincent MEMBRÉ almost 6 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.

Actions

Also available in: Atom PDF