[openstack-dev] [nova] Bug: resize on same node with allow_resize_to_same_host=True

Manickam, Kanagaraj kanagaraj.manickam at hp.com
Thu Sep 4 04:32:42 UTC 2014


Hi Jay,

I have summited a patch https://review.openstack.org/#/c/117116/ with same fix. But there are different opinions provided  this patch. 
Could you validate and provide your inputs on this patch. Thanks.

Regards
Kanagaraj M

-----Original Message-----
From: Jay Pipes [mailto:jaypipes at gmail.com] 
Sent: Thursday, August 14, 2014 9:39 AM
To: openstack-dev at lists.openstack.org
Subject: Re: [openstack-dev] [nova] Bug: resize on same node with allow_resize_to_same_host=True

On 08/13/2014 11:50 PM, Manickam, Kanagaraj wrote:
> Hi,
>
> Nova provides a flag 'allow_resize_to_same_host' to resize the given 
> instance on the same hypervisor where it is currently residing. When 
> this flag is set to True, the nova.compute.api: resize() method does 
> not set the scheduler hint with 'force_nodes', where as its set the 
> 'ignored_hosts' properly when this flag is set to False.
>
> So I have filed following defect to fix the logic when this flag is 
> set to True.
>
> https://bugs.launchpad.net/nova/+bug/1356309
>
> I felt this defect is import to fix, when cloud admin wants the resize 
> to be happen on the same hypervisor (compute node). So could you 
> please let me know whether I can fix this for Juno-3? Thanks.

Hi Kanagaraj,

AFAICT, there is no bug here.

         if not CONF.allow_resize_to_same_host:
             filter_properties['ignore_hosts'].append(instance['host'])
         else:
             filter_properties['force_nodes'] = [instance['node']]

When allow_resize_to_same_host is True, then filter_properties['force_node'] will be set to a list with only one node (the compute node that the instance is currently on), and therefore the resize will happen on the original host.

Best,
-jay


_______________________________________________
OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



More information about the OpenStack-dev mailing list