Ask Your Question
1

How to modify resize instance code OpenStack Havana/Icehouse ?

asked 2014-07-26 03:44:57 -0500

totten25 gravatar image

updated 2014-07-26 03:53:19 -0500

Hi , I deployed both of Icehouse and Havana OpenStack version which have 1 Controller Node, 1 Network Node and 15 Compute Nodes connected together via VPN network so i want to resize instance at same node because migration to other node take more time. I've already edit allow_resize_to_same_host = True and scheduler_default_filters = AllHostsFilter in both of Controller Node and Compute Nodes. I faced the problem of Icehouse and Havana

Problem in OpenStack Havana when i try to resize instance, sometime OpenStack try to migrate instance to other nodes and sometime instance can be resized successfully at same node. I'm sure my current node that instance is located have enough resources. why does OpenStack sometime try to migrate after i allow_resize_to_same_host ? moreover, nova-compute.log just show error about ssh to other nodes and my point just want to resize at same node. It should not migrate to other nodes anymore.

Problem in OpenStack Icehouse (Compute01 is a first Compute Node that be installed before other Compute Nodes) when i try to resize instance which is not launched to Compute01 in case instance is launched between Compute02-15, OpenStack will migrate instance to Compute01 every time. On the other hand, if instance is launched to Compute01, it can be resized successfully. I think Icehouse is difference from Havana, because Compute01's instance can be resized successfully every time.

I want to force resize instance to the same node only. I would like to know which OpenStack python files that involved with this problem? For me, i deeply found some file in /usr/lib/python2.7/dist-packages/nova/compute/ such as api.py and manage.py which has resize_instance method. Finally, I just want to know How to modified code of OpenStack resize instance both of havana and icehouse ?

Best regards, totten25

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-07-27 23:54:50 -0500

totten25 gravatar image

after i try to figure out it, i found validate-targethost-live-migration that may help me to the right way. I try to adapt this concept to resize instance to target host.

edit flag offensive delete link more

Comments

I just gave up for this problem and resize instance by OpenStack behavior.

totten25 gravatar imagetotten25 ( 2014-07-29 03:57:49 -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

Stats

Asked: 2014-07-26 03:44:57 -0500

Seen: 548 times

Last updated: Jul 27 '14