Live Migration can set new host to the current host.

Bug #1267733 reported by Zhenguo Niu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Zhenguo Niu

Bug Description

When migrating a server, current host should not contain in the new host list.

    def populate_host_choices(self, request, initial):
        hosts = initial.get('hosts')
        current_host = initial.get('current_host')
        host_list = [(host.hypervisor_hostname,
                      host.hypervisor_hostname)
                     for host in hosts
                     if host.hypervisor_hostname != current_host] //// we should not use hypervisor_hostname compare with current_host, they can be different on the same host.

Changed in horizon:
assignee: nobody → Zhenguo Niu (niu-zglinux)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
status: New → In Progress
Akihiro Motoki (amotoki)
Changed in horizon:
importance: Undecided → Medium
Julie Pichon (jpichon)
Changed in horizon:
milestone: none → icehouse-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/65892
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=06e11327349b0e1a904ed67dacd63e98528d7ba9
Submitter: Jenkins
Branch: master

commit 06e11327349b0e1a904ed67dacd63e98528d7ba9
Author: Zhenguo Niu <email address hidden>
Date: Fri Jan 10 16:18:23 2014 +0800

    Live Migration should not contain current host in the new host list

    Change-Id: I30af5aa4943284edc16dfbde1b1354951698c77c
    Closes-Bug: #1267733

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: icehouse-rc1 → 2014.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.