Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1962410 - VMs Migrating are Losing ELS Subscriptions and Repos for RHEL 6
Summary: VMs Migrating are Losing ELS Subscriptions and Repos for RHEL 6
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Candlepin
Version: 6.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
high with 2 votes
Target Milestone: 6.11.0
Assignee: satellite6-bugs
QA Contact: Danny Synk
URL:
Whiteboard:
: 2122621 (view as bug list)
Depends On: 1964376 1964379
Blocks: 1399395
TreeView+ depends on / blocked
 
Reported: 2021-05-20 01:11 UTC by myoder
Modified: 2024-12-20 20:05 UTC (History)
17 users (show)

Fixed In Version: candlepin-4.0.16-1, candlepin-4.1.11-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1964376 2059375 (view as bug list)
Environment:
Last Closed: 2022-07-05 14:28:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:5498 0 None None None 2022-07-05 14:29:18 UTC

Description myoder 2021-05-20 01:11:20 UTC
Description of problem:

VMs that are inheriting an ELS subscription from a hypervisor, are migrating frequently in an environment, sometimes several times a day.  When this happens, the subscriptions for ELS are not auto-attached, therefore the ELS repos are not available.  Running "subscription-manager refresh" will bring the subscription back, and the els repos are enabled again.  2 things that are noticed:

  - RHEL5 servers don't drop their els repositories when they migrate
  - The base RHEL6 repos don't drop when they migrate

Seems to be just an issue with RHEL6 els repositories / subscription.

Version-Release number of selected component (if applicable):
Satellite 6.9.1
Red Hat Server 6

How reproducible:
always

Steps to Reproduce:
1. Have a RHEL6 vm use an ELS subscription inherited via a VDC subscription
2. Have the host migrate to another hypervisor (that is also entitled)
3. 
 
Actual results:
RHEL6 servers drop their els repositories, but not their base rhel6 repos.

Expected results:
ELS repos shouldn't drop due to migration.

Additional info:

subscription-manager refresh fixes this issue.

currently an Ansible Role is being used to re-attach the subscriptions and repos for the RHEL6 hosts.

Comment 29 Danny Synk 2022-04-29 18:37:23 UTC
Verified on Satellite 6.11 snap 18, running on both RHEL 7 and RHEL 8 (candlepin-4.1.12-1).

Steps to Test:

0. Synchronize the "Red Hat Enterprise Linux 6 Server - Extended Life Cycle Support (RPMs)" repository to Satellite.
1. Configure a RHEL 8 system as a KVM hypervisor.
2. Deploy a RHEL 6 virtual guest on the KVM hypervisor.
3. Register both the hypervisor and the guest to Satellite 6.11.
4. Attach "Red Hat Enterprise Linux Extended Life Cycle Support (Unlimited Guests)" (SKU RH00271) and "Red Hat Enterprise Linux for Virtual Datacenters with Smart Management, Premium" (SKU RH00006) subscriptions to the hypervisor.
5. Configure virt-who to run on the hypervisor and report to the Satellite.
6. On the RHEL 6 host, add a "Red Hat Enterprise Linux Server - Extended Life Cycle Support" product certificate to /etc/pki/product.
7. On the hypervisor, force a virt-who run by stopping the virt-who service and running `virt-who -od`.
8. Verify that the RHEL 6 system is reported as a virtual guest of the hypervisor.
9. On the RHEL 6 host, run `subscription-manager attach --auto`.

Expected Results:
Guest subscriptions from the Extended Life Cycle Support and Virtual Datacenters subscriptions are attached to the RHEL 6 system. The "Red Hat Enterprise Linux 6 Server - Extended Life Cycle Support (RPMs)" repository is available to the guest. When examining the entitlement certificate for the Extended Life Cycle Support subscription on the RHEL 6 system using `rct cat-cert /etc/pki/entitlement/<entitlement serial>.pem`, the "Red Hat Enterprise Linux 6 Server - Extended Life Cycle Support (RPMs)" repository is listed in the "Content" section of the output.

Actual Results:
Guest subscriptions from the Extended Life Cycle Support and Virtual Datacenters subscriptions are attached to the RHEL 6 system. The "Red Hat Enterprise Linux 6 Server - Extended Life Cycle Support (RPMs)" repository is available to the guest. When examining the entitlement certificate for the Extended Life Cycle Support subscription on the RHEL 6 system using `rct cat-cert /etc/pki/entitlement/<entitlement serial>.pem`, the "Red Hat Enterprise Linux 6 Server - Extended Life Cycle Support (RPMs)" repository is listed in the "Content" section of the output.

Comment 33 errata-xmlrpc 2022-07-05 14:28:57 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.11 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5498

Comment 34 Nikos Moumoulidis 2022-09-19 12:47:27 UTC
*** Bug 2122621 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.