Bug 1797687
Summary: | Can't apply Machine Configs to Masters with roles different from "master" and machineconfigpools different from "master" | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Jose Kaz C R <jcasimir> |
Component: | Machine Config Operator | Assignee: | Sinny Kumari <skumari> |
Status: | CLOSED ERRATA | QA Contact: | Michael Nguyen <mnguyen> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.2.z | CC: | amurdaca, walters |
Target Milestone: | --- | ||
Target Release: | 4.5.0 | ||
Hardware: | x86_64 | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Known Issue | |
Doc Text: |
Cause: Custom pool is not supported on master node.
Consequence: Custom pool on a node having master role is not supported. `oc label node` will apply the new custom role to the target master node but MCO will not apply changes specific to the custom pool. Error can be seen in the Machine Config Controller pod logs.
Workaround (if any): User is advised to not apply multiple roles on master. This behavior is to make sure that control plane nodes remain stable.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2020-07-13 17:13:54 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jose Kaz C R
2020-02-03 16:29:40 UTC
Did you follow https://github.com/openshift/machine-config-operator/blob/master/docs/custom-pools.md ? Yes, this does not work with the masters for some unknown reason. It works flawlessly with the workers, but not the masters. (In reply to Jose Kaz C R from comment #2) > Yes, this does not work with the masters for some unknown reason. It works > flawlessly with the workers, but not the masters. uhm, we can take a look at it I guess and see what's happening - and asses if masters can be assigned a custom pool at all (I see the use case tho) When a node has both master and custom role (say 0-master), MCC would be logging error message: E0207 08:02:20.931403 1 node_controller.go:415] error finding pool for node: node <node> has both master role and custom role 01-master By looking at https://github.com/cgwalters/machine-config-operator/blob/b9d6c62de34d1fe01aa3b98a3559339c73c09d57/pkg/controller/node/node_controller.go#L301 it seems MCO currently doesn't support custom role being applied on master. @Colin @Antonio Any idea if there is a reason behind not supporting custom pool for master node? I think what you really want for this is machine-specific machineconfigs (which makes sense when written that way ;) ) This would be an RFE for the MCO, and actually the CNTO https://github.com/openshift/cluster-node-tuning-operator needs it too. Verified documentation in github now has warnings about custom pools with master nodes. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2409 |