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
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.
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.
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.
Reacted by Antonio Murdaca, Stephen Milner and Kirsten
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...
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 osImageURLis 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.
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.
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 newmachine-config-daemon code as base64 into Ignition and running it there but...
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
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
ashcrow commentedon Jun 4, 2019
WFM
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.
cgwalters commentedon Jun 4, 2019
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.
cgwalters commentedon Jun 6, 2019
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...
cgwalters commentedon Jun 6, 2019
Eh, if we stick them in an RPM that would work.
cgwalters commentedon Jun 14, 2019
PR in #859
cgwalters commentedon Jun 19, 2019
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
kernelArgumentswe'd have to do something like "transcode" the MachineConfig kargs into whatpivotimplements today. We would basically need an ad-hoc way to pass all of the MachineConfig data to pivot.In fact, the way
osImageURLis handled today is very much a weird ad-hoc encoding of a subset ofMachineConfig- it's converting just one field to a file. This path will replace that.cgwalters commentedon Jun 27, 2019
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.
cgwalters commentedon Jun 27, 2019
To be clear, I think we could support pivoting from
4.1.0bootimages, 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 newmachine-config-daemoncode as base64 into Ignition and running it there but...runcom commentedon Jun 27, 2019
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
daemon: Add a m-c-d-firstboot.service that handles encapsulated MC
21 remaining items
data/rhcos: Bump to rhcos-4.3/ 43.81.20191028.2
openshift-bot commentedon Sep 14, 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 Oct 15, 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 Nov 14, 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 Nov 14, 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.
Import pivot code
daemon: Add a m-c-d-firstboot.service that handles encapsulated MC