RHN Yum command: unable to read Consumer identity warning and Solution
Getting the following Waring:
Loaded plugins: Amazon-ID, product-ID, rhui-LB, security, subrole-Manager
Updating certificate-based repositories.
Unable to read Consumer identity
You need to edit the following files
[A]/etc/Yum/pluginconf. d/subscription-manager.conf
[B]/etc/Yum/pluginconf. d/product-id.conf
Use a text editor such as VI:
# Vi/etc/Yum/pluginconf. d/product-id.conf
/Etc/Yum/pluginconf. d/subscription-manager.conf
Set enabled to 0 as follows in both files:
[Main]
Enabled = 0
Save and close the file. Finally, type the following command to clean cache:
Rm -Rfv/var/Cache/Yum /*
Yum clean all
You can now install or update the system:
# Yum install packagenamehere
Or
#Yum-y update
Reference
As per RHEL kb #165803 root cause for this error was:
When RHN classic or RHN satellite is used for updating the system, subscribe-manager shocould be disabled