yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #01834
[Bug 1160841] Re: AZ list API fails if there are disabled services
Reviewed: https://review.openstack.org/25570
Committed: http://github.com/openstack/nova/commit/7e4fec64130afdb3bf7e3c2f0adffbc1869b0d0f
Submitter: Jenkins
Branch: milestone-proposed
commit 7e4fec64130afdb3bf7e3c2f0adffbc1869b0d0f
Author: Phil Day <philip.day@xxxxxx>
Date: Wed Mar 27 12:01:01 2013 +0000
List AZs fails if there are disabled services
Trying to list availability zones when there is a disabled
services fails with a 500 error
Fixes bug #1160841
Change-Id: Ibdb639f0d6a1a69a6a6331ee053c75449a16fc8f
(cherry picked from commit ea663f3627ff11eea90e457c3b53432d640c63b2)
** 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/1160841
Title:
AZ list API fails if there are disabled services
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
Trying to list availability zones when there is a disabled services
fails with a 500 error:
2013-03-27 09:02:40.096 13400 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/availability_zones.py", line 84, in get_availability_zones
2013-03-27 09:02:40.096 13400 TRACE nova.api.openstack if service['available_zones'] not in available_zones]
2013-03-27 09:02:40.096 13400 TRACE nova.api.openstack KeyError: 'available_zones'
2013-03-27 09:02:40.096 13400 TRACE nova.api.openstack
2013-03-27 09:02:40.098 INFO nova.api.openstack [req-2b246b00-5bce-4341-8f52-aaa5a09a3e37 41498787087465 75228465009852] http://compute.rnde.aw1.hpcloud.net/v1.1/75228465009852/os-availability-zone/detail returned with HTTP 500
The code in get_availability_zones() for handling disabled services is broken, as it looks for "service['available_zones']" instead of service['availability_zone']
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1160841/+subscriptions