From 76ec9cbc5a6a3ee66ce4f017351daf47ebeafe60 Mon Sep 17 00:00:00 2001 From: Mauricio Lima Date: Wed, 30 Mar 2016 12:47:17 -0400 Subject: [PATCH] Fix manila keystone v3 issues for all clients Change-Id: I58472bd429accb7f0efa0fcbc7e8e2d3b76de9c4 Closes-bug: #1563972 --- ansible/roles/manila/templates/manila.conf.j2 | 50 +++++++++++++------ 1 file changed, 35 insertions(+), 15 deletions(-) diff --git a/ansible/roles/manila/templates/manila.conf.j2 b/ansible/roles/manila/templates/manila.conf.j2 index 5f1ff9fa75..a3e2b4b612 100644 --- a/ansible/roles/manila/templates/manila.conf.j2 +++ b/ansible/roles/manila/templates/manila.conf.j2 @@ -23,27 +23,48 @@ auth_strategy = keystone os_region_name = {{ openstack_region_name }} -cinder_admin_auth_url = {{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }}/v2.0 -cinder_admin_tenant_name = service -cinder_admin_username = cinder -cinder_admin_password = {{ cinder_keystone_password }} +[cinder] +auth_uri = {{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_public_port }} +auth_url = {{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }} +auth_type = password +project_domain_id = default +user_domain_id = default +region_name = {{ openstack_region_name }} +project_name = service +username = cinder +password = {{ cinder_keystone_password }} +memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %} -nova_admin_auth_url = {{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }}/v2.0 -nova_admin_tenant_name = service -nova_admin_username = {{ nova_keystone_user }} -nova_admin_password = {{ nova_keystone_password }} +[nova] +auth_uri = {{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_public_port }} +auth_url = {{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }} +auth_type = password +project_domain_id = default +user_domain_id = default +region_name = {{ openstack_region_name }} +project_name = service +username = {{ nova_keystone_user }} +password = {{ nova_keystone_password }} +memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %} + +[neutron] +url = {{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ neutron_server_port }} +uth_uri = {{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_public_port }} +auth_url = {{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }} +auth_type = password +project_domain_id = default +user_domain_id = default +region_name = {{ openstack_region_name }} +project_name = service +username = {{ neutron_keystone_user }} +password = {{ neutron_keystone_password }} +memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %} [generic] # This is custom opt group that is used for storing opts of share-service. # This one is used only when enabled using opt `enabled_share_backends` # from DEFAULT group. -neutron_url = {{ internal_protocol }}://{{ kolla_internal_fqdn }}:{{ neutron_server_port }} -neutron_admin_auth_url = {{ admin_protocol }}://{{ kolla_internal_fqdn }}:{{ keystone_admin_port }}/v2.0 -neutron_admin_project_name = service -neutron_admin_username = {{ neutron_keystone_user }} -neutron_admin_password = {{ neutron_keystone_password }} - # Set usage of Generic driver which uses Cinder as backend. share_driver = manila.share.drivers.generic.GenericShareDriver @@ -103,4 +124,3 @@ password = {{ manila_keystone_password }} memcache_security_strategy = ENCRYPT memcache_secret_key = {{ memcache_secret_key }} memcached_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %} -