Renaming a Deployment
I've run into a few cases where I've wanted to rename a BOSH deployment, without changing anything else (composition / addressing / etc.).
I've done some experimental hacking and I believe the following things need to be done:
- Change the
deployments.namefield in the database - Notify all agents of the rename (I did this manually via
sed -i'' -e 's/oldname/newname/' /var/vcap/bosh/spec.jsonon each VM)
Are there any landmines to doing this? Is this something we would want (like a bosh rename deployment oldname newnme command?) If so, I'll gladly work on it.
Agreed. We've also ran into this.
We are currently in the middle of introducing some long reaching changes into the Director. Once we merge it in (story: https://www.pivotaltracker.com/story/show/100170490) I think it makes sense to do it. We are also trying to stop sending all kinds of unnecessary information to the VM (deployment name is not something agent should care about), so changes would pretty much be change the DB and trigger deploy.
+1
+1
Any movement on this, @cppforlife ?
Since we followed these instructions yesterday: +1 We also changed /var/vcap/instance/deployment
+1
This is something I would be very interested in for the On Demand Broker.
Users want to specify a deployment prefix, so we would like to rename all existing instances to have this prefix.
+1
This was proposed a long time ago. Why is this still not a feature?
+1
+1
+1
+1
+1 - This would greatly help in reorganizing / moving around some of our existing deployments.
+1
+1
Thanks all for the feedback. I've created story: https://www.pivotaltracker.com/story/show/159605314 to look further into this. Not sure on timelines yet, but the large number of +1's is certainly encouraging.
+1 yay! This issue was opened in 2015!
+1
+1
+1