stx-libvirt container fails to build on pkg qemu

Bug #2051878 reported by Scott Little
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Critical
Scott Little

Bug Description

Brief Description
-----------------
stx-libvirt container fails to build when it can't 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

Scott Little (slittle1)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to virt (f/kernel-6.6)

Fix proposed to branch: f/kernel-6.6
Review: https://review.opendev.org/c/starlingx/virt/+/907355

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to virt (f/kernel-6.6)

Reviewed: https://review.opendev.org/c/starlingx/virt/+/907355
Committed: https://opendev.org/starlingx/virt/commit/7d2229bd6c2d702da3ddebbc0a9d9ca3925e43ac
Submitter: "Zuul (22348)"
Branch: f/kernel-6.6

commit 7d2229bd6c2d702da3ddebbc0a9d9ca3925e43ac
Author: Scott Little <email address hidden>
Date: Wed Jan 31 14:57:31 2024 -0500

    Fix stx-libvirt container build failure on missing qemu

    stx-libvirt container fails to build when it can't 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'.

    Partial-bug: 2051878
    Change-Id: Ib01a220562dd44d386a4a9f4f94927a090986c1c
    Signed-off-by: Scott Little <email address hidden>

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to virt (r/stx.9.0)

Fix proposed to branch: r/stx.9.0
Review: https://review.opendev.org/c/starlingx/virt/+/912307

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to virt (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/virt/+/912308

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to virt (master)

Reviewed: https://review.opendev.org/c/starlingx/virt/+/912308
Committed: https://opendev.org/starlingx/virt/commit/4a980cd09a955b04af4810ec2dbeab95b74f101c
Submitter: "Zuul (22348)"
Branch: master

commit 4a980cd09a955b04af4810ec2dbeab95b74f101c
Author: Scott Little <email address hidden>
Date: Wed Jan 31 14:57:31 2024 -0500

    Fix stx-libvirt container build failure on missing qemu

    stx-libvirt container fails to build when it can't 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'.

    Partial-bug: 2051878
    Change-Id: I98e3c7bd656c3e631c4aaf053dc39815fa0b32fb
    Signed-off-by: Scott Little <email address hidden>
    (cherry picked from commit 7d2229bd6c2d702da3ddebbc0a9d9ca3925e43ac)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to virt (r/stx.9.0)

Reviewed: https://review.opendev.org/c/starlingx/virt/+/912307
Committed: https://opendev.org/starlingx/virt/commit/02bba23525d2872f19d3d7abe987800e02d32fa2
Submitter: "Zuul (22348)"
Branch: r/stx.9.0

commit 02bba23525d2872f19d3d7abe987800e02d32fa2
Author: Scott Little <email address hidden>
Date: Wed Jan 31 14:57:31 2024 -0500

    Fix stx-libvirt container build failure on missing qemu

    stx-libvirt container fails to build when it can't 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'.

    Partial-bug: 2051878
    Change-Id: Ib01a220562dd44d386a4a9f4f94927a090986c1c
    Signed-off-by: Scott Little <email address hidden>
    (cherry picked from commit 7d2229bd6c2d702da3ddebbc0a9d9ca3925e43ac)

Ghada Khalil (gkhalil)
tags: added: stx.build
Changed in starlingx:
assignee: nobody → Scott Little (slittle1)
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
tags: added: stx.10.0 stx.9.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.