Keystone command failure after SQL backend changes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Fix Released
|
Critical
|
Dean Troyer |
Bug Description
The Keystone SQL backend changes altered the code here:
https:/
And subsequently forgot to pass the auth parameters into the new keystone commands, causing the following error:
Expecting authentication method via
either a service token, --token or env[SERVICE_TOKEN],
or credentials, --os_username or env[OS_USERNAME].
+ NOVA_USER_ID=
++ get_field 1
++ read data
++ grep ' service '
++ keystone tenant-list
Expecting authentication method via
either a service token, --token or env[SERVICE_TOKEN],
or credentials, --os_username or env[OS_USERNAME].
+ NOVA_TENANT_ID=
++ keystone ec2-credentials
usage: keystone ec2-credentials
keystone ec2-credentials
+ CREDS=
++ failed
++ local r=2
++ set +o xtrace
This only happens with swift enabled, since the offending code is in a conditional block.
Changed in devstack: | |
assignee: | nobody → Dean Troyer (dtroyer) |
status: | New → Confirmed |
importance: | Undecided → Critical |
Changed in devstack: | |
status: | Confirmed → In Progress |
Fixed in https:/ /review. openstack. org/#/c/ 9147/ by properly setting up the OS_* environment variables after keystone is initialized.