Resize doesn't apply the hypervisor_type filter in choosing the migration target

Bug #1117882 reported by Alessandro Pilotti
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Hans Lindgren

Bug Description

I'm testing nova resize in an environment with 2 mixed compute hosts. By testing the resize feature, it looks like the hypervisor_type image filter is not respected and migration is attempted to other hypervisor types as well.

Here are the steps to generate the issue:

1 Compute node: Hyper-V
2 Compute node: KVM

glance image-create --property hypervisor_type=hyperv --name "Ubuntu Server 12.04" --container-format bare --disk-format vhd < UbuntuServer1204.vhd

nova boot --flavor 1 --image "Ubuntu Server 12.04" vm1

(Instance boots as expected on Hyper-V)

nova resize vm1 2

Nova tries to migrate the vm1 instance from Hyper-V to KVM.

Changed in nova:
importance: Undecided → High
status: New → Triaged
Hans Lindgren (hanlind)
Changed in nova:
assignee: nobody → Hans Lindgren (hanlind)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/22020

Changed in nova:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/22020
Committed: http://github.com/openstack/nova/commit/5c22794cce7a2147625bfb6486ff4308658386d6
Submitter: Jenkins
Branch: master

commit 5c22794cce7a2147625bfb6486ff4308658386d6
Author: Hans Lindgren <email address hidden>
Date: Fri Feb 15 14:43:41 2013 +0100

    Add image to request_spec during resize

    Image is needed by ImagePropertiesFilter during scheduling.

    Resolves bug 1117882.

    Change-Id: Icfbba85e2fdeb609d5fdabb6a7c3167505fe23b0

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-3 → 2013.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.