3adcf02...
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
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.