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

Missing Metadata for ProjectList in project.openshift.io/v1

XMLWordPrintable

    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      It appears that the metadata field, specifically resourceVersion, is missing in the ProjectList object
      
      Questions:
      Is the absence of resourceVersion in the ProjectList metadata for project.openshift.io/v1 by design, or is this a bug?
      If this is by design, could you please clarify the reasoning behind it?This caused issues when handling watch events in the Argo CD gitops-engine. After printing out the API resource details during troubleshooting, we confirmed that the resourceVersion is missing for ProjectList.
      
      Related Jira: https://issues.redhat.com/browse/GITOPS-5213
      
      This jira is opened as a placeholder for the Github issue reported for the same: https://github.com/openshift/api/issues/2064

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

          

      How reproducible:

          Always

      Steps to Reproduce:

         https://issues.redhat.com/browse/GITOPS-5213
         1. Enable resource.resource,respectRBAC in extraConfig
         2. Configure additional clusterrole and clusterrolebinding if using a cluster scoped instance
         3. Check the logs to see the above message.

      Actual results:

          Log being spammed with message 
          Project.project.openshift.io on https:<...>: initial RV \"\" is not supported due to issues with underlying WATCH, retrying in 1s" server="https://kubernetes.default.svc"91E0809 19:18:32.728128 retrywatcher.go:130] "Watch failed" err="unknown" 

      Expected results:

          No spamming of the logs

      Additional info:

      Here is the relevant log output:
      
      &{map[apiVersion:project.openshift.io/v1 
      kind:ProjectList metadata:map[]] 
      &{map[apiVersion:apps/v1 kind:StatefulSetList metadata:map[resourceVersion:50313]]
      &{map[apiVersion:operator.openshift.io/v1 kind:KubeControllerManagerList metadata:map[continue: resourceVersion:50313]]
      &{map[apiVersion:operator.openshift.io/v1 kind:KubeControllerManagerList metadata:map[continue: resourceVersion:50313]]
      &{map[apiVersion:argoproj.io/v1alpha1 kind:AppProjectList metadata:map[continue: resourceVersion:72951]]    

              Unassigned Unassigned
              rhn-support-gio Ginilekshmi A O
              Rahul Gangwar Rahul Gangwar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: