Project

General

Profile

Actions

Bug #16810

closed

Can not apply directives based on technique built only for non Linux systems if they do not contains conditions

Added by Félix DALLIDET almost 5 years ago. Updated almost 5 years ago.

Status:
Released
Priority:
N/A
Category:
Server components
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Reviewed
Fix check:
To do
Regression:

Description

I had a windows agent and when applying a directive based on a technique which do not use any condition nor Linux compatible GM it fails to generate with the following error:

[2020-02-25 17:15:25+0000] INFO  policy.generation - Configuration of 2 nodes were updated, their policies are going to be written
[2020-02-25 17:15:25+0000] ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Template with id TechniqueResourceIdByPath(List(techniques, ncf_techniques, DSC, 1.0),rudder_reporting.cf) was not found
[2020-02-25 17:15:25+0000] ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Template with id TechniqueResourceIdByPath(List(techniques, ncf_techniques, DSC, 1.0),rudder_reporting.cf) was not found
[2020-02-25 17:15:25+0000] INFO  policy.generation.timing - Policy generation failed after:
[2020-02-25 17:15:25+0000] ERROR policy.generation - Error when updating policy, reason was: Cannot write nodes configuration <- Accumulated: Unexpected: Error when trying to open template 'TechniqueResourceIdByPath(List(techniques, ncf_techniques, DSC, 1.0),rudder_reporting.cf)'. Check that the file exists with a .st extension and is correctly commited in Git, or that the metadata for the technique are corrects. ; Unexpected: Error when trying to open template 'TechniqueResourceIdByPath(List(techniques, ncf_techniques, DSC, 1.0),rudder_reporting.cf)'. Check that the file exists with a .st extension and is correctly commited in Git, or that the metadata for the technique are corrects.
[2020-02-25 17:15:25+0000] INFO  policy.generation - Flag file '/opt/rudder/etc/policy-update-running' successfully removed
[2020-02-25 17:15:25+0000] ERROR policy.generation - Policy update error for process '21' at 2020-02-25 17:15:25: Cannot write nodes configuration
[2020-02-25 17:16:36+0000] INFO  com.normation.cfclerk.services.impl.TechniqueRepositoryImpl - Reloading technique library, found modified technique(s): ['DSC': updated (1.0: VersionAdded)]
[2020-02-25 17:16:36+0000] WARN  git-policy-archive - Auto-archive git failure: not found in git added files: 'directives/ncf_techniques/DSC/7a363ed3-1418-4b17-873f-b9a26b0bc94c.xml'. You can safely ignore that warning if the file was already existing in Git and was not modified by that archive.
[2020-02-25 17:16:36+0000] INFO  com.normation.rudder.services.policies.DeployOnTechniqueCallback - Update Technique library after creating files for ncf Technique DSC
[2020-02-25 17:16:36+0000] INFO  policy.generation - Start policy generation, checking updated rules

Actions #1

Updated by Vincent MEMBRÉ almost 5 years ago

  • Status changed from New to In progress
  • Assignee set to Vincent MEMBRÉ
Actions #2

Updated by Vincent MEMBRÉ almost 5 years ago

  • Assignee changed from Vincent MEMBRÉ to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder/pull/2791
Actions #3

Updated by Vincent MEMBRÉ almost 5 years ago

  • Status changed from In progress to Pending release
Actions #4

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 6.0.4 to 6.0.3
Actions #5

Updated by Alexis Mousset almost 5 years ago

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

Updated by Vincent MEMBRÉ almost 5 years ago

  • Status changed from Pending release to Released

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

Actions

Also available in: Atom PDF