Ask Your Question

change ip address in entire cloud

asked 2017-03-22 02:12:37 -0500

theque42 gravatar image

updated 2017-03-22 05:25:08 -0500


I've got a fairly well running mitaka cloud, running with four different networks for public, internal, vxlan, and storage. I am using it for courses on openstack, running multiple instances for different student groups.

Currently, I am using a scripted installation mechanism to install the different cloud instances (with their 6 nodes for compute, ctrl, neutron, cinder+swift), on different IP networks, where each node is actually a standard(non-openstack) KVM VM.

What I would like to do, is to be able to clone an instance running on a certain range of IP prefixes, into another range of IP-prefixes, instead of having to install everything from scratch, on the new VMs configured for the different IP prefixes.

So effectively: - Shutdown services. - Run script on all nodes(compute, neutron, ctrl, etc) to change ip-addresses - reboot. - Done.

What I DONT KNOW, is how often the databases contain "static" references to the nodes actual IP addresses? Of course the endpoints/service catalog is different, but is there a lot more that is actually "fixed info"?

I can of course dump the database, but since it will contain a lot of addresses that are volatile and depends on what has been currently registered by the components, its not easy to detect what I would actually have to change.

Any ideas, help, comment, on wether this is something I should keep trying to accomplish?

Br, Taisto

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2017-03-22 03:05:58 -0500

Mohit gravatar image

For some of the tasks you can use Mistral project (able to clone an instance running on a certain range of IP prefixes, into another range of IP-prefixes)

For database details you can use Ansible and can trigger mistral workflows dynamically using Jinja templates.

edit flag offensive delete link more


This sounds awesome! Have any reference of such mistral workflows?

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2017-03-22 04:19:53 -0500 )edit

Unfortunately I am after changing the IP prefixes of my cloud NODES, not the instances running on compute. I want to change the IP addresses of all four interfaces, of every neutron, compute, controller, swift, and cinder node. I can easily update IP config of each centos-machine, but the DB...

theque42 gravatar imagetheque42 ( 2017-03-22 04:24:43 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-03-22 02:12:37 -0500

Seen: 89 times

Last updated: Mar 22 '17