Project

General

Profile

Actions

Bug #16462

closed

Syntax error in clockConfiguration.cf line 99

Added by Laurent Santoul over 4 years ago. Updated over 4 years ago.

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

Description

Hi,

I can't deploy policies for date & time settings on my Linux assets because of this error.
Error message says that two colon characters are missing at the end of line 99, but when I add those by editing the file they are systematically removed.
Can you check and take the appropriates measures please ?

⇨ Policy update error for process '53' at 2019-12-27 10:09:40
⇨ Cannot write nodes configuration
⇨ Error when executing hooks:
Exit code=1 for hook: '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'. [stdout:][stderr:/var/rudder/share/cd70bd93-9d73-433b-8cbb-3ed40f3c3aae/rules.new/cfengine-community/clockConfiguration/3.2/clockConfiguration.cf:99:10: error: syntax error
pass3.linux
^
/var/rudder/share/cd70bd93-9d73-433b-8cbb-3ed40f3c3aae/rules.new/cfengine-community/clockConfiguration/3.2/clockCo...] (for node(s) cd70bd93-9d73-433b-8cbb-3ed40f3c3aae)
Exit code=1 for hook: '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'. [stdout:][stderr:/var/rudder/cfengine-community/inputs.new/clockConfiguration/3.2/clockConfiguration.cf:99:10: error: syntax error
pass3.linux
^

Best Regards,
Laurent

Actions #1

Updated by Alexis Mousset over 4 years ago

  • Category changed from System techniques to Techniques

Thanks for reporting!

Actions #2

Updated by Alexis Mousset over 4 years ago

  • Status changed from New to In progress
  • Assignee set to Alexis Mousset
Actions #3

Updated by Alexis Mousset over 4 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1569
Actions #4

Updated by Alexis Mousset over 4 years ago

To fix it you need to edit /var/rudder/configuration-repository/techniques/systemSettings/misc/clockConfiguration/3.2/clockConfiguration.st (the .cf file gets overwritten at each policy generation), then:

cd /var/rudder/configuration-repository/techniques
git add systemSettings/misc/clockConfiguration/3.2/clockConfiguration.st
git commit -m "Fix for bug 16462" 
rudder server reload-techniques
Actions #5

Updated by Laurent Santoul over 4 years ago

Hi,
Thanks a lot for this quick answer, everything works fine,
Merci beaucoup,
Best Regards,
Laurent

Actions #6

Updated by Benoît PECCATTE over 4 years ago

  • Subject changed from Syntaxt error in clockConfiguration.cf line 99 to Syntax error in clockConfiguration.cf line 99
Actions #7

Updated by Alexis Mousset over 4 years ago

  • Status changed from Pending technical review to Pending release
Actions #8

Updated by Alexis Mousset over 4 years ago

  • Name check changed from To do to Reviewed
Actions #9

Updated by Nicolas CHARLES over 4 years ago

  • Fix check changed from To do to Checked
Actions #10

Updated by Vincent MEMBRÉ over 4 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 6.0.2 which was released today.

Actions

Also available in: Atom PDF