Actions
Bug #35458
closedUser report: host repo files are not updating when switching lifecycle environments or content views
Description
Thread: https://community.theforeman.org/t/content-view-not-updating/30083
It's likely that the new Candlepin is causing troubles here. We should try switching the CV + LCE on a host and seeing if the host's repositories update accordingly.
Copied from the thread:
Problem:
Switching the Lifecycle environment and Content View is not updated on the host.
- hammer host show --name <hostname> --fields ‘Content Information’
Content Information:
Content View:
Id: 5
Name: Base_RHEL8.4_CV <<<<<<<<
Lifecycle Environment:
Id: 10
Name: BUILD <<<<<<<<
Content Source:
Id: 1
Name:
Kickstart Repository:
Id:
Name:
Applicable Packages: 0
Upgradable Packages: 0
Applicable Errata:
Enhancement: 0
Bug Fix: 0
Security: 0
- grep baseurl /etc/yum.repos.d/redhat.repo
baseurl = https://<hostname>/pulp/content/CTSL/BUILD/Base_RHEL8_4_CV/content/dist/rhel8/8.4/x86_64/baseos/os
baseurl = https://<hostname>/pulp/content/CTSL/BUILD/Base_RHEL8_4_CV/content/dist/rhel8/8.4/x86_64/appstream/os
- hammer host show --name <hostname> --fields ‘Content Information’
Content Information:
Content View:
Id: 2
Name: Base_RHEL8.5_CV <<<<<<<<
Lifecycle Environment:
Id: 4
Name: TEST <<<<<<<<
Content Source:
Id: 1
Name: <hostname>
Kickstart Repository:
Id:
Name:
Applicable Packages: 0
Upgradable Packages: 0
Applicable Errata:
Enhancement: 0
Bug Fix: 0
Security: 0
- subscription-manager refresh
All local data refreshed
- grep baseurl /etc/yum.repos.d/redhat.repo
baseurl = https://<hostname>/pulp/content/CTSL/BUILD/Base_RHEL8_4_CV/content/dist/rhel8/8.5/x86_64/baseos/os
baseurl = https://<hostname>/pulp/content/CTSL/BUILD/Base_RHEL8_4_CV/content/dist/rhel8/8.5/x86_64/appstream/os
Expected outcome:
host should point at updated content view
Foreman and Proxy versions:
Foreman 3.4
Katello 4.6
Other relevant data:
This issue was found after upgrading foreman and katello from 3.1.3/4.3.1 thru 3.2/4.4, 3.3/4.5 to 3.4/4.6
Updated by Chris Roberts over 2 years ago
- Status changed from New to Assigned
- Assignee set to Chris Roberts
- Priority changed from Normal to High
Updated by The Foreman Bot over 2 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/10273 added
Updated by The Foreman Bot over 2 years ago
- Fixed in Releases Katello 4.7.0 added
Updated by Samir Jha over 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|5ef2cacaf92eb6034df94db6b174f3168483fdba.
Actions