Description of problem: Cluster Loader is a scale test tool (https://docs.openshift.com/container-platform/4.1/scalability_and_performance/using-cluster-loader.html#running_cluster_loader_) When running it without specifying user provided configuration, it does not successfully locate the built in test templates. Version-Release number of selected component (if applicable): 4.2 How reproducible: Always Steps to Reproduce: 1.sudo podman run -v ${LOCAL_KUBECONFIG}:/root/.kube/config -i quay.io/openshift/origin-tests:4.1 /bin/bash -c 'export KUBECONFIG=/root/.kube/config && openshift-tests run-test "[Feature:Performance][Serial][Slow] Load cluster should load the cluster [Suite:openshift]"' 2. Fail Actual results: Error stating unable to find template files in built in config. Expected results: Succesful execution of built in config by deploying test data templates. Additional info:
[jugs@trip ~]$ sudo podman run -v /home/jugs/.kube/config:/root/.kube/config:z -i quay.io/openshift/origin-tests:4.2 /bin/bash -c 'export KUBECONFIG=/root/.kube/config && \ openshift-tests run-test "[Feature:Performance][Serial][Slow] Load cluster should load the \ cluster [Suite:openshift]"' I1016 14:13:00.006474 7 test.go:182] openshift-tests excluded test regex is "\\[Disabled:|\\[Disruptive\\]|\\[Skipped\\]|\\[Slow\\]|\\[Flaky\\]|\\[local\\]|\\[Suite:openshift/test-cmd\\]|\\[Skipped:skeleton\\]|\\[Skipped:Network/OpenShiftSDN\\]" Oct 16 14:13:00.134: INFO: >>> kubeConfig: /root/.kube/config Oct 16 14:13:00.137: INFO: Waiting up to 30m0s for all (but 100) nodes to be schedulable Oct 16 14:13:01.045: INFO: Waiting up to 10m0s for all pods (need at least 0) in namespace 'kube-system' to be running and ready Oct 16 14:13:01.316: INFO: 0 / 0 pods in namespace 'kube-system' are running and ready (0 seconds elapsed) Oct 16 14:13:01.316: INFO: expected 0 pod replicas in namespace 'kube-system', 0 are Running and Ready. Oct 16 14:13:01.316: INFO: Waiting up to 5m0s for all daemonsets in namespace 'kube-system' to start Oct 16 14:13:01.405: INFO: e2e test version: v1.14.6+bad6c07 Oct 16 14:13:01.487: INFO: kube-apiserver version: v1.14.6+bebfa64 [BeforeEach] [Top Level] /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/test/extended/util/test.go:59 [BeforeEach] [Feature:Performance][Serial][Slow] Load cluster /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/test/e2e/framework/framework.go:149 STEP: Creating a kubernetes client Oct 16 14:13:01.488: INFO: >>> kubeConfig: /root/.kube/config [BeforeEach] [Feature:Performance][Serial][Slow] Load cluster /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/test/extended/cluster/cl.go:44 Oct 16 14:13:01.494: INFO: Undefined config file, using built-in config /tmp/fixture-testdata-dir318529024/test/extended/testdata/cluster/master-vert.yaml [It] should load the cluster [Suite:openshift] /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/test/extended/cluster/cl.go:65 Oct 16 14:13:01.495: INFO: Our tuning set is: &{default {{5 0s 0s} {0s}} {{0 0s 0s} {0s}}} Oct 16 14:13:01.585: INFO: Project clusterloader-cakephp-mysql0 does not exist. Oct 16 14:13:01.585: INFO: Configuration requested deletion of project clusterloader-cakephp-mysql0 Oct 16 14:13:01.585: INFO: Running 'oc --namespace= --config= adm new-project clusterloader-cakephp-mysql0' Created project clusterloader-cakephp-mysql0 Oct 16 14:13:02.249: INFO: 1/1 : Created new namespace: clusterloader-cakephp-mysql0 [AfterEach] [Feature:Performance][Serial][Slow] Load cluster /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/test/extended/util/client.go:120 [AfterEach] [Feature:Performance][Serial][Slow] Load cluster /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/test/e2e/framework/framework.go:150 Oct 16 14:13:02.252: INFO: Waiting up to 3m0s for all (but 100) nodes to be ready Oct 16 14:13:02.505: INFO: Running AfterSuite actions on all nodes Oct 16 14:13:02.505: INFO: Running AfterSuite actions on node 1 fail [github.com/openshift/origin/test/extended/cluster/cl.go:156]: Unexpected error: <*errors.errorString | 0xc00281f110>: { s: "unable to find pod/template file ./test/extended/testdata/cluster/quickstarts/cakephp-mysql.json\n", } unable to find pod/template file ./test/extended/testdata/cluster/quickstarts/cakephp-mysql.json occurred
It seems that the change in origin: https://github.com/openshift/origin/blob/master/vendor/k8s.io/kubernetes/test/e2e/patch_from_e2e_testfile.go#L61 Neuters the function that we were using to find the viperConfig path, now always returning "" rather than the path. Will need to work around this in the Cluster Loader test.
Cluster Loader is part of extended test and has no component of its own
Fixed in https://github.com/openshift/origin/pull/23994
The docs will need to be updated as the openshift-tests have moved from quay.io/openshift/origin-tests:4.3 to the new repo: registry.svc.ci.openshift.org/ocp/4.3:tests
Cluster loader is now able to find the default config when there is no config specified. Note: the image to get the openshift-tests is "registry.svc.ci.openshift.org/ocp/4.3:tests" and not "quay.io/openshift/origin-tests:4.3" Steps to Verify: 1. pull the openshift tests from the "registry.svc.ci.openshift.org/ocp/4.3:tests" podman pull registry.svc.ci.openshift.org/ocp/4.3:tests 2. Run the tests with out specifying a config. sudo podman run -v ${LOCAL_KUBECONFIG}:/root/.kube/config:z -i registry.svc.ci.opensh ift.org/ocp/4.3:tests /bin/bash -c 'export KUBECONFIG=/root/.kube/config && openshift-tests run-test "[Feature:Performance][Serial][Slow ] Load cluster should load the cluster [Suite:openshift]"' 3. Note that the cluster loader doesn't fail with the error "unable to find pod/template file ./test/extended/testdata/cluster/quickstarts/cakephp-mysql.json" but it successfully creates projects with different templates. 4. # oc projects | grep clusterloader clusterloader-cakephp-mysql0 clusterloader-dancer-mysql0 clusterloader-django-postgresql0 clusterloader-nodejs-mongodb0 clusterloader-rails-postgresql0
Documentation updates: https://github.com/openshift/openshift-docs/pull/18293
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0062
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days