From 59a0e0f448f231d9c1dcc1f273f6d36315dd7aef Mon Sep 17 00:00:00 2001 From: Damian Dabrowski Date: Wed, 25 Sep 2024 16:57:54 +0200 Subject: [PATCH] Disable octavia_management_net_dhcp by default config_drive is always enabled for amphora VMs [1], so DHCP is not required for cloud-init to configure octavia network interface. To avoid confusion, this patch disables DHCP for octavia network by default. [1] https://opendev.org/openstack/octavia/src/commit/eff69261f45686ec757504fab57a65d46f8881cb/octavia/compute/drivers/nova_driver.py#L146 Change-Id: Iabb1afac5dcea64251813404d924da9a648ca2e9 --- defaults/main.yml | 2 +- .../notes/octavia-dhcp-disable-d575d932a1959652.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/octavia-dhcp-disable-d575d932a1959652.yaml diff --git a/defaults/main.yml b/defaults/main.yml index 28fff0b1..c5c6006b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -411,7 +411,7 @@ octavia_management_net_subnet_cidr: 172.29.232.0/22 # octavia_management_net_subnet_allocation_pools: "172.29.232.10-172.29.235.200" octavia_management_net_subnet_allocation_pools: "" # Do we require the Neutron DHCP server -octavia_management_net_dhcp: "True" +octavia_management_net_dhcp: "False" # Should Octavia set up the network and subnet? octavia_service_net_setup: True # This should match net_name from provider_networks structure in openstack_user_config diff --git a/releasenotes/notes/octavia-dhcp-disable-d575d932a1959652.yaml b/releasenotes/notes/octavia-dhcp-disable-d575d932a1959652.yaml new file mode 100644 index 00000000..4068d724 --- /dev/null +++ b/releasenotes/notes/octavia-dhcp-disable-d575d932a1959652.yaml @@ -0,0 +1,6 @@ +--- +other: + - | + Default value for ``octavia_management_net_dhcp`` was set to False. + It means that Octavia management network will not have DHCP enabled by + default if os_octavia role is responsible for managaing it.