Target 'host' in 'evacuate' should not be the original server's host

Bug #1271821 reported by wingwj
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
wingwj

Bug Description

'Evacuate' function aims to help administrator/operator to evacuate servers if this compute node fails.

So we need to add a protection here, the target host should not be the original host.

wingwj (wingwj)
Changed in nova:
assignee: nobody → wingwj (wingwj)
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/72554

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

Reviewed: https://review.openstack.org/72554
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=951bae39e704b04414ebb711b425631cf2d46be5
Submitter: Jenkins
Branch: master

commit 951bae39e704b04414ebb711b425631cf2d46be5
Author: wingwj <email address hidden>
Date: Tue Feb 11 12:09:03 2014 +0800

    Target host in evacuate can't be the original one

    'Evacuate' function aims to help administrator/operator to evacuate
    servers if this compute node fails.

    If no protection, the API returns a successful response,
    but the vm_state will be changed to ERROR after nova-compute started,
    due to the 'InstanceExists' exception raised from 'rebuild_instance()'.

    So we need to add verification here, the target host should not be the
    original host.

    Change-Id: Ic468cd57688b370a18cacfc6e0844a8201eb9ab3
    Closes-Bug: #1271821

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → juno-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-2 → 2014.2
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.