Skip to content

Add two new distributions: RHIVOS-2.0 and RHIVOS-Core-2.0 [HMS-11293] - #2678

Merged
supakeen merged 6 commits into
osbuild:mainfrom
achilleas-k:rhivos-images
Oct 20, 2026
Merged

supakeen merged 6 commits into
osbuild:mainfrom
achilleas-k:rhivos-images

Conversation

@achilleas-k

@achilleas-k achilleas-k commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

Add two new distributions, RHIVOS-2.0 and RHIVOS-Core-2.0. Each defines one image type, qcow2. These are developer VM images for RHIVOS.

The distros types have been added to the config-list to test with the "empty" configuration.


The original version of this PR had these as two new image types under the RHEL 10 distro. Even though RHIVOS is RHEL-based, it makes more sense to define them as separate distributions because they use completely different repositories. Making them RHEL is also inconvenient, since their configurations are very simple.

@achilleas-k

Copy link
Copy Markdown
Member Author

Not so sure about the names. If anyone has any better ideas, I'm open to suggestions.

@achilleas-k

Copy link
Copy Markdown
Member Author

https://gitlab.com/redhat/services/products/image-builder/ci/images/-/jobs/16427283493

Saw this failure locally too and thought it was my own issue. It works fine with the curl source. I'm not sure why librepo has issues downloading the packages from the RHIVOS repos.

@supakeen

Copy link
Copy Markdown
Member

https://gitlab.com/redhat/services/products/image-builder/ci/images/-/jobs/16427283493

Saw this failure locally too and thought it was my own issue. It works fine with the curl source. I'm not sure why librepo has issues downloading the packages from the RHIVOS repos.

Uh that's interesting; perhaps we're missing the necessary access for the RHIVOS repository in librepo but have it in curl?

@achilleas-k

Copy link
Copy Markdown
Member Author

Maybe? I don't know how that would work, tbh. Maybe the repo is missing some metadata needed by librepo?

@achilleas-k
achilleas-k force-pushed the rhivos-images branch 5 times, most recently from d25e3cd to 22f0554 Compare September 18, 2026 14:56
Add two new disributions, rhivos-2 and rhivos-core-2.  Each of these
services one image type, a qcow2 guest image for RHIVOS developers.
@achilleas-k achilleas-k changed the title Add two new image types to RHEL 10: rhivos-qcow2 and rhivos-core-qcow2 [HMS-11293] Add two new distributions: RHIVOS-2.0 and RHIVOS-Core-2.0 [HMS-11293] Oct 15, 2026
Add repository configurations for the new RHIVOS distros.  One
repository for each architecture.

These repositories are released and stable and accessible from inside
the Red Hat VPN.
@achilleas-k

Copy link
Copy Markdown
Member Author

Maybe? I don't know how that would work, tbh. Maybe the repo is missing some metadata needed by librepo?

Following up on this: This only happened when I was mixing BaseOS and Appstream alongside the RHIVOS repositories (before I realised RHIVOS repositories are alternatives to RHEL, not complementary). I think the librepo source in osbuild might have issues when a package is available from more than one repository.

@achilleas-k

Copy link
Copy Markdown
Member Author

Maybe? I don't know how that would work, tbh. Maybe the repo is missing some metadata needed by librepo?

Following up on this: This only happened when I was mixing BaseOS and Appstream alongside the RHIVOS repositories (before I realised RHIVOS repositories are alternatives to RHEL, not complementary). I think the librepo source in osbuild might have issues when a package is available from more than one repository.

Hm, no, here it is again: https://gitlab.com/redhat/services/products/image-builder/ci/images/-/jobs/17214681775#L792

It was working for me locally though.

@achilleas-k

Copy link
Copy Markdown
Member Author

I just remembered, I'm going to have to exclude these from the boot tests or change the way we add cloud-init. I think I need to change the filesystem of the cloud-init image because the kernel can't mount the iso.

@achilleas-k
achilleas-k marked this pull request as ready for review October 19, 2026 14:19
@achilleas-k
achilleas-k requested review from a team and thozza as code owners October 19, 2026 14:19
@achilleas-k

achilleas-k commented Oct 19, 2026 •

Copy link
Copy Markdown
Member Author

I need to change the filesystem of the cloud-init image

Done. Cloud-init image is now a raw disk with a fat filesystem.

Comment thread test/scripts/imgtestlib/boot.py Outdated
["cloud-localds", os.fspath(iso_path), user_data.name, meta_data.name],
cwd=tmpdir,
)
iso = pathlib.Path(tmpdir) / "cloud-init.iso"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's no longer an iso is there any reason to keep calling it one?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's quite stupid indeed. Fixed.

brlane-rht
brlane-rht previously approved these changes Oct 19, 2026

@brlane-rht brlane-rht left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok, but calling the cloud-init config image an iso when it's a fat image bugs me slightly :)

@achilleas-k
achilleas-k force-pushed the rhivos-images branch 2 times, most recently from c5c3dfd to aca6466 Compare October 19, 2026 17:37
@achilleas-k

achilleas-k commented Oct 19, 2026 •

Copy link
Copy Markdown
Member Author

I disabled boot testing for these images. They work fine locally, but hang in CI. I'll figure it out and enable boot tests for these in a followup.

https://redhat.atlassian.net/browse/HMS-11489

When generating dynamic build configurations, we determine if a build
requires access to the internal Red Hat network by the image name.

RHEL and RHIVOS use repositories from inside the Red Hat network for
rpmrpeo and the RHIVOS compose.
The librepo source is having issues with the RHIVOS repositories.  Work
around it for now in tests.
The RHIVOS images are unable to mount iso9660 filesystems.  Create the
cloud-init image as a fat filesystem for maximum compatibility and
attach it to the VM as a raw disk.
I've successfully tested both x86_64 images locally.  The boot test in
CI hangs indefinitely however (until the job deadline is hit).  I will
investigate the problem and add support for boot testing these images in
our CI at a later date.

@croissanne croissanne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, thank you

@supakeen
supakeen enabled auto-merge October 20, 2026 11:45
@supakeen
supakeen added this pull request to the merge queue Oct 20, 2026
Merged via the queue into osbuild:main with commit 57f57e6 Oct 20, 2026
64 of 66 checks passed
@achilleas-k
achilleas-k deleted the rhivos-images branch October 20, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants