Project

General

Profile

Actions

Bug #35458

closed

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

Added by Ian Ballou over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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

Actions #1

Updated by Ian Ballou over 1 year ago

  • Target version set to Katello 4.6.0
Actions #2

Updated by Ian Ballou over 1 year ago

  • Triaged changed from No to Yes
Actions #3

Updated by Samir Jha over 1 year ago

  • Triaged changed from Yes to No
Actions #4

Updated by Jeremy Lenz over 1 year ago

  • Triaged changed from No to Yes
Actions #5

Updated by Chris Roberts over 1 year ago

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

Updated by The Foreman Bot over 1 year ago

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

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases Katello 4.7.0 added
Actions #8

Updated by Samir Jha over 1 year ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF