From 584591ab13dc276dbcfc9670b2d395c7380de0b0 Mon Sep 17 00:00:00 2001 From: Logan V Date: Tue, 15 Nov 2016 22:15:23 -0600 Subject: [PATCH] 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: I9bb7aa62d5e191eb6de6f5295d77c57a08b2562d Partial-Bug: #1637509 --- tasks/glance_install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/glance_install.yml b/tasks/glance_install.yml index dd94b764..6506ace5 100644 --- a/tasks/glance_install.yml +++ b/tasks/glance_install.yml @@ -95,7 +95,7 @@ - name: Update virtualenv path command: > - virtualenv-tools --update-path=auto {{ glance_bin | dirname }} + virtualenv-tools --update-path=auto --reinitialize {{ glance_bin | dirname }} when: - not glance_developer_mode | bool - glance_get_venv | changed or glance_venv_dir | changed