Skip to content

ODH operator fails to patch PVCs probably due to changes storage class #260

@tumido

Description

@tumido

Describe the bug
Seems like we have a mismatch between PVCs in cluster and manifests deployed via ODH operator:

secret/jupyterhub configured
configmap/odh-jupyterhub-sizes unchanged
configmap/spark-cluster-template unchanged
configmap/parameters unchanged
configmap/jupyter-singleuser-profiles unchanged
configmap/jupyterhub-cfg unchanged
configmap/jupyterhub-default-groups-config unchanged
serviceaccount/jupyterhub-hub unchanged
clusterrolebinding.rbac.authorization.k8s.io/jupyterhub-nodereader unchanged
role.authorization.openshift.io/jupyterhub configured
rolebinding.authorization.openshift.io/jupyterhub configured
service/jupyterhub-db unchanged
service/jupyterhub unchanged
deploymentconfig.apps.openshift.io/jupyterhub configured
deploymentconfig.apps.openshift.io/jupyterhub-db configured
imagestream.image.openshift.io/jupyterhub-img configured
route.route.openshift.io/jupyterhub configured
time="2021-06-03T15:23:43Z" level=warning msg="Encountered error applying application jupyterhub:  (kubeflow.error): Code 500 with message: Apply.Run : error when applying patch:\n{\"metadata\":{\"annotations\":{\"kubectl.kubernetes.io/last-applied-configuration\":\"{\\\"apiVersion\\\":\\\"v1\\\",\\\"kind\\\":\\\"PersistentVolumeClaim\\\",\\\"metadata\\\":{\\\"annotations\\\":{\\\"kfctl.kubeflow.io/kfdef-instance\\\":\\\"opendatahub.opf-jupyterhub\\\",\\\"volume.beta.kubernetes.io/storage-class\\\":\\\"moc-nfs-csi\\\"},\\\"labels\\\":{\\\"component.opendatahub.io/name\\\":\\\"jupyterhub\\\",\\\"opendatahub.io/component\\\":\\\"true\\\"},\\\"name\\\":\\\"jupyterhub-db\\\",\\\"namespace\\\":\\\"opf-jupyterhub\\\"},\\\"spec\\\":{\\\"accessModes\\\":[\\\"ReadWriteOnce\\\"],\\\"resources\\\":{\\\"requests\\\":{\\\"storage\\\":\\\"1Gi\\\"}}}}\\n\",\"volume.beta.kubernetes.io/storage-class\":\"moc-nfs-csi\"}}}\nto:\nResource: \"/v1, Resource=persistentvolumeclaims\", GroupVersionKind: \"/v1, Kind=PersistentVolume...
time="2021-06-03T15:23:43Z" level=warning msg="Will retry in 25 seconds."

It makes ODH operator stuck on a single KfDef and doesn't progress to a next one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions