-
Notifications
You must be signed in to change notification settings - Fork 230
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
Provide equivalent of 'oc set volume --overwrite'. #2045
Comments
…rwrite-option Automatic merge from submit-queue. add "overwrite" option to attachPVC view Depends on: openshift/origin-web-common#203 Fixes #2045 Work in progress. Just wanted to begin gathering feedback. Will post images. cc @spadgett @benjaminapetersen
Reopening because there is an issue with the current fix. |
@GrahamDumpleton Making sure I understand the scenario: You want to be able to add the same PVC to different containers in the same pod? Do they need different mount paths? Otherwise you should be able to add it to all containers at once. |
They needed to be added at different mount points in each container and with different sub path from within the volume as it was not intended they use the same data, but different parts of the shared volume. |
As example:
|
Thanks @GrahamDumpleton for explaining.
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. 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/test-infra repository. |
If you attempt to mount a volume in a container of a pod, and try to name the volume definition the same as an existing volume definition, the web console will give you an error and not allow it.
The problem is that the ability to reuse the existing volume definition, when it is the same underlying persistent volume claim, is necessary if you are attempting to share a volume between two different containers within the same pod.
When using the command line you can override any such error by using the
oc set volume --overwrite
option. A similar ability is needed in the web console.There are possibly two choices. If the error comes up, show a checkbox to allow you to overwrite it. Or, maybe not even show the error if the volume definition exists but is for the same persistent volume claim. That is, make it intelligent enough to know that it can reuse the existing volume definition which has already been created for the same persistent volume claim.
Note that you cannot just create a second volume definition for the same underlying persistent volume as it seems having multiple volume definitions with different names, but for the same underlying persistent volume claim, against the one deployment configuration, cause deployment to hang.
The text was updated successfully, but these errors were encountered: