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

fix: Ignore audit config not found error when removing the log subsystem #1350

Merged
merged 1 commit into from
Dec 22, 2022

Conversation

vadmeste
Copy link
Member

The operator can be in a weird state when removing the log from the tenant yaml. If removing the audit webhook succeed but the removal of the log service fails, the operator will enter in an loop of errors because it is not ignoring 'config not found' error when deleting the webhook config again in the next try.

The commit ignores XMinioConfigError and XMinioConfigNotFoundError though XMinioConfigError is not returned when a config is not found since MinIO server Dec 2022.

The operator can be in a weird state when removing the log from the
tenant yaml. If removing the audit webhook succeed but the removal of
the log service fails, the operator will enter in an loop of errors
because it is not ignoring 'config not found' error when deleting
the webhook config again in the next try.

The commit ignores XMinioConfigError and XMinioConfigNotFoundError
though XMinioConfigError is not returned when a config is not found
since MinIO server Dec 2022.
@vadmeste
Copy link
Member Author

vadmeste commented Dec 6, 2022

@cniackz @pjuarezd, please take a look and let me know if you need any clarification.

@dilverse dilverse merged commit 6b07979 into minio:master Dec 22, 2022
harshavardhana pushed a commit that referenced this pull request Jan 3, 2023
…tem (#1350)

The operator can be in a weird state when removing the log from the
tenant yaml. If removing the audit webhook succeed but the removal of
the log service fails, the operator will enter in an loop of errors
because it is not ignoring 'config not found' error when deleting
the webhook config again in the next try.

The commit ignores XMinioConfigError and XMinioConfigNotFoundError
though XMinioConfigError is not returned when a config is not found
since MinIO server Dec 2022.

Co-authored-by: Anis Elleuch <anis@min.io>
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.

None yet

3 participants