From d7706aac1b1d356eaaa04ef57f4b920adcfe3668 Mon Sep 17 00:00:00 2001 From: "wu.chunyang" Date: Mon, 8 Nov 2021 23:00:49 +0800 Subject: [PATCH] Fix octavia doesn't set subnet gateway_ip the gateway_ip should be in subnet dict. Closes-Bug: #1949260 Change-Id: Iaa3fc69ee7954b5b202b0a6052c30bfb1780e84b --- ansible/roles/octavia/tasks/prepare.yml | 2 +- releasenotes/notes/bug-1949260-34d82ecd677dd8ff.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/bug-1949260-34d82ecd677dd8ff.yaml diff --git a/ansible/roles/octavia/tasks/prepare.yml b/ansible/roles/octavia/tasks/prepare.yml index c924874664..b3815f0867 100644 --- a/ansible/roles/octavia/tasks/prepare.yml +++ b/ansible/roles/octavia/tasks/prepare.yml @@ -128,7 +128,7 @@ allocation_pool_end: "{{ octavia_amp_network['subnet']['allocation_pool_end'] | default(omit, true) }}" enable_dhcp: "{{ octavia_amp_network['subnet']['enable_dhcp'] | default(omit) }}" no_gateway_ip: "{{ octavia_amp_network['subnet']['no_gateway_ip'] | default(omit) }}" - gateway_ip: "{{ octavia_amp_network['gateway_ip'] | default(omit, true) }}" + gateway_ip: "{{ octavia_amp_network['subnet']['gateway_ip'] | default(omit, true) }}" ip_version: "{{ octavia_amp_network['subnet']['ip_version'] | default(omit) }}" ipv6_address_mode: "{{ octavia_amp_network['subnet']['ipv6_address_mode'] | default(omit) }}" ipv6_ra_mode: "{{ octavia_amp_network['subnet']['ipv6_ra_mode'] | default(omit) }}" diff --git a/releasenotes/notes/bug-1949260-34d82ecd677dd8ff.yaml b/releasenotes/notes/bug-1949260-34d82ecd677dd8ff.yaml new file mode 100644 index 0000000000..4358d6b1ec --- /dev/null +++ b/releasenotes/notes/bug-1949260-34d82ecd677dd8ff.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fix octavia role doesn't set the amphora network's gateway_ip + `LP#1949260 `__