How to resize an Instance in OpenStack Mitaka?

You would have read our earlier posts on Openstack installation and its various configuration setup’s and solutions to installation errors. Here’s another one on this topic. On excitement, I created an Instance with a flavor of m1.small and started installing many packages.  Later I realized that the flavor I have selected is not sufficient for my activities. So I tried to resize instance, but instance remains in the same flavor without any error after giving “resize” command. After a thorough debugging found that the system is not allowed to resize the instance by default. We need to perform few actions to make it work.

resize instance

How to resize instance in OpenStack?

Firstly, you need to instruct nova to allow the resize of the instance both at Controller and Compute nodes. Follow the below actions:

Controller Node:

1. With your favorite editor open the “nova.conf” file on controller node: (/etc/nova/nova.conf) and add the below lines:

allow_resize_to_same_host = True
allow_migrate_to_same_host = True
scheduler_default_filters = AllHostsFilter

2. Restart all the nova related services like: nova-api, nova-conductor, nova-consoleauth, nova-novncproxy, nova-scheduler as shown below:

/etc/init.d/nova-api restart
/etc/init.d/nova-conductor restart
/etc/init.d/nova-consoleauth restart
/etc/init.d/nova-novncproxy restart
/etc/init.d/nova-scheduler restart

Compute Node:

3. Repeat step 1 on the compute node also.

4. Restart all the nova related services like nova-compute as shown below:

/etc/init.d/nova-compute restart

Now you can re-size and it works !

Topics :

vps germany

Get Free Email Updates

Disclaimer: The content published in this article is the views of the author only. Techglimpse does not gurantee accuracy, completness or validity. If you believe the content on this post violates your copyright, please send us a mail for removal. Read more.