-
Bug
-
Resolution: Won't Do
-
Normal
-
None
-
4.12.0
-
None
-
False
-
Description of problem:
when the cluster is upgraded from 4.11 to 4.12, image info in custom-origin property is missed
before upgrade
2022-10-12T06:32:28.440110335+00:00 stderr F I1012 06:32:28.440070 104665 rpm-ostree.go:143] { 2022-10-12T06:32:28.440110335+00:00 stderr F "id": "rhcos-ef3d993fff854779826434503ae751283c2e1d3b1795ed29c5eb35ff43c2d398.0", 2022-10-12T06:32:28.440110335+00:00 stderr F "osname": "rhcos", 2022-10-12T06:32:28.440110335+00:00 stderr F "serial": 0, 2022-10-12T06:32:28.440110335+00:00 stderr F "base-checksum": null, 2022-10-12T06:32:28.440110335+00:00 stderr F "checksum": "ef3d993fff854779826434503ae751283c2e1d3b1795ed29c5eb35ff43c2d398", 2022-10-12T06:32:28.440110335+00:00 stderr F "version": "411.86.202209211811-0", 2022-10-12T06:32:28.440110335+00:00 stderr F "timestamp": 1663784034, 2022-10-12T06:32:28.440110335+00:00 stderr F "booted": true, 2022-10-12T06:32:28.440110335+00:00 stderr F "staged": false, 2022-10-12T06:32:28.440110335+00:00 stderr F "origin": "ef3d993fff854779826434503ae751283c2e1d3b1795ed29c5eb35ff43c2d398", 2022-10-12T06:32:28.440110335+00:00 stderr F "custom-origin": [ 2022-10-12T06:32:28.440110335+00:00 stderr F "pivot://quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:42049fccd994c2bd4be11005a788c6e3e9590e32b2c95bd8174984da45585804", 2022-10-12T06:32:28.440110335+00:00 stderr F "Managed by machine-config-operator" 2022-10-12T06:32:28.440110335+00:00 stderr F ], 2022-10-12T06:32:28.440110335+00:00 stderr F "container-image-reference": "" 2022-10-12T06:32:28.440110335+00:00 stderr F }
after upgrade
2022-10-12T06:36:44.548399559+00:00 stderr F I1012 06:36:44.548366 1993 rpm-ostree.go:143] { 2022-10-12T06:36:44.548399559+00:00 stderr F "id": "rhcos-6f7fc4df61b039708373a8258f32461698bb23bdcdb02210c5128f823baae2b6.0", 2022-10-12T06:36:44.548399559+00:00 stderr F "osname": "rhcos", 2022-10-12T06:36:44.548399559+00:00 stderr F "serial": 0, 2022-10-12T06:36:44.548399559+00:00 stderr F "base-checksum": null, 2022-10-12T06:36:44.548399559+00:00 stderr F "checksum": "6f7fc4df61b039708373a8258f32461698bb23bdcdb02210c5128f823baae2b6", 2022-10-12T06:36:44.548399559+00:00 stderr F "version": "412.86.202210072111-0", 2022-10-12T06:36:44.548399559+00:00 stderr F "timestamp": 1665177265, 2022-10-12T06:36:44.548399559+00:00 stderr F "booted": true, 2022-10-12T06:36:44.548399559+00:00 stderr F "staged": false, 2022-10-12T06:36:44.548399559+00:00 stderr F "origin": "6f7fc4df61b039708373a8258f32461698bb23bdcdb02210c5128f823baae2b6", 2022-10-12T06:36:44.548399559+00:00 stderr F "custom-origin": null, 2022-10-12T06:36:44.548399559+00:00 stderr F "container-image-reference": "" 2022-10-12T06:36:44.548399559+00:00 stderr F }
user cannot check image info via rpm-ostree status
Version-Release number of selected component (if applicable):
4.12
How reproducible:
upgrade cluster from 4.11.z to 4.12.0-0.nightly-2022-10-10-015203
Actual results:
output of cmd rpm-ostree status does not contain the image info, just ostree deployment id can be found sh-4.4# rpm-ostree status State: idle Deployments: * 6f7fc4df61b039708373a8258f32461698bb23bdcdb02210c5128f823baae2b6 Version: 412.86.202210072111-0 (2022-10-07T21:14:25Z)
Expected results:
output of cmd rpm-ostree status contains the image info
Additional info:
https://github.com/openshift/machine-config-operator/blob/d4f0c3103e2f7acb5708f1e82f8ab16f465bd2c2/pkg/daemon/rpm-ostree.go#L135 cannot get booted os image url