Project

General

Profile

Bug #6000

Error output on Time settings at first run

Added by Nicolas CHARLES almost 4 years ago. Updated over 3 years ago.

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

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


Subtasks

Bug #6015: Check ntp.conf exists before installing it - port of fix for #6000 to technique version 3.0ReleasedNicolas CHARLES

Associated revisions

Revision 1a73f5cd (diff)
Added by Jonathan CLARKE almost 4 years ago

Fixes #6000: Error output on Time settings at first run

Revision 5e8b82b7
Added by Nicolas CHARLES almost 4 years ago

Merge pull request #616 from jooooooon/bug_6000/error_output_on_time_settings_at_first_run

Fixes #6000: Error output on Time settings at first run

History

#1 Updated by Jonathan CLARKE almost 4 years ago

  • 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.

#2 Updated by Jonathan CLARKE almost 4 years ago

This is not CentOS specific, and is present from version 1.0 of this Technique.

#3 Updated by Jonathan CLARKE almost 4 years ago

  • 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

#4 Updated by Jonathan CLARKE almost 4 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

Applied in changeset policy-templates:commit:1a73f5cde87476f8e53df906b81b62bc8390a177.

#5 Updated by Nicolas CHARLES almost 4 years ago

Applied in changeset policy-templates:commit:5e8b82b778d09788b43a0c55ac400f0f070c4efd.

#6 Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 2.10.9 to 2.10.10

#7 Updated by Vincent MEMBRÉ over 3 years ago

  • 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.

#8 Updated by Vincent MEMBRÉ over 3 years ago

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