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

RHEL8, epel-modular is installed with the wrong repo-name #246

Closed
ccolic opened this issue Apr 19, 2022 · 0 comments · Fixed by #247
Closed

RHEL8, epel-modular is installed with the wrong repo-name #246

ccolic opened this issue Apr 19, 2022 · 0 comments · Fixed by #247

Comments

@ccolic
Copy link

ccolic commented Apr 19, 2022

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: puppetserver version: 2021.5.0.23 / puppet agent 7.14.0
  • Ruby: 2.7.0
  • Distribution: "Red Hat Enterprise Linux 8.5 (Ootpa)
  • Module version: 5.3.1

How to reproduce (e.g Puppet code you use)

I defined the following data in Hiera to install the built-in epel and epel-modular Repos for RHEL8:

yum::managed_repos:
  - "epel"
  - "epel-modular"

This installs the repos defined at https://github.com/voxpupuli/puppet-yum/blob/v5.3.1/data/repos/RedHat/8.yaml

What are you seeing

When running yum/dnf commands such as dnf check-update I get the following errors:

[root@server ~]# dnf check-update
Updating Subscription Management repositories.
Extra Packages for Enterprise Linux Modular 8 - x86_64                                                           41 kB/s |  93 kB     00:02
Errors during downloading metadata for repository 'epel-modular':
  - Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=modular-epel8&arch=x86_64&infra=$infra&content=$contentdir (IP: 152.19.134.198)
  - Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=modular-epel8&arch=x86_64&infra=$infra&content=$contentdir (IP: 85.236.55.6)
  - Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=modular-epel8&arch=x86_64&infra=$infra&content=$contentdir (IP: 18.159.254.57)
Error: Failed to download metadata for repo 'epel-modular': Cannot prepare internal mirrorlist: Status code: 404 for https://mirrors.fedoraproject.org/metalink?repo=modular-epel8&arch=x86_64&infra=$infra&content=$contentdir (IP: 85.236.55.6)

When checking the URL manually with curl, I get the following error message:

curl -v 'https://mirrors.fedoraproject.org/metalink?repo=modular-epel8&arch=x86_64&infra=$infra&content=$contentdir'
<!-- # repo = modular-epel8 arch = x86_64 error: invalid repo or arch

further down in the output, the valid repo-names are listed as:

# repo=epel-modular-8&arch=aarch64
# repo=epel-modular-8&arch=ppc64le
# repo=epel-modular-8&arch=s390x
# repo=epel-modular-8&arch=x86_64

What behaviour did you expect instead

I expect the repo 'epel-modular' to be installed with the correct URL, setting repo=epel-modular-$releasever and not repo=modular-epel$releasever

Output log

See above.

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.

1 participant