Problem:
I have issue after creating new content view, lifecycle environment, promoting the contentview to the lifecycle env and configuring the activation key.
When I execute subscription-manager register with --force on the host(s), not all the repos for the CentOS 7 product are configured in the redhat.repo file.
Configuration details:
Product CentOS_7:
[root@dc1-bootstrap ~]# hammer product list --organization DIDM | grep CentOS_7
12 | CentOS_7 | | DIDM | 5 | Syncing Complete.
[root@dc1-bootstrap ~]# hammer product info --organization DIDM --id 12
Id: 12
Name: CentOS_7
Label: CentOS_7
Description:
Sync State (all): Syncing Complete.
Sync State (last): Syncing Complete.
Sync Plan ID:
GPG:
GPG Key ID:
GPG Key:
Organization: DIDM
Content:
- Repo Name: extras x86_64
Url: /custom/CentOS_7/extras_x86_64
Content Type: yum - Repo Name: os x86_64
Url: /custom/CentOS_7/os_x86_64
Content Type: yum - Repo Name: updates x86_64
Url: /custom/CentOS_7/updates_x86_64
Content Type: yum - Repo Name: sclo x86_64 rh
Url: /custom/CentOS_7/sclo_x86_64_rh
Content Type: yum - Repo Name: sclo x86_64 sclo
Url: /custom/CentOS_7/sclo_x86_64_sclo
Content Type: yum
CentOS_7 repositories:
[root@dc1-bootstrap ~]# hammer repository list | grep CentOS_7
22 | extras x86_64 | CentOS_7 | yum | http://ftp.belnet.be/mirror/ftp.centos.org/7/extras/x86_64/
23 | os x86_64 | CentOS_7 | yum | http://ftp.belnet.be/mirror/ftp.centos.org/7/os/x86_64/
25 | sclo x86_64 rh | CentOS_7 | yum | http://ftp.belnet.be/mirror/ftp.centos.org/7/sclo/x86_64/rh/
26 | sclo x86_64 sclo | CentOS_7 | yum | http://ftp.belnet.be/mirror/ftp.centos.org/7/sclo/x86_64/sclo/
24 | updates x86_64 | CentOS_7 | yum | http://ftp.belnet.be/mirror/ftp.centos.org/7/updates/x86_64/
ContentView:
[root@dc1-bootstrap ~]# hammer content-view version info --id 87
Id: 87
Name: dc1_testlab_Ceph 2.0
Version: 2.0
Description:
Content View ID: 23
Content View Name: dc1_testlab_Ceph
Content View Label: dc1_testlab_Ceph
Lifecycle Environments:
- Id: 1
Name: Library
Label: Library - Id: 37
Name: DC1_Testlab_Ceph
Label: DC1_Testlab_Ceph
Repositories: - Id: 1712
Name: os x86_64
Label: os_x86_64 - Id: 1714
Name: sclo x86_64 rh
Label: sclo_x86_64_rh - Id: 1715
Name: sclo x86_64 sclo
Label: sclo_x86_64_sclo - Id: 1719
Name: x86_64 stable
Label: x86_64_stable - Id: 1716
Name: Puppet_6_el7_x86_64
Label: Puppet_6_el7_x86_64 - Id: 1718
Name: Pacific
Label: Pacific - Id: 1713
Name: updates x86_64
Label: updates_x86_64 - Id: 1722
Name: x86_64
Label: x86_64 - Id: 1720
Name: x86_64
Label: x86_64
10)Id: 1711
Name: extras x86_64
Label: extras_x86_64
11)Id: 1721
Name: noarch
Label: noarch
12)Id: 1717
Name: Foreman_Client_el7
Label: Foreman_Client_el7
[root@dc1-bootstrap ~]# hammer content-view info --id 23
Id: 23
Name: dc1_testlab_Ceph
Label: dc1_testlab_Ceph
Composite: false
Description: dc1_testlab_Ceph
Content Host Count: 6
Solve Dependencies: false
Organization: DIDM
Yum Repositories:
- Id: 22
Name: extras x86_64
Label: extras_x86_64 - Id: 23
Name: os x86_64
Label: os_x86_64 - Id: 24
Name: updates x86_64
Label: updates_x86_64 - Id: 25
Name: sclo x86_64 rh
Label: sclo_x86_64_rh - Id: 26
Name: sclo x86_64 sclo
Label: sclo_x86_64_sclo - Id: 19
Name: Puppet_6_el7_x86_64
Label: Puppet_6_el7_x86_64 - Id: 17
Name: Foreman_Client_el7
Label: Foreman_Client_el7 - Id: 1607
Name: x86_64 stable
Label: x86_64_stable - Id: 39
Name: x86_64
Label: x86_64
10)Id: 27
Name: noarch
Label: noarch
11)Id: 31
Name: x86_64
Label: x86_64
Container Image Repositories: - Id: 1464
Name: Pacific
Label: Pacific
OSTree Repositories:
Lifecycle Environments:
- Id: 1
Name: Library - Id: 37
Name: DC1_Testlab_Ceph
Versions: - Id: 86
Version: 1.0
Published: 2023/05/30 19:37:20 - Id: 87
Version: 2.0
Published: 2023/05/30 19:44:47
Components:
Activation Keys:
- Key_DC1_Testlab_Ceph_Servers
Activation Key:
[root@dc1-bootstrap ~]# hammer activation-key info --organization DIDM --id 9
Name: Key_DC1_Testlab_Ceph_Servers
Id: 9
Description: Key_DC1_Testlab_Ceph_Servers
Host Limit: Unlimited
Auto Attach: true
Lifecycle Environment: DC1_Testlab_Ceph
Content View: dc1_testlab_Ceph
Host Collections:
Content Overrides:
- Content Label: DIDM_CentOS_7_sclo_x86_64_rh
Name: enabled
Value: 0 - Content Label: DIDM_CentOS_7_sclo_x86_64_sclo
Name: enabled
Value: 0 - Content Label: DIDM_Epel_EL7_x86_64
Name: enabled
Value: 0
System Purpose:
Service Level:
Purpose Usage:
Purpose Role:
Purpose Addons:
[root@dc1-bootstrap ~]# hammer activation-key product-content --organization DIDM --id 9
----|---------------------|--------------------------------------------|------------------|----------
ID | NAME | LABEL | DEFAULT ENABLED? | OVERRIDE |
---|---|---|---|---|
22 | extras x86_64 | DIDM_CentOS_7_extras_x86_64 | yes | |
17 | Foreman_Client_el7 | DIDM_Foreman_Client_EL7_Foreman_Client_el7 | yes | |
27 | noarch | DIDM_Ceph_Nautilus_EL7_noarch | yes | |
23 | os x86_64 | DIDM_CentOS_7_os_x86_64 | yes | |
19 | Puppet_6_el7_x86_64 | DIDM_Puppet_6_EL7_Puppet_6_el7_x86_64 | yes | |
25 | sclo x86_64 rh | DIDM_CentOS_7_sclo_x86_64_rh | yes | enabled:0 |
26 | sclo x86_64 sclo | DIDM_CentOS_7_sclo_x86_64_sclo | yes | enabled:0 |
24 | updates x86_64 | DIDM_CentOS_7_updates_x86_64 | yes | |
39 | x86_64 | DIDM_Epel_EL7_x86_64 | yes | enabled:0 |
31 | x86_64 | DIDM_Ceph_Nautilus_EL7_x86_64 | yes | |
145 | x86_64 stable | DIDM_Docker_x86_64_stable | yes | |
---- | --------------------- | -------------------------------------------- | ------------------ | ---------- |
Host - subscription-manager repos:
[root@dc1-testlab-mon1 ~]# subscription-manager repos
±---------------------------------------------------------+
Available Repositories in /etc/yum.repos.d/redhat.repo
±---------------------------------------------------------+
Repo ID: DIDM_Epel_EL7_x86_64
Repo Name: x86_64
Repo URL: https://dc1-bootstrap/pulp/content/DIDM/DC1_Testlab_Ceph/dc1_testlab_Ceph/custom/Epel_EL7/x86_64
Enabled: 0
Repo ID: DIDM_Ceph_Nautilus_EL7_noarch
Repo Name: noarch
Repo URL: https://dc1-bootstrap/pulp/content/DIDM/DC1_Testlab_Ceph/dc1_testlab_Ceph/custom/Ceph_Nautilus_EL7/noarch
Enabled: 1
Repo ID: DIDM_Ceph_Nautilus_EL7_x86_64
Repo Name: x86_64
Repo URL: https://dc1-bootstrap/pulp/content/DIDM/DC1_Testlab_Ceph/dc1_testlab_Ceph/custom/Ceph_Nautilus_EL7/x86_64
Enabled: 1
Repo ID: DIDM_Foreman_Client_EL7_Foreman_Client_el7
Repo Name: Foreman_Client_el7
Repo URL: https://dc1-bootstrap/pulp/content/DIDM/DC1_Testlab_Ceph/dc1_testlab_Ceph/custom/Foreman_Client_EL7/Foreman_Client_el7
Enabled: 1
Repo ID: DIDM_CentOS_7_extras_x86_64
Repo Name: extras x86_64
Repo URL: https://dc1-bootstrap/pulp/content/DIDM/DC1_Testlab_Ceph/dc1_testlab_Ceph/custom/CentOS_7/extras_x86_64
Enabled: 1
Repo ID: DIDM_Docker_x86_64_stable
Repo Name: x86_64 stable
Repo URL: https://dc1-bootstrap/pulp/content/DIDM/DC1_Testlab_Ceph/dc1_testlab_Ceph/custom/Docker/x86_64_stable
Enabled: 1
Repo ID: DIDM_Puppet_6_EL7_Puppet_6_el7_x86_64
Repo Name: Puppet_6_el7_x86_64
Repo URL: https://dc1-bootstrap/pulp/content/DIDM/DC1_Testlab_Ceph/dc1_testlab_Ceph/custom/Puppet_6_EL7/Puppet_6_el7_x86_64
Enabled: 1
It only contains the CentOS_7_extra repo, all others are missing!
Expected outcome:
All CentOS_7 repos configured in the activation key be present in the file redhat.repo.
Foreman and Proxy versions:
Foreman 3.5.1
Katello 4.7.0
Foreman and Proxy plugin versions:
Distribution and version:
Rocky 8.7
Other relevant data: