resize broken when not allowing same host

Bug #1034593 reported by Chris Behrens on 2012-08-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Chris Behrens

Bug Description

Recent cleanups in scheduler related to passing full instances caused this to be added to schedule_prep_resize:

125 updated_instance = driver.instance_update_db(context, instance['uuid '],

prep_resize should NOT update instance['host'] in the scheduler.. else the check inside of prep_resize() in compute manager comparing instance['host'] against will always succeed. instance['host'] should be the current (source) host.

Chris Behrens (cbehrens) on 2012-08-08
Changed in nova:
importance: Undecided → Critical
assignee: nobody → Chris Behrens (cbehrens)
status: New → In Progress

Submitter: Jenkins
Branch: master

commit 10a5f1ac025f89f84398be308455b72d77602cc3
Author: Chris Behrens <email address hidden>
Date: Wed Aug 8 21:09:14 2012 +0000

    scheduler prep_resize should not update instance['host']

    This is done by the manager once things are ready on the destination
    compute node.

    Fixes bug 1034593

    Also removes now-unneeded update_db argument passed via rpcapi and bumps
    scheduler rpcapi version for prep_resize to 1.4

    Change-Id: I0ac3be39877f3afcf42f5996d0da90042fe7c6e3

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2012-08-16
Changed in nova:
milestone: none → folsom-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-09-27
Changed in nova:
milestone: folsom-3 → 2012.2
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers