From 19e56c00640fed7e03c0f7aedb29357d3afec7b0 Mon Sep 17 00:00:00 2001 From: Vu Cong Tuan Date: Fri, 11 May 2018 10:00:22 +0700 Subject: [PATCH] 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 --- etc/iotronic/iotronic.conf | 4 ++-- iotronic/common/keystone.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/iotronic/iotronic.conf b/etc/iotronic/iotronic.conf index 8501952..4020416 100644 --- a/etc/iotronic/iotronic.conf +++ b/etc/iotronic/iotronic.conf @@ -28,8 +28,8 @@ wamp_realm = s4t connection = mysql+pymsql://:@/iotronic [keystone_authtoken] -auth_uri = http://:5000 -auth_url = http://:35357 +www_authenticate_uri = http://:5000 +auth_url = http://:5000 auth_plugin = password project_domain_id = default user_domain_id = default diff --git a/iotronic/common/keystone.py b/iotronic/common/keystone.py index c025ca6..3360478 100644 --- a/iotronic/common/keystone.py +++ b/iotronic/common/keystone.py @@ -46,7 +46,7 @@ def _is_apiv3(auth_url, auth_version): def _get_ksclient(token=None): - auth_url = CONF.keystone_authtoken.auth_uri + auth_url = CONF.keystone_authtoken.www_authenticate_uri if not auth_url: raise exception.KeystoneFailure(_('Keystone API endpoint is missing'))