Blazar fails to execute events because the trust_id is not stored

Bug #1333413 reported by Pablo Andres Fuente
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Blazar
Fix Released
Critical
Pablo Andres Fuente

Bug Description

Blazar fails to execute events because the trust_id is not stored properly during a create_lease.

2014-06-23 11:18:00.586 336 ERROR climate.manager.service [-] Error occurred while event handling.
2014-06-23 11:18:00.586 336 TRACE climate.manager.service Traceback (most recent call last):
2014-06-23 11:18:00.586 336 TRACE climate.manager.service File "/opt/stack/blazar/climate/manager/service.py", line 147, in _event
2014-06-23 11:18:00.586 336 TRACE climate.manager.service with trusts.create_ctx_from_trust(lease['trust_id']) as ctx:
2014-06-23 11:18:00.586 336 TRACE climate.manager.service File "/opt/stack/blazar/climate/utils/trusts.py", line 63, in create_ctx_from_trust
2014-06-23 11:18:00.586 336 TRACE climate.manager.service ctx=ctx,
2014-06-23 11:18:00.586 336 TRACE climate.manager.service File "/opt/stack/blazar/climate/utils/openstack/keystone.py", line 97, in __init__
2014-06-23 11:18:00.586 336 TRACE climate.manager.service endpoint_interface='admin'))
2014-06-23 11:18:00.586 336 TRACE climate.manager.service File "/opt/stack/blazar/climate/utils/openstack/base.py", line 31, in url_for
2014-06-23 11:18:00.586 336 TRACE climate.manager.service for srv in service_catalog:
2014-06-23 11:18:00.586 336 TRACE climate.manager.service TypeError: 'NoneType' object is not iterable

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

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

Changed in blazar:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to blazar (master)

Reviewed: https://review.openstack.org/102004
Committed: https://git.openstack.org/cgit/stackforge/blazar/commit/?id=edbb317742d7c0dfc1bfec4a24ea9d448d0cb569
Submitter: Jenkins
Branch: master

commit edbb317742d7c0dfc1bfec4a24ea9d448d0cb569
Author: Pablo Andres Fuente <email address hidden>
Date: Mon Jun 23 17:41:04 2014 -0300

    trust_id is properly stored during create_lease

    The execution of the start_lease event failed because the trust_id were not
    properly stored during create_lease. To fix this the trust_id was added
    to the dictionary passed to the DB API.

    Change-Id: I333182267997d708110ac77a4fdef03f640a23c0
    Closes-Bug: #1333413

Changed in blazar:
status: In Progress → Fix Committed
Changed in blazar:
milestone: none → 0.1.1
Changed in blazar:
status: Fix Committed → Fix Released
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.