-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman-remote: default PullPolicy must be missing instead of empty str #12210
Conversation
If registry is remote default pull policy must be `missing` instead of remote. Since `empty str == pullpolicy {always}` for more context on this behaviour check containers#10739 [NO TESTS NEEDED] Signed-off-by: Aditya Rajan <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: flouthoc 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 |
@afbjorklund @vrothberg It seems we are passing empty string in case of |
I don't see any changes in behaviour. Possibly the old server (3.2.1) didn't have any API field to send the "policy" flag in, it seems it was added in 3.4.1 ? |
@afbjorklund I think yes it was introduced after #10739. Could you try with version |
The moral of the story is that you always need to match the podman client with the server, I suppose. |
Podman 3.2.1 was the latest version for Ubuntu 21.10 https://packages.ubuntu.com/search?keywords=podman Otherwise one would have to go back to the vendor packages (Kubic) again, instead of using the system packages ? Or use the static binaries perhaps, for the older clients. |
@afbjorklund were you able to try this out with |
I think the default policy must be set on the server side and never the client. We control |
@vrothberg PTAL |
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.
@vrothberg I think PR added a default to |
I agree this should be handled on the remote side of the connection. |
Need to try again with 3.4.1 client towards a 3.4.1 server, but I suspect that it works (or else that release does not) ? I was expecting a pull policy of "missing" for |
Confirm that the 3.4.1 server works with the 3.4.1 client:
And also that the 3.4.1 server works with the 3.2.1 client:
The problem is with the 3.2.1 server and the 3.4.1 client. Unfortunately, that is also the scenario with lima and brew... |
If this gets fixed in the server, then only the server will matter. |
If registry is remote default pull policy must be
missing
instead ofremote. Since
empty str == pullpolicy {always}
for more context onthis behaviour check #10739
[NO TESTS NEEDED]
Closes: #12201