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
Stop considering nodes without kubevirt.io/schedulable
label when finding lowest TSC frequency on the cluster
#10182
Stop considering nodes without kubevirt.io/schedulable
label when finding lowest TSC frequency on the cluster
#10182
Conversation
62b5598
to
6adf3e5
Compare
/cc @rmohr |
/retest-required |
/approve |
} | ||
|
||
return true | ||
return node.Labels[virtv1.NodeSchedulable] == "true" |
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 just want to point out that this will be changed to false if e.g. the virt-handler daemonset needs to pull an image for a long time during update, or if there are other issues on virt-handler. As a consequence we may even exclude this node while there are actually VMs running on 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.
Thank you @rmohr, that's a good point!
Added, PTAL.
Add two new filter predicates that would be used to filter nodes for TSC frequency calculations: Or(): Can be used to express logical or between multiple filters, e.g. Or(filter1, filter2). IsNodeRunningVmis(vmiStore): returns a filter that includes the node if VMIs are running on it. This way nodes that are considered for TSC frequency calculations need to be either schedulable or have VMIs running on it. Signed-off-by: Itamar Holder <iholder@redhat.com>
Signed-off-by: Itamar Holder <iholder@redhat.com>
/test pull-kubevirt-e2e-k8s-1.26-sig-storage |
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.
/approve
/lgtm
Let's see that we can investigate if we can get a clearer signal from the daemonset if we expect our daemon to be there on the long term, replacing this logic.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: acardace, rmohr 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 |
/retest-required |
@iholder101: The following test failed, say
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. I understand the commands that are listed here. |
What this PR does / why we need it:
This is a follow-up to #10169.
It basically reverts the previous changes and instead filters nodes without
kubevirt.io/schedulable
label from the TSC discovery.For more info:
Fixes #10181
Release note: