-
Notifications
You must be signed in to change notification settings - Fork 198
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
rpm-ostree status --json does not properly serialize ostree.manifest
for OCI deployments
#5196
Comments
I think it's on purpose as de-serializing those would change the format of the JSON output of |
There's a different alternative here - first try parsing |
Now that in turn actually relates to containers/bootc#348 |
Good suggestion, thanks. I just looked into it and that would not work for zincati because I need to find out the coreOS stream from the ostree manifest to query the update graph from cincinnati |
The stream is already part of the standard label metadata:
So if we exposed the manifest/config metadata from bootc (which is containers/bootc#348 ) then that's all that's needed, no? |
Yes ! |
I think my proposal for now is zincati forks off and parses |
Hmm, I think this is related to #5120. If Zincati uses that, then we can also get the stream information from the custom origin. Or with the idea of the custom origin URL being to the graph OCI artifact, then Zincati can directly use the graph located there; I think then Zincati wouldn't really need to understand streams at all. |
That is a valid approach for sure, however that custom origin stuff isn't in bootc which won't understand it (which is probably both good and bad). |
I think this was part 2 of the two step plan, currently we don't publish the update graph as the OCI artifact, do we ? IMHO, parsing both |
Describe the bug
When the booted deployment is a container image , the output of rpm-ostree status --json does not properly serialize a few keys under
base-commit-meta
:ostree.manifest
andostree.container.image-config
are both serialized as strings with the JSON structure escaped.Reproduction steps
rpm-ostree rebase ostree-unverified-registry:quay.io/fedora/fedora-coreos@sha256:d12dd2fcb57ecfde0941be604f4dcd43ce0409b86e5ee4e362184c802b80fb84
then rebootrpm-ostree status --json
3 . output :
Expected behavior
I am expexting
ostree.manifest
andostree.container.image-config
to be properly serialized as JSON objectsActual behavior
ostree.manifest
andostree.container.image-config
are serialized as stringsSystem details
Additional information
No response
The text was updated successfully, but these errors were encountered: