Project

General

Profile

Actions

Bug #5029

closed

User story #4928: Allow splitting Rudder into independent role-based entities

User story #5025: Update the rudder-rsyslog configuration and send inventory target to send syslog message and inventory to the proper component

Error when the webabb reloads Techniques from #5025

Added by Jonathan CLARKE almost 10 years ago. Updated almost 10 years ago.

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

Description

I just added the changes Techniques to my running Rudder server, and got this in the webapp's logs:

[2014-06-15 19:08:32] INFO  com.normation.cfclerk.services.impl.TechniqueRepositoryImpl - Reloading technique library, found modified technique(s): server-roles/1.0, distributePolicy/1.0
[2014-06-15 19:08:32] ERROR com.normation.rudder.services.policies.SaveDirectivesOnTechniqueCallback - Error when trying to save directive based on updated Techniques <- Error processing (FullActiveTechnique(ActiveTechniqueId(server-roles),server-roles,Map(1.0 -> 2014-06-03T14:43:28.999+02:00),Map(1.0 -> Technique(server-roles/1.0,Server roles,Configure the server roles,List(Cf3PromisesFileTemplate(server-roles/1.0/component-check,true,server-roles/1.0/component-check.cf), Cf3PromisesFileTemplate(server-roles/1.0/alive-check,true,server-roles/1.0/alive-check.cf), Cf3PromisesFileTemplate(server-roles/1.0/init-check,true,server-roles/1.0/init-check.cf), Cf3PromisesFileTemplate(server-roles/1.0/integrity-check,true,server-roles/1.0/integrity-check.cf), Cf3PromisesFileTemplate(server-roles/1.0/network-check,true,server-roles/1.0/network-check.cf), Cf3PromisesFileTemplate(server-roles/1.0/password-check,true,server-roles/1.0/password-check.cf), Cf3PromisesFileTemplate(server-roles/1.0/postgres-check,true,server-roles/1.0/postgres-check.cf), Cf3PromisesFileTemplate(server-roles/1.0/logrotate-check,true,server-roles/1.0/logrotate-check.cf), Cf3PromisesFileTemplate(server-roles/1.0/rudder-logrotate,false,distributePolicy/logrotate.conf/rudder), Cf3PromisesFileTemplate(server-roles/1.0/technique-reload,true,server-roles/1.0/technique-reload.cf), Cf3PromisesFileTemplate(server-roles/1.0/servers-by-role,true,server-roles/1.0/servers-by-role.cf), Cf3PromisesFileTemplate(server-roles/1.0/rudder-server-roles,false,rudder-server-roles.conf)),List(Bundle(root_component_check)),TrackerVariableSpec(None),SectionSpec(SECTIONS,false,false,None,HighDisplayPriority,,List(SectionSpec(Check postgresql process,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check jetty process,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check slapd process,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check apache process,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check postgresql boot script,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check jetty boot script,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check slapd boot script,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check apache boot script,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check PostgreSQL configuration,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check logrotate configuration,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check configuration-repository folder,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check configuration-repository GIT lock,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check rudder-networks.conf file,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check rudder status,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check endpoint status,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check rudder-passwords.conf and pgpass files,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check LDAP credentials,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check LDAP in rudder-webapp.properties,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check SQL credentials,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check SQL in rudder-webapp.properties,false,true,None,HighDisplayPriority,,List()), SectionSpec(Check WebDAV credentials,false,true,None,HighDisplayPriority,,List()))),Set(SystemVariableSpec(RUDDER_SERVER_ROLES,Mapping of all role <-> hostnames,,List(),true,false,true,Constraint(BasicStringVType(None),None,true))),None,false,,true,false)),List(Directive(DirectiveId(server-roles-directive),1.0,Map(),Server Roles,Server Roles - Technical,,0,true,true)),true,true),Directive(DirectiveId(server-roles-directive),1.0,Map(),Server Roles,Server Roles - Technical,,0,true,true)) <- Error processing (FullActiveTechnique(ActiveTechniqueId(distributePolicy),distributePolicy,Map(1.0 -> 2011-07-15T14:43:28.999+02:00),Map(1.0 -> Technique(distributePolicy/1.0,Distribute the policy to servers,Distribute policy,List(Cf3PromisesFileTemplate(distributePolicy/1.0/propagatePromises,true,distributePolicy/1.0/propagatePromises.cf), Cf3PromisesFileTemplate(distributePolicy/1.0/rsyslogConf,true,distributePolicy/1.0/rsyslogConf.cf), Cf3PromisesFileTemplate(distributePolicy/1.0/clientlist,false,clientlist/clientlist.cf), Cf3PromisesFileTemplate(distributePolicy/1.0/rudder-rsyslog-root,false,distributePolicy/rsyslog.conf/rudder-rsyslog-root.conf), Cf3PromisesFileTemplate(distributePolicy/1.0/rudder-rsyslog-relay,false,distributePolicy/rsyslog.conf/rudder-rsyslog-relay.conf)),List(Bundle(setup_debian_backports), Bundle(install_rsyslogd), Bundle(propagatePromises), Bundle(sendInventoryToCmdb)),TrackerVariableSpec(Some(CMDBENDPOINT)),SectionSpec(SECTIONS,false,false,None,HighDisplayPriority,,List(SectionSpec(Propagate promises,false,true,None,HighDisplayPriority,,List()), SectionSpec(Send inventories to CMDB,false,true,None,HighDisplayPriority,,List()))),Set(SystemVariableSpec(CLIENTSFOLDERS,List of agent to contact via runagent,,List(),false,true,true,Constraint(BasicStringVType(None),None,true)), SystemVariableSpec(SHARED_FILES_FOLDER,The path to the shared files folder,,List(),false,false,true,Constraint(BasicStringVType(None),None,true)), SystemVariableSpec(CMDBENDPOINT,The cmdb endpoint,,List(),false,false,true,Constraint(RawVType,None,false)), SystemVariableSpec(SYSLOGPORT,Port to use for rsyslog (used by reports),,List(),true,false,true,Constraint(IntegerVType(None),None,false)), SystemVariableSpec(STORE_ALL_CENTRALIZED_LOGS_IN_FILE,Keep all centralized ,,List(),true,false,true,Constraint(BooleanVType,Some(true),false))),None,false,,false,false)),List(Directive(DirectiveId(root-distributePolicy),1.0,Map(),Distribute Policy,Distribute policy - Technical,,0,true,true)),true,true),Directive(DirectiveId(root-distributePolicy),1.0,Map(),Distribute Policy,Distribute policy - Technical,,0,true,true)) <- System directive 'Distribute Policy' (root-distributePolicy) can't be updated
Actions

Also available in: Atom PDF