From 5c0f18793c21d2bc50b4394a2388bfc793f09817 Mon Sep 17 00:00:00 2001 From: "wu.chunyang" <wuchunyang@yovole.com> Date: Thu, 23 Jul 2020 20:05:16 +0800 Subject: [PATCH] add missing conditional for octavia octavia deploy failed due to mount a empyt directroy into container Change-Id: Ifd95126da59f649b02ab39c0b209df4750bdcfce --- ansible/roles/octavia/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/octavia/defaults/main.yml b/ansible/roles/octavia/defaults/main.yml index 1a13e0ea3..ec185b012 100644 --- a/ansible/roles/octavia/defaults/main.yml +++ b/ansible/roles/octavia/defaults/main.yml @@ -90,7 +90,7 @@ octavia_api_default_volumes: - "/etc/localtime:/etc/localtime:ro" - "{{ '/etc/timezone:/etc/timezone:ro' if kolla_base_distro in ['debian', 'ubuntu'] else '' }}" - "kolla_logs:/var/log/kolla/" - - "{{ kolla_dev_repos_directory ~ '/octavia/octavia:/var/lib/kolla/venv/lib/python' ~ distro_python_version ~ '/site-packages/octavia' }}" + - "{{ kolla_dev_repos_directory ~ '/octavia/octavia:/var/lib/kolla/venv/lib/python' ~ distro_python_version ~ '/site-packages/octavia' if octavia_dev_mode | bool else '' }}" octavia_health_manager_default_volumes: - "{{ node_config_directory }}/octavia-health-manager/:{{ container_config_directory }}/:ro" - "/etc/localtime:/etc/localtime:ro" -- GitLab