AvailabilityZoneFilter: 'list' object has no attribute 'get'

Bug #1213935 reported by Sergey Vilgelm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo-incubator
Fix Released
Undecided
Sergey Vilgelm

Bug Description

2013-08-19 17:56:42.431 TRACE cinder.openstack.common.rpc.amqp File "/opt/stack/cinder/cinder/scheduler/host_manager.py", line 229, in get_filtered_hosts
2013-08-19 17:56:42.431 TRACE cinder.openstack.common.rpc.amqp filter_properties)
2013-08-19 17:56:42.431 TRACE cinder.openstack.common.rpc.amqp File "/opt/stack/cinder/cinder/openstack/common/scheduler/filter.py", line 71, in get_filtered_objects
2013-08-19 17:56:42.431 TRACE cinder.openstack.common.rpc.amqp return list(objs)
2013-08-19 17:56:42.431 TRACE cinder.openstack.common.rpc.amqp File "/opt/stack/cinder/cinder/openstack/common/scheduler/filter.py", line 41, in filter_all
2013-08-19 17:56:42.431 TRACE cinder.openstack.common.rpc.amqp if self._filter_one(obj, filter_properties):
2013-08-19 17:56:42.431 TRACE cinder.openstack.common.rpc.amqp File "/opt/stack/cinder/cinder/openstack/common/scheduler/filters/__init__.py", line 30, in _filter_one
2013-08-19 17:56:42.431 TRACE cinder.openstack.common.rpc.amqp return self.host_passes(obj, filter_properties)
2013-08-19 17:56:42.431 TRACE cinder.openstack.common.rpc.amqp File "/opt/stack/cinder/cinder/openstack/common/scheduler/filters/availability_zone_filter.py", line 26, in host_passes
2013-08-19 17:56:42.431 TRACE cinder.openstack.common.rpc.amqp availability_zone = props.get('availability_zone')
2013-08-19 17:56:42.431 TRACE cinder.openstack.common.rpc.amqp AttributeError: 'list' object has no attribute 'get'

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo-incubator (master)

Fix proposed to branch: master
Review: https://review.openstack.org/42648

Changed in oslo:
assignee: nobody → Sergey Vilgelm (sergey.vilgelm)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to oslo-incubator (master)

Reviewed: https://review.openstack.org/42648
Committed: http://github.com/openstack/oslo-incubator/commit/871876352922aa54de896a04d8b44b1d6f6f96df
Submitter: Jenkins
Branch: master

commit 871876352922aa54de896a04d8b44b1d6f6f96df
Author: Sergey Vilgelm <email address hidden>
Date: Mon Aug 19 18:01:35 2013 +0400

    Replace list with dict in AvailabilityZoneFilter.host_passes

    Bug #1213935

    Change-Id: Ie58ce35cbc41285c9bb602488741db028c66a6a7

Changed in oslo:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in oslo:
milestone: none → havana-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in oslo:
milestone: havana-3 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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