Project

General

Profile

Actions

Bug #4996

closed

Initial promises for Rudder 2.6 (CFEngine 3.4) cannot be used when upgrading to 2.10 (CFEngine 3.5)

Added by Vincent MEMBRÉ almost 10 years ago. Updated almost 10 years ago.

Status:
Released
Priority:
4
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

I have a freshly installed rudder Server 2.6 that I upgraded directly in 2.10 and when rudder-agent is restarted I got the following errors:

udder-agent[17881]: [INFO] Launching CFEngine Community cf-serverd...
/var/rudder/cfengine-community/inputs/common/1.0/cfengine_stdlib.cf:306:53: error: syntax error
      "$(index)=$($(tab)[$(sectionName)][$(index)])",
                                                    ^
/var/rudder/cfengine-community/inputs/common/1.0/cfengine_stdlib.cf:306:53: error: Expected attribute, got ','
      "$(index)=$($(tab)[$(sectionName)][$(index)])",
                                                    ^
/var/rudder/cfengine-community/inputs/common/1.0/cfengine_stdlib.cf:307:21: error: Expected promiser string, got 'select_region'
        select_region => INI_section("$(sectionName)"),
                    ^
/var/rudder/cfengine-community/inputs/common/1.0/cfengine_stdlib.cf:307:24: error: Expected ';', got '=>'
        select_region => INI_section("$(sectionName)"),
                       ^
/var/rudder/cfengine-community/inputs/common/1.0/cfengine_stdlib.cf:307:36: error: Expected promiser string, got 'INI_section'
        select_region => INI_section("$(sectionName)"),
                                   ^
/var/rudder/cfengine-community/inputs/common/1.0/cfengine_stdlib.cf:307:37: error: Expected ';', got '('
        select_region => INI_section("$(sectionName)"),
                                    ^
/var/rudder/cfengine-community/inputs/common/1.0/cfengine_stdlib.cf:307:54: error: Expected ';', got ')'
        select_region => INI_section("$(sectionName)"),
                                                     ^
/var/rudder/cfengine-community/inputs/common/1.0/cfengine_stdlib.cf:307:55: error: Expected promiser string, got ','
        select_region => INI_section("$(sectionName)"),
                                                      ^
/var/rudder/cfengine-community/inputs/common/1.0/cfengine_stdlib.cf:374:53: error: syntax error
      "$(index)=$($(tab)[$(sectionName)][$(index)])",
                                                    ^
/var/rudder/cfengine-community/inputs/common/1.0/cfengine_stdlib.cf:374:53: error: Expected attribute, got ','
      "$(index)=$($(tab)[$(sectionName)][$(index)])",
                                                    ^
/var/rudder/cfengine-community/inputs/common/1.0/cfengine_stdlib.cf:375:21: error: Expected promiser string, got 'select_region'
        select_region => INI_section("$(sectionName)"),
                    ^
/var/rudder/cfengine-community/inputs/common/1.0/cfengine_stdlib.cf:375:24: error: Expected ';', got '=>'
        select_region => INI_section("$(sectionName)"),
                       ^
/var/rudder/cfengine-community/inputs/common/1.0/cfengine_stdlib.cf:375:36: error: Expected promiser string, got 'INI_section'
        select_region => INI_section("$(sectionName)"),
                                   ^

However If I regenerate once my policies I don't have that problem.

Actions #1

Updated by Vincent MEMBRÉ almost 10 years ago

  • Description updated (diff)

This only happen with initial promises still present on root server, If I regenerate promises once, I don't have any problem

Actions #2

Updated by Vincent MEMBRÉ almost 10 years ago

  • Status changed from New to Pending technical review
  • Assignee changed from Matthieu CERDA to Jonathan CLARKE
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/406
Actions #3

Updated by Vincent MEMBRÉ 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:5d59c2632b39bf74191fe04e170a8fc657d88dd8.

Actions #4

Updated by Jonathan CLARKE almost 10 years ago

Applied in changeset policy-templates:commit:ef9686e678662301165abc09279a4c057e37c93d.

Actions #5

Updated by Vincent MEMBRÉ almost 10 years ago

  • Subject changed from initial promises for Server 2.6 (CFEngine 3.4) cannot be used when upograding to 2.10 (CFEngine 3.5) to Initial promises for Rudder 2.6 (CFEngine 3.4) cannot be used when upgrading to 2.10 (CFEngine 3.5)
Actions #6

Updated by Vincent MEMBRÉ almost 10 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder versions that were released today.

Actions

Also available in: Atom PDF