Reinitialize venv upon install

Reinitializes (copies python, etc binaries) into the venv when
dropping a new venv into place. This is needed because the Python
binary packaged with the venv may not match the Python running on
the host it is being installed to. (ie. in the case of a Xenial
repo container and a Trusty target host.)

Change-Id: I8d0ac69bfca3757134086dbd0cb12be88473b6f8
Partial-Bug: #1637509
This commit is contained in:
Logan V 2016-11-15 22:15:23 -06:00 committed by Jesse Pretorius (odyssey4me)
parent 2e46ac9589
commit 8a584e3485

@ -91,7 +91,7 @@
- name: Update virtualenv path
command: >
virtualenv-tools --update-path=auto {{ ironic_bin | dirname }}
virtualenv-tools --update-path=auto --reinitialize {{ ironic_bin | dirname }}
when:
- not ironic_developer_mode | bool
- ironic_get_venv | changed or ironic_venv_dir | changed