Actions
Bug #7605
closedUser story #7424: Add cfengine classes for each group of a node
Syntax error in generated rudder_groups bundle
Status:
Released
Priority:
N/A
Assignee:
Category:
Web - Config management
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
When install 3.2-beta2 I have error on policies:
[2015-12-13 22:39:48] ERROR com.normation.rudder.services.policies.write.Cf3PromisesFileWriterServiceImpl - The generated promises are invalid: cf-promise check fails for promises generated at '/var/rudder/cfengine-community/inputs.new'<-Command to check generated promises is: '/var/rudder/cfengine-community/bin/cf-promises -f /var/rudder/cfengine-community/inputs.new/promises.cf'<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:38:13: error: syntax error<- by_uuid["policyServer:root"] string => "Root policy server",<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:38:13: error: Expected promiser string, got 'by_uuid'<- by_uuid["policyServer:root"] string => "Root policy server",<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:38:14: error: Expected ';', got '['<- by_uuid["policyServer:root"] string => "Root policy server",<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:38:34: error: Expected ';', got ']'<- by_uuid["policyServer:root"] string => "Root policy server",<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:38:64: error: Expected promiser string, got 'string'<- by_uuid["policyServer:root"] string => "Root policy server",<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:38:67: error: Expected ';', got '=>'<- by_uuid["policyServer:root"] string => "Root policy server",<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:38:89: error: Expected attribute, got ',' (comma after promiser is not allowed since 3.5.0)<- by_uuid["policyServer:root"] string => "Root policy server",<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:39:64: error: Expected promiser string, got 'meta'<- meta => { "inventory", "attribute_name=rudder_groups" };<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:39:67: error: Expected ';', got '=>'<- meta => { "inventory", "attribute_name=rudder_groups" };<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:39:69: error: Expected promiser string, got '{'<- meta => { "inventory", "attribute_name=rudder_groups" };<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:39:81: error: Expected ';', got '"inventory"'<- meta => { "inventory", "attribute_name=rudder_groups" };<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:39:82: error: Expected promiser string, got ','<- meta => { "inventory", "attribute_name=rudder_groups" };<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:39:113: error: Expected ';', got '"attribute_name=rudder_groups"'<- meta => { "inventory", "attribute_name=rudder_groups" };<- ^<-Too many errors [2015-12-13 22:39:48] ERROR com.normation.rudder.batch.AsyncDeploymentAgent$DeployerAgent - Error when updating policy, reason Cannot write configuration node <- The generated promises are invalid!errormessage!cf-promise check fails for promises generated at '/var/rudder/cfengine-community/inputs.new'<-Command to check generated promises is: '/var/rudder/cfengine-community/bin/cf-promises -f /var/rudder/cfengine-community/inputs.new/promises.cf'<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:38:13: error: syntax error<- by_uuid["policyServer:root"] string => "Root policy server",<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:38:13: error: Expected promiser string, got 'by_uuid'<- by_uuid["policyServer:root"] string => "Root policy server",<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:38:14: error: Expected ';', got '['<- by_uuid["policyServer:root"] string => "Root policy server",<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:38:34: error: Expected ';', got ']'<- by_uuid["policyServer:root"] string => "Root policy server",<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:38:64: error: Expected promiser string, got 'string'<- by_uuid["policyServer:root"] string => "Root policy server",<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:38:67: error: Expected ';', got '=>'<- by_uuid["policyServer:root"] string => "Root policy server",<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:38:89: error: Expected attribute, got ',' (comma after promiser is not allowed since 3.5.0)<- by_uuid["policyServer:root"] string => "Root policy server",<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:39:64: error: Expected promiser string, got 'meta'<- meta => { "inventory", "attribute_name=rudder_groups" };<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:39:67: error: Expected ';', got '=>'<- meta => { "inventory", "attribute_name=rudder_groups" };<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:39:69: error: Expected promiser string, got '{'<- meta => { "inventory", "attribute_name=rudder_groups" };<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:39:81: error: Expected ';', got '"inventory"'<- meta => { "inventory", "attribute_name=rudder_groups" };<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:39:82: error: Expected promiser string, got ','<- meta => { "inventory", "attribute_name=rudder_groups" };<- ^<-/var/rudder/cfengine-community/inputs.new/common/1.0/rudder-groups.cf:39:113: error: Expected ';', got '"attribute_name=rudder_groups"'<- meta => { "inventory", "attribute_name=rudder_groups" };<- ^<-Too many errors
Updated by Nicolas CHARLES almost 9 years ago
ok, generated code is invalid, as the quote are not at the proper location
it is
by_uuid["policyServer:root"] string => "Root policy server", meta => { "inventory", "attribute_name=rudder_groups" };
it should be
"by_uuid[policyServer:root]" string => "Root policy server", meta => { "inventory", "attribute_name=rudder_groups" };
Updated by Nicolas CHARLES almost 9 years ago
- Status changed from New to In progress
- Assignee set to Nicolas CHARLES
Updated by Nicolas CHARLES almost 9 years ago
- Category set to Web - Config management
- 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/pull/998
https://github.com/Normation/rudder/pull/998
And I fixed the test to ensure it runned on maven
Updated by Nicolas CHARLES almost 9 years ago
- Pull Request changed from https://github.com/Normation/rudder/pull/998 to https://github.com/Normation/rudder/pull/999
Updated by Nicolas CHARLES almost 9 years ago
- Status changed from Pending technical review to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder|9dda1a8550c3e79448c7dcfdb7674df93eeea2f3.
Updated by Vincent MEMBRÉ almost 9 years ago
Applied in changeset rudder|a9977a868ddbb60e5c4f65d0ff08edfcfef30eec.
Updated by Alexis Mousset almost 9 years ago
- Subject changed from Policies errors to Syntax error in generated rudder_groups bundle
Updated by Benoît PECCATTE almost 9 years ago
- Status changed from Pending release to Released
Updated by Benoît PECCATTE almost 9 years ago
This bug has been fixed in Rudder 3.2.0~rc2 which was released today.
Actions