Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong repository name on RedHat #148

Closed
seriv opened this issue Feb 6, 2018 · 5 comments · Fixed by #168
Closed

Wrong repository name on RedHat #148

seriv opened this issue Feb 6, 2018 · 5 comments · Fixed by #168
Milestone

Comments

@seriv
Copy link
Contributor

seriv commented Feb 6, 2018

I get in the output of puppet agent -t:

Error: Execution of '/usr/bin/yum -d 0 -e 0 -y --enablerepo=rhel7-extras install docker-ce' returned 1: Error getting repository data for rhel7-extras, repository not found

Adding

repo_opt => '--enablerepo=rhel-7-server-extras-rpms'

saves the run.

@davejrt
Copy link
Contributor

davejrt commented Feb 8, 2018

What version of RHEL are you running?

My experience with RHEL recently suggests that this repo has been renamed in later versions of the OS? Do you know if that's the case?

@nikdoof
Copy link
Contributor

nikdoof commented Feb 17, 2018

The repo name may be correct if you've manually specified it in your yum.conf, but the RHSM delivered name for the extras repo is rhel-7-server-extras-rpms

[root@monitoring ~]# subscription-manager repos --list
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+

...

Repo ID:   rhel-7-server-extras-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Extras (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/extras/os
Enabled:   0

It seems that rhel7-extras is a hacked together name consisting of the CentOS extras repo (Google suggests that this is the only thing referencing such a name). Ideally if we're picking a default repo name it should be the official RHSM one.

@thatsk
Copy link

thatsk commented Feb 18, 2018

#161

You can try this.

@davejrt
Copy link
Contributor

davejrt commented Feb 18, 2018

@nikdoof thanks for clarifying that. I'm assuming you also have this issue, but are manually working around it at this point? I'm just canvassing for community feedback because I'm surprised this hasn't been brought up more in the past. I can't see any issues in the garethr module that we forked that relates to this.

@nikdoof
Copy link
Contributor

nikdoof commented Feb 21, 2018

@davejrt Yes I guess people are working around the issue, if you're using a local Satellite/Katello instance, mirror or just the CentOS7 repos I guess its not an issue as you're expecting the extras repository to be named something different, but if you're direct feeding off the RHCDN then the repo name is different. Ideally it should be using the out of the box config for RHEL

Here are similar issues reported: #1, #2, #3.

TL;DR: The garethr version solution was to add repo_opt in the first place, rather than correct the default repo name for RHEL7 to the RHSM ID.

Now that i've got some free time i'll actually submit a PR for this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants