blazar fails to create keystone trust

Bug #1657827 reported by Masahito Muroi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Blazar
Invalid
High
Unassigned

Bug Description

Blazar fails to create trust because of using wrong Keystone URL. keystone utility uses http://<ip>/identity/auth/tokens, but it should be http://<ip>/identity/v<keystone version>/auth/tokens.

2017-01-19 16:06:45.699 6692 DEBUG keystoneclient.auth.identity.v3.base [-] Making authentication request to http://10.10.10.11/identity/auth/tokens get_auth_ref /usr/local/lib/p
ython2.7/dist-packages/keystoneclient/auth/identity/v3/base.py:189
2017-01-19 16:06:45.704 6692 DEBUG requests.packages.urllib3.connectionpool [-] http://10.10.10.11:80 "POST /identity/auth/tokens HTTP/1.1" 404 93 _make_request /usr/local/lib/py
thon2.7/dist-packages/requests/packages/urllib3/connectionpool.py:400
2017-01-19 16:06:45.705 6692 DEBUG keystoneclient.session [-] Request returned failure status: 404 request /usr/local/lib/python2.7/dist-packages/keystoneclient/session.py:438
2017-01-19 16:06:45.706 6692 ERROR climate.api.v1.utils [-] Request aborted with status code 500 and message 'Internal Server Error'
2017-01-19 16:06:45.737 6692 ERROR climate.api.v1.utils [-] Traceback (most recent call last): File "/devstack/devstack_data/blazar/climate/api/v1/utils.py", line 76, in handler
    return func(**kwargs)
  File "/devstack/devstack_data/blazar/climate/api/v1/oshosts/v1_0.py", line 37, in computehosts_create
    return api_utils.render(host=_api.create_computehost(data))
  File "/devstack/devstack_data/blazar/climate/utils/__init__.py", line 32, in __run_method
    return getattr(self.instance, __name)(*args, **kwargs)
  File "/devstack/devstack_data/blazar/climate/policy.py", line 109, in wrapped
    return func(self, *args, **kwargs)
  File "/devstack/devstack_data/blazar/climate/utils/trusts.py", line 87, in wrapped
    trust = create_trust()
  File "/devstack/devstack_data/blazar/climate/utils/trusts.py", line 28, in create_trust
    client = keystone.ClimateKeystoneClient()
  File "/devstack/devstack_data/blazar/climate/utils/openstack/keystone.py", line 116, in __init__
    self.keystone.authenticate(auth_url=kwargs.get('auth_url', None))
  File "/usr/local/lib/python2.7/dist-packages/positional/__init__.py", line 101, in inner
    return wrapped(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/httpclient.py", line 581, in authenticate
    resp = self.get_raw_token_from_identity_service(**kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneclient/v3/client.py", line 324, in get_raw_token_from_identity_service
    _('Authorization failed: %s') % e)
AuthorizationFailure: Authorization failed: The resource could not be found. (HTTP 404)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on blazar (master)

Change abandoned by Masahito Muroi (<email address hidden>) on branch: master
Review: https://review.openstack.org/422745
Reason: This patch is not needed because of https://review.openstack.org/#/c/429408/

Revision history for this message
Masahito Muroi (muroi-masahito) wrote :
Changed in blazar:
status: New → Fix Committed
importance: Undecided → High
milestone: none → 0.2.0
status: Fix Committed → Invalid
milestone: 0.2.0 → none
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.