yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #13382
[Bug 1301982] Re: anti-affinity server boot failure shows stack trace
Reviewed: https://review.openstack.org/86099
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=0614a83e3ccb2c1e891909ffffe6380c8617bee3
Submitter: Jenkins
Branch: milestone-proposed
commit 0614a83e3ccb2c1e891909ffffe6380c8617bee3
Author: Balazs Gibizer <balazs.gibizer@xxxxxxxxxxxx>
Date: Fri Apr 4 16:55:01 2014 +0200
Fix anti-affinity server-group boot failure
When the second instance is booted to an anti-affinity group
the scheduler fails with an exception due to a missing type conversion.
Closes-Bug: #1301982
Change-Id: I87b2a8d8c7d04b781c789374d6e9c7f4c8567e5d
(cherry picked from commit 1680cf8cef9bd670306a0ef74803409f60f21f28)
** Changed in: nova
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1301982
Title:
anti-affinity server boot failure shows stack trace
Status in OpenStack Dashboard (Horizon):
Incomplete
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
If anti-affinity policy is set for two different servers, and only one
host is available, a stack trace is shown instead of a error message.
Failure is expected, but a message about why it failed would be
helpful.
On a single node devstack setup:
nova server-group-create --policy anti-affinity aagroup
nova boot --flavor m1.nano --image cirros-0.3.1-x86_64-uec --nic net-
id=ea784f2b-b262-451a-821a-5ee7f69b3d63 --hint group=0f2b71ea-3dc3
-423d-a9f4-41ac5d0fff07 server1
nova boot --flavor m1.nano --image cirros-0.3.1-x86_64-uec --nic net-
id=ea784f2b-b262-451a-821a-5ee7f69b3d63 --hint group=0f2b71ea-3dc3
-423d-a9f4-41ac5d0fff07 server2
server1 boots fine
server2 has Status Error and Power State No State
Horizon shows:
Fault
Message
unsupported operand type(s) for |: 'list' and 'set'
Code
500
Details
File "/opt/stack/nova/nova/scheduler/manager.py", line 140, in run_instance legacy_bdm_in_spec) File "/opt/stack/nova/nova/scheduler/filter_scheduler.py", line 86, in schedule_run_instance filter_properties, instance_uuids) File "/opt/stack/nova/nova/scheduler/filter_scheduler.py", line 289, in _schedule filter_properties) File "/opt/stack/nova/nova/scheduler/filter_scheduler.py", line 275, in _setup_instance_group filter_properties['group_hosts'] = user_hosts | group_hosts
Created
April 3, 2014, 1:58 p.m.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1301982/+subscriptions
References