diff --git a/playbooks/roles/octavia-controller-config/tasks/certificate.yml b/playbooks/roles/octavia-controller-config/tasks/certificate.yml index 80791f3d5..10a5d20f3 100644 --- a/playbooks/roles/octavia-controller-config/tasks/certificate.yml +++ b/playbooks/roles/octavia-controller-config/tasks/certificate.yml @@ -10,13 +10,13 @@ become: true copy: content: "{{ item.content }}" - dest: "{{ octavia_confd_prefix }}{{ item.path }}" + dest: "{{ octavia_confd_prefix }}/{{ item.path }}" selevel: s0 setype: svirt_sandbox_file_t no_log: true loop: - - { content: private_key_content, path: ca_private_key_path } - - { content: ca_cert_content, path: ca_cert_path } - - { content: service_pem_content, path: client_cert_path } + - { content: "{{ private_key_content }}", path: "{{ ca_private_key_path }}" } + - { content: "{{ ca_cert_content }}", path: "{{ ca_cert_path }}" } + - { content: "{{ service_pem_content }}" , path: "{{ client_cert_path }}" } notify: - octavia config updated diff --git a/releasenotes/notes/octavia-fix-certificates-path-and-content-e8acf1e859e75135.yaml b/releasenotes/notes/octavia-fix-certificates-path-and-content-e8acf1e859e75135.yaml new file mode 100644 index 000000000..8fc897f40 --- /dev/null +++ b/releasenotes/notes/octavia-fix-certificates-path-and-content-e8acf1e859e75135.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixed an issue were amphora load balancers would fail to create. The + problem was because Octavia certificate files were being created in a wrong + path and with invalid content.