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
Generate an Event, and a Prometheus based Alert for non evictable VMs #5392
Generate an Event, and a Prometheus based Alert for non evictable VMs #5392
Conversation
5dd6902
to
6818fa4
Compare
6818fa4
to
0623248
Compare
/retest |
1 similar comment
/retest |
/hold |
4244316
to
88eefe9
Compare
/retest |
/unhold |
88eefe9
to
5882dae
Compare
/retest |
1011abe
to
9929b02
Compare
Signed-off-by: Ezra Silvera <ezra@il.ibm.com>
… migration Signed-off-by: Ezra Silvera <ezra@il.ibm.com>
Signed-off-by: Ezra Silvera <ezra@il.ibm.com>
…able mentric Signed-off-by: Ezra Silvera <ezra@il.ibm.com>
Signed-off-by: Ezra Silvera <ezra@il.ibm.com>
Signed-off-by: Ezra Silvera <ezra@il.ibm.com>
9929b02
to
7eea8f1
Compare
…atus of a VM Signed-off-by: Ezra Silvera <ezra@il.ibm.com>
7eea8f1
to
9023ab5
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
/retest |
1 similar comment
/retest |
/lgtm |
@yuhaohaoyu: changing LGTM is restricted to collaborators In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/lgtm |
@yuhaohaoyu: changing LGTM is restricted to collaborators In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/lgtm |
/approve |
Annotations: map[string]string{ | ||
"description": "Eviction policy for {{ $labels.name }} (on node {{ $labels.node }}) is set to Live Migration but the VM is not migratable", | ||
"summary": "The VM's eviction strategy is set to Live Migration but the VM is not migratable", | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to attempt to succinctly explain to the admin why this is a problem, that this would cause difficulty during node drain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we do that as part of the run-book, where we include full details on the issue (including overview, mitigation, etc.) . Here we just explain the alert itself. If you still think it should go here as well I can add it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR for the runbook is here: kubevirt/monitoring#6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. fair point.
/lgtm
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: stu-gott, yuhaohaoyu 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 |
/test pull-kubevirt-e2e-k8s-1.19-sig-storage |
What this PR does / why we need it:
When the VM eviction strategy is set to LiveMigration and the VM is not migratable currently this is detected only when the eviction is performed.
We want to alert the user/administrator for about this situation as soon as it happen (either when the VM is created or when the VM status is changed to not migratable)
In order to generate the Alert I added a new metric to monitor the VM eviction blocking status.
In addition to the Prometheus alert I also added a regular event to the corresponding virt-handler.
Special notes for your reviewer:
Release note: