[Satellite 6] Virtual guest has an insufficient subscription status although it is a guest on a Hypervisor that has a proper RHEL for VDC subscription assigned

Solution Unverified - Updated

Environment

  • Satellite 6
  • Red Hat Enterprise Linux

Issue

  • Virtual guest shows insufficient subscription even if the Hypervisor is properly attached with VDC subscription and all other guest in this Hypervisor is properly attach with guest subscription:
$ sudo subscription-manager attach --auto

Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status:       Subscribed

$ sudo subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Insufficient

Red Hat Enterprise Linux for Virtual Datacenters, Premium:
- Guest has not been reported on any host and is using a temporary unmapped guest subscription.
  • After 24 hours, the guest losses it's subscription and cannot auto-heal

Resolution

  • In VMware, refresh the changes of the virtual guest to propagate the new virt uuid on the virtual guest itself.

For more KB articles/solutions related to Virt-who and Virtual Datacenter (VDC) Subscriptions Issues, please refer to the Consolidated Troubleshooting Article for Virt-who and Virtual Datacenter (VDC) Subscriptions Issues

Root Cause

  • The underlying hardware of the Hypervisor is refreshed and virtual guest was migrated to another Hypervisor. It created a new virtual UUID in VMware but the changes was not updated to the VM.
    The VM's vmx file shows that the uuid is "uuid.bios = "12 3a bc 4d 56 78 90 e1 23 f4 gh 56 78 90 1i gk" is different than what is shown in the VM's facts /dmidecode.

Diagnostic Steps

  • Verified that virt-who is properly configured and communicating with VMware and other guests of the Hypervisor are properly subscribed.
  • On the Satellite, verified that candlepin and other services are running and Satellite is properly upgraded and running on the latest version (Satellite 6.2.13)
# hammer ping
candlepin:      
    Status:          ok
    Server Response: Duration: 24ms
candlepin_auth: 
    Status:          ok
    Server Response: Duration: 23ms
pulp:           
    Status:          ok
    Server Response: Duration: 40ms
foreman_tasks:  
    Status:          ok
    Server Response: Duration: 19m

*On the client, verified that rhsmcertd service is running:

# systemctl status rhsmcertd 
● rhsmcertd.service - Enable periodic update of entitlement certificates.
   Loaded: loaded (/usr/lib/systemd/system/rhsmcertd.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2018-01-03 00:12:12 AEDT; 2 weeks 5 days ago
 Main PID: 1011 (rhsmcertd)
   CGroup: /system.slice/rhsmcertd.service
           └─1011 /usr/bin/rhsmcertd

*Installed subscription-manager and python-rhsm packages are latest:

subscription-manager-1.19.23-1.el7_4.x86_64.rpm
python-rhsm-1.19.10-1.el7_4.x86_64.rpm

*Veriy if virtual uuid in vCenter is the same with the UUID in the system:

# subscription-manager facts| grep virt.uuid
virt.uuid: 12345678-9abcd-170d-e123-456fgh10igk

# dmidecode | grep -i uuid
	UUID: 12345678-9ABCD-170D-E123-456FGH10IGK
SBR
Product(s)
Components
Category
Tags

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.