Skip to content

kargs phase 2 #798

Closed
Closed

Description

@cgwalters

Expanding this: #762 (comment)

We need to support "early pivot" kargs. I think the best implementation path for this is to "invert" the MachineConfig and inject it as extra data into the Ignition. Then we change pivot to also accept a MachineConfig object; it would handle osImageURL and kernelArguments.

What would make further sense then I think is to fold pivot into the MCO repo and have it basically become the "host portion" of the MCD. But we don't need to do that right away.

Activity

  1. ashcrow commented on Jun 4, 2019

    @ashcrow
    Member

    Then we change pivot to also accept a MachineConfig object; it would handle osImageURL and kernelArguments.

    WFM

    What would make further sense then I think is to fold pivot into the MCO repo and have it basically become the "host portion" of the MCD. But we don't need to do that right away.

    I worry that the MCO repo has a lot already (MCO, MCC, MCS, MCD). I won't block but just something to keep in mind.

  2. cgwalters commented on Jun 4, 2019

    @cgwalters
    MemberAuthor

    I worry that the MCO repo has a lot already (MCO, MCC, MCS, MCD). I won't block but just something to keep in mind.

    Yeah, on that topic one thing I personally would like to move out of the MCO is the "static" templates (i.e. files not templated) like this one - we could reuse the tools repo? It's weird for the MCO to feed files into Ignition that could just be shipped as part of the read-only base OS.

  3. cgwalters commented on Jun 6, 2019

    @cgwalters
    MemberAuthor

    Yeah, on that topic one thing I personally would like to move out of the MCO is the "static" templates (i.e. files not templated) like this one - we could reuse the tools repo?

    Except we can't do that as is because it'd break BYO RHEL...they'd need some other way to add those files. Aarrgh...

  4. cgwalters commented on Jun 6, 2019

    @cgwalters
    MemberAuthor

    Eh, if we stick them in an RPM that would work.

  5. cgwalters commented on Jun 14, 2019

    @cgwalters
    MemberAuthor

    PR in #859

  6. cgwalters commented on Jun 19, 2019

    @cgwalters
    MemberAuthor

    Important PR in #868

    Another way to look at this is - if we didn't go down this path of having RHCOS boot into MachineConfig (and the MCD on the host etc.) for kernelArguments we'd have to do something like "transcode" the MachineConfig kargs into what pivot implements today. We would basically need an ad-hoc way to pass all of the MachineConfig data to pivot.

    In fact, the way osImageURL is handled today is very much a weird ad-hoc encoding of a subset of MachineConfig - it's converting just one field to a file. This path will replace that.

  7. cgwalters commented on Jun 27, 2019

    @cgwalters
    MemberAuthor

    OK so we're getting deep into this now and I'm about to post a PR which will be a big chunk of converting the firstboot/"early pivot" over to processing MachineConfig.

    However...it occurs to me that unless we do some nontrivial tricky work, this will create a hard requirement for users of 4.2 to start from 4.2 bootimages. I've said a lot of times that part of the rationale for the whole current model is that it's hard to rely on users (e.g. hand rolled PXE setups, private clouds) to keep bootimages up to date reliably unless the cluster takes that over.

    But can we assume that they'll at least update bootimages for major versions? I...hope so. I guess if we do require it we need to provide a clear and unambiguous error if the bootimage is too old, rather than e.g. silently ignoring FIPS early on.

  8. cgwalters commented on Jun 27, 2019

    @cgwalters
    MemberAuthor

    To be clear, I think we could support pivoting from 4.1.0 bootimages, but if e.g. kernel arguments are specified, we'd end up needing to do two reboots. That said, I can think of (somewhat evil) hacks to avoid that like encoding the new machine-config-daemon code as base64 into Ignition and running it there but...

  9. runcom commented on Jun 27, 2019

    @runcom
    Member

    But can we assume that they'll at least update bootimages for major versions? I...hope so. I guess if we do require it we need to provide a clear and unambiguous error if the bootimage is too old, rather than e.g. silently ignoring FIPS early on.

    I'm assuming that as well and it would be really surprised if that won't be the case but (just read the other comment) maybe we can indeed hack something up for 4.1 upgrade paths

  10. 21 remaining items

  11. openshift-bot commented on Sep 14, 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

  12. added
    lifecycle/stale
    on Sep 14, 2020
  13. openshift-bot commented on Oct 15, 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

  14. added
    lifecycle/rotten
    and removed
    lifecycle/stale
    on Oct 15, 2020
  15. openshift-bot commented on Nov 14, 2020

    @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

  16. openshift-ci-robot commented on Nov 14, 2020

    @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