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

[BUG] CentOS Linux 7.9 - wrong baseurls in CentOS-Vault-Base.repo #12

Open
hosekadam opened this issue Aug 22, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@hosekadam
Copy link

hosekadam commented Aug 22, 2024

Describe the bug
In the latest (7.9.63) version of the CentOS 7 box the updates (same for extras, centosplus) repo points to URL for base repo.

Cloud Image
Vagrant, libvirt, eurolinux-vagrant/centos-7 box version 7.9.63

To Reproduce

  • Vagrantfile:
Vagrant.configure("2") do |config|
  config.vm.box = "eurolinux-vagrant/centos-7"
end
  • vagrant up
  • vagrant ssh
  • cat /etc/yum.repos.d/CentOS-Vault-Base.repo
  • see the updates (same for extras, centosplus) repo has wrong URL
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
baseurl=http://vault.centos.org/7.9.2009/os/x86_64
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

Expected behavior
A clear and concise description of what you expected to happen.
Under the updates (same for extras, centosplus) repo should be:

[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
baseurl=http://vault.centos.org/7.9.2009/updates/x86_64
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

Additional context
I used this sed command to fix this issue for updates:

sed -i '/\[updates\]/,/\[/{s|^baseurl=.*|baseurl=http://vault.centos.org/7.9.2009/updates/x86_64|}' /etc/yum.repos.d/CentOS-Vault-Base.repo

And vice versa for the other repos.

@hosekadam hosekadam added the bug Something isn't working label Aug 22, 2024
@AlexBaranowski
Copy link
Member

Thanks for your bug report. I will probably fix it during the weekend :). Sorry for delay, but it's very old image and I have to vert quite thoroughly through image build repository.

I will keep you informed!

@hosekadam
Copy link
Author

@AlexBaranowski If it would help you, this is what I have to do in some different centos 7 vagrant box .cfg file to have the latest packages and have the repos pointing to the vault: https://github.com/oamg/vagrant-uefi-boxes/pull/9/files#diff-e23544ea1a563fbb0e0205721d065bdcc391f4e1fea8655a84c0078d0b08c41c

@AlexBaranowski
Copy link
Member

AlexBaranowski commented Sep 12, 2024

I'm just writing to let you know that we have another problem -> the API for pushing images has changed, I'm working with HashiCorp to fix the problem but it will take some time. Thank you for your patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants