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
With #632 we can now just edit the pull secret and roll out the pull secret to all nodes. That isn't optimal as it requires a reboot of all the nodes for just a file replace. Similar to kargs and others, I was wondering if we can plug a new CRD (or MC extension somehow) where we can add context and understand that only the PullSecret changed and we don't need to reboot a N nodes cluster. There's probably some research to be done as secrets are, well, secrets so it might not be that straightforward as we need to be careful not to expose them.
When we'll tackle the "avoid reboot when not needed" we need to take into account someone changing only the PullSecret. it doesn't require a reboot so maybe $(diff $oldps $newps) would tell us if it changed and if no other thing changed, we may avoid a reboot.
This isn't a real thing tho, we might be able to skip a reboot by inspecting the rendered machineconfig and see if pull-secret actually changed with kube api to decide on reboot (and other stuff)
It's almost easier to flag what requires a reboot rather than the opposite: OS updates & kargs are the two big ones off the top of my head. I suspect there are more.
Most changes involving adding files & dir don't require a reboot, however, some will need a service restart to take effect.
Reboots need to be restricted heavily when using Ceph and replicas and state become an issue, and also for CNV/kubevirt workloads.
It's almost easier to flag what requires a reboot rather than the opposite: OS updates & kargs are the two big ones off the top of my head. I suspect there are more.
this isn't as easy as it sounds this way though, we can just let users toggle a knob. We need to be the ones deriving when a reboot is needed anyway. Otherwise, it gets pretty messy.
Reboots need to be restricted heavily when using Ceph and replicas and state become an issue, and also for CNV/kubevirt workloads.
We need to understand more from the above and understand how we can derive those also.
It would be nice to have a proper way to disable reboot temporary. The use case is you just deployed your baremetal cluster and you want to customize a few things (such as NTP, modify registries, etc.) and avoid a reboot per modification (specially for baremetal where it can take a few minutes to reboot the hosts)
There has also been discussion around something a "disruption window" specifying when a pool could reboot. One could imagine we define a CRD or so for that, something that allows multiple owners to pause at a time.
A case where this came up is around rotating the pull secret - we absolutely can just replace the kubelet pull secret live. That would help a lot in a situation where e.g. one of the values leaked and needs to be rotated quickly without much cluster downtime.
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
[-]PullSecret CRD[/-][+]do not reboot on pull-secret change[/+]runcom commentedon Apr 23, 2019
This isn't a real thing tho, we might be able to skip a reboot by inspecting the rendered machineconfig and see if pull-secret actually changed with kube api to decide on reboot (and other stuff)
[-]do not reboot on pull-secret change[/-][+]Optimize reboots[/+]cgwalters commentedon May 16, 2019
Repurposing this issue for adding the infrastructure to avoid reboots. The pull secret is one example.
mrguitar commentedon May 16, 2019
It's almost easier to flag what requires a reboot rather than the opposite: OS updates & kargs are the two big ones off the top of my head. I suspect there are more.
Most changes involving adding files & dir don't require a reboot, however, some will need a service restart to take effect.
Reboots need to be restricted heavily when using Ceph and replicas and state become an issue, and also for CNV/kubevirt workloads.
runcom commentedon May 16, 2019
this isn't as easy as it sounds this way though, we can just let users toggle a knob. We need to be the ones deriving when a reboot is needed anyway. Otherwise, it gets pretty messy.
We need to understand more from the above and understand how we can derive those also.
e-minguez commentedon Jul 23, 2019
It would be nice to have a proper way to disable reboot temporary. The use case is you just deployed your baremetal cluster and you want to customize a few things (such as NTP, modify registries, etc.) and avoid a reboot per modification (specially for baremetal where it can take a few minutes to reboot the hosts)
cgwalters commentedon Jul 23, 2019
You can do this today, just set the
pausedfield in themachineconfigpoolobjects to true.e-minguez commentedon Jul 23, 2019
Nice! Thanks for the tip!
cgwalters commentedon Dec 23, 2019
openshift/enhancements#159
cgwalters commentedon Jan 16, 2020
There has also been discussion around something a "disruption window" specifying when a pool could reboot. One could imagine we define a CRD or so for that, something that allows multiple owners to pause at a time.
cgwalters commentedon Aug 28, 2020
A case where this came up is around rotating the pull secret - we absolutely can just replace the kubelet pull secret live. That would help a lot in a situation where e.g. one of the values leaked and needs to be rotated quickly without much cluster downtime.
openshift-bot commentedon Nov 26, 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 Dec 26, 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 Jan 26, 2021
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 Jan 26, 2021
@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.