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: Ib24917cf63cf0e6c7ffaf48dae15b0733b48cd04
Partial-Bug: #1637509
This commit is contained in:
Logan V 2016-11-15 22:15:23 -06:00
parent 56b547eb2d
commit 68fd798f31

View File

@ -108,7 +108,7 @@
- name: Update virtualenv path
command: >
virtualenv-tools --update-path=auto {{ keystone_bin | dirname }}
virtualenv-tools --update-path=auto --reinitialize {{ keystone_bin | dirname }}
when:
- not keystone_developer_mode | bool
- keystone_get_venv | changed or keystone_venv_dir | changed