Comment 0 for bug 2051878

Revision history for this message
Scott Little (slittle1) wrote :

Brief Description
-----------------
stx-libvirt container fails to build when it can'y install package 'qemu'.
The package 'qemu' was recently upgraded to package qemu 7.3 from 5.2.
Qemu 7.2 no longer produces a dummy 'qemu' deb package.
Even in qemu 5.2 it was an empty deb package.

The container build instructions for stx-libvirt need to be updated,
removing the reference to package 'qemu'.

Old build environments, those that predate the qemu upgrade, are still providing
the qemu 5.2 deb, masking the error.

Severity
--------
Critical: container build failure in new/clean build environments.

Steps to Reproduce
------------------
Attempt container build in a new build environment

Expected Behavior
------------------
all containers build

Actual Behavior
----------------
stx-libvirt container fails to build

Reproducibility
---------------
100% in new build environments.

System Configuration
--------------------
N/A

Branch/Pull Time/Commit
-----------------------
Jan 30, 2024

Last Pass
---------
Jan 7, 2024

Timestamp/Logs
--------------
03:04:02 Step 7/8 : RUN apt-get -y update && apt-get -y install ceph-common dmidecode iptables iproute2 cgroup-tools libcgroup1 libnss-libvirt libvirt0 libvirt-clients libvirt-daemon libvirt-daemon-config-network libvirt-daemon-config-nwfilter libvirt-daemon-driver-lxc libvirt-daemon-driver-qemu libvirt-daemon-driver-storage-gluster libvirt-daemon-system libvirt-daemon-system-systemd libvirt-login-shell pm-utils qemu qemu-block-extra qemu-system-common qemu-system-data qemu-system-x86 qemu-guest-agent openvswitch-common openvswitch-switch openvswitch-switch-dpdk python3-openvswitch && apt-get -y clean && rm -rf /var/lib/apt/lists/*
03:04:02 ---> Running in 951ec82884b1
03:04:02 Ign:1 https://mirror.starlingx.windriver.com/mirror/starlingx/feature/kernel-6.6/debian/monolithic/20240131T001606Z/inputs/packages ./ InRelease
03:04:02 Ign:2 https://mirror.starlingx.windriver.com/mirror/starlingx/feature/kernel-6.6/debian/monolithic/20240131T001606Z/outputs/std/packages ./ InRelease
03:04:02 Get:3 https://mirror.starlingx.windriver.com/mirror/starlingx/feature/kernel-6.6/debian/monolithic/20240131T001606Z/inputs/packages ./ Release [850 B]
03:04:02 Get:4 https://mirror.starlingx.windriver.com/mirror/starlingx/feature/kernel-6.6/debian/monolithic/20240131T001606Z/outputs/std/packages ./ Release [850 B]
03:04:02 Ign:5 https://mirror.starlingx.windriver.com/mirror/starlingx/feature/kernel-6.6/debian/monolithic/20240131T001606Z/inputs/packages ./ Release.gpg
03:04:03 Ign:6 https://mirror.starlingx.windriver.com/mirror/starlingx/feature/kernel-6.6/debian/monolithic/20240131T001606Z/outputs/std/packages ./ Release.gpg
03:04:03 Get:7 https://mirror.starlingx.windriver.com/mirror/starlingx/feature/kernel-6.6/debian/monolithic/20240131T001606Z/inputs/packages ./ Packages [476 kB]
03:04:03 Get:8 https://mirror.starlingx.windriver.com/mirror/starlingx/feature/kernel-6.6/debian/monolithic/20240131T001606Z/outputs/std/packages ./ Packages [284 kB]
03:04:04 Fetched 762 kB in 4s (203 kB/s)
03:04:04 Reading package lists...
03:04:04 Reading package lists...
03:04:04 Building dependency tree...
03:04:04 Reading state information...
03:04:04 E: Unable to locate package qemu
03:04:05 The command '/bin/sh -c apt-get -y update && apt-get -y install ceph-common dmidecode iptables iproute2 cgroup-tools libcgroup1 libnss-libvirt libvirt0 libvirt-clients libvirt-daemon libvirt-daemon-config-network libvirt-daemon-config-nwfilter libvirt-daemon-driver-lxc libvirt-daemon-driver-qemu libvirt-daemon-driver-storage-gluster libvirt-daemon-system libvirt-daemon-system-systemd libvirt-login-shell pm-utils qemu qemu-block-extra qemu-system-common qemu-system-data qemu-system-x86 qemu-guest-agent openvswitch-common openvswitch-switch openvswitch-switch-dpdk python3-openvswitch && apt-get -y clean && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
03:04:05 Command (docker) failed, attempt 3 of 3.
03:04:05 Max command attempts reached. Aborting...
03:04:05 Failed to build stx-libvirt... Aborting
03:04:05 #######################################
...
03:04:05 There were 1 build failures:
03:04:05 stx-libvirt
03:04:05 command terminated with exit code 1

Test Activity
-------------
build

Workaround
----------
remove 'qemu' from apt-get install command within cgcs-root/stx/virt/libvirt/debian/docker/Dockerfile