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

openshift-tests unable to run in microshift because of invariants

XMLWordPrintable

    • No
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Ever since the introduction of the latest invariants feature in origin, MicroShift is unable to run the conformance tests.
      Failing invariants include load balancer, image registry and kube-apiserver (https://github.com/openshift/origin/blob/master/pkg/defaultinvariants/types.go#L48-L52) and they are tested for disruptions. These tests don't apply in MicroShift because some of those components don't exist, and none of them are HA.
      Requiring the invariants without checking the platform breaks conformance testing in MicroShift.

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

      4.14

      How reproducible:

      Run `openshift-tests run openshift/conformance --provider none` with MicroShift kubeconfig.

      Steps to Reproduce:

      1. 
      2.
      3.
      

      Actual results:

      KUBECONFIG=~/.kube/config ./openshift-tests run openshift/conformance -v 2 --provider none
        Aug  3 11:37:39.859: INFO: MicroShift cluster with version: 4.14.0_0.nightly_2023_06_30_131338_20230703175041_1b2a630fc
      I0803 11:37:39.859929    9250 test_setup.go:94] Extended test version v4.1.0-6883-g6ee9dc5
      openshift-tests version: v4.1.0-6883-g6ee9dc5
        Aug  3 11:37:39.898: INFO: Enabling in-tree volume drivers
      Attempting to pull tests from external binary...
      Falling back to built-in suite, failed reading external test suites: unable to extract k8s-tests binary: failed reading ClusterVersion/version: the server could not find the requested resource (get clusterversions.config.openshift.io version)
        W0803 11:37:40.849399    9250 warnings.go:70] unknown field "spec.tls.externalCertificate"
      Suite run returned error: [namespaces "openshift-image-registry" not found, the server could not find the requested resource (get infrastructures.config.openshift.io cluster)]
      No manifest filename passed
      error running options: [namespaces "openshift-image-registry" not found, the server could not find the requested resource (get infrastructures.config.openshift.io cluster)]error: [namespaces "openshift-image-registry" not found, the server could not find the requested resource (get infrastructures.config.openshift.io cluster)]

      Expected results:

      Tests running to completion.

      Additional info:

      A nice addition would be having additional presubmits in origin to run Microshift conformance to catch these things earlier.

            pacevedo@redhat.com Pablo Acevedo Montserrat
            pacevedo@redhat.com Pablo Acevedo Montserrat
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: