92f00f80fa
Recent commit https://opendev.org/starlingx/config/commit/634d4916 introducing changes for dual-stack networking made a change to the DB api's address_get_by_name to return a list of IPv4 and IPv6 addresses rather than a singular address. As such, the list can be empty if there are no addresses associated with a particular name, rather than throwing an AddressNotFoundByName exception. Currently, the interface_network code depends on the AddressNotFoundByName exception to determine whether a new address needs to be allocated for a dynamic network. This can cause an issue for worker, storage nodes when one of their interfaces is associated with certain networks (such as the storage network). The symptom of this may be an interface which is 'DOWN' after unlock, as it's interface configuration file is marked for a 'static' address, with no address present (because it wasn't allocated). This commit fixes the issue by simply checking that the list returned by address_get_by_name is empty. Test Plan: - Fresh install of a Standard system. - Ensure named addresses are present in the DB for all nodes (mgmt, cluster-host, oam for controllers) - Create a new address pool and storage network and assign it to a worker node interface. - Unlock the worker node and ensure the address is present on the interface and it is in 'UP' state. Story: 2011027 Task: 49627 Change-Id: I9763f7c71797d9b321e7bf9e1b6db759378af632 Signed-off-by: Steven Webster <steven.webster@windriver.com> |
||
---|---|---|
api-ref/source | ||
config-gate | ||
controllerconfig | ||
devstack | ||
doc | ||
releasenotes | ||
storageconfig | ||
sysinv | ||
tmp/patch-scripts/EXAMPLE_SYSINV/scripts | ||
tools/docker/images | ||
tsconfig | ||
workerconfig | ||
.gitignore | ||
.gitreview | ||
.yamllint | ||
.zuul.yaml | ||
CONTRIBUTORS.wrs | ||
LICENSE | ||
README.rst | ||
bindep.txt | ||
centos_build_layer.cfg | ||
centos_dev_wheels.inc | ||
centos_iso_image.inc | ||
centos_pkg_dirs | ||
centos_pkg_dirs_containers | ||
centos_stable_wheels.inc | ||
debian_build_layer.cfg | ||
debian_iso_image.inc | ||
debian_pkg_dirs | ||
debian_stable_wheels.inc | ||
test-requirements.txt | ||
tox.ini |
README.rst
config
The starlingx/config repository handles the StarlingX configuration management services.
Its key component is the System Inventory Service (Sysinv), which provides the system command-line interface (CLI)1.
This repository is not intended to be developed standalone, but rather as part of the StarlingX Source System, which is defined by the StarlingX manifest2.