Skip to content

move registries.conf into drop in directory#2525

Merged
martinpitt merged 1 commit into
cockpit-project:mainfrom
Luap99:registries.conf-2
May 4, 2026
Merged

move registries.conf into drop in directory#2525
martinpitt merged 1 commit into
cockpit-project:mainfrom
Luap99:registries.conf-2

Conversation

@Luap99
Copy link
Copy Markdown
Contributor

@Luap99 Luap99 commented Apr 30, 2026

Follow up to[1], with the packaging changes for new config file work[2] we now have vendor overwrites as drop 00-vendor.conf. That file is parsed after /etc/containers/registries.conf and as such the unqualified-search-registries setting is overwritten again.

To ensure the cockpit test file is parsed last put it into the drop in directory as 99-cockpit-podman-test.conf which should also help to make it clear what own/created the file.

This /etc/containers/registries.conf.d directory has been supported for a while already so this works not just with podman 6 but also the previous ones making so not version logic is needed here.

[1] 772987d (move registries.conf format to v2)
[2] containers/container-libs#795

Follow up to[1], with the packaging changes for new config file work[2]
we now have vendor overwrites as drop 00-vendor.conf. That file is
parsed after /etc/containers/registries.conf and as such the
unqualified-search-registries setting is overwritten again.

To ensure the cockpit test file is parsed last put it into the drop in
directory as 99-cockpit-podman-test.conf which should also help to make
it clear what own/created the file.

This /etc/containers/registries.conf.d directory has been supported for a
while already so this works not just with podman 6 but also the previous
ones making so not version logic is needed here.

[1] 772987d (move registries.conf format to v2)
[2] containers/container-libs#795

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
@Luap99
Copy link
Copy Markdown
Contributor Author

Luap99 commented Apr 30, 2026

looks like packit tests passed here so lets see if I can tests against the containers-common rpm changes

@Luap99
Copy link
Copy Markdown
Contributor Author

Luap99 commented Apr 30, 2026

/packit test containers/container-libs#795

@Luap99
Copy link
Copy Markdown
Contributor Author

Luap99 commented Apr 30, 2026

  Problem 2: package cockpit-podman-125.11.gbcdf931-1.fc45.noarch from @commandline requires podman >= 2.0.4, but none of the providers can be installed
  - installed package podman-5:5.8.2-1.fc45.x86_64 conflicts with podman < 5:6 provided by containers-common-102:0.68.0~dev-1.20260429142641348389.pr795.735.g22c059f8fc.fc45.noarch from @commandline
  - package containers-common-102:0.68.0~dev-1.20260429142641348389.pr795.735.g22c059f8fc.fc45.noarch from @commandline conflicts with podman < 5:6 provided by podman-5:5.8.2-1.fc45.x86_64 from rawhide
  - package containers-common-102:0.68.0~dev-1.20260429142641348389.pr795.735.g22c059f8fc.fc45.noarch from @commandline conflicts with podman < 5:6 provided by podman-5:5.8.2-1.fc45.x86_64 from testing-farm-tag-repository

that is expected as the rpm changes only work with podman. I you do not use podman-next packages then I guess we cannot test this here and it does not seem to be testable on containers/podman#28601 either.

Anyhow the change here should be safe enough and you just have to trust it then I guess.

@Luap99
Copy link
Copy Markdown
Contributor Author

Luap99 commented Apr 30, 2026

/packit test

@martinpitt
Copy link
Copy Markdown
Member

This indeed fixes the regression with podman-next (the upstream cockpit revdeps failures), see here. I triggered the integration tests, might be that the drop-in directory does not yet work on older releases.

Copy link
Copy Markdown
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@martinpitt martinpitt merged commit 6a5429a into cockpit-project:main May 4, 2026
37 checks passed
@Luap99 Luap99 deleted the registries.conf-2 branch May 4, 2026 10:35
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 this pull request may close these issues.

2 participants