-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[release-1.26] OCPBUGS-45908: Only restore container if all bind mounts are defined #8803
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
[release-1.26] OCPBUGS-45908: Only restore container if all bind mounts are defined #8803
Conversation
Also, ensure that the "image" attribute has been provided. Signed-off-by: Krzysztof Wilczyński <[email protected]>
To avoid the situation where a container that is restored via a registry
mounts unexpected host paths into the container, this changes the
restore behaviour of CRI-O.
Previously all bind mounted paths in the original container which were
defined for example like this:
volumeMounts:
- mountPath: /data
name: data-volume
volumes:
- name: data-volume
hostPath:
path: /srv/container/data
Were automatically mounted in the restored container without and
definition necessary. This lead to the situation that the user does not
know which path will be mounted if starting a restored container.
Now CRI-O will refuse to restore a container if not all bind mounts are
defined via the CRI CreateContainer RPC in the CreateContainerRequest
message.
CRI-O will now return an error that will look something likes this:
Error: the container to restore (7f...be) expects following bind mounts defined (/data,/data2)
Now the user has to explicitly add those bind mounts in the same way as
it was done during initial container creation.
Signed-off-by: Adrian Reber <[email protected]>
Signed-off-by: Sascha Grunert <[email protected]>
|
@kwilczynski: This pull request references Jira Issue OCPBUGS-45908, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/cc @cri-o/cri-o-maintainers |
|
/retest |
1 similar comment
|
/retest |
|
/close |
|
@kwilczynski: Closed this PR. In response to this:
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-sigs/prow repository. |
|
@kwilczynski: This pull request references Jira Issue OCPBUGS-45908. The bug has been updated to no longer refer to the pull request using the external bug tracker. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/reopen |
|
@kwilczynski: Reopened this PR. In response to this:
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-sigs/prow repository. |
|
@kwilczynski: This pull request references Jira Issue OCPBUGS-45908, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: kwilczynski 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 |
|
@kwilczynski: The following tests failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
|
/cc @cri-o/cri-o-maintainers |
|
personally I think this can be closed. It's out of upstream support and not used downstream |
@haircommander makes sense! Thank you! |
|
Closing. This backport is no longer needed. |
|
/close |
|
@kwilczynski: Closed this PR. In response to this:
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-sigs/prow repository. |
|
@kwilczynski: This pull request references Jira Issue OCPBUGS-45908. The bug has been updated to no longer refer to the pull request using the external bug tracker. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
This is a manual cherry-pick of commit 429ef7c
/assign kwilczynski
Note
This cherry-pickl brings the following Pull Requests as a dependency: