Project

General

Profile

Actions

Bug #2622

closed

DistributePolicy promises refers to non-existing templates

Added by Nicolas CHARLES over 12 years ago. Updated over 12 years ago.

Status:
Released
Priority:
1 (highest)
Assignee:
Matthieu CERDA
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

The distribute policy promises refers to apacheCheck and ldapCheck template, that doesn't exists

So we have nasty errors like

ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Template with id distributePolicy/1.0/ldapCheck was not found
12:05:44.672 [pool-3-thread-7] ERROR com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl - Writing promises error : 
java.lang.RuntimeException: Can not find base path for policy package with ID distributePolicy/1.0
    at com.normation.cfclerk.services.impl.Cf3PromisesFileWriterServiceImpl$$anonfun$writePromisesFiles$1$$anonfun$apply$7.apply(Cf3PromisesFileWriterServiceImpl.scala:162) ~[cfclerk-0.11.0-SNAPSHOT.jar:na]
    at com.normation.cfclerk.services.impl.Cf3PromisesFileWriterServiceImpl$$anonfun$writePromisesFiles$1$$anonfun$apply$7.apply(Cf3PromisesFileWriterServiceImpl.scala:160) ~[cfclerk-0.11.0-SNAPSHOT.jar:na]
    at com.normation.cfclerk.services.impl.GitTechniqueReader.getTemplateContent(GitTechniqueReader.scala:228) ~[cfclerk-0.11.0-SNAPSHOT.jar:na]
    at com.normation.cfclerk.services.impl.TechniqueRepositoryImpl.getTemplateContent(TechniqueRepositoryImpl.scala:123) ~[cfclerk-0.11.0-SNAPSHOT.jar:na]
    at com.normation.cfclerk.services.impl.Cf3PromisesFileWriterServiceImpl$$anonfun$writePromisesFiles$1.apply(Cf3PromisesFileWriterServiceImpl.scala:160) ~[cfclerk-0.11.0-SNAPSHOT.jar:na]
    at com.normation.cfclerk.services.impl.Cf3PromisesFileWriterServiceImpl$$anonfun$writePromisesFiles$1.apply(Cf3PromisesFileWriterServiceImpl.scala:159) ~[cfclerk-0.11.0-SNAPSHOT.jar:na]
    at scala.collection.immutable.HashSet$HashSet1.foreach(HashSet.scala:130) ~[scala-library-2.9.1.jar:na]
    at scala.collection.immutable.HashSet$HashTrieSet.foreach(HashSet.scala:275) ~[scala-library-2.9.1.jar:na]
    at com.normation.cfclerk.services.impl.Cf3PromisesFileWriterServiceImpl.writePromisesFiles(Cf3PromisesFileWriterServiceImpl.scala:159) ~[cfclerk-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl$$anonfun$com$normation$rudder$services$policies$RudderCf3PromisesFileWriterServiceImpl$$prepareRulesForAgents$1$$anonfun$apply$6.apply(RudderPromiseWriterServiceImpl.scala:180) [rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl$$anonfun$com$normation$rudder$services$policies$RudderCf3PromisesFileWriterServiceImpl$$prepareRulesForAgents$1$$anonfun$apply$6.apply(RudderPromiseWriterServiceImpl.scala:179) [rudder-core-0.11.0-SNAPSHOT.jar:na]
    at scala.collection.immutable.Map$Map2.foreach(Map.scala:139) [scala-library-2.9.1.jar:na]
    at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl$$anonfun$com$normation$rudder$services$policies$RudderCf3PromisesFileWriterServiceImpl$$prepareRulesForAgents$1.apply(RudderPromiseWriterServiceImpl.scala:179) [rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl$$anonfun$com$normation$rudder$services$policies$RudderCf3PromisesFileWriterServiceImpl$$prepareRulesForAgents$1.apply(RudderPromiseWriterServiceImpl.scala:157) [rudder-core-0.11.0-SNAPSHOT.jar:na]
    at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:60) [scala-library-2.9.1.jar:na]
    at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:44) [scala-library-2.9.1.jar:na]
    at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl.com$normation$rudder$services$policies$RudderCf3PromisesFileWriterServiceImpl$$prepareRulesForAgents(RudderPromiseWriterServiceImpl.scala:157) [rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl$$anonfun$writePromisesForMachines$1.apply(RudderPromiseWriterServiceImpl.scala:132) [rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl$$anonfun$writePromisesForMachines$1.apply(RudderPromiseWriterServiceImpl.scala:120) [rudder-core-0.11.0-SNAPSHOT.jar:na]
    at scala.collection.Iterator$class.foreach(Iterator.scala:660) [scala-library-2.9.1.jar:na]
    at scala.collection.mutable.HashMap$$anon$4.foreach(HashMap.scala:113) [scala-library-2.9.1.jar:na]
    at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl.writePromisesForMachines(RudderPromiseWriterServiceImpl.scala:120) [rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.servers.NodeConfigurationServiceImpl$$anonfun$writeTemplateForUpdatedNodeConfigurations$1.apply(NodeConfigurationServiceImpl.scala:434) [rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.servers.NodeConfigurationServiceImpl$$anonfun$writeTemplateForUpdatedNodeConfigurations$1.apply(NodeConfigurationServiceImpl.scala:412) [rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.servers.NodeConfigurationServiceImpl.inLock(NodeConfigurationServiceImpl.scala:106) [rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.servers.NodeConfigurationServiceImpl.writeTemplateForUpdatedNodeConfigurations(NodeConfigurationServiceImpl.scala:412) [rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.DeploymentService_updateAndWriteRule$class.writeNodeConfigurations(DeploymentService.scala:558) [rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.DeploymentServiceImpl.writeNodeConfigurations(DeploymentService.scala:233) [rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.DeploymentService$$anonfun$4$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$6$$anonfun$apply$9$$anonfun$apply$11$$anonfun$apply$13.apply(DeploymentService.scala:131) [rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.DeploymentService$$anonfun$4$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$6$$anonfun$apply$9$$anonfun$apply$11$$anonfun$apply$13.apply(DeploymentService.scala:126) [rudder-core-0.11.0-SNAPSHOT.jar:na]
    at net.liftweb.common.Full.flatMap(Box.scala:493) [lift-common_2.9.1-2.4.jar:2.4]
12:05:44.674 [pool-3-thread-15] ERROR com.normation.rudder.batch.AsyncDeploymentAgent - Deployment error for process '249' at 2012/07/03 12:05:44: Exception caught during deployment process: Can not find base path for policy package with ID distributePolicy/1.0
java.lang.RuntimeException: Can not find base path for policy package with ID distributePolicy/1.0
    at com.normation.cfclerk.services.impl.Cf3PromisesFileWriterServiceImpl$$anonfun$writePromisesFiles$1$$anonfun$apply$7.apply(Cf3PromisesFileWriterServiceImpl.scala:162) ~[cfclerk-0.11.0-SNAPSHOT.jar:na]
    at com.normation.cfclerk.services.impl.Cf3PromisesFileWriterServiceImpl$$anonfun$writePromisesFiles$1$$anonfun$apply$7.apply(Cf3PromisesFileWriterServiceImpl.scala:160) ~[cfclerk-0.11.0-SNAPSHOT.jar:na]
    at com.normation.cfclerk.services.impl.GitTechniqueReader.getTemplateContent(GitTechniqueReader.scala:228) ~[cfclerk-0.11.0-SNAPSHOT.jar:na]
    at com.normation.cfclerk.services.impl.TechniqueRepositoryImpl.getTemplateContent(TechniqueRepositoryImpl.scala:123) ~[cfclerk-0.11.0-SNAPSHOT.jar:na]
    at com.normation.cfclerk.services.impl.Cf3PromisesFileWriterServiceImpl$$anonfun$writePromisesFiles$1.apply(Cf3PromisesFileWriterServiceImpl.scala:160) ~[cfclerk-0.11.0-SNAPSHOT.jar:na]
    at com.normation.cfclerk.services.impl.Cf3PromisesFileWriterServiceImpl$$anonfun$writePromisesFiles$1.apply(Cf3PromisesFileWriterServiceImpl.scala:159) ~[cfclerk-0.11.0-SNAPSHOT.jar:na]
    at scala.collection.immutable.HashSet$HashSet1.foreach(HashSet.scala:130) ~[scala-library-2.9.1.jar:na]
    at scala.collection.immutable.HashSet$HashTrieSet.foreach(HashSet.scala:275) ~[scala-library-2.9.1.jar:na]
    at com.normation.cfclerk.services.impl.Cf3PromisesFileWriterServiceImpl.writePromisesFiles(Cf3PromisesFileWriterServiceImpl.scala:159) ~[cfclerk-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl$$anonfun$com$normation$rudder$services$policies$RudderCf3PromisesFileWriterServiceImpl$$prepareRulesForAgents$1$$anonfun$apply$6.apply(RudderPromiseWriterServiceImpl.scala:180) ~[rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl$$anonfun$com$normation$rudder$services$policies$RudderCf3PromisesFileWriterServiceImpl$$prepareRulesForAgents$1$$anonfun$apply$6.apply(RudderPromiseWriterServiceImpl.scala:179) ~[rudder-core-0.11.0-SNAPSHOT.jar:na]
    at scala.collection.immutable.Map$Map2.foreach(Map.scala:139) ~[scala-library-2.9.1.jar:na]
    at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl$$anonfun$com$normation$rudder$services$policies$RudderCf3PromisesFileWriterServiceImpl$$prepareRulesForAgents$1.apply(RudderPromiseWriterServiceImpl.scala:179) ~[rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl$$anonfun$com$normation$rudder$services$policies$RudderCf3PromisesFileWriterServiceImpl$$prepareRulesForAgents$1.apply(RudderPromiseWriterServiceImpl.scala:157) ~[rudder-core-0.11.0-SNAPSHOT.jar:na]
    at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:60) ~[scala-library-2.9.1.jar:na]
    at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:44) ~[scala-library-2.9.1.jar:na]
    at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl.com$normation$rudder$services$policies$RudderCf3PromisesFileWriterServiceImpl$$prepareRulesForAgents(RudderPromiseWriterServiceImpl.scala:157) ~[rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl$$anonfun$writePromisesForMachines$1.apply(RudderPromiseWriterServiceImpl.scala:132) ~[rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl$$anonfun$writePromisesForMachines$1.apply(RudderPromiseWriterServiceImpl.scala:120) ~[rudder-core-0.11.0-SNAPSHOT.jar:na]
    at scala.collection.Iterator$class.foreach(Iterator.scala:660) ~[scala-library-2.9.1.jar:na]
    at scala.collection.mutable.HashMap$$anon$4.foreach(HashMap.scala:113) ~[scala-library-2.9.1.jar:na]
    at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl.writePromisesForMachines(RudderPromiseWriterServiceImpl.scala:120) ~[rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.servers.NodeConfigurationServiceImpl$$anonfun$writeTemplateForUpdatedNodeConfigurations$1.apply(NodeConfigurationServiceImpl.scala:434) ~[rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.servers.NodeConfigurationServiceImpl$$anonfun$writeTemplateForUpdatedNodeConfigurations$1.apply(NodeConfigurationServiceImpl.scala:412) ~[rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.servers.NodeConfigurationServiceImpl.inLock(NodeConfigurationServiceImpl.scala:106) ~[rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.servers.NodeConfigurationServiceImpl.writeTemplateForUpdatedNodeConfigurations(NodeConfigurationServiceImpl.scala:412) ~[rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.DeploymentService_updateAndWriteRule$class.writeNodeConfigurations(DeploymentService.scala:558) ~[rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.DeploymentServiceImpl.writeNodeConfigurations(DeploymentService.scala:233) ~[rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.DeploymentService$$anonfun$4$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$6$$anonfun$apply$9$$anonfun$apply$11$$anonfun$apply$13.apply(DeploymentService.scala:131) ~[rudder-core-0.11.0-SNAPSHOT.jar:na]
    at com.normation.rudder.services.policies.DeploymentService$$anonfun$4$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$6$$anonfun$apply$9$$anonfun$apply$11$$anonfun$apply$13.apply(DeploymentService.scala:126) ~[rudder-core-0.11.0-SNAPSHOT.jar:na]
    at net.liftweb.common.Full.flatMap(Box.scala:493) ~[lift-common_2.9.1-2.4.jar:2.4]

Actions #1

Updated by Matthieu CERDA over 12 years ago

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

Applied in changeset commit:8e3e8460f751a88afec9659a4d1c6f46a58135fc.

Actions #2

Updated by Jonathan CLARKE over 12 years ago

  • Target version changed from 50 to 2.4.0~beta3
Actions #3

Updated by Nicolas CHARLES over 12 years ago

  • Status changed from Pending technical review to Released

This looks valid, thank you Matthieu

Actions

Also available in: Atom PDF