Bug 2034484: feat: library-go bump and leader election conventions#795
Conversation
|
Hi @eggfoobar. Thanks for your PR. I'm waiting for a openshift-kni member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
/ok-to-test |
3cc3a48 to
d7198be
Compare
Pull Request Test Coverage Report for Build 2194
💛 - Coveralls |
d7198be to
13aa05a
Compare
| return reservedCPUSet.Result(), isolatedCPUSet, fmt.Errorf("can't allocate odd number of CPUs from a NUMA Node") | ||
| } | ||
| addCoresToCPUSet(reservedCPUSet, max, node.Cores) | ||
| addCoresToCPUSet(*reservedCPUSet, max, node.Cores) |
There was a problem hiding this comment.
I think a rebase is needed to make sure we are aligned with the latest and remove these diffs
There was a problem hiding this comment.
Sounds good, I rebased but that change seems to be coming from the updated kubernetes pkg, the builder return type is a pointer now
There was a problem hiding this comment.
this probably causes the current errors we get in the e2e tests. we will need to take a look track all the cpuset.CPUSet occurrences and handling and see if they are aligned with the change (also in the tests themselves)
There was a problem hiding this comment.
I think you'll also need to examine the functions such as
This should start by looking at the failing tests around cpusets under ci/prow/ci job
There was a problem hiding this comment.
the rebase and the related fixes should be addressed on a separate PR. Do we need kube >= 1.23?
13aa05a to
4058a52
Compare
ffromani
left a comment
There was a problem hiding this comment.
vendor changes should be in their own commit to make the change manageable
| k8s.io/apiextensions-apiserver v0.22.3 | ||
| k8s.io/apimachinery v0.22.3 | ||
| k8s.io/client-go v0.22.3 | ||
| k8s.io/api v0.23.0 |
There was a problem hiding this comment.
what are the minimum dependencies of the library-go version we need for the new leader election mechanism?
There was a problem hiding this comment.
The leader election methods are part of the latest library-go, but just before the 0.23.0 rebase. Given the amount of failures I'll go ahead and just bump to that commit.
| return reservedCPUSet.Result(), isolatedCPUSet, fmt.Errorf("can't allocate odd number of CPUs from a NUMA Node") | ||
| } | ||
| addCoresToCPUSet(reservedCPUSet, max, node.Cores) | ||
| addCoresToCPUSet(*reservedCPUSet, max, node.Cores) |
There was a problem hiding this comment.
the rebase and the related fixes should be addressed on a separate PR. Do we need kube >= 1.23?
4058a52 to
c99b586
Compare
|
I think we should handle the rebase (and fix our code, because the rebase uncovered a bug) separately: #812 |
|
@eggfoobar please rebase, all of the failures should be solved now and your change should apply cleanly |
c99b586 to
13e222e
Compare
| @@ -0,0 +1,36 @@ | |||
| package leaderelection | |||
There was a problem hiding this comment.
this can probably put in pkg/leaderelection (skip utils) but not a big deal, and we can move later
| github.com/openshift/api v3.9.1-0.20191111211345-a27ff30ebf09+incompatible | ||
| github.com/openshift/cluster-node-tuning-operator v0.0.0-20200914165052-a39511828cf0 | ||
| github.com/openshift/custom-resource-status v0.0.0-20200602122900-c002fd1547ca | ||
| github.com/openshift/library-go v0.0.0-20211220195323-eca2c467c492 |
There was a problem hiding this comment.
why another lib bump? can we squash in the previous?
There was a problem hiding this comment.
Absolutely let me squash things up, the bump is to just make sure we're on the latest version that pulls in this PR 1273
| github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect | ||
| github.com/modern-go/reflect2 v1.0.2 // indirect | ||
| github.com/nxadm/tail v1.4.8 // indirect | ||
| github.com/openshift/client-go v0.0.0-20210916133943-9acee1a0fb83 // indirect |
There was a problem hiding this comment.
why yet another lib bump? can we squash in the previous?
Signed-off-by: ehila <ehila@redhat.com>
updated to use new library-go methods for leader election defaults leader election is now defaulting to library-go and uses different configs for SNO topology clusters Signed-off-by: ehila <ehila@redhat.com>
283c03f to
1e45af4
Compare
|
/retitle Bug 2034484: feat: library-go bump and leader election conventions |
|
@eggfoobar: Re-titling can only be requested by trusted users, like repository collaborators. DetailsIn 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. |
|
/retitle Bug 2034484: feat: library-go bump and leader election conventions |
|
@eggfoobar: This pull request references Bugzilla bug 2034484, which is valid. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
No GitHub users were found matching the public email listed for the QA contact in Bugzilla (jhou@redhat.com), skipping review request. DetailsIn 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. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: eggfoobar, yanirq The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm |
|
@eggfoobar: Some pull requests linked via external trackers have merged: The following pull requests linked via external trackers have not merged: These pull request must merge or be unlinked from the Bugzilla bug in order for it to move to the next state. Once unlinked, request a bug refresh with Bugzilla bug 2034484 has not been moved to the MODIFIED state. DetailsIn 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. |
Bumping the library-go dependency to latest, this should take advantage of leader election changes for SNO clusters proposed in this library-go PR
Changes:
Signed-off-by: ehila ehila@redhat.com