ChameleonCloud / chi-in-a-box

Packaging the systems and operations of the Chameleon testbed
Apache License 2.0
14 stars 10 forks source link

Feature/explicit updates #286

Closed msherman64 closed 4 months ago

msherman64 commented 5 months ago

auto-updating chi-in-a-box has caused frequent usability issues with long installs, broken upstream python dependencies, and uncertainty on which kolla-ansible version is in use.

This commit refactors all dependency installs into an "update_deps" command, which must be invoked before other cc-ansible commands. update_deps can be run repeatedly to update an existing venv.

Finally, we no longer edit the virtualenv by adding a symlink from $VIRTUALENV/share to the kolla-ansible base directoy. Instead, in the for editable installs of kolla-ansible (used by default in ciab), we look up the actual install path by referencing the python dist-info.

This approach matches the one used in kolla-ansible, and is a prerequisite to support installing kolla-ansible from a local checkout.