Skip to content

pkg/controller/node: fix controller to handle multiple roles - #828

Merged
openshift-merge-robot merged 1 commit into
openshift:masterfrom
runcom:fix-status-multiple-roles
Jun 12, 2019
Merged

openshift-merge-robot merged 1 commit into
openshift:masterfrom
runcom:fix-status-multiple-roles

Conversation

@runcom

@runcom runcom commented Jun 6, 2019 •

Copy link
Copy Markdown
Member

If the node belongs to more than 1 pool, run it through the same logic we use
to add it to the queue for a specific pool. This avoids including nodes in
multiple pools for status reporting and multiple desiredConfig swaps.

see #429 (comment) for testing. W/o this patch, the worker pool will show Updating with 6 nodes cause 3 nodes are both worker and infra. If you then add an MC for worker only, nodes go through reconciliation twice (which is super bad cause of reboot).

Close #429
Close #294

Signed-off-by: Antonio Murdaca [email protected]

@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 6, 2019
@runcom
runcom force-pushed the fix-status-multiple-roles branch from 6bc97bd to 3cb6a49 Compare June 6, 2019 14:06
@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jun 6, 2019
If the node belongs to more than 1 pool, run it through the same logic we use
to add it to the queue for a specific pool. This avoids including nodes in
multiple pools for status reporting.

Signed-off-by: Antonio Murdaca <[email protected]>
@runcom runcom changed the title pkg/controller/node: fix status reporting for multiple roles pkg/controller/node: fix controller to handle multiple roles Jun 6, 2019
@runcom
runcom force-pushed the fix-status-multiple-roles branch from 3cb6a49 to eed287c Compare June 6, 2019 14:09
@runcom

runcom commented Jun 6, 2019

Copy link
Copy Markdown
Member Author

This is working so nice, I encourage everyone to test this out using #429 (comment) (so we can keep testing it as well). Worked fine for me to create an MC just for infra and see it rolling on infra nodes only. Then create an MC for worker and see it rolling on infra,worker nodes as well as worker. Pretty cool.

@runcom

runcom commented Jun 6, 2019

Copy link
Copy Markdown
Member Author

/retest

1 similar comment
@runcom

runcom commented Jun 7, 2019

Copy link
Copy Markdown
Member Author

/retest

@cgwalters

Copy link
Copy Markdown
Member

Sorry about the delay,
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 11, 2019
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgwalters, runcom

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@runcom

runcom commented Jun 11, 2019

Copy link
Copy Markdown
Member Author

Thanks Colin, gonna hold it for a moment once I run an upgrade with the infra pool to check if everything is ok also

/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 11, 2019
@runcom

runcom commented Jun 11, 2019

Copy link
Copy Markdown
Member Author

/hold cancel

upgrade went through just fine with an additional infra pool

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 11, 2019
@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot
openshift-merge-robot merged commit 6eb0501 into openshift:master Jun 12, 2019
@runcom
runcom deleted the fix-status-multiple-roles branch June 12, 2019 07:48
ptalgulk01 pushed a commit to ptalgulk01/machine-config-operator that referenced this pull request May 15, 2026
pkg/controller/node: fix controller to handle multiple roles
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. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nodes limited to just one pool How to I add machineconfigpool named infra to the cluster

5 participants