Bug #6000
closed
Error output on Time settings at first run
Added by Nicolas CHARLES almost 10 years ago.
Updated over 9 years ago.
Description
The first execution of Time Settings 3.0 technique outputs following message on Centos 6
2014-12-15T13:08:49+0000 error: /default/check_clock_configuration/files/'/etc/ntp.conf'[0]: Promised to edit '/etc/ntp.conf', but file does not exist
2014-12-15T13:08:56+0000 notice: /default/check_clock_con[FAILED]on/commands/'/etc/init.d/ntpd'[0]: Q: "...nit.d/ntpd rest": Shutting down ntpd:
Q: "...nit.d/ntpd rest": Starting ntpd: [ OK ]
and ntp is not correctly configured
Relaunching the agent solves the issue
Tested on 2.11, may fail on earlier version on Technique/Rudder
- Status changed from New to In progress
- Assignee set to Jonathan CLARKE
This happens because the Technique tries to edit the ntp.conf file before checking the package is installed, so it does not exist.
Adding a simple check for this file's presence and using the result class of the package promise fixes this. PR in progress.
This is not CentOS specific, and is present from version 1.0 of this Technique.
- Status changed from In progress to Pending technical review
- Assignee changed from Jonathan CLARKE to Nicolas CHARLES
- Target version changed from 2.11.6 to 2.10.9
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/616
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset policy-templates:commit:1a73f5cde87476f8e53df906b81b62bc8390a177.
Applied in changeset policy-templates:commit:5e8b82b778d09788b43a0c55ac400f0f070c4efd.
- Target version changed from 2.10.9 to 2.10.10
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.10.10 and 2.11.7, which were these days.
This bug has been fixed in Rudder 2.10.10 and 2.11.7, which were released on 05/02/2015.
Also available in: Atom
PDF