Resize Instance using Shade

asked 2017-09-05 12:27:06 -0600

Vidhyut gravatar image

I am able to resize i.e., change the flavor of my instance using CLI tools. I want to resize using Shade. How is that possible ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-09-05 23:16:36 -0600

teju gravatar image

I don't think it is possible yet as the Shade code does not provide method to resize a server

The code in the below file has methods to create, delete, rebuild, etc. However, it does not have code to resize a server.

It may be implemented in the future or you can write your own method to resize a server.

edit flag offensive delete link more


All right. There is a method called resize(server, flavor, disk_config=None, **kwargs) in python-novaclient. How can I access that using Shade? I can see a method nova_client(self) in Shade source code

Vidhyut gravatar imageVidhyut ( 2017-09-06 03:59:22 -0600 )edit

So, you have to add a method to resize in

teju gravatar imageteju ( 2017-09-06 07:07:25 -0600 )edit

Did it using :

nova_client = os_client_config.make_client('compute',cloud = 'cdot_cloud')

and then using python-novaclient APIs

Vidhyut gravatar imageVidhyut ( 2017-09-08 02:16:00 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-09-05 12:27:06 -0600

Seen: 106 times

Last updated: Sep 05 '17