-
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
compat container create: match duplicate mounts correctly #18458
compat container create: match duplicate mounts correctly #18458
Conversation
The logic which checks for duplicated volumes here did not work correctly because it used filepath.Clean(). However the writes to the volDestinations map did not thus the string no longer matched when you included a final slash for example. So we can either call Clean() on all or no paths. I decided to call it on no path because this is what we do right now. Just the check did it. Fixed containers#18454 Signed-off-by: Paul Holzinger <[email protected]>
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Luap99, vrothberg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Podman recently changed the handling of volumes at the container create stage[1] to fix a bug[2] so when the bootstrap image was updated this started failing in the check-provision lanes[3]. [1] containers/podman#18458 [2] containers/podman#18454 [3] https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_kubevirtci/1024/check-provision-k8s-1.26-centos9/1670717915193675776#1:build-log.txt%3A2275 Signed-off-by: Brian Carey <[email protected]>
Podman recently changed the handling of volumes at the container create stage[1] to fix a bug[2] so when the bootstrap image was updated this started failing in the check-provision lanes[3]. [1] containers/podman#18458 [2] containers/podman#18454 [3] https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_kubevirtci/1024/check-provision-k8s-1.26-centos9/1670717915193675776#1:build-log.txt%3A2275 Signed-off-by: Brian Carey <[email protected]>
The logic which checks for duplicated volumes here did not work correctly because it used filepath.Clean(). However the writes to the volDestinations map did not thus the string no longer matched when you included a final slash for example.
So we can either call Clean() on all or no paths. I decided to call it on no path because this is what we do right now. Just the check did it.
Fixed #18454
Does this PR introduce a user-facing change?