Skip to content

Optimize reboots #650

Closed
Closed

Description

@runcom

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.

Activity

  1. changed the title [-]PullSecret CRD[/-] [+]do not reboot on pull-secret change[/+] on Apr 23, 2019
  2. runcom commented on Apr 23, 2019

    @runcom
    MemberAuthor

    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)

  3. changed the title [-]do not reboot on pull-secret change[/-] [+]Optimize reboots[/+] on May 16, 2019
  4. cgwalters commented on May 16, 2019

    @cgwalters
    Member

    Repurposing this issue for adding the infrastructure to avoid reboots. The pull secret is one example.

  5. mrguitar commented on May 16, 2019

    @mrguitar

    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.

  6. runcom commented on May 16, 2019

    @runcom
    MemberAuthor

    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.

  7. e-minguez commented on Jul 23, 2019

    @e-minguez
    Contributor

    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)

  8. cgwalters commented on Jul 23, 2019

    @cgwalters
    Member

    You can do this today, just set the paused field in the machineconfigpool objects to true.

  9. e-minguez commented on Jul 23, 2019

    @e-minguez
    Contributor

    You can do this today, just set the paused field in the machineconfigpool objects to true.

    Nice! Thanks for the tip!

  10. cgwalters commented on Dec 23, 2019

    @cgwalters
    Member
  11. cgwalters commented on Jan 16, 2020

    @cgwalters
    Member

    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.

  12. cgwalters commented on Aug 28, 2020

    @cgwalters
    Member

    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.

  13. openshift-bot commented on Nov 26, 2020

    @openshift-bot
    Contributor

    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

  14. added
    lifecycle/stale
    on Nov 26, 2020
  15. openshift-bot commented on Dec 26, 2020

    @openshift-bot
    Contributor

    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

  16. added
    lifecycle/rotten
    and removed
    lifecycle/stale
    on Dec 26, 2020
  17. openshift-bot commented on Jan 26, 2021

    @openshift-bot
    Contributor

    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

  18. openshift-ci-robot commented on Jan 26, 2021

    @openshift-ci-robot
    Contributor

    @openshift-bot: Closing this issue.

    Details

    In response to this:

    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

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rotten

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions