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
This commit is contained in:
chenying 2016-10-31 20:24:51 +08:00
parent 3dc00dd9fa
commit 56e611c957
3 changed files with 8 additions and 2 deletions

View File

@ -36,4 +36,10 @@ DEVSTACK_LOCAL_CONFIG+="enable_plugin karbor git://git.openstack.org/openstack/k
DEVSTACK_LOCAL_CONFIG+=$'\n'"SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5"
DEVSTACK_LOCAL_CONFIG+=$'\n'"SWIFT_REPLICAS=1"
DEVSTACK_LOCAL_CONFIG+=$'\n'"SWIFT_DATA_DIR=$DEST/data"
DEVSTACK_LOCAL_CONFIG+=$'\n'"DATABASE_PASSWORD=password"
DEVSTACK_LOCAL_CONFIG+=$'\n'"RABBIT_PASSWORD=password"
DEVSTACK_LOCAL_CONFIG+=$'\n'"SERVICE_PASSWORD=password"
DEVSTACK_LOCAL_CONFIG+=$'\n'"SERVICE_TOKEN=password"
DEVSTACK_LOCAL_CONFIG+=$'\n'"ADMIN_PASSWORD=password"
export DEVSTACK_LOCAL_CONFIG

View File

@ -12,7 +12,7 @@ bank=karbor-swift-bank-plugin
swift_auth_url=http://127.0.0.1:5000/v2.0/
swift_auth_version=2
swift_user=admin
swift_key=secretadmin
swift_key=password
swift_tenant_name=admin
[swift_bank_plugin]

View File

@ -21,7 +21,7 @@ class RestoresTest(karbor_base.KarborBaseTest):
restore_auth = {
"type": "password",
"username": "admin",
"password": "secretadmin",
"password": "password",
}
def setUp(self):