You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Machine Configs should support multiple roles #269
The current labelling scheme does not support having multiple roles for one machine config. Because label is a map, we are unable for have 2 values (roles) for the same key. Switching to a different labelling method would allow us to create 1 machineconfig that can be applied to multiple roles.
but as @kikisdeliveryservice mentioned the label is a map, so we can't have 2 values for same key...
need need to switch to different scheme for labels...
I suggest: role.machineconfiguration.openshift.io/<role-name>=""
This will allow us to add a machineconfig that is used for multiple roles. (A common usecase)
Inheritance has a lot of sense when talking about heterogeneous nodes. So all workers are going to be just workers, and need to have all generic MachineConfig that applies to a worker. But there can be workers that need different configurations (real time, sriov, dpdk nodes, different types of tuning...) so they need specific MachineConfigs applied to them.
There's already something like this and you can create MCP for worker-like pools to use worker MCs as the base and ad-hoc MCs for the given custom pool.
machineconfigpool worker had been properly updated before i applied the mcp and mc, i start from a working environment
as soon as i create machineconfigpool/machineconfig for worker-ran, the content is applied correctly. Node is rebooted and i can see the expected modifications done.
but after a while, seems that the system is trying to apply machineconfigpool for worker again. Then, i see:
worker rendered-worker-e5227386b7abc32c08c2c946cecfdb28 False True False
worker-ran rendered-worker-ran-2f36b6d1eb977bcf752cc0d1a901256e True False False
At this point, worker is never finishing the update, and the node is being constantly rebooted (max uptime i've been able to see is over 30 min). This is what i see in mcp/worker :
lastTransitionTime: "2019-08-05T20:43:27Z"
message: ""
reason: All nodes are updating to rendered-worker-e5227386b7abc32c08c2c946cecfdb28
status: "True"
type: Updating
In the machineconfigdaemon for the worker pool, i see:
I0806 08:11:12.678614 4915 daemon.go:904] Validated on-disk state
I0806 08:11:12.693262 4915 update.go:801] logger doesn't support --jounald, logging json directly
I0806 08:11:12.702897 4915 daemon.go:938] Completing pending config rendered-worker-ran-2f36b6d1eb977bcf752cc0d1a901256e
I0806 08:11:12.708129 4915 update.go:836] completed update for config rendered-worker-ran-2f36b6d1eb977bcf752cc0d1a901256e
I0806 08:11:12.718672 4915 daemon.go:944] In desired config rendered-worker-ran-2f36b6d1eb977bcf752cc0d1a901256e
but after a while, seems that the system is trying to apply machineconfigpool for worker again. Then, i see:
worker rendered-worker-e5227386b7abc32c08c2c946cecfdb28 False True False
worker-ran rendered-worker-ran-2f36b6d1eb977bcf752cc0d1a901256e True False False
can you be more precise on this? after a while? after following your report, I have a perfectly fine running cluster w/o the behavior described
I was hitting that every 30 min, i was watching uptime and node was rebooted every 30 min. The node i use is RHEL, not RHCOS, not sure if that's a difference.
So i ran into this... having worker nodes with two 'roles' blew up the MC controller. My use case is:
All RHCOS 4.4 RC1 nodes. 3 masters, 3 infras, 3 workers (all KVM/libvirt VMs), and 1 bare-metal. All OSes were delivered w/ iPXE (using matchbox) The bare-metal RHCOS node has two Nvidia GPUs that i intend to test ML workloads with. When going through the process of adding a MC for entitled pods (required for nvidia operator) the rollout gets stuck. The two roles i have on my nvidia metal node are 'nvidia,worker'. I guess i dont really need a second 'nvidia' role. I also have two roles on my 'infra' nodes (infra,worker) that plays hell with the MCP/MC too. That was an easy fix, i just killed the 'worker' role on those nodes and created a separate 'infra' MCP as mentioned above.
I guess this boils down to "dont have multiple roles on ANY nodes".
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
/close
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.
Activity
abhinavdahiya commentedon Jan 7, 2019
So currently we label machineconfigs with label
machineconfiguration.openshift.io/role=<role-name>and we want the ssh key to be picked by all current roles that means we need these labels
but as @kikisdeliveryservice mentioned the label is a map, so we can't have 2 values for same key...
need need to switch to different scheme for labels...
I suggest:
role.machineconfiguration.openshift.io/<role-name>=""This will allow us to add a machineconfig that is used for multiple roles. (A common usecase)
cgwalters commentedon Jan 7, 2019
This is then symmetric with the way
node-role.kubernetes.io/workerlabel acts too right?abhinavdahiya commentedon Jan 7, 2019
correct
kikisdeliveryservice commentedon Jan 21, 2019
/assign
abhinavdahiya commentedon Feb 28, 2019
ping @kikideliveryservice
Is this going to be fixed before 4.0 GA
williamcaban commentedon Jul 22, 2019
An alternate solution could be supporting nested MCP (i.e. A child MCP that inherit all the MCs from the parent MCP) or from multiple MCPs.
yrobla commentedon Jul 22, 2019
Inheritance has a lot of sense when talking about heterogeneous nodes. So all workers are going to be just workers, and need to have all generic MachineConfig that applies to a worker. But there can be workers that need different configurations (real time, sriov, dpdk nodes, different types of tuning...) so they need specific MachineConfigs applied to them.
runcom commentedon Jul 22, 2019
There's already something like this and you can create MCP for worker-like pools to use worker MCs as the base and ad-hoc MCs for the given custom pool.
runcom commentedon Jul 22, 2019
More info and steps here #429 (comment)
yrobla commentedon Aug 6, 2019
I tested that approach, doing the following:
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfigPool
metadata:
name: worker-ran
spec:
machineConfigSelector:
matchExpressions:
- {key: machineconfiguration.openshift.io/role, operator: In, values: [worker,worker-ran]}
maxUnavailable: null
nodeSelector:
matchLabels:
node-role.kubernetes.io/worker-ran: ""
paused: false
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: worker-ran
name: machine-config-worker-ran-rt
spec:
config:
ignition:
version: 2.2.0
storage:
files:
-
contents:
source: data:text/plain;base64,xxx
filesystem: root
mode: 0777
path: /opt/setup_rt.sh
systemd:
units:
-
contents: |
[Unit]
Description=One time service to install rt and tuned profile
After=network-online.target
ConditionPathExists=!/opt/rt_executed
[Service]
Type=oneshot
ExecStart=/opt/setup_rt.sh
[Install]
WantedBy=multi-user.target
enabled: true
name: install_realtime.service
The behaviour i see is the following:
worker rendered-worker-e5227386b7abc32c08c2c946cecfdb28 False True False
worker-ran rendered-worker-ran-2f36b6d1eb977bcf752cc0d1a901256e True False False
At this point, worker is never finishing the update, and the node is being constantly rebooted (max uptime i've been able to see is over 30 min). This is what i see in mcp/worker :
message: ""
reason: All nodes are updating to rendered-worker-e5227386b7abc32c08c2c946cecfdb28
status: "True"
type: Updating
In the machineconfigdaemon for the worker pool, i see:
I0806 08:11:12.678614 4915 daemon.go:904] Validated on-disk state
I0806 08:11:12.693262 4915 update.go:801] logger doesn't support --jounald, logging json directly
I0806 08:11:12.702897 4915 daemon.go:938] Completing pending config rendered-worker-ran-2f36b6d1eb977bcf752cc0d1a901256e
I0806 08:11:12.708129 4915 update.go:836] completed update for config rendered-worker-ran-2f36b6d1eb977bcf752cc0d1a901256e
I0806 08:11:12.718672 4915 daemon.go:944] In desired config rendered-worker-ran-2f36b6d1eb977bcf752cc0d1a901256e
runcom commentedon Aug 6, 2019
@kikisdeliveryservice is working on this
runcom commentedon Aug 8, 2019
I'm verifying the bug reported above also
runcom commentedon Aug 8, 2019
can you be more precise on this? after a while? after following your report, I have a perfectly fine running cluster w/o the behavior described
1 remaining item
yrobla commentedon Aug 8, 2019
I was hitting that every 30 min, i was watching uptime and node was rebooted every 30 min. The node i use is RHEL, not RHCOS, not sure if that's a difference.
runcom commentedon Aug 8, 2019
uhm, it shouldn't have any difference afaict, do you have a cluster with RHEL nodes you can hand to me so I can check?
yrobla commentedon Aug 9, 2019
No, sorry, the test that i am doing is with a local cluster in my machines... they don't have external access.
kikisdeliveryservice commentedon Aug 9, 2019
what version of installer/mco you are running? are you running libvirt? have you reproduced this in aws/cloud?
kikisdeliveryservice commentedon Aug 9, 2019
also really would prefer if this was being discussed in a seperate issue rather than this one.
nnachefski commentedon Mar 29, 2020
So i ran into this... having worker nodes with two 'roles' blew up the MC controller. My use case is:
All RHCOS 4.4 RC1 nodes. 3 masters, 3 infras, 3 workers (all KVM/libvirt VMs), and 1 bare-metal. All OSes were delivered w/ iPXE (using matchbox) The bare-metal RHCOS node has two Nvidia GPUs that i intend to test ML workloads with. When going through the process of adding a MC for entitled pods (required for nvidia operator) the rollout gets stuck. The two roles i have on my nvidia metal node are 'nvidia,worker'. I guess i dont really need a second 'nvidia' role. I also have two roles on my 'infra' nodes (infra,worker) that plays hell with the MCP/MC too. That was an easy fix, i just killed the 'worker' role on those nodes and created a separate 'infra' MCP as mentioned above.
I guess this boils down to "dont have multiple roles on ANY nodes".
openshift-bot commentedon Oct 4, 2020
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting
/remove-lifecycle stale.Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting
/lifecycle frozen.If this issue is safe to close now please do so with
/close./lifecycle stale
openshift-bot commentedon Nov 3, 2020
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting
/remove-lifecycle rotten.Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting
/lifecycle frozen.If this issue is safe to close now please do so with
/close./lifecycle rotten
/remove-lifecycle stale
openshift-bot commentedon Dec 3, 2020
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting
/reopen.Mark the issue as fresh by commenting
/remove-lifecycle rotten.Exclude this issue from closing again by commenting
/lifecycle frozen./close
openshift-ci-robot commentedon Dec 3, 2020
@openshift-bot: Closing this issue.
Details
In 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.