-
Notifications
You must be signed in to change notification settings - Fork 919
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
WorkloadRebalancer doesn't get deleted after TTL. #5985
Comments
cc @chaosi-zju |
Thank you for your feedback @deefreak Why failedIt's a outrageous low-level error. When reconciling for the first time, the Here it is returned directly, skipping the following deletion detection logic. It is expected to judge whether karmada/pkg/controllers/workloadrebalancer/workloadrebalancer_controller.go Lines 93 to 97 in 8fa7c2c
How to fixsee #5989 How to preventAlthough the original e2e had test case for deletion, it was still not robust enough, so this time an new e2e case was added. |
It looks like a fundamental use case. @chaosi-zju can you help to recall why it wasn't discovered in previous development? |
I thought about it a lot this morning, but found only two possibilities:
|
That's possible.
But I didn't ask for a final test report and didn't review the E2E tests part which was reviewed by @XiShanYongYe-Chang. |
/assign @chaosi-zju Great thanks to @deefreak for reporting this issue. I think this issue should be backported to release-1.11 and release-1.12 after fixed on the master. |
Because when I finally submitted the code, I had already added the e2e case, so there was no manual verification. But the e2e case was just right confirm the rebalancer works first and then add TTL for automatic cleanup, rather than directly create a rebalancer with TTL. |
Yea , something like this I saw in the test case. |
@RainbowMango raised 3 PRs |
What happened:
A WorkloadRebalancer created with a TTL(Time To Live) field in the spec is not getting deleted after TTL has reached.
What you expected to happen:
WorkloadRebalancer should get deleted after TTL.
How to reproduce it (as minimally and precisely as possible):
Create a workloadRebalancer with .spec.ttlSecondsAfterFinished . Verify that it is not deleted after TTL has been passed.
Anything else we need to know?:
NA
Possible Cause:
I debugged this and found few issues with the code of the workloadrebalancer_controller.go file.
Environment:
kubectl-karmada version
orkarmadactl version
):The text was updated successfully, but these errors were encountered: