How to resize/flavour an active image without losing my assigned ip?

asked 2014-06-27 12:48:23 -0600

aricg gravatar image

updated 2014-06-27 16:21:27 -0600

smaffulli gravatar image

IPs are assigned with Multi-Host FlatDHCPManager

Problem: I have some instances that could safely be running with fewer resources. However it would be ideal if I did not lose their dhcp assigned ip addresses.

Solution: snapshot each host, shut them down, and bring up a snapshot in the new smaller flavor.

Caveat: It would be nice If I could keep the machines IP address.

Normally I would do something like this on each host.

 echo "send dhcp-requested-address "$(hostname -i)";" > /etc/dhcp/dhclient.conf

Is this the right way to do this, or is there an more openstack way?

edit retag flag offensive close merge delete