[Bug 1310340] Re: live migration fails when use long hostname of a nova compute target host
marvel
1310340 at bugs.launchpad.net
Tue Aug 5 06:28:21 UTC 2014
Yes, I met this problem, horizon give me nodes like "node1.expr", while
the database has only "node1", causing live migration failure, a little
fix is listed below:
50 def populate_host_choices(self, request, initial):
51 hosts = initial.get('hosts')
52 current_host = initial.get('current_host')
53 +host_list = [(host.service['host'],
54 + host.service['host'])
55 + for host in hosts
56 + if host.service['host'] != current_host]
57 -host_list = [(host.hypervisor_hostname,
58 - host.hypervisor_hostname)
59 - for host in hosts
60 - if host.service['host'] != current_host]
61 if host_list:
62 host_list.insert(0, ("", _("Select a new host")))
** Attachment added: "2.png"
https://bugs.launchpad.net/nova/+bug/1310340/+attachment/4170087/+files/2.png
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to horizon in Ubuntu.
https://bugs.launchpad.net/bugs/1310340
Title:
live migration fails when use long hostname of a nova compute target
host
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1310340/+subscriptions
More information about the Ubuntu-server-bugs
mailing list