Bug 2059375

Summary: VMs Migrating are Losing ELS Subscriptions and Repos for RHEL 6
Product: Red Hat Satellite Reporter: Brad Buckingham <bbuckingham>
Component: CandlepinAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Danny Synk <dsynk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: aganbat, alsouza, aperotti, hyu, juwatts, ktordeur, kurathod, mjia, nlager, nmoumoul, prakgupt, rdesouza, redakkan, rkarimpa, saydas, zhunting
Target Milestone: 6.10.4Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: candlepin-4.0.16-1, candlepin-4.1.11-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1962410 Environment:
Last Closed: 2022-03-29 14:48:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 7 Danny Synk 2022-03-24 19:42:53 UTC
Verified on Satellite 6.10.4 (candlepin-4.0.16-1.el7sat.noarch).

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.10.4.
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 11 errata-xmlrpc 2022-03-29 14:48:55 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 (Satellite 6.10.4 Async Bug Fix Update), 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/RHBA-2022:1116