-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install cloud images from oscontainer (or at least pretend) #307
Comments
Alternatively, change the status quo and make it care about OSTree commits/versions? Basically, broaden the MachineConfig spec to also include not just the |
Versioning should be handled at the Version Control Operator (or similar named) which handles preparing manifest for each release. Those then reference the proper |
/cc @crawford |
I was hoping to add support for oscontainers into coreos-assembler. This would follow up from coreos/coreos-assembler#90 |
That's just to teach c-a to output oscontainers, right? It would help with the binding problem if the oscontainer and the cloud image is built in one shot, but we still need that cloud image to have the right So one thing we could do here:
? |
Related: #281 It sounds like we need to weigh whether this needs to be done now, or wait until we pivot to the latest c-a and implement it there. The way the MCD is set up, things would still work OK without this (it'll just force an update to whatever oscontainer it was handed). Though for our developers, it can get annoying to always endure a reboot even if using the latest private AMI. (On the public side, the AMIs are outdated anyway, so rebooting is expected). One thing we could do to alleviate this until then is to teach |
I roughly agree with #307 (comment) - I am indirectly working on this via taking on coreos-assembler+ootpa and that's mostly hitting 1+2. Then I'll look at step 3, shouldn't be too hard to inject some bits into |
This is done now. |
Now that RHCOS is pre-pivoted (see openshift/os#307), we need to tweak the logic here on how we handle `osImageURL`. Notably, we allow `://dummy` from the installer to always match the current image, regardless of whether we're pivoted or not. In fact, that should've been the logic from the start. Closes: openshift#150
Right now, the oscontainer and cloud images are completely separate. In theory, the latest container pushed and the latest cloud image should contain the same commit. Though it's not as direct as installing the OS from the oscontainer. The reason for this is that at the cluster level, all it cares about is the oscontainer. It doesn't know anything about OSTree commits or OSTree versions.
One hacky but easiest path for now would be to "fake it" in
%post
by fiddling with the origin file. Though we'd have to check first that the cloud image we just built corresponds to the latest oscontainer in the registry, and if not... jump ship? Yuck.The text was updated successfully, but these errors were encountered: