bosh icon indicating copy to clipboard operation
bosh copied to clipboard

Renaming a Deployment

Open jhunt opened this issue 11 years ago • 35 comments

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.name field in the database
  • Notify all agents of the rename (I did this manually via sed -i'' -e 's/oldname/newname/' /var/vcap/bosh/spec.json on 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.

jhunt avatar Oct 11 '15 21:10 jhunt

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.

cppforlife avatar Oct 12 '15 16:10 cppforlife

+1

geofffranks avatar Feb 11 '16 21:02 geofffranks

+1

jeanbza avatar Sep 01 '16 14:09 jeanbza

Any movement on this, @cppforlife ?

jhunt avatar Nov 17 '16 13:11 jhunt

Since we followed these instructions yesterday: +1 We also changed /var/vcap/instance/deployment

dsharp-pivotal avatar Nov 22 '16 18:11 dsharp-pivotal

+1

keymon avatar Jan 04 '17 16:01 keymon

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.

avade avatar May 14 '17 21:05 avade

+1

This was proposed a long time ago. Why is this still not a feature?

kmacoskey avatar Aug 02 '17 17:08 kmacoskey

+1

dotyjim-work avatar Aug 02 '17 17:08 dotyjim-work

+1

divyabhargov avatar Aug 02 '17 18:08 divyabhargov

+1

jriguera avatar Oct 12 '17 10:10 jriguera

+1

vlad-stoian avatar Oct 25 '17 14:10 vlad-stoian

+1 - This would greatly help in reorganizing / moving around some of our existing deployments.

jagadish-kb avatar Dec 05 '17 03:12 jagadish-kb

+1

ramonskie avatar Jan 26 '18 14:01 ramonskie

+1

chrisahl avatar Jul 25 '18 19:07 chrisahl

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.

mfine30 avatar Aug 07 '18 18:08 mfine30

+1 yay! This issue was opened in 2015!

kmacoskey avatar Aug 07 '18 19:08 kmacoskey

+1

cwb124 avatar Sep 10 '18 13:09 cwb124

+1

jake-at-work avatar Sep 20 '18 17:09 jake-at-work

+1

kitsirota avatar Sep 23 '18 17:09 kitsirota