pycadf does not work with a templated keystone catalog

Bug #1347868 reported by Steve Martinelli
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pycadf
Fix Released
High
Steve Martinelli

Bug Description

If a catalog were like the following: https://github.com/openstack-dev/devstack/blob/master/files/default_catalog.templates
Then it would fail trying to get the endpoint id.

2014-07-16 10:54:24.277 ERROR pycadf.middleware.notifier [req-c516539a-0344-4659-8328-b7c2f1d90035 ceilometer service] An exception occurred processing the API call: 'id'
2014-07-16 10:54:24.277 TRACE pycadf.middleware.notifier Traceback (most recent call last):
2014-07-16 10:54:24.277 TRACE pycadf.middleware.notifier File "/opt/stack/pycadf/pycadf/middleware/notifier.py", line 37, in wrapped
2014-07-16 10:54:24.277 TRACE pycadf.middleware.notifier return fn(*args, **kwargs)
2014-07-16 10:54:24.277 TRACE pycadf.middleware.notifier File "/opt/stack/pycadf/pycadf/middleware/audit.py", line 43, in process_response
2014-07-16 10:54:24.277 TRACE pycadf.middleware.notifier self.cadf_audit.mod_audit_event(request, response)
2014-07-16 10:54:24.277 TRACE pycadf.middleware.notifier File "/opt/stack/pycadf/pycadf/audit/api.py", line 307, in mod_audit_event
2014-07-16 10:54:24.277 TRACE pycadf.middleware.notifier self.append_audit_event(req)
2014-07-16 10:54:24.277 TRACE pycadf.middleware.notifier File "/opt/stack/pycadf/pycadf/audit/api.py", line 285, in append_audit_event
2014-07-16 10:54:24.277 TRACE pycadf.middleware.notifier event = self.create_event(req, correlation_id)
2014-07-16 10:54:24.277 TRACE pycadf.middleware.notifier File "/opt/stack/pycadf/pycadf/audit/api.py", line 236, in create_event
2014-07-16 10:54:24.277 TRACE pycadf.middleware.notifier service_info = self._get_service_info(endp)
2014-07-16 10:54:24.277 TRACE pycadf.middleware.notifier File "/opt/stack/pycadf/pycadf/audit/api.py", line 191, in _get_service_info
2014-07-16 10:54:24.277 TRACE pycadf.middleware.notifier id=identifier.norm_ns(endp['endpoints'][0]['id']),
2014-07-16 10:54:24.277 TRACE pycadf.middleware.notifier KeyError: 'id'
2014-07-16 10:54:24.277 TRACE pycadf.middleware.notifier

Changed in pycadf:
assignee: nobody → Steve Martinelli (stevemar)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on pycadf (master)

Change abandoned by Steve Martinelli (<email address hidden>) on branch: master
Review: https://review.openstack.org/109060

Revision history for this message
Morgan Fainberg (mdrnstm) wrote :

I'm classifying this as High as (unfortunately) a number of deployments still use the template catalog.

Changed in pycadf:
importance: Undecided → High
Revision history for this message
Steve Martinelli (stevemar) wrote :
Changed in pycadf:
assignee: Steve Martinelli (stevemar) → nobody
status: In Progress → Confirmed
Changed in pycadf:
assignee: nobody → Steve Martinelli (stevemar)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to pycadf (master)

Reviewed: https://review.openstack.org/109060
Committed: https://git.openstack.org/cgit/openstack/pycadf/commit/?id=a568c12219db0390d90843274b07a97af6a6743b
Submitter: Jenkins
Branch: master

commit a568c12219db0390d90843274b07a97af6a6743b
Author: Steve Martinelli <email address hidden>
Date: Wed Jul 23 14:10:54 2014 -0400

    Do not depend on endpoint id existing in the service catalog

    Currently, if the endpoint id does not exist, pycadf will break.
    This patch will attempt to find the id of the endpoint and if not
    found, set it to unknown.

    Closes-Bug: #1347868
    Change-Id: Ief7facfca79f4f4e7c550c8f2317745e0c8e41ea

Changed in pycadf:
status: In Progress → Fix Committed
gordon chung (chungg)
Changed in pycadf:
milestone: none → 0.6.2
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/pycadf 0.8.0

This issue was fixed in the openstack/pycadf 0.8.0 release.

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.