Thursday, 2022-01-20

opendevreviewEduardo Santos proposed openstack/diskimage-builder master: Fix openSUSE images and bump them to 15.3  https://review.opendev.org/c/openstack/diskimage-builder/+/82534702:24
*** cstone7 is now known as cstone05:13
*** priteau_ is now known as priteau11:16
stevebaker[m]ianw: hey I'm having an issue with 03-reset-bls-entries and latest centos9 images. grub2-switch-to-blscfg fails with "grub2-probe: error: cannot find a device for / (is /dev mounted?)". This happens in more than one image type (ipa ramdisk build, a basic utility vm image)21:38
ianwstevebaker[m]: hrm, are there bls entries?21:43
ianwi think it would be great to try and get the grub maintainer's response on fixing this in grub21:43
stevebaker[m]ianw: in the base image? yes https://paste.opendev.org/show/812275/21:44
ianwi just noticed https://bugzilla.redhat.com/show_bug.cgi?id=2032680 is held up on a technicality, let me reupload that patch21:48
stevebaker[m]ianw: can you point me at the gitlab merge request? I might try and patch a base image to test21:53
ianwi have only sent the patch in as an attachment to that bug21:54
stevebaker[m]ianw: so does that patch mean 03-reset-bls-entries isn't required at all?21:58
ianwright, because with that patch, grub2-mkconfig would update the BLS entries that come on the image22:00
ianwthe problem is they have some random machine-id22:00
stevebaker[m]ianw: how about 03-reset-bls-entries renames the existing entry filename to match the machine-id>22:01
stevebaker[m]?22:01
ianwit can do that too, i guess22:03
stevebaker[m]Or do whatever we can to avoid grub2-switch-to-blscfg, it is brittle in our dib chroot22:04
ianwi think that's fine, i think i just used that for convenience 22:09
ianwbut this *was* working?22:09
ianwi mean it seems to work in the dib gate, in the centos image22:09
ianw2022-01-20 03:06:15.867 | dib-run-parts Running /tmp/in_target.d/pre-install.d/03-reset-bls-entries22:11
ianwhttps://e856287c707d0d738c8a-25f8dcd5db154e1632e2236aa5a8224a.ssl.cf2.rackcdn.com/825347/3/check/dib-functests/e7bd0c8/logs/centos_9-stream-build-succeeds.PASS.log22:11
ianwi'm not sure what's different22:11
stevebaker[m]ianw: that is using CentOS-Stream-GenericCloud-9-20220119.0.x86_64.qcow2, it failed for me with CentOS-Stream-GenericCloud-9-20220120.0.x86_64.qcow2. I'll try and recreate that gate image locally. But I'm having other issues with  grub2-switch-to-blscfg on my workstation, efi detection comes from the host, so it assume the config file is /etc/grub2-efi.cfg which is missing unless grub2-efi is installed22:16
ianwiirc all that really does is ls /lib/modules/* and runs kernel-install for each one22:16
ianwthe other option is to use the -minimal builds, which i feel like i've been saying for years.  we spend so much time keeping all these different paths working for very little overall benefit IMO22:19
ianwi've pushed the new patch so hopefully that can be considered now22:24
stevebaker[m]ianw: I've proposed a change to move ipa to centos-minimal, which is what we document anyway https://review.opendev.org/c/openstack/ironic-python-agent-builder/+/825414. However its failing on centos9 with an obscure error. It works fine for me locally https://zuul.opendev.org/t/openstack/build/b7b7e839019c4d77bf546a097dff3a7d/log/job-output.txt#95922:27
ianwsudo mount -t proc none /tmp/dib_build.Fnlr8AUJ/mnt/proc22:30
ianwmount: /tmp/dib_build.Fnlr8AUJ/mnt/proc: none already mounted on /sys/fs/bpf.22:30
ianwthat is indeed a new one22:30
ianwactually i think the real error is further up22:32
ianw2022-01-20 01:14:32.445097 | ubuntu-focal | 2022-01-20 01:14:32.445 | Failed to download initial packages: basesystem filesystem setup bash glibc ncurses-libs centos-gpg-keys centos-stream-release centos-stream-repos22:32
ianwdnf download --verbose --releasever=9-stream --setopt=reposdir=/tmp/dib_build.Fnlr8AUJ/hooks/yum.repos.d/9-stream --setopt=cachedir=/tmp/tmp.1dLazGlhbU --destdir=/tmp/tmp.40DxR6ZIcu basesystem filesystem setup bash glibc ncurses-libs centos-gpg-keys centos-stream-release centos-stream-repos22:32
ianw2022-01-20 01:14:32.427675 | ubuntu-focal | 2022-01-20 01:14:32.427 | /tmp/dib_build.Fnlr8AUJ/hooks/root.d/08-yum-chroot: line 145: dnf: command not found22:32
ianwyeah, 2022-01-20 01:12:33.188372 | localhost | Inventory Hostname: ubuntu-focal22:33
stevebaker[m]maybe this is why IPA jobs use the centos element, because IPA jobs don't use any centos nodepool22:38
ianwyou can build from the nodepool-builder container ... but this might be getting too far off track22:39
stevebaker[m]my track is meant to be unblocking the tripleo build pipeline, I've been far off track for a while now ;)22:41
ianwyeah, i dunno :(22:53
ecsantos[m]Built CentOS 9 Stream with the 20220120 QCOW2 with no problems: https://pastebin.com/raw/Kp7TZrmX22:54
ecsantos[m]Not using Nodepool though22:54
ianwnodepool does not actually build any of these .qcow2 based elements at all actually22:55
ianw(well, opendev nodepool, at least, and in the dib gate)22:55
ianwthe gate testing for these is done via dib-functests, which builds on a bullseye node22:57
ecsantos[m]stevebaker: Out of curiosity, which job is failing in the TripleO pipline? That depend on the centos element22:58
ecsantos[m]s/pipline/pipeline/22:59
stevebaker[m]ecsantos: this is about centos9 enablement in general, here is the IPA job running in master, and whatever changes are made to ironic-python-agent-builder need to be backportable to wallaby https://review.opendev.org/c/openstack/ironic-python-agent-builder/+/82541123:01
ecsantos[m]Oh, weird, it doesn't found dnf23:12
ianwdnf isn't available on focal23:12
ianwbullseye it is23:12
ecsantos[m]Oooh, I though it ran inside the chroot23:12
ianwwe use it on the host system to extract the initial chroot for the -minimal builds23:12
ecsantos[m]I had a similar issue when building ubuntu-minimal on a CentOS 7 host (it needs debootstrap), but in this case it's missing the package manager itself23:19
ecsantos[m]If using a Focal node isn't a requirement maybe just switching [1] to a Red Hat-based host would just work(tm)?23:19
ecsantos[m][1] https://opendev.org/openstack/ironic-python-agent-builder/src/branch/master/zuul.d/ironic-python-agent-builder-jobs.yaml#L5623:19
ianwlooks like grub put that patch into f36, so that's something23:35

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!