From 380822eb97d1b689ab5c3de128ae05022a2f6104 Mon Sep 17 00:00:00 2001 From: Nenad Radojevic Date: Mon, 16 Jan 2017 10:34:11 +0000 Subject: [PATCH] TLS loadbalancer creation fails due to unread neutron_lbaas.conf LBaaS v2 agent is starting without the config file neutron_lbaas.conf. Added the file to lbaas' container config directory in order to initialize a Keystone session for the creation of a TLS listener. Change-Id: I2f47590af0421f4c8f1c8fd25e599e446ad1c0f1 Closes-Bug: #1656777 --- ansible/roles/neutron/tasks/config.yml | 1 + .../roles/neutron/templates/neutron-lbaas-agent.json.j2 | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ansible/roles/neutron/tasks/config.yml b/ansible/roles/neutron/tasks/config.yml index a2e7d08fa0..7fbe2d82ae 100644 --- a/ansible/roles/neutron/tasks/config.yml +++ b/ansible/roles/neutron/tasks/config.yml @@ -77,6 +77,7 @@ dest: "{{ node_config_directory }}/{{ item }}/neutron_lbaas.conf" with_items: - "neutron-server" + - "neutron-lbaas-agent" - name: Copying over neutron_vpnaas.conf merge_configs: diff --git a/ansible/roles/neutron/templates/neutron-lbaas-agent.json.j2 b/ansible/roles/neutron/templates/neutron-lbaas-agent.json.j2 index 3ad6253b62..9b966898ad 100644 --- a/ansible/roles/neutron/templates/neutron-lbaas-agent.json.j2 +++ b/ansible/roles/neutron/templates/neutron-lbaas-agent.json.j2 @@ -1,5 +1,5 @@ { - "command": "neutron-lbaasv2-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini --config-file /etc/neutron/lbaas_agent.ini", + "command": "neutron-lbaasv2-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini --config-file /etc/neutron/lbaas_agent.ini --config-file /etc/neutron/neutron_lbaas.conf", "config_files": [ { "source": "{{ container_config_directory }}/neutron.conf", @@ -19,6 +19,12 @@ "owner": "neutron", "perm": "0600" }, + { + "source": "{{ container_config_directory }}/neutron_lbaas.conf", + "dest": "/etc/neutron/neutron_lbaas.conf", + "owner": "neutron", + "perm": "0600" + }, { "source": "{{ container_config_directory }}/policy.json", "dest": "/etc/neutron/policy.json",