From c78d1f192b77cfbf97ff83b9c6db6376e82f5f97 Mon Sep 17 00:00:00 2001 From: Gregory Thiemonge Date: Thu, 17 Dec 2020 09:34:41 +0100 Subject: [PATCH] Fix periodic image builder jobs publish-openstack-octavia-amphora-image* jobs started failing because ubuntu no longer provides yum-utils package. Now dependencies have been cleaned up for the ubuntu job, and the centos job uses a centos node. The zuul playbook now works on Ubuntu and RedHat/Centos nodes. Change-Id: Ifca01d91d8eb92115d56744f4963e91ac537dd8e (cherry picked from commit d81a0556f575abbaeffbd812b859e489c3f035e4) (cherry picked from commit 80ff90e34eb0fcdb8c71da0a9f070e705f60e619) (cherry picked from commit 41b2aad609bcd758f44ce46f666261af4d655612) --- playbooks/image-build/run.yaml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/playbooks/image-build/run.yaml b/playbooks/image-build/run.yaml index 1e468508db..006e24f2d2 100644 --- a/playbooks/image-build/run.yaml +++ b/playbooks/image-build/run.yaml @@ -19,10 +19,31 @@ - debootstrap - qemu - bc - - rpm - - yum-utils - python3-venv - python3-setuptools + when: + - ansible_os_family == 'Debian' + - name: Install rpm packages + dnf: + pkg: "{{ item }}" + state: "latest" + update_cache: yes + register: install_packages + become: yes + until: install_packages is success + retries: 5 + delay: 2 + with_items: + - qemu-img + - uuid + - curl + - kpartx + - python3-pyyaml + - qemu-kvm + - python3-setuptools + - yum + when: + - ansible_os_family == 'RedHat' - name: Install required pip packages pip: name: "{{ item }}"