diff options
| author | Zuul <zuul@review.opendev.org> | 2021-06-28 15:37:30 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2021-06-28 15:37:30 +0000 |
| commit | 337e9f3f83004969853b0da44fc0ac23be2ab52f (patch) | |
| tree | 996b4beb589b176522e122fb26702a2f492456d4 /tests | |
| parent | 3b5d8ccd658a5d1793b4bf18717c466ffca572c6 (diff) | |
| parent | fb8217c16a2c112d0757483f6a828fd0e2cbb193 (diff) | |
| download | kolla-337e9f3f83004969853b0da44fc0ac23be2ab52f.tar.gz kolla-337e9f3f83004969853b0da44fc0ac23be2ab52f.zip | |
Merge "[CI] Do not set ansible_python_interpreter for Zuul"
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/playbooks/pre.yml | 9 | ||||
| -rw-r--r-- | tests/playbooks/publish.yml | 9 |
2 files changed, 7 insertions, 11 deletions
diff --git a/tests/playbooks/pre.yml b/tests/playbooks/pre.yml index 2c289ef0b..30eb8c9fc 100644 --- a/tests/playbooks/pre.yml +++ b/tests/playbooks/pre.yml @@ -38,12 +38,11 @@ when: ansible_os_family == "Debian" + - name: Create virtualenv + command: python3 -m virtualenv {{ virtualenv_path }} --python python3 + - name: Install kolla - pip: - name: . - chdir: "{{ zuul.project.src_dir }}" - virtualenv: "{{ virtualenv_path }}" - virtualenv_python: python3 + command: "{{ virtualenv_path }}/bin/python -m pip install {{ zuul.project.src_dir }}" - name: Configure Docker repo for Debian/Ubuntu block: diff --git a/tests/playbooks/publish.yml b/tests/playbooks/publish.yml index 6c688b664..33a497b09 100644 --- a/tests/playbooks/publish.yml +++ b/tests/playbooks/publish.yml @@ -1,12 +1,9 @@ --- - hosts: all + vars: + # NOTE(yoctozepto): We need Docker SDK, the best source is Kolla venv. + ansible_python_interpreter: "{{ virtualenv_path }}/bin/python" tasks: - - name: Ensure docker python SDK is installed - become: true - pip: - name: "docker" - state: present - - name: List all containers docker_host_info: images: yes |
