← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1267733] Re: Live Migration can set new host to the current host.

 

** Changed in: horizon
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1267733

Title:
  Live Migration can set new host to the current host.

Status in OpenStack Dashboard (Horizon):
  Fix Released

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1267733/+subscriptions


References