From 3091f94a0779b279fc8c4c754aa4adab74ad38f4 Mon Sep 17 00:00:00 2001 From: Mauricio Lima Date: Tue, 6 Sep 2016 12:30:08 -0400 Subject: [PATCH] Fix manila_share container isn't up after deploy Change-Id: Ia5ece5f02841aebc1bdb0950b3f827e1cee359e5 Closes-Bug: #1620721 Closes-Bug: #1614033 --- ansible/group_vars/all.yml | 3 +-- ansible/roles/manila/tasks/config.yml | 1 + ansible/roles/manila/templates/manila-share.conf.j2 | 6 +----- etc/kolla/globals.yml | 3 ++- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml index 32d1ea79d3..452ab832d0 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/group_vars/all.yml @@ -360,5 +360,4 @@ ceph_cache_rule: "cache host firstn" ####################################### # Manila - Shared File Systems Options ####################################### -manila_enable_dhss: "yes" -manila_dhss: "{{ 'True' if manila_enable_dhss | bool else 'False' }}" +driver_handles_share_servers: "True" diff --git a/ansible/roles/manila/tasks/config.yml b/ansible/roles/manila/tasks/config.yml index 6b4cb91f21..4f83ff55b4 100644 --- a/ansible/roles/manila/tasks/config.yml +++ b/ansible/roles/manila/tasks/config.yml @@ -46,6 +46,7 @@ - "{{ node_custom_config }}/database.conf" - "{{ node_custom_config }}/messaging.conf" - "{{ node_custom_config }}/manila.conf" + - "{{ node_custom_config }}/{{ item }}.conf" - "{{ node_custom_config }}/manila/{{ item }}.conf" - "{{ node_custom_config }}/manila/{{ inventory_hostname }}/manila.conf" dest: "{{ node_config_directory }}/{{ item }}/manila.conf" diff --git a/ansible/roles/manila/templates/manila-share.conf.j2 b/ansible/roles/manila/templates/manila-share.conf.j2 index b604a0de52..b08718ef8f 100644 --- a/ansible/roles/manila/templates/manila-share.conf.j2 +++ b/ansible/roles/manila/templates/manila-share.conf.j2 @@ -62,11 +62,7 @@ interface_driver = manila.network.linux.interface.BridgeInterfaceDriver # Generic driver supports both driver modes - with and without handling # of share servers. So, we need to define explicitly which one we are # enabling using this driver. -{% if manila_dhss == "True" %} -driver_handles_share_servers = True -{% elif manila_dhss == "False" %} -driver_handles_share_servers = False -{% endif %} +driver_handles_share_servers = {{ driver_handles_share_servers }} # Generic driver is the only driver that uses image from Glance for building # service VMs in Nova. And following are data for some specific image. diff --git a/etc/kolla/globals.yml b/etc/kolla/globals.yml index bef77a1e25..6bf7e66732 100644 --- a/etc/kolla/globals.yml +++ b/etc/kolla/globals.yml @@ -187,7 +187,8 @@ nova_backend_ceph: "{{ enable_ceph }}" ####################################### # Manila - Shared File Systems Options ####################################### -#manila_enable_dhss: "yes" +# Valid options are [ True, False ] +#driver_handles_share_servers: "True" ##################################