[diskimage-builder] bootable ISO image for baremetal
Hi! I know it is not one of the most wonderful options for DIB, but in some circumstances I used ISO image in a USB stick for some old and unmaintained hardware. I used to fix by hand every time the "iso" element to complete the task, due to an old reference to a deprecated variable (DIB_IMAGE_ROOT_FS_UUID, now DIB_BOOT_LABEL). I proposed a very small fix and I hope it could be merged in the future: https://review.opendev.org/c/openstack/diskimage-builder/+/905556 Thank you for all your great work. Cheers, Ettore
Hi, Thanks to Maksim Malchuk the pipeline now is flowing, but the process fail the "dib-functests-arm64-rpm" job with this cryptic error: command> dnf download --verbose --releasever=8 --setopt=reposdir=/home/zuul/dib-mirror/centos-minimal/8-stream/yum.repos.d --setopt=cachedir=/opt/dib_cache/tmp.4AEBhZy2mQ --destdir=/tmp/tmp.T88BUu6mlS basesystem filesystem setup centos-gpg-keys centos-stream-release centos-stream-repos result> AttributeError: module 'dnf.util' has no attribute '_is_file_pattern_present' [1] Any suggestions on how to proceed? It does not seem related to some code inside diskimage-builder itself, but more on something broken in the CentOS 8 stream ARM checks. How can I help to investigate it further? Regards, Ettore [1] https://zuul.opendev.org/t/openstack/build/3fdbbf0354b64a569439982e6473a78d/... On Thu, 15 Feb 2024 at 12:43, Ettore Simone <ettore.simone@gmail.com> wrote:
Hi!
I know it is not one of the most wonderful options for DIB, but in some circumstances I used ISO image in a USB stick for some old and unmaintained hardware.
I used to fix by hand every time the "iso" element to complete the task, due to an old reference to a deprecated variable (DIB_IMAGE_ROOT_FS_UUID, now DIB_BOOT_LABEL).
I proposed a very small fix and I hope it could be merged in the future: https://review.opendev.org/c/openstack/diskimage-builder/+/905556
Thank you for all your great work.
Cheers, Ettore
On 2024-02-19 14:29:39 +0100 (+0100), Ettore Simone wrote: [...]
result> AttributeError: module 'dnf.util' has no attribute '_is_file_pattern_present' [1] [...]
We ran into a similar looking error in Nodepool's testing recently, which seems to be related to changes in the upstream repository for DNF plugins no longer working with older DNF versions. It's possible you could have luck porting this workaround: https://review.opendev.org/c/zuul/nodepool/+/908613 -- Jeremy Stanley
On Mon, Feb 19, 2024, at 7:09 AM, Jeremy Stanley wrote:
On 2024-02-19 14:29:39 +0100 (+0100), Ettore Simone wrote: [...]
result> AttributeError: module 'dnf.util' has no attribute '_is_file_pattern_present' [1] [...]
We ran into a similar looking error in Nodepool's testing recently, which seems to be related to changes in the upstream repository for DNF plugins no longer working with older DNF versions. It's possible you could have luck porting this workaround:
This nodepool fix addressed the problem for diskimage-builder tests that use nodepool to drive the building of images. However, the dib functests run without nodepool and will need this fix as prescribed above. I've pushed this change to address that: https://review.opendev.org/c/openstack/diskimage-builder/+/909466.
Tank you Clark, Now CI went quite smoothly. But I suppose I hitted another "temporary" bug [1] during : 760 | + dnf install -y python3 python3-pyyaml 761 | CentOS Stream 9 - BaseOS 915 B/s | 3.9 kB 00:04 762 | Errors during downloading metadata for repository 'baseos': 763 | - Downloading successful, but checksum doesn't match. Calculated: 555e83efd3ee35e872b1c6c98d3f4492d02a06b7e48cb82e32795ff7cba5f4d23ba3d67e88d142b7c4b4c48b1c421ad9fb3b58668a320f06c5ff75da1372a5e4(sha512) Expected: b0039a09d28e22148f55ea1551a3d47beb9e9b647dfb453f6dca4075a4d011fa238d7e704a1e22b3923cb8033845ef6993e3512d3ee20e293897e9c053b2e628(sha512) 764 | Error: Failed to download metadata for repo 'baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried May I retry again later (Gerrit recheck tomorrow for example), or as far as you know there are some issues in the OpenStack YUM repository mirrors that prevent DNF operations? [0] https://review.opendev.org/c/openstack/diskimage-builder/+/905556 [1] https://zuul.opendev.org/t/openstack/build/220fd6cc9e9940fab12ac90c9a21ebd7/... On Mon, 19 Feb 2024 at 17:33, Clark Boylan <cboylan@sapwetik.org> wrote:
On Mon, Feb 19, 2024, at 7:09 AM, Jeremy Stanley wrote:
On 2024-02-19 14:29:39 +0100 (+0100), Ettore Simone wrote: [...]
result> AttributeError: module 'dnf.util' has no attribute '_is_file_pattern_present' [1] [...]
We ran into a similar looking error in Nodepool's testing recently, which seems to be related to changes in the upstream repository for DNF plugins no longer working with older DNF versions. It's possible you could have luck porting this workaround:
This nodepool fix addressed the problem for diskimage-builder tests that use nodepool to drive the building of images. However, the dib functests run without nodepool and will need this fix as prescribed above. I've pushed this change to address that: https://review.opendev.org/c/openstack/diskimage-builder/+/909466.
Hello Ettore, It was a temporary bug, I hit it as well, it's ok now: podman run --rm quay.io/centos/centos:stream9 dnf update -y CentOS Stream 9 - BaseOS 3.8 MB/s | 8.0 MB 00:02 CentOS Stream 9 - AppStream 8.0 MB/s | 19 MB 00:02 CentOS Stream 9 - Extras packages 21 kB/s | 15 kB 00:00 Dependencies resolved. [...] Cheers, Joel On Mon, Mar 4, 2024 at 2:50 PM Ettore Simone <ettore.simone@gmail.com> wrote:
Tank you Clark,
Now CI went quite smoothly.
But I suppose I hitted another "temporary" bug [1] during : 760 | + dnf install -y python3 python3-pyyaml 761 | CentOS Stream 9 - BaseOS 915 B/s | 3.9 kB 00:04 762 | Errors during downloading metadata for repository 'baseos': 763 | - Downloading successful, but checksum doesn't match. Calculated: 555e83efd3ee35e872b1c6c98d3f4492d02a06b7e48cb82e32795ff7cba5f4d23ba3d67e88d142b7c4b4c48b1c421ad9fb3b58668a320f06c5ff75da1372a5e4(sha512) Expected: b0039a09d28e22148f55ea1551a3d47beb9e9b647dfb453f6dca4075a4d011fa238d7e704a1e22b3923cb8033845ef6993e3512d3ee20e293897e9c053b2e628(sha512)
764 | Error: Failed to download metadata for repo 'baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
May I retry again later (Gerrit recheck tomorrow for example), or as far as you know there are some issues in the OpenStack YUM repository mirrors that prevent DNF operations?
[0] https://review.opendev.org/c/openstack/diskimage-builder/+/905556 [1] https://zuul.opendev.org/t/openstack/build/220fd6cc9e9940fab12ac90c9a21ebd7/...
On Mon, 19 Feb 2024 at 17:33, Clark Boylan <cboylan@sapwetik.org> wrote:
On Mon, Feb 19, 2024, at 7:09 AM, Jeremy Stanley wrote:
On 2024-02-19 14:29:39 +0100 (+0100), Ettore Simone wrote: [...]
result> AttributeError: module 'dnf.util' has no attribute '_is_file_pattern_present' [1] [...]
We ran into a similar looking error in Nodepool's testing recently, which seems to be related to changes in the upstream repository for DNF plugins no longer working with older DNF versions. It's possible you could have luck porting this workaround:
This nodepool fix addressed the problem for diskimage-builder tests that use nodepool to drive the building of images. However, the dib functests run without nodepool and will need this fix as prescribed above. I've pushed this change to address that: https://review.opendev.org/c/openstack/diskimage-builder/+/909466.
Hi Joel, Nice, you were right! I suppose a new workflow vote is needed now. Cheers, Ettore On Mon, 4 Mar 2024 at 15:04, Joel Capitao <jcapitao@redhat.com> wrote:
Hello Ettore,
It was a temporary bug, I hit it as well, it's ok now:
podman run --rm quay.io/centos/centos:stream9 dnf update -y CentOS Stream 9 - BaseOS 3.8 MB/s | 8.0 MB 00:02 CentOS Stream 9 - AppStream 8.0 MB/s | 19 MB 00:02 CentOS Stream 9 - Extras packages 21 kB/s | 15 kB 00:00 Dependencies resolved. [...]
Cheers, Joel
On Mon, Mar 4, 2024 at 2:50 PM Ettore Simone <ettore.simone@gmail.com> wrote:
Tank you Clark,
Now CI went quite smoothly.
But I suppose I hitted another "temporary" bug [1] during : 760 | + dnf install -y python3 python3-pyyaml 761 | CentOS Stream 9 - BaseOS 915 B/s | 3.9 kB 00:04 762 | Errors during downloading metadata for repository 'baseos': 763 | - Downloading successful, but checksum doesn't match. Calculated: 555e83efd3ee35e872b1c6c98d3f4492d02a06b7e48cb82e32795ff7cba5f4d23ba3d67e88d142b7c4b4c48b1c421ad9fb3b58668a320f06c5ff75da1372a5e4(sha512) Expected: b0039a09d28e22148f55ea1551a3d47beb9e9b647dfb453f6dca4075a4d011fa238d7e704a1e22b3923cb8033845ef6993e3512d3ee20e293897e9c053b2e628(sha512)
764 | Error: Failed to download metadata for repo 'baseos': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
May I retry again later (Gerrit recheck tomorrow for example), or as far as you know there are some issues in the OpenStack YUM repository mirrors that prevent DNF operations?
[0] https://review.opendev.org/c/openstack/diskimage-builder/+/905556 [1] https://zuul.opendev.org/t/openstack/build/220fd6cc9e9940fab12ac90c9a21ebd7/...
On Mon, 19 Feb 2024 at 17:33, Clark Boylan <cboylan@sapwetik.org> wrote:
On Mon, Feb 19, 2024, at 7:09 AM, Jeremy Stanley wrote:
On 2024-02-19 14:29:39 +0100 (+0100), Ettore Simone wrote: [...]
result> AttributeError: module 'dnf.util' has no attribute '_is_file_pattern_present' [1] [...]
We ran into a similar looking error in Nodepool's testing recently, which seems to be related to changes in the upstream repository for DNF plugins no longer working with older DNF versions. It's possible you could have luck porting this workaround:
This nodepool fix addressed the problem for diskimage-builder tests that use nodepool to drive the building of images. However, the dib functests run without nodepool and will need this fix as prescribed above. I've pushed this change to address that: https://review.opendev.org/c/openstack/diskimage-builder/+/909466.
participants (4)
-
Clark Boylan
-
Ettore Simone
-
Jeremy Stanley
-
Joel Capitao