Bug 1915351

Summary: RFE: be able to use composer without CDN connection
Product: Red Hat Enterprise Linux 8 Reporter: Renaud Métrich <rmetrich>
Component: osbuild-composerAssignee: Image Builder team <osbuilders>
Status: CLOSED CURRENTRELEASE QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact: Eliane Ramos Pereira <elpereir>
Priority: medium    
Version: 8.3CC: rhel-docs, sbarcomb, tcapek, tgunders, thozza
Target Milestone: rcKeywords: FutureFeature
Target Release: 8.5Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
.Ability to override official repositories available By default, the `osbuild-composer` backend has its own set of official repositories defined in the `/usr/share/osbuild-composer/repositories` directory. Consequently, it does not inherit the system repositories located in the `/etc/yum.repos.d/` directory. You can now override the official repositories. To do that, define overrides in the `/etc/osbuild-composer/repositories` and, as a result, the files located there take precedence over those in the `/usr` directory.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-07 08:53: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 Renaud Métrich 2021-01-12 13:55:08 UTC
Description of problem:

It appears that it's currently not possible to use composer-cli/osbuild-composer without being registered against CDN.
- it's not possible to modify "baseos" and "appstream" repositories because these are "system" ones
- if you add your own offline repositories, this doesn't work either, "composer-cli blueprints depsolve" or other commands fail with "RHSM secrets not found on host"

Major companies are not registered against CDN, so it should be possible for them to use the tool anyway.


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

composer-cli-28.14.55-2.el8.x86_64
osbuild-composer-20.1-1.el8.x86_64


How reproducible:

ALWAYS.

Comment 1 Tom Gundersen 2021-01-13 17:57:14 UTC
Thanks for reaching out Renaud. This is indeed not supported, but a workaround exists. The base repositories are defined in `/usr/lib/osbuild-composer/repositories/rhel-8.json`, and you can override these by making a copy of the file and put it in `/etc/osbuild-composer/repositories/` where you can edit them to point to the right URLs (and disable rhsm).

Please let us know whether or not that works for you!