View Issue Details

IDProjectCategoryView StatusLast Update
0000082AlmaLinux-8almalinux-releasepublic2021-05-28 10:50
Reporterziex Assigned Toalukoshko  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Summary0000082: almalinux.repo contains all repos - not RHEL behavior
Description/etc/yum.repos.d contains "almalinux.repo" which has all repos in it.
Normal behavior is to have a .repo file per repository.

This causes trouble with CF systems that assume RHEL structure.
TagsNo tags attached.
abrt_hash
URL

Activities

alukoshko

2021-05-26 08:41

administrator   ~0000215

Hello.
Actually RHEL has only one repo file: /etc/yum.repos.d/redhat.repo, so AlmaLinux follows that behavior.
Separate files for every repo is CentOS behavior.

Could you provide more information about troubles with CF systems?

ziex

2021-05-26 08:58

reporter   ~0000216

You are absolutely right, that is my mistake.

Furthermore, it turns out that the issue I am facing is not even due to repos being defined in one file rather than multiple files. It is because of different casing.

The RHEL repo in question is called codeready-builder-for-rhel-8-x86_64-rpms - CentOS calls it PowerTools.
AlmaLinux decided to call it powertools. Same name as CentOS, but different casing.

In this particular case I use Puppet for enabling the repo:

    yumrepo { 'PowerTools':
      enabled => '1',
    }

This works on CentOS, and Puppet will actually also work with the combined repo-file - however, for AlmaLinux the name of the repo is "powertools" and not "PowerTools".

ziex

2021-05-26 09:00

reporter   ~0000217

So my request would be to ask if powertools can be named into PowerTools, so that existing configuration management for CentOS will continue working after converting to AlmaLinux.

alukoshko

2021-05-26 09:04

administrator   ~0000218

Here is CentOS 8.3 PowerTools repo file.

As you can see they use powertools repo id, not PowerTools.
Maybe there is a some code in Puppet that allows any casing for CentOS?
Anyway could you please try:
    yumrepo { 'powertools':
      enabled => '1',
    }
On both CentOS and AlmaLinux?

sh-4.4# cat /etc/yum.repos.d/CentOS-Linux-PowerTools.repo
# CentOS-Linux-PowerTools.repo
#
# The mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client. You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the mirrorlist does not work for you, you can try the commented out
# baseurl line instead.

[powertools]
name=CentOS Linux $releasever - PowerTools
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=PowerTools&infra=$infra
#baseurl=http://mirror.centos.org/$contentdir/$releasever/PowerTools/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

ziex

2021-05-27 06:44

reporter   ~0000228

Confusing. I did some more digging around, because I was 100% sure that it used to work with "PowerTools" - and it did. I developed the Puppet module on C8 and it was tested many times at the time. (And now it is time to put it into production, so I installed Alma.)

It seems that CentOS changed from "PowerTools" to "powertools" when they went from "CentOS-PowerTools.repo" to "CentOS-Linux-PowerTools.repo" in the centos-repos package.. when preparing for Stream, I assume.

They added: https://git.centos.org/rpms/centos-repos/blob/b759b17557/f/SOURCES/CentOS-Linux-PowerTools.repo
They removed: https://git.centos.org/rpms/centos-repos/blob/161103ecd49ed74be1603f7f2d731f4f1712b748/f/SOURCES/CentOS-PowerTools.repo

In this commit:
https://git.centos.org/rpms/centos-repos/c/b759b17557

I will change to "powertools" instead, as it should work on both c8 and alma, if they are up to date.

alukoshko

2021-05-28 10:10

administrator   ~0000243

Is "powertools" works fine now?

ziex

2021-05-28 10:49

reporter   ~0000244

Yes. Issue can be closed.

alukoshko

2021-05-28 10:50

administrator   ~0000245

Great! Thanks for update.

Issue History

Date Modified Username Field Change
2021-05-26 06:40 ziex New Issue
2021-05-26 08:41 alukoshko Note Added: 0000215
2021-05-26 08:58 ziex Note Added: 0000216
2021-05-26 09:00 ziex Note Added: 0000217
2021-05-26 09:04 alukoshko Note Added: 0000218
2021-05-27 06:44 ziex Note Added: 0000228
2021-05-28 10:10 alukoshko Note Added: 0000243
2021-05-28 10:10 alukoshko Assigned To => alukoshko
2021-05-28 10:10 alukoshko Status new => feedback
2021-05-28 10:49 ziex Note Added: 0000244
2021-05-28 10:49 ziex Status feedback => assigned
2021-05-28 10:50 alukoshko Note Added: 0000245
2021-05-28 10:50 alukoshko Status assigned => closed
2021-05-28 10:50 alukoshko Resolution open => no change required