Skip to content

RFC: Enable CRB by default for AlmaLinux 10+ - #10

Merged
Conan-Kudo merged 1 commit into
AlmaLinux:masterfrom
Conan-Kudo:crb-enable
May 29, 2025
Merged

Conan-Kudo merged 1 commit into
AlmaLinux:masterfrom
Conan-Kudo:crb-enable

Conversation

@Conan-Kudo

Copy link
Copy Markdown
Contributor

No description provided.

@Conan-Kudo Conan-Kudo added the accepted for discussion ALESCo is considering this proposal and would like to hear from the community label May 13, 2025
@jonathanspw

jonathanspw commented May 13, 2025 •

Copy link
Copy Markdown
Member

+1. I meant to PR/RFC this myself due to the EPEL reasons mentioned.

@andrewlukoshko

Copy link
Copy Markdown
Member

This is deviation from RHEL obviously. And yes it'll make EPEL users life a little easier if they're not very familiar with EPEL and how to use it correctly. But:

  1. We often hear that our users have AlmaLinux in testing/staging and RHEL in prod. And having different behavior by default is undesirable.
  2. When we released our first release, AlmaLinux 8.3, we had PowerTools repo enabled by default. For same reasons you mentioned in RFC. And we received some critics about this right after public release because you guys are not 1:1 RHEL then, and had to disable. We're not 1:1 anymore but it's still not clear for me why we should be different to RHEL here.

I'd still like to see AlmaLinux as RHEL drop-in replacement, not as something RHEL-based but better in a way we think it's better. Having different configuration by default is very noticeable and doesn't help with this.

@Conan-Kudo

Copy link
Copy Markdown
Contributor Author

We often hear that our users have AlmaLinux in testing/staging and RHEL in prod. And having different behavior by default is undesirable.

In practice, these users are going to be enabling CRB on their systems because EPEL requires it.

When we released our first release, AlmaLinux 8.3, we had PowerTools repo enabled by default. For same reasons you mentioned in RFC. And we received some critics about this right after public release because you guys are not 1:1 RHEL then, and had to disable. We're not 1:1 anymore but it's still not clear for me why we should be different to RHEL here.

The biggest reason is that selinux-policy is getting split into two and part of it will be in CRB. This will become a dependency for EPEL itself and the nature of DNF's handling of dependencies means that our support burden will become much higher if it is not enabled by default.

@Conan-Kudo

Copy link
Copy Markdown
Contributor Author

I'd still like to see AlmaLinux as RHEL drop-in replacement, not as something RHEL-based but better in a way we think it's better. Having different configuration by default is very noticeable and doesn't help with this.

Frankly, I think the delta we take for the higher usability for our users is worth it. And not being 1:1 with RHEL gives us an opportunity to fix usability problems that RHEL has because we don't have the same constraints they have.

@jonathanspw

Copy link
Copy Markdown
Member

Please use RFC # 0006 for this RFC.

@jonathanspw jonathanspw added vote at next meeting This proposal will be voted on at the next meeting and removed vote at next meeting This proposal will be voted on at the next meeting labels May 13, 2025
@jonathanspw

Copy link
Copy Markdown
Member

Removing the voting tag for tomorrow's meeting. We can discuss tomorrow and potentially vote, or vote async. Since we have a bit of time before 10's GA there's no reason to rush on this. Worst case we'll get it at the next meeting on the 28th if not before with async voting.

@iseletsk

Copy link
Copy Markdown

What are the other options?
Whose life are we trying to simplify?

Overall, I prefer Alma to stay close to RHEL - but it doesn't mean we cannot add tooling to make people's life easier. As long as the default/out-of-the-box behavior doesn't differ.

@jonathanspw

Copy link
Copy Markdown
Member

What are the other options? Whose life are we trying to simplify?

Overall, I prefer Alma to stay close to RHEL - but it doesn't mean we cannot add tooling to make people's life easier. As long as the default/out-of-the-box behavior doesn't differ.

Mostly for EPEL users, which is a large portion of AlmaLinux users.

We discussed this in today's meeting, but didn't vote on it. Most ALESCo members are leaning towards this being a positive change that we should implement but we want more time to look into possible issues or incompatibilities this may bring.

@Conan-Kudo can you add additional information to the RFC about the problems with the selinux package in EPEL as you mentioned in the meeting? I think that will help everyone to understand the reasoning for this proposal better.

@carlwgeorge

Copy link
Copy Markdown

We often hear that our users have AlmaLinux in testing/staging and RHEL in prod. And having different behavior by default is undesirable.

This is an anti-pattern that in my opinion should be discouraged. People paying for RHEL in production can get free RHEL in non-production via the Developer Subscription for Teams. Or they can use Alma in both non-production and production. It is understandable to want general RHEL compatibility so that applications work, but demanding identical behavior between two different distros is not reasonable. It's not fair to hold back the user experience for users that are all-in on Alma to satisfy users that are holding onto an outdated anti-pattern.

@Conan-Kudo

Copy link
Copy Markdown
Contributor Author

From @jonathanspw:

@Conan-Kudo can you add additional information to the RFC about the problems with the selinux package in EPEL as you mentioned in the meeting? I think that will help everyone to understand the reasoning for this proposal better.

This is now done.

@jonathanspw

Copy link
Copy Markdown
Member

We often hear that our users have AlmaLinux in testing/staging and RHEL in prod. And having different behavior by default is undesirable.

This is an anti-pattern that in my opinion should be discouraged. People paying for RHEL in production can get free RHEL in non-production via the Developer Subscription for Teams. Or they can use Alma in both non-production and production. It is understandable to want general RHEL compatibility so that applications work, but demanding identical behavior between two different distros is not reasonable. It's not fair to hold back the user experience for users that are all-in on Alma to satisfy users that are holding onto an outdated anti-pattern.

I think it's worth noting that we serve the interests of AlmaLinux users first. Whether or not people use AlmaLinux in dev and RHEL in production, or the inverse, is really not the concern or of any problem to us. If Red Hat prefers people to use RHEL dev licenses for dev and then RHEL in prod, well, that is a Red Hat problem.

As it stands, AlmaLinux in dev and RHEL in production is a use case we know of, as is AlmaLinux in both dev and prod. We have to cater to both cases and I think we should weigh that against the (much improved) user experience of enabling CRB by default and what, if any, use cases or compatibilities this would negatively impact.

That said, I'm leaning towards enabling CRB by default being a good thing. I think the good of enabling CRB by default for improving the UX with EPEL outweighs the downside of being (slightly) less in-line with RHEL defaults and it seems, to me at least, that anyone using AlmaLinux in dev and then RHEL in production that finding that CRB simply needs to be enabled on RHEL wouldn't be a big ordeal to those folks.

For non-EPEL and non-CRB users, the downside mentioned in the PR seems accurate as the only downside - a trivial increase in repo processing time in dnf. Nothing will force the non-EPEL and non-CRB users into actually installing packages from CRB, so I can't think of any reason that would be an issue for those folks.

@bennyvasquez

Copy link
Copy Markdown
Member

I agree this is a usability problem, and it has been a problem for a long time. As this affects CentOS Stream (and all of the OSes that are downstream in some way), has there been a recent discussion about changing this there?

@metalefty

Copy link
Copy Markdown
Member

I see the point, but I'm not in favour of changing the default. As the change is intended for EPEL users, I would say it would be better to enable the CRB repo in the %post script during installation of epel-release.

diff --git a/epel-release.spec b/epel-release.spec
index d78d98a..57c3b0c 100644
--- a/epel-release.spec
+++ b/epel-release.spec
@@ -73,8 +73,7 @@ install -D -pm744 -t %{buildroot}%{_bindir} %{SOURCE31}
 # Doing a check to see if crb is enabled is as hard and resource intense as enabling or disabling crb.
 #   So we will say crb is recommended, without first checking.  But only on the initial install.
 if [ "$1" -eq 1 ] ; then
-  echo "Many EPEL packages require the CodeReady Builder (CRB) repository."
-  echo "It is recommended that you run %{_bindir}/crb enable to enable the CRB repository."
+  /usr/bin/crb enable
 fi

@Conan-Kudo

Copy link
Copy Markdown
Contributor Author

That doesn't help solve the problem this proposal addresses.

@metalefty

metalefty commented May 21, 2025 •

Copy link
Copy Markdown
Member

Wouldn't it be sufficient to make sure to enable CRB after installing epel-release and before installing the first EPEL package? The change I suggested does that. Point me if I missed something a issue the proposal try to address.

As mentioned in epel-release, I agree with enabling CRB usign EPEL but not default, before installing first EPEL package.

Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run %{_bindir}/crb enable to enable the CRB repository.

@Conan-Kudo

Copy link
Copy Markdown
Contributor Author

No, because the problem is that weak dependencies for packages not available a dependency resolution time are ignored for life. And with selinux-policy getting split into two with part of it in CRB, this becomes a critical problem.

(It was always a problem, but now it's worse since now packages will look broken due to missing policies.)

@Conan-Kudo Conan-Kudo added vote at next meeting This proposal will be voted on at the next meeting and removed accepted for discussion ALESCo is considering this proposal and would like to hear from the community labels May 24, 2025
@Conan-Kudo
Conan-Kudo marked this pull request as ready for review May 26, 2025 14:28
@codyro

codyro commented May 28, 2025

Copy link
Copy Markdown
Member

Regarding the CRB discussion—I’ve been giving this some thought, particularly around scenarios where diverging from upstream RHEL behavior could lead to unintended consequences.

One specific case to consider: organizations that have been maintaining their own internal packages may encounter issues if CRB is enabled by default. This could introduce:

  • Conflicting namespaces
  • Unexpected upgrades or behavior, depending on the specific RPMs, release versions, etc.

While I still support moving forward with enabling CRB by default (+1 from me), I do think it reinforces the importance of clearly documenting and communicating the change.

@jonathanspw

Copy link
Copy Markdown
Member

I'm +1 on this.

I did more thinking on this issue and it will result in an improved user experience across the board - even not tied to EPEL. There are plenty of build deps in CRB that people need when doing normal work and having CRB enabled by default removes a potential point of frustration/time waste in their workflow.

Our focus on compatibility is already "if it runs on RHEL it will run on AlmaLinux" and the inverse of this argument doesn't make as much sense (AlmaLinux -> RHEL) given our other changes, let's say hardware enablement. If someone has an old Mellanox ConnectX-3 card running on AlmaLinux, that's not going to work on RHEL, and it'd take a lot more than simple repository enablement to make it work in that case.

If we always focus on the AlmaLinux -> RHEL case we won't be able to fully embrace our new direction of "more than a clone". I think we should always consider this use-case, but in this case I think the benefit of enabling CRB by default outweighs the "incompatibility" brought by it. In this case it just means they'd have to enable CRB on RHEL which is at least something that the users could work through, unlike the hardware enablement case.

@jonathanspw

Copy link
Copy Markdown
Member

This was approved at the last ALESCo meeting.

Vote results: +4, 0, -1 (4 in favor, 0 abstained, 1 not in favor).

https://wiki.almalinux.org/alesco/meeting-minutes/2025-05-28.html#rfc-enable-crb-by-default-for-almalinux-10

Comment thread rfcs/0006-enable-crb-on-almalinux-10.md Resolved
@Conan-Kudo
Conan-Kudo merged commit c2334a6 into AlmaLinux:master May 29, 2025
@Conan-Kudo
Conan-Kudo deleted the crb-enable branch May 29, 2025 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vote at next meeting This proposal will be voted on at the next meeting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants