[OSD-22074] Bug Fix for osdctl alerts silence add fails to run pod #545
+33
−13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Working fine on stage cluster, please have a look and try to run on prod, if still reproducible should be some issue with pod
$osdctl alert silence add 2axxxxx --alertname Watchdog --duration 1d
Alert Watchdog has been silenced with id "9a1e660c-817f-4e72-a158-3d2780ee66ca " for duration of 1d by user "mixxxx_rh_sre_xxxx"
$ osdctl alert silence list 2axxxx
Silence Information:
SilenceID: 9a1e660c-817f-4e72-a158-3d2780ee66ca
Status: active
Created By: nobody
Starts At: 2024-04-10T12:04:06.191Z
Ends At: 2024-04-11T12:04:06.180Z
Comment: silence alert
AlertName: Watchdog