Skip to content
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

Delete the storageclasses during uninstall #556

Conversation

raghavendra-talur
Copy link
Contributor

@raghavendra-talur raghavendra-talur commented Jun 9, 2020

At the time of installation, storageclasses are created for ceph-rbd and cephfs. We remove the same in the uninstall stage.

Failure to delete them is not considered fatal and does not block the uninstallation.

@raghavendra-talur raghavendra-talur force-pushed the rtalur-delete-resources branch 2 times, most recently from 7333390 to b6a23fa Compare June 9, 2020 21:05
@raghavendra-talur
Copy link
Contributor Author

/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 9, 2020
@obnoxxx
Copy link
Contributor

obnoxxx commented Jun 9, 2020

@raghavendra-talur - what's the reason for holding the PR? The code looks good from a superficial look.

switch {
case err == nil:
if existing.DeletionTimestamp != nil {
reqLogger.Info(fmt.Sprintf("StorageClass %s is already marked for deletion", existing.Name))
Copy link
Contributor

Choose a reason for hiding this comment

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

should we exit the flow here? Or do you want to schedule deletion again?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, updated.

The reconcile loop has grown a lot and with more additions coming in it
would be better to handle them in a separate function.

Signed-off-by: Raghavendra Talur <raghavendra.talur@gmail.com>
@raghavendra-talur
Copy link
Contributor Author

/unhold

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 10, 2020
Signed-off-by: Raghavendra Talur <raghavendra.talur@gmail.com>
@raghavendra-talur
Copy link
Contributor Author

@raghavendra-talur - what's the reason for holding the PR? The code looks good from a superficial look.

While testing manually I thought I found an error but turned out to be correct.

I have addressed other comment too and think it is good for review.

@jarrpa @obnoxxx The storageclass for Noobaa isn't created by ocs-operator and therefore isn't handled in this PR. I need to check more on that.

@raghavendra-talur
Copy link
Contributor Author

/retest

1 similar comment
@raghavendra-talur
Copy link
Contributor Author

/retest

@openshift-ci-robot
Copy link

openshift-ci-robot commented Jun 11, 2020

@raghavendra-talur: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/red-hat-storage-ocs-ci-e2e-aws c9e91fa link /test red-hat-storage-ocs-ci-e2e-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

Copy link
Contributor

@obnoxxx obnoxxx left a comment

Choose a reason for hiding this comment

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

Looks good now, thanks!

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 11, 2020
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: obnoxxx, raghavendra-talur

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 11, 2020
@obnoxxx
Copy link
Contributor

obnoxxx commented Jun 11, 2020

/test ocs-operator-e2e-aws

@openshift-merge-robot openshift-merge-robot merged commit a0ed653 into red-hat-storage:master Jun 11, 2020
@raghavendra-talur
Copy link
Contributor Author

/cherrypick release-4.5

@openshift-cherrypick-robot

@raghavendra-talur: new pull request created: #574

In response to this:

/cherrypick release-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.

@raghavendra-talur raghavendra-talur deleted the rtalur-delete-resources branch June 20, 2020 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants