New keystone.client() doesn't work for 'identity' v2.0

Bug #1238072 reported by Andrew Lazarev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
High
Ilya Tyaptin

Bug Description

I've tried to use savanna keystone client and got the following exception:

2013-10-10 18:41:27.150 17839 ERROR savanna.utils.api [-] Traceback (most recent call last):
  File "/Users/andrew/Savanna/savanna/savanna/service/validation.py", line 37, in handler
    validator(**kwargs)
  File "/Users/andrew/Savanna/savanna/savanna/service/validations/images.py", line 55, in check_image_register
    k = keystone.client()
  File "/Users/andrew/Savanna/savanna/savanna/utils/openstack/keystone.py", line 39, in client
    auth_url = base.url_for(ctx.service_catalog, 'identity')
  File "/Users/andrew/Savanna/savanna/savanna/utils/openstack/base.py", line 33, in url_for
    endpoint = _get_identity_endpoint(service)
  File "/Users/andrew/Savanna/savanna/savanna/utils/openstack/base.py", line 71, in _get_identity_endpoint
    % (api_substr, service['type']))
Exception: Api v2.0 endpoint not found in service identity

It seems that we still need endpoint_type for identity v2.0

Tags: 0.3
Changed in savanna:
milestone: none → 0.3
tags: added: 0.3
Changed in savanna:
status: New → Triaged
importance: Undecided → Critical
importance: Critical → High
Ilya Tyaptin (ityaptin)
Changed in savanna:
assignee: nobody → Ilya Tyaptin (ityaptin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to savanna (master)

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

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

Reviewed: https://review.openstack.org/51203
Committed: http://github.com/openstack/savanna/commit/cc7d9b1b069f4744690feb5fd305af92da97c8f8
Submitter: Jenkins
Branch: master

commit cc7d9b1b069f4744690feb5fd305af92da97c8f8
Author: Ilya Tyaptin <email address hidden>
Date: Fri Oct 11 16:39:54 2013 +0400

    Fix auth url retrieval for identity

    Fixes: bug #1238072

    Change-Id: I81b98208e351663d67a51eece19fd17e0f396627

Changed in savanna:
status: In Progress → Fix Committed
Changed in savanna:
milestone: 0.3 → 0.3-rc3
Changed in savanna:
status: Fix Committed → Fix Released
Changed in savanna:
milestone: 0.3-rc3 → 0.3
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.