Bug 2185630

Summary: ImageBuilder Default Path Incorrect RHEL9.2 Beta
Product: Red Hat Enterprise Linux 9 Reporter: Benjamin Schmaus <bschmaus>
Component: osbuildAssignee: Image Builder team <osbuilders>
Status: CLOSED MIGRATED QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 9.2Keywords: MigratedToJIRA
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-18 13:49:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Benjamin Schmaus 2023-04-10 16:11:58 UTC
Description of problem:

It appears that when using a beta version the default appstream and os paths for that version use the standard cdn pathing.  However in betas those paths have yet to exist and are actually different.

For example in the RHEL 9.2 beta I installed the osbuild components.  But when I went to actually generate a image with compose-cli I got the following error:

sudo composer-cli compose start-ostree rhde-microshift rhel-edge-container
ERROR: DepsolveError: DNF error occurred: RepoError: There was a problem reading a repository: Failed to download metadata for repo '777001b5b86531d37fb976f2d2da8ef6ba2f0130a9a6c1dc30cd8097a052cba3' [baseos: https://cdn.redhat.com/content/dist/rhel9/9.2/aarch64/baseos/os]: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

If I edit the following file /usr/share/osbuild-composer/repositories/rhel-92.json

And change the following lines:

https://cdn.redhat.com/content/dist/rhel9/9.2/aarch64/baseos/os

to

https://cdn.redhat.com/content/beta/rhel9/9/aarch64/baseos/os

and

https://cdn.redhat.com/content/dist/rhel9/9.2/aarch64/appstream/os

to

https://cdn.redhat.com/content/beta/rhel9/9/aarch64/appstream/os

My compose-cli image build will complete.


Version-Release number of selected component (if applicable):
9.2 Beta

How reproducible:
100%

Steps to Reproduce:
1. Install RHEL 9.2 Beta 
2. Create a blueprint and push it up
3. Try to compose image from the blueprint

Actual results:
Errors out because default appstream and os repo paths do not exist

Expected results:
Image should be composed

Additional info:

Comment 1 RHEL Program Management 2023-09-18 13:47:56 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 2 RHEL Program Management 2023-09-18 13:49:54 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.