Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-22186

A lot of "casting failed" error message in catalog-operator log

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Undefined
    • None
    • 4.15
    • OLM / OperatorHub
    • None
    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      There are a lot of "casting failed" error messages in catalog-operator log

      Version-Release number of selected component (if applicable):

      zhaoxia@xzha-mac OCPBUGS-6771 % oc get clusterversion
      NAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.15.0-0.nightly-2023-10-17-065657   True        False         5h17m   Cluster version is 4.15.0-0.nightly-2023-10-17-065657

      How reproducible:

      always

      Steps to Reproduce:

      1.check catalog-operator log
      
      time="2023-10-20T08:04:01Z" level=error msg="casting failed" error="wrong type *v1.PartialObjectMetadata, expected **v1.CustomResourceDefinition: &v1.PartialObjectMetadata{TypeMeta:v1.TypeMeta{Kind:\"\", APIVersion:\"\"}, ObjectMeta:v1.ObjectMeta{Name:\"helmchartrepositories.helm.openshift.io\", GenerateName:\"\", Namespace:\"\", SelfLink:\"\", UID:\"faa71862-0c3c-43aa-a714-486ac79fa063\", ResourceVersion:\"1222\", Generation:1, CreationTimestamp:time.Date(2023, time.October, 20, 2, 46, 20, 0, time.Local), DeletionTimestamp:<nil>, DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string{\"api-approved.openshift.io\":\"https://github.com/openshift/api/pull/598\", \"include.release.openshift.io/ibm-cloud-managed\":\"true\", \"include.release.openshift.io/self-managed-high-availability\":\"true\", \"include.release.openshift.io/single-node-developer\":\"true\"}, OwnerReferences:[]v1.OwnerReference{v1.OwnerReference{APIVersion:\"config.openshift.io/v1\", Kind:\"ClusterVersion\", Name:\"version\", UID:\"eacf033a-8175-4920-ad1a-61f6d434d875\", Controller:(*bool)(0xc000e1834f), BlockOwnerDeletion:(*bool)(nil)}}, Finalizers:[]string(nil), ManagedFields:[]v1.ManagedFieldsEntry{v1.ManagedFieldsEntry{Manager:\"cluster-version-operator\", Operation:\"Update\", APIVersion:\"apiextensions.k8s.io/v1\", Time:time.Date(2023, time.October, 20, 2, 46, 20, 0, time.Local), FieldsType:\"FieldsV1\", FieldsV1:(*v1.FieldsV1)(0xc0003409c0), Subresource:\"\"}, v1.ManagedFieldsEntry{Manager:\"kube-apiserver\", Operation:\"Update\", APIVersion:\"apiextensions.k8s.io/v1\", Time:time.Date(2023, time.October, 20, 2, 46, 20, 0, time.Local), FieldsType:\"FieldsV1\", FieldsV1:(*v1.FieldsV1)(0xc000340b40), Subresource:\"status\"}}}}"
      
      time="2023-10-20T08:04:01Z" level=error msg="casting failed" error="wrong type *v1.PartialObjectMetadata, expected **v1.CustomResourceDefinition: &v1.PartialObjectMetadata{TypeMeta:v1.TypeMeta{Kind:\"\", APIVersion:\"\"}, ObjectMeta:v1.ObjectMeta{Name:\"nodes.config.openshift.io\", GenerateName:\"\", Namespace:\"\", SelfLink:\"\", UID:\"a8f2152a-4d64-4437-93b7-63a3f9c9463c\", ResourceVersion:\"1584\", Generation:1, CreationTimestamp:time.Date(2023, time.October, 20, 2, 45, 30, 0, time.Local), DeletionTimestamp:<nil>, DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string(nil), Annotations:map[string]string{\"api-approved.openshift.io\":\"https://github.com/openshift/api/pull/1107\", \"include.release.openshift.io/ibm-cloud-managed\":\"true\", \"include.release.openshift.io/self-managed-high-availability\":\"true\", \"include.release.openshift.io/single-node-developer\":\"true\"}, OwnerReferences:[]v1.OwnerReference{v1.OwnerReference{APIVersion:\"config.openshift.io/v1\", Kind:\"ClusterVersion\", Name:\"version\", UID:\"eacf033a-8175-4920-ad1a-61f6d434d875\", Controller:(*bool)(0xc000e190bf), BlockOwnerDeletion:(*bool)(nil)}}, Finalizers:[]string(nil), ManagedFields:[]v1.ManagedFieldsEntry{v1.ManagedFieldsEntry{Manager:\"cluster-bootstrap\", Operation:\"Update\", APIVersion:\"apiextensions.k8s.io/v1\", Time:time.Date(2023, time.October, 20, 2, 45, 30, 0, time.Local), FieldsType:\"FieldsV1\", FieldsV1:(*v1.FieldsV1)(0xc000874210), Subresource:\"\"}, v1.ManagedFieldsEntry{Manager:\"kube-apiserver\", Operation:\"Update\", APIVersion:\"apiextensions.k8s.io/v1\", Time:time.Date(2023, time.October, 20, 2, 45, 30, 0, time.Local), FieldsType:\"FieldsV1\", FieldsV1:(*v1.FieldsV1)(0xc000874240), Subresource:\"status\"}, v1.ManagedFieldsEntry{Manager:\"cluster-version-operator\", Operation:\"Update\", APIVersion:\"apiextensions.k8s.io/v1\", Time:time.Date(2023, time.October, 20, 2, 46, 27, 0, time.Local), FieldsType:\"FieldsV1\", FieldsV1:(*v1.FieldsV1)(0xc000874270), Subresource:\"\"}}}}"
      
       2.
      3.
      

      Actual results:

      A lot of "casting failed" error message  

      Expected results:

      no such error message

      Additional info:

       

      Attachments

        Activity

          People

            agreene1991 Alexander Greene
            rhn-support-xzha Xia Zhao
            Xia Zhao Xia Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: