openstack-armada-app/python3-k8sapp-openstack/k8sapp_openstack
Thales Elero Cervi 141f088a7e Add Neutron DHCP HA capabilities
Aiming for the stx-openstack application hardening, this change
implements the plugin logic to gather the number of available compute
nodes and, for anything that is not an AIO-SX deployment, configure the
neutron dhcp_agents_per_network count accordingly [1].
When only two computes are available this config is set to 2, whenever
three or more compute nodes are available this config is set to 3.

There are scenarios in which the compute node fails and if it is hosting
the DHCP agent for a given openstack network, VMs on that VM won't be
able to receive DHCPOFFER and fail to receive ip and ping.

Partial-Bug: 2030883

[1] https://docs.openstack.org/neutron/latest/admin/config-dhcp-ha.html#enabling-dhcp-high-availability-by-default

TEST PLAN:
PASS - Build plugins (k8sapp_openstack)
PASS - Build stx-openstack helm charts
PASS - Apply stx-openstack and verify the Neutron config
       * Check dhcp_agents_per_network count:
       /etc/neutron/neutron.conf
       - AIO-SX = 1
       - AIO-DX = 2
PASS - Execute stx-openstack sanity tests locally

Change-Id: I6f32ac8a1706467be0be67920a3a750bb7c6b01e
Signed-off-by: Thales Elero Cervi <thaleselero.cervi@windriver.com>
2023-12-14 11:23:04 -03:00
..
k8sapp_openstack Add Neutron DHCP HA capabilities 2023-12-14 11:23:04 -03:00
.gitignore Standardize app configs (re-submission) 2023-02-24 18:19:38 +00:00
.stestr.conf Standardize app configs (re-submission) 2023-02-24 18:19:38 +00:00
LICENSE Standardize app configs (re-submission) 2023-02-24 18:19:38 +00:00
pylint.rc Standardize app configs (re-submission) 2023-02-24 18:19:38 +00:00
README.rst Standardize app configs (re-submission) 2023-02-24 18:19:38 +00:00
requirements.txt Standardize app configs (re-submission) 2023-02-24 18:19:38 +00:00
setup.cfg Add OpenStack clients helm chart 2023-06-14 13:30:02 -03:00
setup.py Standardize app configs (re-submission) 2023-02-24 18:19:38 +00:00
test-requirements.txt Standardize app configs (re-submission) 2023-02-24 18:19:38 +00:00
tox.ini Standardize app configs (re-submission) 2023-02-24 18:19:38 +00:00
upper-constraints.txt Standardize app configs (re-submission) 2023-02-24 18:19:38 +00:00

k8sapp-openstack

This project contains StarlingX Kubernetes application specific python plugins for the openstack application. These plugins are required to integrate the openstack application into the StarlingX application framework and to support the various StarlingX deployments.