Bug 1982253

Summary: osbuild not usable with Satellite
Product: Red Hat Enterprise Linux 8 Reporter: Johannes Scheiber <jscheibe>
Component: osbuildAssignee: Image Builder team <osbuilders>
Status: CLOSED DUPLICATE QA Contact: Release Test Team <release-test-team-automation>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.4   
Target Milestone: beta   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-14 14:40:02 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 Johannes Scheiber 2021-07-14 14:28:45 UTC
Description of problem:
#### Environment ####
 - host registered and subscribed to a local Satellite
 - RHEL 8.4
 - Satellite 6.9

#### Problem ####
When trying to add packages to the blueprint while being connected, registered and subscribed to a Satellite, the package list cannot be retrieved.

Despite being registered to a Satellite server, osbuild is trying to get the package list from cdn.redhat.com

#### Errors ####
 - On the the cockpit integration this results in an endless waiting circle without error message.
 - In the logs, the following error appears:
   Jul 12 14:37:38 test5 osbuild-composer[70524]:  - Status code: 403 for https://cdn.redhat.com/content/dist/rhel8/8/x86_64/baseos/os/repodata/repomd.xml (IP: 2.16.30.83)
- Status code: 403 for https://cdn.redhat.com/content/dist/rhel8/8/x86_64/baseos/os/repodata/repomd.xml (IP: 2.16.30.83)
PRIORITY	6
SYSLOG_FACILITY	3
SYSLOG_IDENTIFIER	osbuild-composer

How reproducible:


#### Steps to Reproduce ####
1. provision host from Satellite (might also fail if only subscribed)
2. install cockpit-composer
3. try to add packages

Actual results:
- Status code: 403 for https://cdn.redhat.com/content/dist/rhel8/8/x86_64/baseos/os/repodata/repomd.xml (IP: 2.16.30.83)

Expected results:
Package list is fetched from Satellite


Additional info:
### different approaches/workarounds tried ###
 - configured repo under /etc/osbuild-composer/repositories as described in https://www.osbuild.org/guides/user-guide/managing-repositories.html
    Result: same - fail


#### Package versions ####

[root@test5 ~]# rpm -qi osbuild-composer
Name        : osbuild-composer
Version     : 28.6
Release     : 1.el8_4
Architecture: x86_64
Install Date: Fri 09 Jul 2021 09:38:01 AM UTC
Group       : Unspecified
Size        : 17237
License     : ASL 2.0
Signature   : RSA/SHA256, Wed 12 May 2021 04:33:50 PM UTC, Key ID 199e2f91fd431d51
Source RPM  : osbuild-composer-28.6-1.el8_4.src.rpm
Build Date  : Wed 12 May 2021 02:31:14 PM UTC
Build Host  : x86-039.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor      : Red Hat, Inc.
URL         : https://github.com/osbuild/osbuild-composer
Summary     : An image building service based on osbuild
Description :

An image building service based on osbuild
It is inspired by lorax-composer and exposes the same API.
As such, it is a drop-in replacement.

[root@test5 ~]# rpm -qi osbuild
Name        : osbuild
Version     : 27.2
Release     : 1.el8
Architecture: noarch
Install Date: Fri 09 Jul 2021 09:37:59 AM UTC
Group       : Unspecified
Size        : 215027
License     : ASL 2.0
Signature   : RSA/SHA256, Thu 08 Apr 2021 03:02:23 PM UTC, Key ID 199e2f91fd431d51
Source RPM  : osbuild-27.2-1.el8.src.rpm
Build Date  : Wed 07 Apr 2021 10:45:57 PM UTC
Build Host  : x86-039.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor      : Red Hat, Inc.
URL         : https://github.com/osbuild/osbuild
Summary     : A build system for OS images
Description :
A build system for OS images

[root@test5 ~]# rpm -qi cockpit-composer
Name        : cockpit-composer
Version     : 29.1
Release     : 1.el8
Architecture: noarch
Install Date: Fri 09 Jul 2021 09:39:34 AM UTC
Group       : Unspecified
Size        : 13689769
License     : MIT
Signature   : RSA/SHA256, Mon 22 Mar 2021 07:31:10 PM UTC, Key ID 199e2f91fd431d51
Source RPM  : cockpit-composer-29.1-1.el8.src.rpm
Build Date  : Mon 22 Mar 2021 01:25:30 PM UTC
Build Host  : x86-037.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Vendor      : Red Hat, Inc.
URL         : http://weldr.io/
Summary     : Composer GUI for use with Cockpit
Description :
Composer generates custom images suitable for deploying systems or uploading to
the cloud. It integrates into Cockpit as a frontend for osbuild.

Comment 1 Johannes Scheiber 2021-07-14 14:40:02 UTC

*** This bug has been marked as a duplicate of bug 1896185 ***