[packman] Workers for x86/_64 are borked :-)

Stefan Seyfried stefan.seyfried at googlemail.com
Mon Oct 9 15:42:15 CEST 2023


On 09.10.23 15:17, Stefan Seyfried wrote:
> Hi Stefan,
> 
> On 09.10.23 13:01, Stefan Botter wrote:
>> I see, that some - if not all - builds for Slowroll fail on my workers
>> (buildwk1 and 3) like in the above described scenario.
>> Do you have an idea?
> 
> Is there a kernel-obs-build in slowroll? If yes, is it used?
> Maybe something missing from the prjconf on build.o.o?

the prjconf is correct, it contains kernel-obs-build.
Also, I just built Essentials/libx264 with

osc build --build-vm=kvm openSUSE_Slowroll x86_64

...and it booted from the kernel-obs-build just fine.
So *something* seems to be amiss on the pmbs.
Do you maybe have an very old build.rpm installed on the OBS server?

>> OBS_VM_KERNEL and OBS_VM_INITRD are not set, and most other
>> distributions work (we had a report about xUbuntu a few days ago).
Are you sure they are not set somewhere you forgot? But then that should 
kill all builds... :?

> You could unpack the current kernel-obs-build of TW or Leap and copy the 
> contents to /boot/kernel.obs.guest and /boot/initrd.obs.guest *on the 
> build host*, then this should be used for booting the build VMs.

This would probably be a workaround to get it going at all, but still 
the question is "why is the kernel-obs-build not used".

...and here we go.

These are the first lines of Essentials/libx264 build log:

[    0s] Using BUILD_ROOT=/var/cache/obs/worker/root_2/.mount
[    0s] Using BUILD_ARCH=x86_64:i686:i586:i486:i386
[    0s] Doing kvm build in /var/cache/obs/worker/root_2/root
[    0s]
[    0s]
[    0s] buildwk1 started "build libx264.spec" at Mon Oct  9 13:33:32 
UTC 2023.
[    0s]
[    0s] Building libx264 for project 'Essentials' repository 
'openSUSE_Slowroll' arch 'x86_64' srcmd5 '8d714a011b53b7dee63b1744d39cf2c7'
[    0s]
[    0s] processing recipe 
/var/cache/obs/worker/root_2/.build-srcdir/libx264.spec ...
[    0s] running changelog2spec --target rpm --file 
/var/cache/obs/worker/root_2/.build-srcdir/libx264.spec
[    0s] init_buildsystem --configdir 
/var/run/obs/worker/2/build/configs --cachedir /var/cache/build 
--prepare --clean --rpmlist /var/cache/obs/worker/root_2/.build.rpmlist 
/var/cache/obs/worker/root_2/.build-srcdir/libx264.spec build ...
[    0s]
[    0s] copying packages...
[    0s] reordering...done
[    0s] booting kvm...
[    0s] ### VM INTERACTION START ###
[    0s] Using UART console
[    0s] /usr/bin/qemu-kvm -nodefaults -no-reboot -nographic -vga none 
-cpu host -M pc,accel=kvm,usb=off,dump-guest-core=off,vmport=off 
-sandbox on -bios /usr/share/qemu/qboot.rom -object 
rng-random,filename=/dev/random,id=rng0 -device virtio-rng-pci,rng=rng0 
-runas qemu -mem-prealloc -mem-path /dev/hugetlbfs -net none -kernel 
/boot/vmlinuz -initrd /boot/initrd -append root=/dev/sda rootfstype=ext4 
rootflags=noatime no-kvmclock mitigations=off elevator=noop 
nmi_watchdog=0 rw rd.driver.pre=binfmt_misc oops=panic panic=1 quiet 
console=ttyS0 init=/.build/build -m 5741 -drive 
file=/var/cache/obs/worker/root_2/root,format=raw,if=none,id=disk,cache=unsafe 
-device ide-hd,drive=disk,serial=0 -drive 
file=/var/cache/obs/worker/root_2/swap,format=raw,if=none,id=swap,cache=unsafe 
-device ide-hd,drive=swap,serial=1 -serial stdio -chardev 
socket,id=monitor,server=on,wait=off,path=/var/cache/obs/worker/root_2/root.qemu/monitor 
-mon chardev=monitor,mode=readline -smp 1

Notice something? There is no installation of the rootfs before starting 
the vm. compare with my local "osc build --vm-type=kvm...":

[    0s] Using BUILD_ROOT=/local/abuild/osc/openSUSE_Slowroll-x86_64/.mount
[    0s] Using BUILD_ARCH=x86_64:i686:i586:i486:i386
[    0s] Doing kvm build in /vmspace/obs/build-root
[    0s]
[    0s]
[    0s] strolchi started "build libx264.spec" at Mon Oct  9 13:35:55 
UTC 2023.
[    0s]
[    0s]
[    0s] processing recipe /dev/shm/Essentials/libx264/libx264.spec ...
[    1s] running changelog2spec --target rpm --file 
/dev/shm/Essentials/libx264/libx264.spec
[    1s] init_buildsystem --configdir /usr/lib/build/configs --cachedir 
/var/cache/build --prepare --clean --rpmlist /tmp/rpmlist._jol2_ry 
/dev/shm/Essentials/libx264/libx264.spec ...
[    1s] cycle: rpm-config-SUSE -> rpm
[    1s]   breaking dependency rpm-config-SUSE -> rpm
[    1s] [1/33] preinstalling filesystem...
[    2s] [2/33] preinstalling permissions...
[    2s] [3/33] preinstalling glibc...
[    2s] [4/33] preinstalling diffutils...
...
[    2s] [32/33] preinstalling rpm-config-SUSE...
[    2s] [33/33] preinstalling rpm...
[    2s]
[    2s] [1/9] preinstalling kernel-obs-build...
[    3s] [2/9] preinstalling libblkid1...
...
[    3s] [9/9] preinstalling util-linux...
[    3s] copying packages...
[    3s] reordering...cycle: libncurses6 -> terminfo-base
[    3s]   breaking dependency terminfo-base -> libncurses6
[    3s] cycle: binutils -> libctf0
[    3s]   breaking dependency binutils -> libctf0
[    3s] cycle: python311-base -> libpython3_11-1_0
[    3s]   breaking dependency python311-base -> libpython3_11-1_0
[    3s] cycle: rpm-config-SUSE -> rpm
[    3s]   breaking dependency rpm -> rpm-config-SUSE
[    3s] done
[    3s] Detected virtio-serial support
[    5s] booting kvm...
[    5s] Using virtio-serial support
[    5s] /usr/bin/qemu-kvm -nodefaults -no-reboot -nographic -vga none 
-cpu host -M pc,accel=kvm,usb=off,dump-guest-core=off,vmport=off 
-sandbox on -bios /usr/share/qemu/qboot.rom -object 
rng-random,filename=/dev/hwrng,id=rng0 -device virtio-rng-pci,rng=rng0 
-object iothread,id=io0 -runas qemu -net none -kernel 
/local/abuild/osc/openSUSE_Slowroll-x86_64/.mount/boot/kernel -initrd 
/local/abuild/osc/openSUSE_Slowroll-x86_64/.mount/boot/initrd -append 
root=/dev/disk/by-id/virtio-0 rootfstype=ext4 rootflags=noatime kvmclock 
mitigations=off elevator=noop nmi_watchdog=0 rw 
rd.driver.pre=binfmt_misc oops=panic panic=1 quiet console=hvc0 
init=/.build/build -m 1024 -drive 
file=/vmspace/obs/build-root,format=raw,if=none,id=disk,cache=unsafe,aio=io_uring 
-device virtio-blk-pci,iothread=io0,drive=disk,serial=0 -drive 
file=/vmspace/obs/build-swap,format=raw,if=none,id=swap,cache=unsafe,aio=io_uring 
-device virtio-blk-pci,iothread=io0,drive=swap,serial=1 -device 
virtio-serial,max_ports=2 -device virtconsole,chardev=virtiocon0 
-chardev stdio,id=virtiocon0 -chardev 
socket,id=monitor,server=on,wait=off,path=/vmspace/obs/build-root.qemu/monitor 
-mon chardev=monitor,mode=readline -smp 4

> Setting OBS_VM_KERNEL and OBS_VM_INITRD are only a last resort because I 

and it would not work, because even if this boots, there is nothing in 
there to work on.

So something is wrong with your setup. Unfortunately I have no real 
idea, what. As painful as it usually is, but you might have to ask on 
the buildservice mailing list...

Good luck,

Stefan
-- 
Stefan Seyfried

"For a successful technology, reality must take precedence over
  public relations, for nature cannot be fooled." -- Richard Feynman




More information about the Packman mailing list