Skip to content

4.18-4.19 update stuck at crd consoleplugins.console.openshift.io #2195

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

Open
Link1J opened this issue May 18, 2025 · 1 comment
Open

4.18-4.19 update stuck at crd consoleplugins.console.openshift.io #2195

Link1J opened this issue May 18, 2025 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@Link1J
Copy link

Link1J commented May 18, 2025

Describe the bug

Update to 4.19.0-okd-scos.0 from 4.18.0-okd-scos.9, with error message Could not update customresourcedefinition "consoleplugins.console.openshift.io" (595 of 917).

The logs for cluster-version-operator have the following in it.

I0518 20:57:37.285445       1 sync_worker.go:1041] Running sync for customresourcedefinition "consoleplugins.console.openshift.io" (595 of 917)
E0518 20:57:37.389133       1 task.go:128] "Unhandled Error" err="error running apply for customresourcedefinition \"consoleplugins.console.openshift.io\" (595 of 917): CustomResourceDefinition.apiextensions.k8s.io \"consoleplugins.console.openshift.io\" is invalid: status.storedVersions[0]: Invalid value: \"v1alpha1\": must appear in spec.versions" logger="UnhandledError"
E0518 20:57:47.419632       1 task.go:128] "Unhandled Error" err="error running apply for customresourcedefinition \"consoleplugins.console.openshift.io\" (595 of 917): CustomResourceDefinition.apiextensions.k8s.io \"consoleplugins.console.openshift.io\" is invalid: status.storedVersions[0]: Invalid value: \"v1alpha1\": must appear in spec.versions" logger="UnhandledError"

This issue seems to have been found by Redhat (here). My cluster started at 4.13.0-0.okd-2023-07-09-062029 which is earlier then what was reported in that issue.

Version

4.18.0-okd-scos.9

Reproducibility

Unsure (Seems perfectly reproducible)

Log Bundle

Unable to collect because of errors running oc adm must-gather. Will upload if it becomes possible to collect.

@Link1J Link1J added the kind/bug Categorizes issue or PR as related to a bug. label May 18, 2025
@github-project-automation github-project-automation bot moved this to To triage in Bug Triage May 18, 2025
@niktsl
Copy link

niktsl commented May 20, 2025

A workaround to continue with the upgrade

  1. Pause the update

  2. Check that served and storage are both false
    kubectl get crd consoleplugins.console.openshift.io -o jsonpath='{range .spec.versions[?(@.name=="v1alpha1")]}served: {.served} storage: {.storage}{end}'

  3. Lists all existing resources using the v1alpha1 version of the consoleplugins CRD across all namespaces.
    oc get consoleplugins.v1alpha1.console.openshift.io --all-namespaces

If served and storage are false and no existing resources are using v1alpha1, you can safely proceed with the following steps.

  1. Export the CRD: kubectl get crd consoleplugins.console.openshift.io -o yaml > crd-full.yaml

  2. Edit: crd-full.yaml -> remove v1alpha1 and status

  3. Force replace the CRD : kubectl replace --force -f crd-full.yaml

  4. Resume upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
Status: To triage
Development

No branches or pull requests

2 participants