Skip to content

Conversation

@bobfuru
Copy link
Contributor

@bobfuru bobfuru commented Feb 12, 2021

BZ1896084
Adds instructions for removing finalizers to support volume snapshot delete operations. Includes note that force option is not sufficient.

@bobfuru bobfuru added this to the Future Release milestone Feb 12, 2021
@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 12, 2021
@bobfuru
Copy link
Contributor Author

bobfuru commented Feb 12, 2021

@huffmanca and @duanwei33 PTAL for technical and QE review. Also, please confirm that this is for 4.7+ only. (CSI Snapshot is GA in 4.7.) Thanks.

@netlify
Copy link

netlify bot commented Feb 12, 2021

Deploy preview for osdocs ready!

Built with commit b484bf1

https://deploy-preview-29475--osdocs.netlify.app

@huffmanca
Copy link
Contributor

I'm very hesitant on including instructions for removing VolumeSnapshot finalizers as the default documentation. What I'd do is:

  1. Leave the current instructions alone. These should be sufficient for the majority of use-cases.
  2. Add an optional section after the existing instructions. This should say something similar to the following:

While the above instructions satisfy the majority of delete operations, there are some circumstances where the
VolumeSnapshot is not successfully deleted. In this case it is required to remove the existing Finalizers from the
VolumeSnapshot resource for the delete operation to continue....
IMPORTANT: Only remove the Finalizers if you are confident that there are no existing references, from either
PersistentVolumeClaims or VolumeSnapshotContents, to the VolumeSnapshot resource.

Then in this optional section we can include the oc patch and oc delete commands.

@bobfuru
Copy link
Contributor Author

bobfuru commented Feb 16, 2021

@huffmanca Thanks for the feedback! I reworked this so that it ends as an optional set of steps to follow if the initial default instructions are not enough. I dropped "it is required/must" wording because it falls in the "optional" step, so hopefully your suggested meaning still remains. PTAL and let me know if this ordering is logical to you.

@duanwei33
Copy link

@bobfuru I noticed this section name is Deleting a volume snapshot, so from the user side, we need a common use case and an optional part to introduce this bug fix.
In common part(I think the previous process is not complete), the oc delete command need to be listed to delete volumesnapshot or/and VolumeSnapshotContent, as you mentioned, if the deletionPolicy is "Delete", the VolumeSnapshotContent will be deleted alone with the volumesnapshot; if the deletionPolicy is "Retain", VolumeSnapshotContent will remain and oc delete VolumeSnapshotContent could be introduced here if needed.
After that, we can use the oc patch and oc delete for the exception case.

@bobfuru
Copy link
Contributor Author

bobfuru commented Feb 24, 2021

Thanks, @duanwei33! I'm not sure that I fully captured what you are suggesting but could you PTAL and let me know if the ordering and wording make sense with my latest update?

@duanwei33
Copy link

Thanks, @duanwei33! I'm not sure that I fully captured what you are suggesting but could you PTAL and let me know if the ordering and wording make sense with my latest update?

Hi @bobfuru, thanks for the update, yes this is what I mean to. Just one comment, deleting volumesnapshotcontent depends on the user requirement in the following section, so do you think the update or something like that is ok?

Delete the volume snapshot:

$ oc delete volumesnapshot <volumesnapshot_name>
Example output
volumesnapshot.snapshot.storage.k8s.io "mysnapshot" deleted

If the deletion policy is Retain and you want to delete volumesnapshotcontent object, enter the following commands:

$ oc delete volumesnapshotcontent <volumesnapshotcontent_name>

@bobfuru
Copy link
Contributor Author

bobfuru commented Feb 25, 2021

Hi @bobfuru, thanks for the update, yes this is what I mean to. Just one comment, deleting volumesnapshotcontent depends on the user requirement in the following section, so do you think the update or something like that is ok?

Delete the volume snapshot:

$ oc delete volumesnapshot <volumesnapshot_name>
Example output
volumesnapshot.snapshot.storage.k8s.io "mysnapshot" deleted

If the deletion policy is Retain and you want to delete volumesnapshotcontent object, enter the following commands:

$ oc delete volumesnapshotcontent <volumesnapshotcontent_name>

It's helpful that you pointed out this out. I've made some small tweaks along the lines of your suggestion.

@bobfuru
Copy link
Contributor Author

bobfuru commented Feb 25, 2021

@huffmanca and @duanwei33 Could you both PTAL once more and let me know if this looks good? Thanks.

@duanwei33
Copy link

/LGTM

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 1, 2021
@bobfuru
Copy link
Contributor Author

bobfuru commented Mar 1, 2021

@huffmanca - Ignore my earlier comment, I think this should be backported to all versions back to 4.5, correct?

Copy link
Contributor

@huffmanca huffmanca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some nitpicks and rewording. Otherwise it looks good to me!

@huffmanca
Copy link
Contributor

@bobfuru ,

In regards to backporting, VolumeSnapshots were introduced as tech preview in OCP 4.4. I think we'd need to backport it through all versions to 4.4.

@openshift-ci-robot
Copy link

New changes are detected. LGTM label has been removed.

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Mar 1, 2021
@bobfuru
Copy link
Contributor Author

bobfuru commented Mar 1, 2021

Thanks, @huffmanca!

I made a few small edits to be more in line with your most recent comments. You are correct that CSI snapshot was introduced in 4.4 but now that we're in 4.7 GA, we only support back to 4.5 as 4.4 support has ended.

@bobfuru
Copy link
Contributor Author

bobfuru commented Mar 2, 2021

LGTM from @huffmanca via Slack.
@openshift/team-documentation PTAL

@bobfuru bobfuru added the peer-review-needed Signifies that the peer review team needs to review this PR label Mar 2, 2021
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is existing content and might be out of scope of this PR, but we've been avoiding future tense (e.g., will be). I'll leave it up to you if you want to change it. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I :) updated two instances using future tense in this note.

@bmcelvee bmcelvee added peer-review-done Signifies that the peer review team has reviewed this PR and removed peer-review-needed Signifies that the peer review team needs to review this PR labels Mar 2, 2021
@bmcelvee
Copy link
Contributor

bmcelvee commented Mar 2, 2021

LGTM! Just one optional comment.

@bobfuru bobfuru merged commit e7788ef into openshift:master Mar 2, 2021
@bobfuru
Copy link
Contributor Author

bobfuru commented Mar 2, 2021

/cherrypick enterprise-4.8

@bobfuru bobfuru deleted the BZ1896084 branch March 2, 2021 21:43
@bobfuru
Copy link
Contributor Author

bobfuru commented Mar 2, 2021

/cherrypick enterprise-4.7

@bobfuru
Copy link
Contributor Author

bobfuru commented Mar 2, 2021

/cherrypick enterprise-4.6

@bobfuru
Copy link
Contributor Author

bobfuru commented Mar 2, 2021

/cherrypick enterprise-4.5

@openshift-cherrypick-robot

@bobfuru: new pull request created: #30025

Details

In response to this:

/cherrypick enterprise-4.8

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.

@openshift-cherrypick-robot

@bobfuru: new pull request created: #30026

Details

In response to this:

/cherrypick enterprise-4.7

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.

@openshift-cherrypick-robot

@bobfuru: new pull request created: #30027

Details

In response to this:

/cherrypick enterprise-4.6

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.

@openshift-cherrypick-robot

@bobfuru: new pull request created: #30028

Details

In response to this:

/cherrypick enterprise-4.5

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch/enterprise-4.5 branch/enterprise-4.6 branch/enterprise-4.7 branch/enterprise-4.8 peer-review-done Signifies that the peer review team has reviewed this PR size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants