From 40ce12bd04c18188829ee3ff1e7d9b331a3fb7e7 Mon Sep 17 00:00:00 2001 From: Serguei Bezverkhi Date: Wed, 8 Feb 2017 21:06:21 -0500 Subject: [PATCH] Fixing authentication url for kubernetes Fixing authentication url for kubernetes Change-Id: Idb0151f8ae8f785a34f3ea1feee2d33a6afa0987 --- ansible/roles/nova/templates/nova.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansible/roles/nova/templates/nova.conf.j2 b/ansible/roles/nova/templates/nova.conf.j2 index 473cf5baf6..51392a40b8 100644 --- a/ansible/roles/nova/templates/nova.conf.j2 +++ b/ansible/roles/nova/templates/nova.conf.j2 @@ -218,7 +218,11 @@ max_attempts = 10 [placement] auth_type = password +{% if orchestration_engine == 'KUBERNETES' %} +auth_url = {{ keystone_admin_url }} +{% else %} auth_url = {{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }} +{% endif %} username = {{ placement_keystone_user }} password = {{ placement_keystone_password }} user_domain_name = default