Skip to content

change bootstrap to pivot #2542

Open
Open

Description

@cgwalters

See this thread, specifically this comment.

TL;DR - today the installer launches a bootimage, which is usually the pinned RHCOS version (for IPI installs), but can be different - see this issue which is about making it easier for people to find the correct bootimage.

See also #2532

Filing this issue to track changing the installer to do a pivot on the bootstrap node.

I think the architecture would look like a new bootstrap-pivot.service between release-image.service and bootkube.service - we'd run the MCD on the bootstrap host, telling it to pivot to the target machine-os-content.

In fact...if we did this, we could streamline down the bootimages - e.g. no reason to ship kubelet/cri-o in the bootimages. (Though, we'd need new terminology like "bootRHCOS" to distinguish from "normal" RHCOS in machine-os-content or so?) Anyways, not required for this change.

Activity

  1. wking commented on Oct 21, 2019

    @wking
    Member

    Though, we'd need new terminology like "bootRHCOS"...

    Red Hat Pivot OS? All this OS does is pivot to an OSTree pulled from a container image. It is not certified for any otger purpose.

  2. vrutkovs commented on Oct 22, 2019

    @vrutkovs
    Contributor

    if we did this, we could streamline down the bootimages

    That would be very helpful for OKD-on-FCOS, however that would require a few changes to RHCOS oscontainer build process.

  3. LorbusChris commented on Oct 23, 2019

    @LorbusChris
    Contributor

    @vrutkovs @cgwalters this is implemented by Vadim's commit here, right? c7da474

    Should we try to get this into master soon? (i.e. before tackling spec3 for OCP)

  4. abhinavdahiya commented on Nov 5, 2019

    @abhinavdahiya
    Contributor

    pullling the machine-os-content on the bootstrap host and pivoting adding downloading 800MB into the critical part of bootstrapping, and also causing a reboot of the bootstrap-host.

    the bootstrap-host, doesn't use/need close tie to openshift binaries as control-plane host.
    we only use kubelet to run static pods, podman to run some pods.

    So i don't get why there is requirement for pivot on the bootstrap-host??

  5. vrutkovs commented on Nov 6, 2019

    @vrutkovs
    Contributor

    bootstrap node would use kubelet/crio/machine-config-daemon from original AMI. That means fixes to these components would not be applied during bootstrap phase - that might be critical for some deployments

  6. wking commented on Nov 6, 2019

    @wking
    Member

    bootstrap node would use kubelet/crio/machine-config-daemon...

    Is there an MCD baked into RHCOS? I'd be surprised if we ran one on the bootstrap machine. We certainly extract machine-config components from the target release image and run them, but the only bootimage exposure in that is podman/kubelet/crio (and I have no cost/benefit opinion of pivoting for those ;).

  7. cgwalters commented on Nov 6, 2019

    @cgwalters
    MemberAuthor

    So i don't get why there is requirement for pivot on the bootstrap-host??

    First, this helps OKD which will use FCOS, which won't include a kubelet by default (at least, not right now).

    Second, it does help avoid "bootimage drift" issues with the installer as noted also in the initial comment.

    Further, the initial comment links to openshift/enhancements#78 (comment) - so perhaps to disintermediate we can summon @smarterclayton

    Is there an MCD baked into RHCOS?

    Yes.

  8. openshift-bot commented on Feb 20, 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

  9. added
    lifecycle/stale
    on Feb 20, 2020
  10. openshift-bot commented on Mar 21, 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

  11. added
    lifecycle/rotten
    and removed
    lifecycle/stale
    on Mar 21, 2020
  12. cgwalters commented on Mar 21, 2020

    @cgwalters
    MemberAuthor

    /remove-lifecycle stale

  13. 2 remaining items

  14. LorbusChris commented on Apr 21, 2020

    @LorbusChris
    Contributor

    /reopen

  15. openshift-ci-robot commented on Apr 21, 2020

    @openshift-ci-robot
    Contributor

    @LorbusChris: Reopened this issue.

    Details

    In response to this:

    /reopen

    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.

  16. LorbusChris commented on Apr 21, 2020

    @LorbusChris
    Contributor

    /remove-lifecycle rotten

  17. removed
    lifecycle/rotten
    on Apr 21, 2020
  18. ashcrow commented on May 13, 2020

    @ashcrow
    Member

    I'd love to see this happen. It would get us closer to boot images being "basic boot and pivot to expected content" in both the installer (bootstrap node) and the hosts themselves (which is the case today).

  19. cgwalters commented on Jul 23, 2020

    @cgwalters
    MemberAuthor

    With some nontrivial but also not extremely difficult work, we could change the OS update stack to support an "update and restart all of userspace, but not the kernel" semantic which would shave some time off this.

  20. cgwalters commented on Jul 23, 2020

    @cgwalters
    MemberAuthor

    pullling the machine-os-content on the bootstrap host and pivoting adding downloading 800MB into the critical part of bootstrapping

    One thing also - it can't be that hard to teach the bootstrap host how to serve the images it pulled to the control plane - so if we did that it would reduce the 3 separate pulls of m-o-c from the upstream registry to one. (And similar for other images)

  21. openshift-bot commented on Oct 30, 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

  22. added
    lifecycle/stale
    on Oct 30, 2020
  23. LorbusChris commented on Nov 3, 2020

    @LorbusChris
    Contributor

    /remove-lifecycle stale

  24. removed
    lifecycle/stale
    on Nov 3, 2020
  25. travier commented on Nov 6, 2020

    @travier
    Member

    /lifecycle frozen

  26. added
    lifecycle/frozen
    on Nov 6, 2020
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/frozen

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions