Actions
Bug #3128
closedRudder displays a confusing error quickly after deleting a node, and then resumes working normally
Status:
Rejected
Priority:
2
Assignee:
Category:
Web - Nodes & inventories
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
When trying to delete a node, a deployment seems to try launching, and fails immediately with the error: "Failed to get root server to build path"
Here are the related logs:
16:28:09.258 [qtp760805843-66] DEBUG com.normation.inventory.ldap.core.FullInventoryRepositoryImpl - Error when moving machine referenced by container for node '49ee7b99-00f5-466a-880a-d2cf27010055'. We will assume that the machine was deleted, and remove the reference in node cause:Can not move 'machineId=07486112-5329-4c6b-91e3-c0c18ae47f5f,ou=Machines,ou=Accepted Inventories,ou=Inventories,cn=rudder-configuration' to new parent 'ou=Machines,ou=Removed Inventories,ou=Inventories,cn=rudder-configuration': no such object 16:28:09.287 [qtp760805843-66] INFO com.normation.rudder.web.services.DisplayNode - Successfully removed node 49ee7b99-00f5-466a-880a-d2cf27010055 from Rudder 16:28:10.400 [pool-3-thread-3] ERROR com.normation.rudder.services.path.PathComputerImpl - Failed to get root server to build path: Exactly one policy server must be configured, found 0 16:28:10.403 [pool-3-thread-3] ERROR com.normation.rudder.batch.AsyncDeploymentAgent - Deployment error for process '284' at 2013/01/02 16:28:10: Exception caught during deployment process: Failed to get root server to build path com.normation.exceptions.BusinessException: Failed to get root server to build path at com.normation.rudder.services.path.PathComputerImpl.computeBaseNodePath(PathComputerImpl.scala:83) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl$$anonfun$writePromisesForMachines$1.apply(RudderPromiseWriterServiceImpl.scala:131) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl$$anonfun$writePromisesForMachines$1.apply(RudderPromiseWriterServiceImpl.scala:121) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at scala.collection.Iterator$class.foreach(Iterator.scala:772) ~[scala-library-2.9.2.jar:na] at scala.collection.mutable.HashMap$$anon$4.foreach(HashMap.scala:115) ~[scala-library-2.9.2.jar:na] at com.normation.rudder.services.policies.RudderCf3PromisesFileWriterServiceImpl.writePromisesForMachines(RudderPromiseWriterServiceImpl.scala:121) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at com.normation.rudder.services.servers.NodeConfigurationServiceImpl$$anonfun$writeTemplateForUpdatedNodeConfigurations$1.apply(NodeConfigurationServiceImpl.scala:426) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at com.normation.rudder.services.servers.NodeConfigurationServiceImpl$$anonfun$writeTemplateForUpdatedNodeConfigurations$1.apply(NodeConfigurationServiceImpl.scala:404) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at com.normation.rudder.services.servers.NodeConfigurationServiceImpl.inLock(NodeConfigurationServiceImpl.scala:106) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at com.normation.rudder.services.servers.NodeConfigurationServiceImpl.writeTemplateForUpdatedNodeConfigurations(NodeConfigurationServiceImpl.scala:404) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at com.normation.rudder.services.policies.DeploymentService_updateAndWriteRule$class.writeNodeConfigurations(DeploymentService.scala:588) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at com.normation.rudder.services.policies.DeploymentServiceImpl.writeNodeConfigurations(DeploymentService.scala:234) ~[rudder-core-2.4.2-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:132) ~[rudder-core-2.4.2-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:127) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at net.liftweb.common.Full.flatMap(Box.scala:493) ~[lift-common_2.9.1-2.4.jar:2.4] at com.normation.rudder.services.policies.DeploymentService$$anonfun$4$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$6$$anonfun$apply$9$$anonfun$apply$11.apply(DeploymentService.scala:127) ~[rudder-core-2.4.2-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.apply(DeploymentService.scala:122) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at net.liftweb.common.Full.flatMap(Box.scala:493) ~[lift-common_2.9.1-2.4.jar:2.4] at com.normation.rudder.services.policies.DeploymentService$$anonfun$4$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$6$$anonfun$apply$9.apply(DeploymentService.scala:122) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at com.normation.rudder.services.policies.DeploymentService$$anonfun$4$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$6$$anonfun$apply$9.apply(DeploymentService.scala:117) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at net.liftweb.common.Full.flatMap(Box.scala:493) ~[lift-common_2.9.1-2.4.jar:2.4] at com.normation.rudder.services.policies.DeploymentService$$anonfun$4$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$6.apply(DeploymentService.scala:117) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at com.normation.rudder.services.policies.DeploymentService$$anonfun$4$$anonfun$apply$2$$anonfun$apply$4$$anonfun$apply$6.apply(DeploymentService.scala:112) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at net.liftweb.common.Full.flatMap(Box.scala:493) ~[lift-common_2.9.1-2.4.jar:2.4] at com.normation.rudder.services.policies.DeploymentService$$anonfun$4$$anonfun$apply$2$$anonfun$apply$4.apply(DeploymentService.scala:112) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at com.normation.rudder.services.policies.DeploymentService$$anonfun$4$$anonfun$apply$2$$anonfun$apply$4.apply(DeploymentService.scala:108) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at net.liftweb.common.Full.flatMap(Box.scala:493) ~[lift-common_2.9.1-2.4.jar:2.4] at com.normation.rudder.services.policies.DeploymentService$$anonfun$4$$anonfun$apply$2.apply(DeploymentService.scala:108) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at com.normation.rudder.services.policies.DeploymentService$$anonfun$4$$anonfun$apply$2.apply(DeploymentService.scala:104) ~[rudder-core-2.4.2-SNAPSHOT.jar:na] at net.liftweb.common.Full.flatMap(Box.scala:493) ~[lift-common_2.9.1-2.4.jar:2.4] at com.normation.rudder.services.policies.DeploymentService$$anonfun$4.apply(DeploymentService.scala:104) ~[rudder-core-2.4.2-SNAPSHOT.jar:na]
BUT, immediately after this, a new deployment triggers which succeeds. Confusing.
Actions