From 3fe57abeb232792c95089e3ff3835d7a6eef8867 Mon Sep 17 00:00:00 2001 From: "wu.chunyang" Date: Fri, 10 Aug 2018 14:59:51 +0000 Subject: [PATCH] fix sahara_api is always restarting shara_api need auth_url arguments in keystone_authtoken group. follow the configure document[0], the auth_url should under trustee group. but the keystone use default "keystone_authtoken " group to authenticate,if we wanna use trustee group to authenticate, we need add "auth_section=trustee" under keystone_authtoken group ,when add this , the trustee group also need auth_type which sahara have not register into oslo_config.when add to register,the username may hardcode[1],so i think the best way to reslove this problem is to add auth_url under keystone_authtoken [0]https://docs.openstack.org/sahara/latest/configuration/descriptionconfig.html [1]https://github.com/openstack/sahara/blob/d60a3b152b4ff3ba48cb9199eac1aad8e182f6e1/sahara/utils/openstack/keystone.py#L41 Change-Id: I7e94cf56fa38f01e2b3d93303f8192cb66ba76ab --- ansible/roles/sahara/templates/sahara.conf.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/sahara/templates/sahara.conf.j2 b/ansible/roles/sahara/templates/sahara.conf.j2 index 5ddace9e06..889a00c101 100644 --- a/ansible/roles/sahara/templates/sahara.conf.j2 +++ b/ansible/roles/sahara/templates/sahara.conf.j2 @@ -15,6 +15,7 @@ connection = mysql+pymysql://{{ sahara_database_user }}:{{ sahara_database_passw [keystone_authtoken] www_authenticate_uri = {{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_public_port }} +auth_url = {{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }} auth_type = password admin_user = {{ sahara_keystone_user }} admin_password = {{ sahara_keystone_password }}