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

Ignore NotFound errors on GlobalNetworkSet delete #181

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

ffilippopoulos
Copy link
Member

We saw a case where apiserver returned a not found error when requesting the deletion of a GlobalNetworkSet:

2025-01-08T08:00:03.020Z [INFO]  semaphore-policy: Could not find network set in store, will try deleting from calico: resource=merit-cbc-cbc-ordering-platform-executor
2025-01-08T08:00:03.218Z [ERROR] semaphore-policy: failed to sync netset to calico GlobalNetworkSets: id=merit-cbc-cbc-ordering-platform-executor error="globalnetworksets.projectcalico.org \"merit-cbc-cbc-ordering-platform-executor\" not found"

The result was retrying every second, until a new event restored the missing object.
At this point, we can consider the object deleted since apiserver cannot find a ref to it

We saw a case where apiserver returned a not found error when requesting
the deletion of a GlobalNetworkSet:
```
2025-01-08T08:00:03.020Z [INFO]  semaphore-policy: Could not find network set in store, will try deleting from calico: resource=merit-cbc-cbc-ordering-platform-executor
2025-01-08T08:00:03.218Z [ERROR] semaphore-policy: failed to sync netset to calico GlobalNetworkSets: id=merit-cbc-cbc-ordering-platform-executor error="globalnetworksets.projectcalico.org \"merit-cbc-cbc-ordering-platform-executor\" not found"
```
The result was retrying every second, until a new event restored the
missing object.
At this point, we can consider the object deleted since apiserver cannot
find a ref to it
@ffilippopoulos ffilippopoulos merged commit 91a2714 into main Jan 9, 2025
7 checks passed
@ffilippopoulos ffilippopoulos deleted the ignore-delete-not-found branch January 9, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants