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
Currently, we have no default mechanism to update the bootimages once a cluster is installed. For example, as of 4.1.4 today, the way things work is that the installer pins RHCOS, and when a cluster is installed in e.g. AWS, the installer injects the AMI into the machinesets in openshift-machine-api. Nothing thereafter updates it. And because we haven't updated the pinned RHCOS for 4.1.X today every OpenShift install uses the 4.1.0 RHCOS bootimages. (More on that below)
Now, see: openshift/origin#21998
for a PR which tries to embed this metadata into the release image. From there, we could imagine having e.g. the cluster API use it to update the machinesets.
However, the "fully managed AWS" environment is the easy one. We have to consider manual bare metal PXE setups as well as private OpenStack clouds. For private clouds like OpenStack (as well as AWS Outpost for that matter) one could imagine that we ship all of the images in a container, or perhaps a "pristine" disk image in a container, and also the tooling (cosa gf-oemid) to stamp it, as well as an operator to pull those bootimages and upload them to glance or private AWS.
The bare metal PXE case is unmanaged; we are probably just going to have to suffer and try to point people doing this towards managed metal.
As of today though, we will have to support upgrading OpenShift from the 4.1.0 bootimages for...quite a while.
One thing I wanted to write about here was that I would swearthis bug was caused by UPI installs having a different bootimage than IPI, but I just used the 4.1.0 installer and it appeared to boot the same version...
Oh wait, I see...actually, there are indeed different checksums for the oscontainer for IPI:
# rpm-ostree status
...
Deployments:
* pivot://quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:53389c9b4a00d7afebb98f7bd9d20348deb1d77ca4baf194f0ae1b582b7e965b
CustomOrigin: Managed by pivot tool
Version: 410.8.20190520.0 (2019-05-20T22:55:04Z)
pivot://docker-registry-default.cloud.registry.upshift.redhat.com/redhat-coreos/ootpa@sha256:683a6a866a8ec789fedb5da63b6a2ff68c1b0788ec90e7def778f0c4c13197a4
CustomOrigin: Provisioned from oscontainer
Version: 410.8.20190520.0 (2019-05-20T20:10:04Z)
#
Yet...they have the same version number 😢 What I suspect happened here is that the RHCOS build failed at some point after pushing the oscontainer, leading to version number reuse, which is a known issue with the pipeline.
@cgwalters I'd propose we support "machine.Spec.ProviderSpec.ami=managed"
"Managed" means "the expected version from mco upgrade management view of the world".
When "machine.Spec.ProviderSpec.ami=managed" we let the actuator fetch the given ami version exposed by the mco in a config map.
The installer will ship with the machineSets ami pointing to "managed".
As a user you still have the choice to opt out and pin to a specific ami if that’s your desire
The patter extrapolates for all providers.
Question: Where is the current mco ami available so we can consume it? Is there already a configMap exposing it?
Now, see: openshift/origin#21998
for a PR which tries to embed this metadata into the release image. From there, we could imagine having e.g. the cluster API use it to update the machinesets.
installer bootimage: The RHCOS bootimage pinned in the installer
machine-os-content: Described above
release update bootimages: The thing we're discussing bringing into existence here
The linked issue there talks about a model where the meta.json from the build (or at least the bootimage information) is injected into either a distinct container, or the machine-os-content.
A tricky question we need to answer here is - what do we do about the case of "oscontainer only" builds, where we didn't produce updated bootimages? Is the "release update bootimage" unset, or does it carry the same thing as the previous bootimage information?
Now...I don't think we can inject this data into machine-os-content for the reasons outlined in the origin PR. So that leaves us with the path of:
new layered container on top of machine-os-content
Distinct container machine-os-bootimage-data ?
Embedding this in the release image itself at build time (what the origin PR was doing)
This also gets into the tricky issue of machine-os-content promotion, and how the release update bootimages are tested.
The complexity here spikes fast because we have to think about all three of the installer pinned bootimage, the machine-os-content, and the release update bootimages. I guess what'd ideally end up happening if we make it all work out is that the installer pinned bootimage is now only used for the bootstrap node...except because masters aren't provisioned by machine API today, we'd likely end up only using the release update bootimages for workers, unless the installer learns how to parse the release image.
I guess what'd ideally end up happening if we make it all work out is that the installer pinned bootimage is now only used for the bootstrap node...except because masters aren't provisioned by machine API today...
Do you expect we'll need to address bootimage updates before we get machine-API-provisioned control planes working? I'm not clear on the relative timing, but that would help reduce some of the complexity.
Do you expect we'll need to address bootimage updates before we get machine-API-provisioned control planes working? I'm not clear on the relative timing, but that would help reduce some of the complexity.
If you get machine-API-created control planes, then you don't have to involve the installer in the selection of cluster bootimages. The installer would just pick whatever bootimage it needed for bootstrapping, and the machine-API could manage bootimage selection and upgrades for the cluster without needing to involve anyone else in that behavior.
I wrote some of this originally here but implementation proposals are probably better here.
First, let's just say we will create machine-os-bootimages which will have a configmap with the COSA meta.json.
How about we add this image to the MCO, and have the (ART) RHCOS pipeline update it via automatically-submitted PRs? (Implementation point; PR submission would be async of build completion)
@abhinavdahiya and I discussed trying to get rhcos.json inside the release payload for 4.5.
And to write an enhancement for the UX around having this extractable via oc adm as a replacement for openshift/installer#2092
Activity
cgwalters commentedon Jul 8, 2019
For future reference, partially since it isn't easy to get the RHCOS version from the installer, here is the version information for 4.1.0:
payload-rhcos-4.1.0
Build info link
Installer 4.1.0 commit c6517384e71e5f09931c4da5e772fdec225d02ec
Inlined metadata JSON for full posterity
cgwalters commentedon Jul 8, 2019
One thing I wanted to write about here was that I would swear this bug was caused by UPI installs having a different bootimage than IPI, but I just used the
4.1.0installer and it appeared to boot the same version...cgwalters commentedon Jul 8, 2019
Oh wait, I see...actually, there are indeed different checksums for the oscontainer for IPI:
Yet...they have the same version number 😢 What I suspect happened here is that the RHCOS build failed at some point after pushing the oscontainer, leading to version number reuse, which is a known issue with the pipeline.
cgwalters commentedon Jul 30, 2019
Because we have an unfortunate common use of private Google Docs for technical discussion, here's a link to an important relevant one "Lifecycle of RHCOS image source": https://url.corp.redhat.com/7aa24cd
DanyC97 commentedon Jul 31, 2019
i suspect this doc can't be made public ? would love to read about it .. if possible
enxebre commentedon Aug 1, 2019
@cgwalters I'd propose we support "machine.Spec.ProviderSpec.ami=managed"
The patter extrapolates for all providers.
Question: Where is the current mco ami available so we can consume it? Is there already a configMap exposing it?
cgwalters commentedon Aug 1, 2019
This is noted in the issue description above:
cgwalters commentedon Aug 1, 2019
Some terms:
The linked issue there talks about a model where the
meta.jsonfrom the build (or at least the bootimage information) is injected into either a distinct container, or themachine-os-content.A tricky question we need to answer here is - what do we do about the case of "oscontainer only" builds, where we didn't produce updated bootimages? Is the "release update bootimage" unset, or does it carry the same thing as the previous bootimage information?
Now...I don't think we can inject this data into
machine-os-contentfor the reasons outlined in the origin PR. So that leaves us with the path of:machine-os-contentmachine-os-bootimage-data?This also gets into the tricky issue of
machine-os-contentpromotion, and how the release update bootimages are tested.The complexity here spikes fast because we have to think about all three of the installer pinned bootimage, the machine-os-content, and the release update bootimages. I guess what'd ideally end up happening if we make it all work out is that the installer pinned bootimage is now only used for the bootstrap node...except because masters aren't provisioned by machine API today, we'd likely end up only using the release update bootimages for workers, unless the installer learns how to parse the release image.
wking commentedon Aug 2, 2019
Do you expect we'll need to address bootimage updates before we get machine-API-provisioned control planes working? I'm not clear on the relative timing, but that would help reduce some of the complexity.
cgwalters commentedon Aug 3, 2019
Offhand...they seem parallelizable?
wking commentedon Aug 3, 2019
If you get machine-API-created control planes, then you don't have to involve the installer in the selection of cluster bootimages. The installer would just pick whatever bootimage it needed for bootstrapping, and the machine-API could manage bootimage selection and upgrades for the cluster without needing to involve anyone else in that behavior.
cgwalters commentedon Sep 11, 2019
I wrote some of this originally here but implementation proposals are probably better here.
First, let's just say we will create
machine-os-bootimageswhich will have a configmap with the COSAmeta.json.How about we add this image to the MCO, and have the (ART) RHCOS pipeline update it via automatically-submitted PRs? (Implementation point; PR submission would be async of build completion)
cgwalters commentedon Jan 31, 2020
@abhinavdahiya and I discussed trying to get
rhcos.jsoninside the release payload for 4.5.And to write an enhancement for the UX around having this extractable via
oc admas a replacement for openshift/installer#2092A later (but parallelizable) task is the idea to ship tooling to turn machine-os-content into a bootimage (subset of cosa) as a derived image from machine-os-content. This is a subset of what https://github.com/coreos/coreos-assembler does - we'd basically take the ostree repo from that and run create_disk.sh.
For this ideally we support a choice of:
With a fallback of:
cgwalters commentedon Feb 4, 2020
openshift/enhancements#201
cgwalters commentedon Feb 4, 2020
Going to move this issue over there.
daemon: Support unpivoted images