Browse Source

Update "auth_url"

Following the change in Keystone Install Guide [1],
this patch replace port 35357 with 5000 for "auth_url".

For more details, please check similar changes which have been done
on other projects: Nova [2], Neutron [3], Cinder [4], Glance [5].

In addition, update deprecated "auth_uri" to "www_authenticate_uri",
according to [6].

[1] https://review.openstack.org/#/c/541857
[2] https://review.openstack.org/#/c/562812
[3] https://review.openstack.org/#/c/566491
[4] https://review.openstack.org/#/c/565464
[5] https://review.openstack.org/#/c/558932
[6] https://review.openstack.org/#/c/508522

Change-Id: I57ee0008e5b6eef2c289cfa029f51c920124d489
Vu Cong Tuan 11 months ago
parent
commit
19e56c0064
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      etc/iotronic/iotronic.conf
  2. 1
    1
      iotronic/common/keystone.py

+ 2
- 2
etc/iotronic/iotronic.conf View File

@@ -28,8 +28,8 @@ wamp_realm = s4t
28 28
 connection = mysql+pymsql://<user>:<password>@<host>/iotronic
29 29
 
30 30
 [keystone_authtoken]
31
-auth_uri = http://<keystone_host>:5000
32
-auth_url = http://<keystone_host>:35357
31
+www_authenticate_uri = http://<keystone_host>:5000
32
+auth_url = http://<keystone_host>:5000
33 33
 auth_plugin = password
34 34
 project_domain_id = default
35 35
 user_domain_id = default

+ 1
- 1
iotronic/common/keystone.py View File

@@ -46,7 +46,7 @@ def _is_apiv3(auth_url, auth_version):
46 46
 
47 47
 
48 48
 def _get_ksclient(token=None):
49
-    auth_url = CONF.keystone_authtoken.auth_uri
49
+    auth_url = CONF.keystone_authtoken.www_authenticate_uri
50 50
     if not auth_url:
51 51
         raise exception.KeystoneFailure(_('Keystone API endpoint is missing'))
52 52
 

Loading…
Cancel
Save