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

Disable centos production repo, keep only development enabled. #6229

Draft
wants to merge 1 commit into
base: rhel-10
Choose a base branch
from

Conversation

rvykydal
Copy link
Contributor

@rvykydal rvykydal commented Mar 4, 2025

The issue this patch is trying to resolve is older version of package in developemnt CentOS repository than in the production CentOS repository. For example for gtk package:

Error:
 Problem 1: package gtk3-devel-docs-3.24.43-2.el10.x86_64 from
crb-development requires gtk3 = 3.24.43-2.el10, but none of the providers can be installed
  - cannot install both gtk3-3.24.43-3.el10.x86_64 from appstream and gtk3-3.24.43-2.el10.x86_64 from appstream-development
  - cannot install both gtk3-3.24.43-3.el10.x86_64 from appstream and gtk3-3.24.43-2.el10.x86_64 from appstream
  - package gtk3-devel-3.24.43-3.el10.x86_64 from appstream requires gtk3(x86-64) = 3.24.43-3.el10, but none of the providers can be installed
  - cannot install the best candidate for the job
  - conflicting requests

If it the solution is acceptable, I'll update also anaconda-ci Dockerfile in the same manner?

@rvykydal rvykydal requested a review from jkonecny12 March 4, 2025 11:44
@github-actions github-actions bot added infrastructure Changes affecting mostly infrastructure rhel-10 labels Mar 4, 2025
@jkonecny12
Copy link
Member

I think the proper solution should be to disable the production CentOS Stream repositories and using only the development one. Is there something blocking to do this?

@rvykydal
Copy link
Contributor Author

rvykydal commented Mar 4, 2025

I think the proper solution should be to disable the production CentOS Stream repositories and using only the development one. Is there something blocking to do this?

Agreed, I'll try to.

@rvykydal rvykydal force-pushed the fix-anaconda-rpm-container-build branch from ec98322 to afa221e Compare March 4, 2025 13:38
@rvykydal rvykydal changed the title Do not require best packages for anaconda container builds Disable centos production repo, keep only development enabled. Mar 4, 2025
Just removing the repo file won't help because it would get pulled back
in on 'dnf update -i'.

The issue this patch is trying to resolve is older version of package in
developemnt CentOS repository than in the production CentOS repository.
For example for gtk package:

Error:
 Problem 1: package gtk3-devel-docs-3.24.43-2.el10.x86_64 from
crb-development requires gtk3 = 3.24.43-2.el10, but none of the
providers can be installed
  - cannot install both gtk3-3.24.43-3.el10.x86_64 from appstream and
    gtk3-3.24.43-2.el10.x86_64 from appstream-development
  - cannot install both gtk3-3.24.43-3.el10.x86_64 from appstream and
    gtk3-3.24.43-2.el10.x86_64 from appstream
  - package gtk3-devel-3.24.43-3.el10.x86_64 from appstream requires
    gtk3(x86-64) = 3.24.43-3.el10, but none of the providers can be
installed
  - cannot install the best candidate for the job
  - conflicting requests
@rvykydal rvykydal force-pushed the fix-anaconda-rpm-container-build branch from afa221e to b6c6b5f Compare March 4, 2025 13:45
@rvykydal
Copy link
Contributor Author

rvykydal commented Mar 4, 2025

/kickstar-test --testtype smoke

@rvykydal
Copy link
Contributor Author

rvykydal commented Mar 4, 2025

/kickstart-test --testtype smoke

@rvykydal
Copy link
Contributor Author

rvykydal commented Mar 4, 2025

I think the proper solution should be to disable the production CentOS Stream repositories and using only the development one. Is there something blocking to do this?

Agreed, I'll try to.

@jkonecny12 I updated the PR to disable the production repo.
As you can see in the rpm tests possible downside compared to --nobest and both repos may be that as in this case it can happen that the development repo has significantly older content then the production one.

@rvykydal
Copy link
Contributor Author

rvykydal commented Mar 4, 2025

(Need to fix a typo in the commit message.)

@jkonecny12
Copy link
Member

Something feels fishy here. As I understand it the package lifecycle goes:
development -> nightly -> production

so there shouldn't be a way of getting older packages from development or am I incorrect? I think that this situation happened because someone is trying to downgrade the package but I may be incorrect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Changes affecting mostly infrastructure rhel-10
Development

Successfully merging this pull request may close these issues.

2 participants