Host didn't get subscribed after successful registration in Red Hat Satellite 6.
Environment
- Red Hat Satellite 6.2.x
- Red Hat Enterprise Linux 7.x
Issue
- The virtual machine didn't get the proper
subscription
after sucessfully registration.
# subscription-manager register --org="Red Hat" --activationkey="RHEL-AK"
The system has been registered with ID: 12373cq1-6q2c-4188-97f5-68y92baar4d9
# subscription-manager list --consumed
No consumed subscription pools to list
Resolution
- Environment variable
libexec
was missing.
# virt-what
virt-what: virt-what-cpuid-helper program not found in $PATH
- Set the
environment
variable
oflibexec
:
# export PATH=$PATH:/usr/libexec/
Root Cause
- Environment variable
libexec
was removed. - Satellite considered the host as a physical host and that is why it did not get the expected subscription.
Diagnostic Steps
- Following commands can be used to know if the satellite is considering the virtual machine as a physical machine, following command will generate a .csv file where it will have a column "Virtual" and every host will have status as Virtual column as either Y or N, if it is Y it means this host is virtual.
# hammer csv content-hosts --export --file content-hosts-export.csv --itemized-subscriptions --organization [your_org]
- Satellite will get the host facts using command
subscription-manager facts
. In the following virt.is_guest: True indicates that this machine is virtual machine, whereas in the last command it shows virt.is_guest: False it means the subscription-manager is considering the host as a physical machine.
# subscription-manager facts | tail -n 3
virt.host_type: rhev, kvm
virt.is_guest: True
virt.uuid: ADC3A02E-E970-4F5B-A79E-3F974ED53C55
# subscription-manager facts | tail -n 3
uname.version: #1 SMP Fri Feb 23 18:54:16 UTC 2018
virt.host_type: Not Applicable
virt.is_guest: False
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.