live migration choosing wrong host names

Bug #1335999 reported by Dirk Mueller
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Dirk Mueller
Icehouse
Fix Released
Undecided
Unassigned

Bug Description

Horizon's admin interface recently gained a feature to trigger a live migration from the UI. It requires a destination host to be specified (which is wrong, as the destination host is optional in the API), and it allows to preselect from a list of given names.

However, the list that is chosen is coming from os-hypervisor-list. These host names might not match os-hosts, which is the one that the nova scheduler expects.

Consequently if hypervisor names do not match the host names, the live migration from the UI fails.

nova host-list is in my case:

+--------------------+-------------+----------+
| host_name | service | zone |
+--------------------+-------------+----------+
| d52-54-01-77-77-01 | scheduler | internal |
| d52-54-01-77-77-01 | consoleauth | internal |
| d52-54-02-77-77-02 | compute | nova |
| d52-54-01-77-77-01 | conductor | internal |
| d52-54-01-77-77-01 | cert | internal |
+--------------------+-------------+----------+

nova hypervisor-list is

nova hypervisor-list
+----+-------------------------------------+
| ID | Hypervisor hostname |
+----+-------------------------------------+
| 1 | d52-54-02-77-77-02.c6.cloud.suse.de |
+----+-------------------------------------+

calling a live-migration against the fqdn (like hypervisor-list returns) fails.

Dirk Mueller (dmllr)
description: updated
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/103672

Changed in horizon:
assignee: nobody → Dirk Mueller (dmllr)
status: New → In Progress
Revision history for this message
Julie Pichon (jpichon) wrote :

The patch may (?) also help with bug 1310340.

Changed in horizon:
importance: Undecided → High
milestone: none → juno-3
Thierry Carrez (ttx)
Changed in horizon:
milestone: juno-3 → juno-rc1
Changed in horizon:
assignee: Dirk Mueller (dmllr) → Lin Hua Cheng (lin-hua-cheng)
Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

Like to see this on RC1, addressed the comment in the patch

Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

No action from the author for a month, going to fix the comment myself so we can get it in RC1.

Changed in horizon:
assignee: Lin Hua Cheng (lin-hua-cheng) → Zhenguo Niu (niu-zglinux)
Revision history for this message
Zhenguo Niu (niu-zglinux) wrote :

Assign this to Lin from me, I just fix the pep8 error:)

Changed in horizon:
assignee: Zhenguo Niu (niu-zglinux) → Lin Hua Cheng (lin-hua-cheng)
Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

Actually Dirk Mueller did the fix, re-assigning to him. he should get the credit :)

Changed in horizon:
assignee: Lin Hua Cheng (lin-hua-cheng) → Dirk Mueller (dmllr)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/103672
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=89dc7de2e87b8d4e35837ad5122117aa2fb2c520
Submitter: Jenkins
Branch: master

commit 89dc7de2e87b8d4e35837ad5122117aa2fb2c520
Author: Dirk Mueller <email address hidden>
Date: Tue Jul 1 00:24:15 2014 +0200

    Fix host listing in live migration

    The live migration selector needs to offer a list
    of hosts, not a list of hypervisors.

    Change-Id: I73c1175a5f87b0f91e36083f05467c26feca5d51
    Closes-Bug: #1335999

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: juno-rc1 → 2014.2
tags: added: canonical-bootstack
tags: added: icehouse-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/149621

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/icehouse)

Reviewed: https://review.openstack.org/149621
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=2a6fe4a8c53501b333df60b8662a20a0c7269455
Submitter: Jenkins
Branch: stable/icehouse

commit 2a6fe4a8c53501b333df60b8662a20a0c7269455
Author: Dirk Mueller <email address hidden>
Date: Tue Jul 1 00:24:15 2014 +0200

    Fix host listing in live migration

    The live migration selector needs to offer a list
    of hosts, not a list of hypervisors.

    Conflicts:
     openstack_dashboard/test/test_data/nova_data.py

    Change-Id: I73c1175a5f87b0f91e36083f05467c26feca5d51
    Closes-Bug: #1335999
    (cherry picked from commit 89dc7de2e87b8d4e35837ad5122117aa2fb2c520)

tags: added: in-stable-icehouse
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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