Project

General

Profile

Bug #35458

User report: host repo files are not updating when switching lifecycle environments or content views

Added by Ian Ballou 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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.

  1. 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
  1. grep baseurl /etc/yum.repos.d/redhat.repo
    baseurl = https://&lt;hostname&gt;/pulp/content/CTSL/BUILD/Base_RHEL8_4_CV/content/dist/rhel8/8.4/x86_64/baseos/os
    baseurl = https://&lt;hostname&gt;/pulp/content/CTSL/BUILD/Base_RHEL8_4_CV/content/dist/rhel8/8.4/x86_64/appstream/os
  1. 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
  1. subscription-manager refresh
    All local data refreshed
  1. grep baseurl /etc/yum.repos.d/redhat.repo
    baseurl = https://&lt;hostname&gt;/pulp/content/CTSL/BUILD/Base_RHEL8_4_CV/content/dist/rhel8/8.5/x86_64/baseos/os
    baseurl = https://&lt;hostname&gt;/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

Associated revisions

Revision 5ef2caca (diff)
Added by Samir Jha 3 months ago

Fixes #35458 - Add environments param to candlepin update call (#10273)

History

#1 Updated by Ian Ballou 3 months ago

  • Target version set to Katello 4.6.0

#2 Updated by Ian Ballou 3 months ago

  • Triaged changed from No to Yes

#3 Updated by Samir Jha 3 months ago

  • Triaged changed from Yes to No

#4 Updated by Jeremy Lenz 3 months ago

  • Triaged changed from No to Yes

#5 Updated by Chris Roberts 3 months ago

  • Priority changed from Normal to High
  • Assignee set to Chris Roberts
  • Status changed from New to Assigned

#6 Updated by The Foreman Bot 3 months ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/10273 added

#7 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases Katello 4.7.0 added

#8 Updated by Samir Jha 3 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF