auth tokens are deleted when using OpenStackConfig
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstacksdk |
New
|
Undecided
|
Unassigned |
Bug Description
it appears that https:/
This simple script doesn't return the same output after this commit:
--
import openstack
config = openstack.
interface=
region_
auth_
auth={
'token': '1234',
'auth_url': 'http://
})
print(config.
--
In older openstacksdk releases, it displays the token passed in ['auth']['token']
On master, it displays 'None'.
When building the config it seems that magic_fixes() makes some incorrect changes:
1. If config[
2. Then _fix_backwards_
[0] https:/
[1] https:/
It impacts the octavia-dashboard, it can no longer connect to the OpenStack cloud (the 'None' token is rejected by keystone), we may workaround it by renaming the key 'token' to 'auth_token' in the auth dict (it would not be overwritten by 1.)