Skip to content

Commit

Permalink
Merge "Fix amphora image builds to use DIB bindep" into stable/2024.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Nov 20, 2024
2 parents 29a87ef + 87f5d0a commit d8cb5dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 51 deletions.
52 changes: 7 additions & 45 deletions playbooks/image-build/run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,51 +8,6 @@
become: yes
when:
- ansible_os_family == 'RedHat'
- name: Install apt packages
apt:
pkg: "{{ item }}"
state: "latest"
update_cache: yes
register: install_packages
become: yes
until: install_packages is success
retries: 5
delay: 2
with_items:
- qemu-utils
- uuid-runtime
- curl
- kpartx
- python3-yaml
- debootstrap
- qemu
- bc
- 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
- podman
when:
- ansible_os_family == 'RedHat'
- name: Install required pip packages
pip:
name: "{{ item }}"
Expand All @@ -65,7 +20,14 @@
delay: 2
become: yes
with_items:
- bindep
- diskimage-builder
- setuptools
- name: Install binary dependencies from diskimage-builder
include_role:
name: bindep
vars:
bindep_dir: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/diskimage-builder'].src_dir }}"
- name: Ensure artifacts/images directory exists
file:
path: '{{ ansible_user_dir }}/test-images'
Expand Down
7 changes: 1 addition & 6 deletions zuul.d/jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
not Git master. This job does not publish the image.
run: playbooks/image-build/run.yaml
required-projects:
- openstack/diskimage-builder
- openstack/octavia
- openstack/octavia-lib
vars:
Expand All @@ -184,8 +185,6 @@
description: |
Builds an Ubuntu Jammy amphora image using diskimage-builder from Git
master. This job does not publish the image.
required-projects:
- openstack/diskimage-builder
vars:
amphora_os: ubuntu
amphora_os_release: jammy
Expand All @@ -197,8 +196,6 @@
description: |
Builds a CentOS 9 Stream amphora image using diskimage-builder from Git
master. This job does not publish the image.
required-projects:
- openstack/diskimage-builder
vars:
amphora_os: centos
amphora_os_release: 9-stream
Expand All @@ -210,8 +207,6 @@
description: |
Builds a Rocky Linux 9 amphora image using diskimage-builder from Git
master. This job does not publish the image.
required-projects:
- openstack/diskimage-builder
vars:
amphora_os: rocky
amphora_os_release: 9
Expand Down

0 comments on commit d8cb5dc

Please sign in to comment.