Hide Forgot
Description of problem: When working with heterogeneous worker nodes in OpenShift, we need to create some specific roles to apply MachineConfig definitions to it. As a sample, we could have RealTime nodes, SRIOV, DPDK, etc... and we need to apply specific config bits for each of them independently. But we need to share the same MachineConfig that applies to worker nodes, as they are all workers. Right now we need to duplicate all definitions of MachineConfig from worker into each worker-<role> entries, causing inconsistencies and being hard to maintain. So having the ability to create a MachineConfig that inherits from another in an upper layer will solve this issue. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
This is already possible today https://github.com/openshift/machine-config-operator/issues/429#issuecomment-499458138 I think we can close this BZ
Thanks for the quick answer, i'll take a look. Closing it.
I am reopening it, as this approach didn't work with worker MachineConfigPool. The reason is that this is generated dynamically, and any updates done to that are being overwritten. See my comments on https://github.com/openshift/machine-config-operator/issues/429. I also was thinking we could define different type of computes in install-config.yaml , and then configure all of that as workers. See what i tried on: https://github.com/yrobla/blueprint-pae/blob/master/profiles/production.baremetal/00_install-config/install-config.yaml#L9 . But the installer complains about "worker" being the only valid value there.
(In reply to Yolanda Robla from comment #3) > I am reopening it, as this approach didn't work with worker > MachineConfigPool. The reason is that this is generated dynamically, and any > updates done to that are being overwritten. See my comments on > https://github.com/openshift/machine-config-operator/issues/429. > I also was thinking we could define different type of computes in > install-config.yaml , and then configure all of that as workers. See what i > tried on: > https://github.com/yrobla/blueprint-pae/blob/master/profiles/production. > baremetal/00_install-config/install-config.yaml#L9 . But the installer > complains about "worker" being the only valid value there. I've replied in MCO#429 - you're editing the worker MCP but you should create a new one inheriting from that so that the base worker MCs are there.
Ok i tried that approach of superclassing worker instead of subclassing it, and it works.