Error on deployment :A Configuration Item with ID already exists

Follow

Daniel Robichau -

Issue

After a series of deployments it is possible that a correctly executed update deployment will result in the error:

A Configuration Item with ID [Infrastructure/path/to/container] already exists.

Environment

The problem outlined in this article and the attached script refer only to to the following versions of XL Deploy. 

8.0.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.0.5, 8.0.6, 8.0.7, 8.0.8 and short term support version 8.1.0.

Cause

 There is a bug in the above referenced versions of XL Deploy such that it is possible that an update deployment will fail to register a deployed CI on the environment on which it is deployed, but register it on the infrastructure container 

Resolution

To prevent the problem from occurring again you must upgrade XL Deploy to version 8.0.10 or 8.2.1.  After upgrading to fix the issue run the attached script - fix-deployeds.py in the manner described below.  

Additional Information

From the XL Deploy CLI run the attached script with the command. 

bin/cli.sh -q -expose-proxies -username ... -password ... -f fix-deployeds.py
Tags

 

Have more questions? Submit a request