Move argument parsing for dynamic_inventory to generate
At the moment osa_toolkit is installable as a package. With recent
changes to PBR for python3.12 console_scripts are no longer
installed "as is", but only a simple import is created. This change
results in broken `openstack-ansible-inventory` binary, as `inventory`
can not be imported.
To avoid the issue and follow our existing logic for rest of tooling,
we move argument parsing logic to generate.py itself, allowing it to
be self-sufficient and be leaving a dynamic_inventory.py as a simple
pointer which needs to stay in inventory folder for gropup_vars to
load properly.
26183c7...
by
Dmitriy Rabotyagov <email address hidden>
Ensure that gluster mount is started after service
At the moment there is a race condition possible on
repo container startup, when glusterd.service is
started later then var-www-repo.mount attempts to.
This leads to a mount failure and requires a manual intervention after
each controller restart.
We use BindsTo together with After to ensure that mount will be started
only when glusterd.service
reaches Active state.
A related fix [1] was proposed a while ago, stating that
glusterd.service is started before network-online.target,
which is not a case, as glusterd also starts after network-online.target
Revert "Do not disable configure_mirrors extra repos for debian"
There are no backport mirrors for Debian bullseye, thus attempt to
enable them will lead to failure during aio bootstrap.
This reverts commit a41c7587168bf4113eb5476ac1b76b17d7bc3d2e.
With time coming for Caracal (2024.1) being moved to unmaintained
state, it makes sense to set upgrade jobs from 2023.1 as non-voting.
Out of the box Rocky image goes with mirrorlist defined, while baseurl
is commented out. Until there're infra mirrors available, let's ensure
we are not picking out of the mirror list as it proved itself being
unreliable and 3rd party mirrors are getting desynced, which causes
failures in CI.
Do not disable configure_mirrors extra repos for debian
This does not work with the current zuul images as there is a backports
repo config present in the built image that is not replaced by the
CI region specific config when the extra repos are disabled.
As the currently built images specify the '-int' (internal) interface
for the mirror server, this leads to job failures as the internal
mirror url from the image is not accessible when the image is booted
in a different region to that which it was built in.
Change-Id: I4b387fc25b56d70ee8a36d1fe91b3cd6933e2dc4
Signed-off-by: Jonathan Rosser <email address hidden>