Created
September 2, 2024 03:15
-
-
Save ikurni/258fce5642e9992586d6ad9eb9426788 to your computer and use it in GitHub Desktop.
Openshift Node Target OS Image Issue expected target osImageURL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### One of the MCP degraded, machine-config-daemon show error log : expected target osImageURL | |
### Pause of the update procedure (in console), then on the degraded node: | |
# ssh core@degraded-node | |
# sudo -i | |
# rpm-ostree rollback | |
# systemctl reboot | |
### After the node is up again, force the node to re-pull the image and extract the osImage : | |
# /run/bin/machine-config-daemon pivot "quay.io/openshift-release..." | |
### where "quay.io/openshift-release..." was the same as on the other non-degraded node. | |
### After the command has been completed run, check the status of the current image | |
### Current one has "*" at the beginning of the first line, for example: | |
# ssh core@degraded-node sudo rpm-ostree status | |
State: idle | |
Deployments: | |
● pivot://quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:62c8d917e99573b609fb12a853fe575d9eba684e8aad925f08f3a2ef7e32d77a | |
CustomOrigin: Managed by machine-config-operator | |
Version: 48.84.202301181057-0 (2023-01-18T11:00:20Z) | |
pivot://quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:2b6f3b4c497885fdf09cffa5223f933b9714f1db5256fd23bc5a72ce2590631c | |
CustomOrigin: Managed by machine-config-operator | |
Version: 47.84.202204041239-0 (2022-04-04T12:42:58Z) | |
# ssh core@degraded-node sudo reboot | |
### After the degraded node up, check the machine-config-daemon pods logs, if the node is not automatically uncordon after few moment, uncordon manually |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment