From 6ebb0d58a65780bb03c885c251fd5e5b0a425373 Mon Sep 17 00:00:00 2001 From: German Eichberger Date: Mon, 7 May 2018 12:55:09 -0700 Subject: [PATCH] Fix periodic job There was a version mismath beween python libraries installed by apt and the ones by pip. So use a virtual environment to install DIB. Change-Id: Ia00a79b5dbc61947e1f37c11de9a7f3bb9dddd8a --- playbooks/image-build/run.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/image-build/run.yaml b/playbooks/image-build/run.yaml index e0121da251..563e7bf1cc 100644 --- a/playbooks/image-build/run.yaml +++ b/playbooks/image-build/run.yaml @@ -22,6 +22,7 @@ pip: name: "{{ item }}" state: "latest" + virtualenv: /var/tmp/venv register: install_packages until: install_packages|success retries: 5 @@ -35,6 +36,7 @@ state: directory - name: Build an amphora image for publishing shell: >- + . /var/tmp/venv/bin/activate && \ ./diskimage-create.sh -o {{ ansible_user_dir }}/test-images/test-only-amphora-x64-haproxy-{{ amphora_os }}-{{ amphora_os_release }}.qcow2 \ -i {{ amphora_os }} \ -d {{ amphora_os_release }} \