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

Control-plane nodes which are marked as schedulable are also given worker role. #985

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

prnaraya
Copy link
Contributor

Currently, fix_node_labels is marking control-plane nodes as schedulable and removing the NoSchedule taint. Since these nodes are now behaving as worker nodes, they should also be given the worker node role.

@kubevirt-bot kubevirt-bot added the dco-signoff: yes Indicates the PR's author has DCO signed all their commits. label Mar 23, 2023
@kubevirt-bot kubevirt-bot requested review from rmohr and vladikr March 23, 2023 16:48
@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 23, 2023
@rmohr
Copy link
Member

rmohr commented Mar 23, 2023

/approve

@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 23, 2023
@kubevirt-bot kubevirt-bot merged commit 2e998c2 into kubevirt:main Mar 23, 2023
kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Mar 24, 2023
[2e998c2 Control-plane nodes which are marked as schedulable are also given worker role.](kubevirt/kubevirtci#985)
[58e2672 kind: amend env variable CONFIG_WORKER_CPU_MANAGER](kubevirt/kubevirtci#983)
[2957a2f publish: Refactor script](kubevirt/kubevirtci#980)

```release-note
NONE
```

Signed-off-by: kubevirt-bot <[email protected]>
# Worker nodes might lack worker role label.
master_nodes=$(_get_nodes | grep -i $MASTER_NODES_PATTERN | awk '{print $1}')
for node in ${master_nodes[@]}; do
# removing NoSchedule taint if is there
if _kubectl taint nodes $node node-role.kubernetes.io/master:NoSchedule-; then
_kubectl label node $node kubevirt.io/schedulable=true
_kubectl label node $node node-role.kubernetes.io/worker=""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can break SR-IOV
see please kubevirt/kubevirt#9505 (comment)

@oshoval
Copy link
Contributor

oshoval commented Mar 29, 2023

PRs which are related to sig-network should be verified by sig-network as well please
This PR breaks SR-IOV lane periodic (validating on the mentioned PR above).

FYI
@EdDev @phoracek @AlonaKaplan @ormergi

We removed kind presubmit here so it didnt catch it (assuming it is a real bug, we will soon find out)

@oshoval
Copy link
Contributor

oshoval commented Mar 29, 2023

Note that it fails, even before reaching the scenario I think will happen as well
kubevirt/kubevirt#9505 (comment)

We don't have automation for kind-1.23 / kind-1.23-sriov, and should drop them because they are too old
We can even consider removing them from kubevirtci as they are not needed for it anymore
(SR-IOV one is just temporary there in case k3d has surprises and the 2nd is used by ARM)
See please #984 about k3d replacement suggestion.

Suggested a possible quick solution in the mentioned PR.

We might still have the presubmit of kind SR-IOV that can be used manually whenever needed
(note we don't have for the kind-1.23 non SR-IOV and never did)

oshoval added a commit to oshoval/kubevirtci that referenced this pull request Mar 29, 2023
…given worker role. (kubevirt#985)"

This reverts commit 2e998c2.

Signed-off-by: Or Shoval <[email protected]>
@oshoval
Copy link
Contributor

oshoval commented Mar 29, 2023

Please see #990

ormergi added a commit to ormergi/kubevirtci that referenced this pull request Mar 29, 2023
kubevirt-bot pushed a commit that referenced this pull request Mar 29, 2023
…given worker role. (#985)" (#990)

This reverts commit 2e998c2.

Signed-off-by: Or Shoval <[email protected]>
@oshoval
Copy link
Contributor

oshoval commented Mar 30, 2023

Hi, I think that the easiest solution,
assuming you are using kind-1.23 (until we deprecate it in favor of k3d),
is to include this labeling as part of kind-1.23 provider itself (not in the common file), would it help you ?
Imo we shouldn't affect the kind SR-IOV provider atm.

Opened #991

kubevirt-bot added a commit to kubevirt-bot/kubevirt that referenced this pull request Mar 30, 2023
[c731ec1 Revert "Control-plane nodes which are marked as schedulable are also given worker role.](https://github.com/kubevirt/kubevirtci/pull/985)"](https://github.com/kubevirt/kubevirtci/pull/990)
[9df5cab publish: Parameterize CRI binary](kubevirt/kubevirtci#989)
[2e998c2 Control-plane nodes which are marked as schedulable are also given worker role.](kubevirt/kubevirtci#985)
[58e2672 kind: amend env variable CONFIG_WORKER_CPU_MANAGER](kubevirt/kubevirtci#983)
[2957a2f publish: Refactor script](kubevirt/kubevirtci#980)

```release-note
NONE
```

Signed-off-by: kubevirt-bot <[email protected]>
@oshoval
Copy link
Contributor

oshoval commented Jul 10, 2023

Hi, please see #1043

@oshoval
Copy link
Contributor

oshoval commented Jul 19, 2023

Hi, please see #1043

Note that it won't include the fix, as the SR-IOV lane is dedicated to SR-IOV, see please discussion in the mentioned PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants