Bug #6660
closedA report is missing on system techniques when cron needs to be restartd
Description
Having issues with the rudder-generated promises for crond on a SLES12 GA Server:
sles12# cf-agent -KICalways | grep 'default/check_cron_daemon' 2015-05-22T15:17:49+0200 info: /default/check_cron_daemon/processes/'/usr/sbin/cron$'[0]: Making a one-time restart promise for '/usr/sbin/cron$' 2015-05-22T15:17:49+0200 info: /default/check_cron_daemon/methods/'restart_cron'/default/service_restart/methods/'wrap'/default/service_restart_if/methods/'restart'/default/service_action/methods/'action'/default/command_execution/commands/'/bin/systemctl restart cron'[0]: Executing 'no timeout' ... '/bin/systemctl restart cron' 2015-05-22T15:17:49+0200 info: /default/check_cron_daemon/methods/'restart_cron'/default/service_restart/methods/'wrap'/default/service_restart_if/methods/'restart'/default/service_action/methods/'action'/default/command_execution/commands/'/bin/systemctl restart cron'[0]: Completed execution of '/bin/systemctl restart cron' 2015-05-22T15:17:49+0200 error: /default/check_cron_daemon/methods/'restart_cron'/default/service_restart/methods/'wrap'/default/service_restart_if/methods/'restart'/default/service_action/methods/'action'/default/command_execution/methods/'report'/default/_logger/methods/'logging'/default/_bundle_caller_two/methods/'${configuration.enabled_loggers}'[0]: A variable seems to have been used for the name of the method. In this case, the promiser also needs to contain the unique name of the method 2015-05-22T15:17:49+0200 error: /default/check_cron_daemon/methods/'restart_cron'/default/service_restart/methods/'wrap'/default/service_restart_if/methods/'restart'/default/service_action/methods/'action'/default/command_execution/methods/'report'/default/_logger/methods/'logging'/default/_bundle_caller_two/methods/'${configuration.enabled_loggers}'[0]: A method attempted to use a bundle '${configuration.enabled_loggers}' that was apparently not defined 2015-05-22T15:17:49+0200 error: /default/check_cron_daemon/methods/'restart_cron'/default/service_restart/methods/'wrap'/default/service_restart_if/methods/'restart'/default/service_action/methods/'action'/default/command_execution/methods/'report'/default/_logger/methods/'logging'[0]: Method '_bundle_caller_two' failed in some repairs 2015-05-22T15:17:49+0200 error: /default/check_cron_daemon/methods/'restart_cron'/default/service_restart/methods/'wrap'/default/service_restart_if/methods/'restart'/default/service_action/methods/'action'/default/command_execution/methods/'report'[0]: Method '_logger' failed in some repairs 2015-05-22T15:17:49+0200 error: /default/check_cron_daemon/methods/'restart_cron'/default/service_restart/methods/'wrap'/default/service_restart_if/methods/'restart'/default/service_action/methods/'action'[0]: Method 'command_execution' failed in some repairs 2015-05-22T15:17:49+0200 error: /default/check_cron_daemon/methods/'restart_cron'/default/service_restart/methods/'wrap'/default/service_restart_if/methods/'restart'/default/service_action/methods/'report'/default/_logger/methods/'logging'/default/_bundle_caller_two/methods/'${configuration.enabled_loggers}'[0]: A variable seems to have been used for the name of the method. In this case, the promiser also needs to contain the unique name of the method 2015-05-22T15:17:49+0200 error: /default/check_cron_daemon/methods/'restart_cron'/default/service_restart/methods/'wrap'/default/service_restart_if/methods/'restart'/default/service_action/methods/'report'/default/_logger/methods/'logging'/default/_bundle_caller_two/methods/'${configuration.enabled_loggers}'[0]: A method attempted to use a bundle '${configuration.enabled_loggers}' that was apparently not defined 2015-05-22T15:17:49+0200 error: /default/check_cron_daemon/methods/'restart_cron'/default/service_restart/methods/'wrap'/default/service_restart_if/methods/'restart'/default/service_action/methods/'report'/default/_logger/methods/'logging'[0]: Method '_bundle_caller_two' failed in some repairs 2015-05-22T15:17:49+0200 error: /default/check_cron_daemon/methods/'restart_cron'/default/service_restart/methods/'wrap'/default/service_restart_if/methods/'restart'/default/service_action/methods/'report'[0]: Method '_logger' failed in some repairs 2015-05-22T15:17:49+0200 error: /default/check_cron_daemon/methods/'restart_cron'/default/service_restart/methods/'wrap'/default/service_restart_if/methods/'restart'[0]: Method 'service_action' failed in some repairs 2015-05-22T15:17:49+0200 error: /default/check_cron_daemon/methods/'restart_cron'/default/service_restart/methods/'wrap'/default/service_restart_if/methods/'report'/default/_logger/methods/'logging'/default/_bundle_caller_two/methods/'${configuration.enabled_loggers}'[0]: A variable seems to have been used for the name of the method. In this case, the promiser also needs to contain the unique name of the method 2015-05-22T15:17:49+0200 error: /default/check_cron_daemon/methods/'restart_cron'/default/service_restart/methods/'wrap'/default/service_restart_if/methods/'report'/default/_logger/methods/'logging'/default/_bundle_caller_two/methods/'${configuration.enabled_loggers}'[0]: A method attempted to use a bundle '${configuration.enabled_loggers}' that was apparently not defined 2015-05-22T15:17:49+0200 error: /default/check_cron_daemon/methods/'restart_cron'/default/service_restart/methods/'wrap'/default/service_restart_if/methods/'report'/default/_logger/methods/'logging'[0]: Method '_bundle_caller_two' failed in some repairs 2015-05-22T15:17:49+0200 error: /default/check_cron_daemon/methods/'restart_cron'/default/service_restart/methods/'wrap'/default/service_restart_if/methods/'report'[0]: Method '_logger' failed in some repairs 2015-05-22T15:17:49+0200 error: /default/check_cron_daemon/methods/'restart_cron'/default/service_restart/methods/'wrap'[0]: Method 'service_restart_if' failed in some repairs 2015-05-22T15:17:49+0200 error: /default/check_cron_daemon/methods/'restart_cron'[0]: Method 'service_restart' failed in some repairs
Agent:
rudder-agent-3.1.0.beta2.git201505180137-1.SLES.12.x86_64
Rootserver:
ncf-0.201504102231-1.SLES.11
ncf-api-virtualenv-3.0.4.release-1.SLES.11
rudder-agent-3.0.4.release-1.SLES.11
rudder-inventory-endpoint-3.0.4.release-1.SLES.11
rudder-inventory-ldap-3.0.4.release-1.SLES.11
rudder-jetty-3.0.4.release-1.SLES.11
rudder-plugin-external-node-information-2.11.4-1
rudder-reports-3.0.4.release-1.SLES.11
rudder-server-root-3.0.4.release-1.SLES.11
rudder-techniques-3.0.4.release-1.SLES.11
rudder-webapp-3.0.4.release-1.SLES.11
Updated by Matthieu CERDA over 9 years ago
- Priority changed from N/A to 2
Thank you Janos, let's take a look at this! :)
Updated by Matthieu CERDA over 9 years ago
- Assignee set to Alexis Mousset
I know for sure that Alexis is working on at least this cron part on systemd-using OSes, assigning to him just in case.
Updated by Alexis Mousset over 9 years ago
It is a reporting problem, moving the call to the configuration bundle before check_cron_daemon in promises.st seems to fix the issue. Unsure about how to properly fix it though.
Updated by Matthieu CERDA over 9 years ago
- Status changed from New to In progress
- Assignee changed from Alexis Mousset to Matthieu CERDA
Updated by Matthieu CERDA over 9 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Matthieu CERDA to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/716
Updated by Matthieu CERDA over 9 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder-techniques|5859da906a9a42a6314d49d16789cb0e32d16d4e.
Updated by Nicolas CHARLES over 9 years ago
Applied in changeset rudder-techniques|e164ba1945f66beb89c0a900a60ea6267dabf8ac.
Updated by Vincent MEMBRÉ over 9 years ago
- Subject changed from SLES12 policy for restart cron throws errors to A report is missing on system techniques when cron needs to be restartd
- Category changed from Techniques to System techniques
Updated by François ARMAND over 9 years ago
- Status changed from Pending release to Released