-
Notifications
You must be signed in to change notification settings - Fork 198
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
Separate the service_destinations section from containers.conf #1566
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sstosh The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
94b93cd
to
e4e1b3f
Compare
Move the service_destinations section from containers.conf to connections.conf. Fixes containers#1515 Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see how this is a breaking change right now? It all depends on how it would be implemented in podman. Arguably writing to But I totally I agree with @vrothberg this needs a proper design first with a migration part. System connections are a fundamental part of podman machine so we should not cause any regressions. |
Lets set up a google doc to design this out. |
@Luap99 @vrothberg could one of you take the lead on this. I think this is fundamentally a good idea, I believe we should break this out, and stop rewriting containers.conf. The name should be made to be less likely to hit __connections.conf or something like that. We need to remove the content from containers.conf man page or at least tell users to look in the connections.conf file. The buildfarm tool should use the new format as well. The output should mention that this comments in this file would not survive machine editing. I think we setup tooling to read from existing containers.conf files and write __connections.conf file if the __connections.conf file does not exist. With the way containers.conf works this should not be a big deal, other then users changes to connections data in continers.conf would no longer be used if the __connections.conf file exists. I believe we need to make this change before podman 4.7. |
We need to write down exactly what we need first. There are other problems besides just rewriting user files. Assume we have
I don't think we need to. We've been living with this behavior for a long time and we have set priorities for Q3. I wished we never introduced this behavior but I don't think it should block buildfarm. I really don't want to spend time on it as I strongly opposed abusing containers.conf as a DB in the first place. |
As long as we guarantee __connections.conf is read after foo.conf, then we are fine. Once __connections.conf exists, it is the only conf for connections to be used. |
It depends on which problems we want to solve, see my other comment:
|
We have the issue you describe now. If a user creates a foo.conf file and we do a removal of connections, the foo.conf file will not be touched even if the connection within it is removed. By moving to a __connnections.conf file that is always processed last we eliminate that issue. |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This is going to be worked on in a different PR, closing. |
Move the service_destinations section from
containers.conf to connections.conf.
Fixes #1515