Project

General

Profile

Actions

Bug #6000

closed

Error output on Time settings at first run

Added by Nicolas CHARLES almost 10 years ago. Updated over 9 years ago.

Status:
Released
Priority:
N/A
Category:
Techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

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 1 (0 open1 closed)

Bug #6015: Check ntp.conf exists before installing it - port of fix for #6000 to technique version 3.0ReleasedNicolas CHARLES2014-12-16Actions
Actions #1

Updated by Jonathan CLARKE almost 10 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.

Actions #2

Updated by Jonathan CLARKE almost 10 years ago

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

Actions #3

Updated by Jonathan CLARKE almost 10 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
Actions #4

Updated by Jonathan CLARKE almost 10 years ago

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

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

Actions #5

Updated by Nicolas CHARLES almost 10 years ago

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

Actions #6

Updated by Vincent MEMBRÉ almost 10 years ago

  • Target version changed from 2.10.9 to 2.10.10
Actions #7

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

Actions #8

Updated by Vincent MEMBRÉ over 9 years ago

This bug has been fixed in Rudder 2.10.10 and 2.11.7, which were released on 05/02/2015.

Actions

Also available in: Atom PDF