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)

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

Added by Vincent MEMBRÉ over 11 years ago. Updated over 11 years ago.

Status:
Released
Priority:
4
Assignee:
Jonathan CLARKE
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.

Updated by Vincent MEMBRÉ over 11 years ago Actions #1

  • 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

Updated by Vincent MEMBRÉ over 11 years ago Actions #2

  • 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

Updated by Vincent MEMBRÉ over 11 years ago Actions #3

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100

Applied in changeset policy-templates:commit:5d59c2632b39bf74191fe04e170a8fc657d88dd8.

Updated by Jonathan CLARKE over 11 years ago Actions #4

Applied in changeset policy-templates:commit:ef9686e678662301165abc09279a4c057e37c93d.

Updated by Vincent MEMBRÉ over 11 years ago Actions #5

  • 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)

Updated by Vincent MEMBRÉ over 11 years ago Actions #6

  • Status changed from Pending release to Released

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

Actions

Also available in: PDF Atom