No installed products after attaching subscriptions

Problem:
When I run subscription-manager list, it consistently returns “No installed products to list”:

# subscription-manager list
No installed products to list

I can see available subscriptions:

# subscription-manager list --available
+-------------------------------------------+
    Available Subscriptions
+-------------------------------------------+

Subscription Name:   Foreman Client
Provides:            
SKU:                 33258753805
Contract:            
Pool ID:             0c69a50b7f22e99b017f27cda6a101b7
Provides Management: No
Available:           Unlimited
Suggested:           1
Service Type:        
Roles:               
Service Level:       
Usage:               
Add-ons:             
Subscription Type:   Standard
Starts:              02/23/2022
Ends:                11/30/2049
Entitlement Type:    Physical

Subscription Name:   AlmaLinux 8.5
Provides:            
SKU:                 171101777747
Contract:            
Pool ID:             0c69a50b7f22e99b017f24aeda7500d7
Provides Management: No
Available:           Unlimited
Suggested:           1
Service Type:        
Roles:               
Service Level:       
Usage:               
Add-ons:             
Subscription Type:   Standard
Starts:              02/22/2022
Ends:                11/30/2049
Entitlement Type:    Physical

Subscription Name:   EPEL 8
Provides:            
SKU:                 700046372791
Contract:            
Pool ID:             0c69a50b7f22e99b017f268fae3e012b
Provides Management: No
Available:           Unlimited
Suggested:           1
Service Type:        
Roles:               
Service Level:       
Usage:               
Add-ons:             
Subscription Type:   Standard
Starts:              02/23/2022
Ends:                11/30/2049
Entitlement Type:    Physical

And I can successfully attach them:

# subscription-manager attach --pool=0c69a50b7f22e99b017f24aeda7500d7
Successfully attached a subscription for: AlmaLinux 8.5
# subscription-manager attach --pool=0c69a50b7f22e99b017f268fae3e012b
Successfully attached a subscription for: EPEL 8

But after attaching the subscriptions, they still don’t show up as installed:

# subscription-manager list
No installed products to list

What am I missing?

Expected outcome:

subscription-manager list shows installed subscriptions.

Foreman and Proxy versions:

3.2.1

Distribution and version:

Foreman server: CentOS 7.9
Client: Alma Linux 8.6

Hi @guertin

What does the /etc/yum.repos.d/redhat.repo file look like on the client?

This only works for redhat products. For anything else, all you can do is check what has been consumed:

# subscription-manager list --consumed
1 Like

subscription-manager repos should show you the repositories available from subscriptions. subscription-manager list shows installed products, which would look like this on a RHEL8 system:

+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux for x86_64
Product ID:   479
Version:      8.6
Arch:         x86_64

But since Alma doesn’t have any RH product certificates, you won’t see that output here.

Thanks! That clears up that problem, but raises another.

I can see the subscriptions with subscription-manager list --consumed:

# subscription-manager list --consumed
+-------------------------------------------+
   Consumed Subscriptions
+-------------------------------------------+
Subscription Name:   AlmaLinux 8.5
Provides:            AlmaLinux 8.5
SKU:                 171101777747
Contract:            
Account:             
Serial:              7218451102974862205
Pool ID:             0c69a50b7f22e99b017f24aeda7500d7
Provides Management: No
Active:              True
Quantity Used:       1
Service Type:        
Roles:               
Service Level:       
Usage:               
Add-ons:             
Status Details:      Subscription is current
Subscription Type:   Standard
Starts:              02/22/2022
Ends:                11/30/2049
Entitlement Type:    Physical

Subscription Name:   EPEL 8
Provides:            EPEL 8
SKU:                 700046372791
Contract:            
Account:             
Serial:              5358537132916186109
Pool ID:             0c69a50b7f22e99b017f268fae3e012b
Provides Management: No
Active:              True
Quantity Used:       1
Service Type:        
Roles:               
Service Level:       
Usage:               
Add-ons:             
Status Details:      Subscription is current
Subscription Type:   Standard
Starts:              02/23/2022
Ends:                11/30/2049
Entitlement Type:    Physical

BUT subscription-manager repos shows no repositories:

# subscription-manager repos
This system has no repositories available through subscriptions.

Is that another Red Hat-only capability? If so, how do I manage packages? Right now all of my hosts in Foreman show a subscription status of green, but zero installable updates, even when installed packages on those hosts are out of date.

Since my original question has been answered and a look at the logs shows that this issue has morphed into something else, I’m going to start another thread with the new issue.

Thanks for the quick responses.