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 over 6 years ago. Updated over 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

Also available in: Atom PDF