Project

General

Profile

Actions

Bug #12956

closed

Bug #12930: During an upgrade of Rudder, if a new generic method appears in ncf, that is also on local method, all is broken

Bug #12933: Improve parent ticket code

Parent ticket does not solve the issue with broken policy generation

Added by Nicolas CHARLES almost 6 years ago. Updated almost 6 years ago.

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

Description

rudder-upgrade does correctly find dupplicates

INFO: Alternative source path added: /var/rudder/configuration-repository/ncf
INFO: Alternative source path added: /var/rudder/configuration-repository/ncf
WARNING: The condition_from_variable_match.cf generic method was already present in local configuration, removing it.
INFO: The /var/rudder/configuration-repository/techniques/ncf_techniques/category.xml file already exists. Not updating.
INFO: Alternative source path added: /var/rudder/configuration-repository/ncf

but policy run fails

root@server:/var/rudder/configuration-repository/ncf/30_generic_methods# rudder agent run
Rudder agent 4.3.4~rc1~git201807122338-stretch0
Node uuid: root
/var/rudder/ncf/common/30_generic_methods/condition_from_variable_match.cf:17:0: error: Duplicate definition of bundle condition_from_variable_match with type agent
/var/rudder/ncf/local/30_generic_methods/condition_from_variable_match.cf:17:0: error: Duplicate definition of bundle condition_from_variable_match with type agent
error    Rudder agent was interrupted during execution by a fatal error
         Run with -i to see log messages.


and so does policy generation

Actions #1

Updated by Nicolas CHARLES almost 6 years ago

  • Category set to Packaging
  • Target version set to 4.1.14
Actions #2

Updated by Nicolas CHARLES almost 6 years ago

  • Status changed from New to In progress
Actions #3

Updated by Nicolas CHARLES almost 6 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to François ARMAND
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1616
Actions #4

Updated by Nicolas CHARLES almost 6 years ago

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

Updated by François ARMAND almost 6 years ago

  • Target version changed from 4.1.14 to 4.1.13
Actions #6

Updated by Vincent MEMBRÉ almost 6 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.1.13, 4.2.7 and 4.3.3 which were released today.

Actions

Also available in: Atom PDF