The authorization of swif client fails when karbor is installed using devstack

Bug #1635140 reported by chenying
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Karbor
Fix Released
Undecided
Unassigned

Bug Description

The authorization of swif client fails when karbor is installed using devstack.

The reason is that the password in the local.conf of devstack is 'password'. But the swift_key value of swift client in
openstack-infra.conf is 'secretadmin'.

2016-10-20 15:24:55.088 DEBUG keystoneclient.v2_0.client [-] Authorization Failed. from (pid=46092) get_raw_token_from_identity_service /usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py:212
2016-10-20 15:24:55.089 ERROR swiftclient [-] Unauthorized. Check username, password and tenant name/id.
2016-10-20 15:24:55.089 TRACE swiftclient Traceback (most recent call last):
2016-10-20 15:24:55.089 TRACE swiftclient File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 1635, in _retry
2016-10-20 15:24:55.089 TRACE swiftclient self.url, self.token = self.get_auth()
2016-10-20 15:24:55.089 TRACE swiftclient File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 1587, in get_auth
2016-10-20 15:24:55.089 TRACE swiftclient timeout=self.timeout)
2016-10-20 15:24:55.089 TRACE swiftclient File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 662, in get_auth
2016-10-20 15:24:55.089 TRACE swiftclient auth_version=auth_version)
2016-10-20 15:24:55.089 TRACE swiftclient File "/usr/local/lib/python2.7/dist-packages/swiftclient/client.py", line 580, in get_auth_keystone
2016-10-20 15:24:55.089 TRACE swiftclient raise ClientException(msg)
2016-10-20 15:24:55.089 TRACE swiftclient ClientException: Unauthorized. Check username, password and tenant name/id.
2016-10-20 15:24:55.089 TRACE swiftclient
2016-10-20 15:24:55.092 ERROR karbor.services.protection.bank_plugins.swift_bank_plugin [-] bank plugin create container failed.
2016-10-20 15:24:55.092 ERROR karbor.services.protection.provider [-] Load bank plugin: 'karbor-swift-bank-plugin' failed.
2016-10-20 15:24:55.093 ERROR karbor.services.protection.provider [-] Load provider: OS Infra Provider failed.
2016-10-20 15:24:55.308 INFO root [-] Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
2016-10-20 15:24:55.336 INFO root [-] Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt

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

Reviewed: https://review.openstack.org/391811
Committed: https://git.openstack.org/cgit/openstack/karbor/commit/?id=56e611c9578dca815f76617c68ffba63773ed350
Submitter: Jenkins
Branch: master

commit 56e611c9578dca815f76617c68ffba63773ed350
Author: chenying <email address hidden>
Date: Mon Oct 31 20:24:51 2016 +0800

    Fix the authorization of swift when karbor is installed using devstack

    The service's default password in local devstack and gate devstack
    should be same.

    Change-Id: If9b5c24a91d33e489c02177ea60f5adbb2321320
    Closes-Bug: #1635140

Changed in karbor:
status: New → 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.