Project

General

Profile

Actions

Bug #35193

closed

Manifest Refresh should ensure environment-content association

Added by William Clark almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Lifecycle Environments
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2106000

Description of problem:

We have seen a few bugs where the environment-content association in Candlepin gets somehow lost or corrupted, for example https://bugzilla.redhat.com/show_bug.cgi?id=2064979 and https://bugzilla.redhat.com/show_bug.cgi?id=1931027

Katello tracks the info it needs to recreate this data on Candlepin back-end but it is not accessible to the user without re-promoting Content Views, which is painful and contains many steps not actually necessary to fix the issue

Building the same logic into Manifest Refresh makes sense as this is often when the issue occurs / can potentially repair before it ever becomes a problem

Version-Release number of selected component (if applicable):

How reproducible: 100% (using https://bugzilla.redhat.com/show_bug.cgi?id=2064979 )

Steps to Reproduce: ( https://bugzilla.redhat.com/show_bug.cgi?id=2064979 )
1. Create a lifecycle path and content view, publish and promote some CV versions
2. Register the client in some LCE and CV
3. Enable repos on the client, try to install some package
4. Remove all subscriptions from the manifest and refresh it
5. Refresh the manifest a 2nd time (to produce the conditions of https://bugzilla.redhat.com/show_bug.cgi?id=2064979 )
6. Add subscriptions back to the manifest
7. Refresh the manifest again, one or more times
8. Sub-man refresh and re-subscribe the client, try to enable repos and install the same package as before
9. Register some new client in same CV and LCE, try to enable repos and install the same package as before

Actual results:

1. Client remained registered in the same CV and LCE but could not enable repositories or download package, due to entitlement certificate not providing content in this CV/LVE
2. Newly registered client has same issue

Expected results:

1. Manifest Refresh task should Warn the user if content access was removed in some CV/LVE
2. Once new entitlements are added and manifest is refreshed again, entitlement cert should provide the same repository access in this CV/LCE as it did as before the backend Candlepin issue occurred -- without requiring CV version repromotion

Additional info:

Actions #1

Updated by The Foreman Bot almost 2 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to William Clark
  • Pull request https://github.com/Katello/katello/pull/10192 added
Actions #2

Updated by Partha Aji almost 2 years ago

  • Target version set to Katello 4.5.1
  • Triaged changed from No to Yes
Actions #3

Updated by The Foreman Bot almost 2 years ago

  • Fixed in Releases Katello 4.6.0 added
Actions #4

Updated by William Clark almost 2 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF