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
controller: ignore deleted PVs #92
Conversation
Potentially related to this PR (I'm currently running an external-provisioner with this patch):
Line numbers are a bit different because of other changes, but I think that's from sig-storage-lib-external-provisioner/controller/controller.go Lines 1043 to 1055 in bb73692
Should that really be logged as error? I think it is (now?) normal that some work items in the queue get removed. Same with sig-storage-lib-external-provisioner/controller/controller.go Lines 1023 to 1041 in bb73692
|
Just merged #89 which is making the same fix. I agree with you that an object missing from cache should not be logged as an error, it will be logged unnecessarily every single time a volume is deleted+removed from cache since the deletion itself will trigger the informer to call syncVolume again |
It is normal that a volume is still in the work queue after it was deleted, which used to trigger an unnecessary error log message: I1008 18:58:53.808993 1 controller.go:1467] delete "pvc-0e8331f7-de7a-4c0c-a678-724e05c3b716": started I1008 18:58:54.125842 1 controller.go:1482] delete "pvc-0e8331f7-de7a-4c0c-a678-724e05c3b716": volume deleted I1008 18:58:54.159675 1 controller.go:1532] delete "pvc-0e8331f7-de7a-4c0c-a678-724e05c3b716": persistentvolume deleted I1008 18:58:54.159706 1 controller.go:1537] delete "pvc-0e8331f7-de7a-4c0c-a678-724e05c3b716": succeeded E1008 18:58:54.159752 1 controller.go:1056] volume "pvc-0e8331f7-de7a-4c0c-a678-724e05c3b716" in work queue no longer exists
6c52800
to
6694288
Compare
Let's use this PR to get rid of that log message. Commit added and description updated. |
/assign @wongma7 |
/lgtm |
/retest |
whoops /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pohly, wongma7 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 |
It is normal that a volume is still in the work queue after it was
deleted, which used to trigger an unnecessary error log message: