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

precaching CRD does not have resources specified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • None
    • 4.17.0
    • TALM Operator
    • None
    • No
    • False
    • Hide

      None

      Show
      None

      CVP test execution is blocking 4.17 vran erratas with the following error:

            "status": {
              "results": [
                {
                  "name": "olm-crds-have-resources",
                  "log": "Loaded ClusterServiceVersion: topology-aware-lifecycle-manager.v4.17.0\n",
                  "state": "fail",
                  "errors": [
                    "Owned CRDs do not have resources specified"
                  ],
                  "creationTimestamp": null
                }
              ]
            }
          }
      

      source: http://external-ci-coldstorage.datahub.redhat.com/cvp/cvp-redhat-operator-bundle-image-validation-test/topology-aware-lifecycle-manager-operator-bundle-container-v4.17.0-16/05fc176a-0a7f-4790-8558-0226ff4784f5/operator-custom-scorecard-tests-bundle-image-output.txt

      According to the official doc, resources is a mandatory field on CSV for 'owned' CRDs (please review all the required fields are present, 'description' seems not to be present either):

      https://docs.openshift.com/container-platform/4.16/operators/operator_sdk/osdk-generating-csvs.html#osdk-manually-defined-csv-fields_osdk-generating-csvs

      And it seems not to be present in talm ImageBasedGroupUpgrade CRD:

      https://github.com/openshift-kni/cluster-group-upgrades-operator/blob/78878ae608b00957628d0a3d41eb6571a9b3fee2/bundle/manifests/cluster-group-upgrades-operator.clusterserviceversion.yaml#L169

      The upstream test which verifies this validation is:

      https://github.com/openshift-kni/cluster-group-upgrades-operator/blob/78878ae608b00957628d0a3d41eb6571a9b3fee2/bundle/tests/scorecard/config.yaml#L44

      And can be run via (you will need access to an ocp cluster and KUBECONFIG defined):

      $ make bundle
      $ operator-sdk scorecard bundle
      

              saskari@redhat.com Saeid Askari
              rauherna@redhat.com Raúl Hernández
              Joshua Clark Joshua Clark
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: