auto attach does not attach VDC subscription after VM is migrated to another host

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux (RHEL) 6.10
  • Red Hat Enterprise Linux (RHEL) 7
  • subscription-manager-1.20.10-8.el6.x86_64 and below
  • subscription-manager-1.24.13-3.el7_7.x86_64
  • additional Red Hat Products installed, for example JBoss Enterprise Application Platform 7.2

Issue

  • After migration of a VM subscriptions seems to get lost.
  • If a system has two products installed and executes subscription-manager attach --auto to subscribe the RHEL product, it fails, even though there is a subscription available.

Resolution

  • Red Hat is aware of this behavior and is being addressed in the Bugzilla This content is not included.1759006.

  • As a workaround please follow the steps below

    • Removing all product subscriptions and running auto attach works.
        # subscription-manager remove --all
        # subscription-manager attach --auto
    
    • To verify all subscriptions
       # subscription-manager list --installed
       # subscription-manager list --consumed
    

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

  • Auto attach will not mix SLAs once a system has at least one subscription attached with a particular SLA.

  • More concretely, that JBoss subscription has an SLA of "Premium". Once that JBoss subscription is attached, auto attach will not attach the VDC subscription which is SLA "standard".

Diagnostic Steps

  1. Have RHEL and JBoss product installed and migrate the VM to another Hypervisor

  2. Start with JBoss subscription subscribed and RHEL not subscribed

  3. Run the subscription-manager command to attach the subscription

        # subscription-manager remove --all
           local certificates have been deleted.
           subscriptions removed at the server.
    
        # subscription-manager attach --pool 
             8a99f9ad6d5fa32c016d6240568a01a4
             Successfully attached a subscription for: Red Hat JBoss Enterprise 
             Application Platform, 64-Core Premium
    
        # subscription-manager attach refresh
            local certificate has been deleted.
            All local data refreshed
    
         # subscription-manager attach --auto
        Installed Product Current Status:
        Product Name: JBoss Enterprise Application Platform
        Status:       Subscribed
    
        Product Name: Red Hat Enterprise Linux Server
        Status:       Not Subscribed       <----------------------------------------- Not Subscribed ---------
    
        Unable to find available subscriptions for all your installed products.
    
SBR

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.