Can't seem to get yum and subscription-manager to work together

Latest response

Got a frustrating problem here. I have a successfully registered RHEL 7.0 system (used subscription-manager):
[root@xxxxx ~]# subscription-manager list
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 7.0
Arch: x86_64
Status: Subscribed
Status Details:
Starts: 12/12/2014
Ends: 12/11/2015

[root@xxxxx ~]# subscription-manager status
+-------------------------------------------+
System Status Details
+-------------------------------------------+
Overall Status: Current

However, it won't do anything with yum. I consistently get:

[root@xxxxx ~]# yum repolist
Loaded plugins: product-id, subscription-manager
https://cdn.redhat.com/content/eus/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
https://cdn.redhat.com/content/eus/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.

responses with all yum commands. There's no distroverpkg= stanza in yum.conf (never was). Tried yum clean, subscription manager refresh, deleting all of the stuff in /var/cache/yum, all to no avail. Any ideas as to how to resolve this?

Thanks...

Responses

https://cdn.redhat.com/content/eus/ ... <- I wonder where the "eus" part came from. Is it in /etc/yum.repos.d/redhat.repo ?

It was filled in when I ran subscription-manager (I believe). Didn't put it in manually. I found that a bit odd myself.

I have the same output but then it continues and finds the repos. Can you ping? e.g. ping -c4 cdn.redhat.com ?

Update: I spoke to soon, I see error too with eus repo. ( eus = Extended Update Support ). Will test some more.

Just as a test, I cleaned out the existing registration, d/l the latest RHEL 7.0 DVD image from Red Hat and reinstalled. After installation, ran "subscription-manager register --username zzz --auto-attach" and registered the host. Still looking for eus, and still can't do anything with yum... :-(

Hi Jerome,

Out of interest, what does subscription-manager list --consumed report? It sounds like either the auto-attach was suboptimal or there is a firewall issue to the cdn.

Best Regards,
Mark

Try disabling the troublesome repo, e,g,:
subscription-manager repos --disable=rhel-7-server-eus-rpms {if that is the one causing you a problem}
then see if yum update or install commands work.

That helped me! Thank you very much.

my pleasure.

Lots of output, and the bottom is:

SKU: RH3310120
Contract: xxxxx
Account: xxx
Serial: xxxxxxx
Pool ID: 8axxxxxxxxxxf
Active: True
Quantity Used: 1
Service Level: STANDARD
Service Type: L1-L3
Status Details:
Subscription Type: Standard
Starts: 12/12/2014
Ends: 12/11/2015
System Type: Virtual

All looks pretty normal as far as I can tell. No errors reported on the auto-attach.

subscription-manager repos --disable=rhel-7-server-eus-rpms did the trick. I don't know how it got in there, but apparently that repo isn't a happy camper. Thanks a million, Stephen!!!!!

I have raised a ticket internally asking for this to be looked into. More news when I have it.

Update: Problem was caused during the preparation for RHEL7.1 release and was fixed soon after I reported it.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.