passing venv_rebuild=true leaves repo server in unusable state
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Any time venv_rebuild=true is used the wheel build directory on the repo server is emptied out. The constraints and requirements text files for the currently running role will be deleted from the repo server and this forces the wheels to be rebuilt for that, and only that role.
If the playbook calls several roles, the next role that runs will also delete the entire wheel cache contents and also the constraints/
This means that every role run by a playbook will individually succeed when venv_rebuild=true, but at any one time the repo server wheel cache only contains the wheels needed for that role.
Subsequent playbooks run without venv_rebuild=true will find the wheel cache in an inconsistent state with the requirements/
The behaviour of python_venv_build when venv_build=true seems incorrect and can lead to a situation where it is not possible to run further playbooks correctly.
Changed in openstack-ansible: | |
status: | New → Confirmed |
Changed in openstack-ansible: | |
status: | Confirmed → Fix Released |
Looks like a legit fix: https:/ /review. opendev. org/c/openstack /ansible- role-python_ venv_build/ +/773981