-
Notifications
You must be signed in to change notification settings - Fork 90
PWX-33787: Ignore backuplocation not found error during clusterpair deletion. #1507
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
Conversation
|
Can one of the admins verify this patch? |
pp511
left a comment
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.
Along the same line of thought..Is it not possible that Secret still exists and doesn't get cleaned up?
Earlier issue was , there was a return statement if backuplocation is not present which was causing clusterpair not to be deleted. The fix is around that to ignore that error and continue to delete the clusterpair from px. Coming back to if secret can still lie around, unless manually the backuplocation is deleted it should not happen.
|
pp511
left a comment
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.
If backuplocation gets manually deleted, we will not find any ref to the secret, so it will still exists as part of clusterpair deletion flow.
If I understand correctly this is still an issue we can address. Can we file a ticket to track this? We will discuss about the actual implementation when we get to it.
done |
2aa24b1 to
3f13ef3
Compare
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #1507 +/- ##
==========================================
+ Coverage 65.13% 65.19% +0.05%
==========================================
Files 43 43
Lines 5183 5183
==========================================
+ Hits 3376 3379 +3
+ Misses 1481 1479 -2
+ Partials 326 325 -1 ☔ View full report in Codecov by Sentry. |
Signed-Off-By: Diptiranjan
What type of PR is this?
What this PR does / why we need it:
Deleting a namespace can make backuplocation to delete first and it should not block the clusterpair deletion from px.
Does this PR change a user-facing CRD or CLI?:
Is a release note needed?:
Does this change need to be cherry-picked to a release branch?:
Test
➜ stork git:(23.7.3) ✗ kubectl delete ns test1
namespace "test1" deleted
➜ stork git:(23.7.3) ✗ kubectl get clusterpair -A
No resources found
➜ stork git:(23.7.3) ✗ kubectl get backuplocations -ntest1
No resources found in test1 namespace.
➜ stork git:(23.7.3) ✗ kubectl get secret -ntest1
No resources found in test1 namespace.
[root@dipti5-k8s-pxc-8d21-0 ~]# docker run --rm -e ETCDCTL_API=3 sens/etcdctl --endpoints http://*******:9019 get --prefix=true pwx/dipti5/cluster/pair
[root@dipti5-k8s-pxc-8d21-0 ~]#
Complete result has been updated in PWX-33787,