-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
False
-
-
False
-
-
The command 'retrieve' must not collect the results to aggregator, and return error, before the aggregator is ready.
Steps to reproduce
- Wait for the plugins finished (STATUS=complete), but not finished (RESULTS="")
$ KUBECONFIG=$PWD/.opct-10t11d33/clusters/opct-10t11d33/auth/kubeconfig $CLI status Mon, 16 Jan 2023 21:20:44 -03> Global Status: post-processing JOB_NAME | STATUS | RESULTS | PROGRESS | MESSAGE 05-openshift-cluster-upgrade | complete | | 0/0 (0 failures) | waiting for post-processor... 10-openshift-kube-conformance | complete | | 20/20 (0 failures) | waiting for post-processor... 20-openshift-conformance-validated | complete | | 2866/3240 (38 failures) | waiting for post-processor... 99-openshift-artifacts-collector | complete | | 0/0 (0 failures) | waiting for post-processor...
- Run the 'retrieve'
$ KUBECONFIG=$PWD/.opct-10t11d33/clusters/opct-10t11d33/auth/kubeconfig $CLI status Mon, 16 Jan 2023 21:20:44 -03> Global Status: post-processing JOB_NAME | STATUS | RESULTS | PROGRESS | MESSAGE 05-openshift-cluster-upgrade | complete | | 0/0 (0 failures) | waiting for post-processor... 10-openshift-kube-conformance | complete | | 20/20 (0 failures) | waiting for post-processor... 20-openshift-conformance-validated | complete | | 2866/3240 (38 failures) | waiting for post-processor... 99-openshift-artifacts-collector | complete | | 0/0 (0 failures) | waiting for post-processor...
Success path:
- Run the 'status' and check if the message allowing to collect have been displayed
$ KUBECONFIG=$PWD/.opct-10t11d33/clusters/opct-10t11d33/auth/kubeconfig $CLI status Mon, 16 Jan 2023 21:35:11 -03> Global Status: complete JOB_NAME | STATUS | RESULTS | PROGRESS | MESSAGE 05-openshift-cluster-upgrade | complete | failed | 0/0 (0 failures) | Total tests processed: 37 (36 pass / 1 failed) 10-openshift-kube-conformance | complete | failed | 20/20 (0 failures) | Total tests processed: 23 (22 pass / 1 failed) 20-openshift-conformance-validated | complete | failed | 2866/3240 (38 failures) | Total tests processed: 1420 (1020 pass / 400 failed) 99-openshift-artifacts-collector | complete | passed | 0/0 (0 failures) | Total tests processed: 3 (3 pass / 0 failed) INFO[2023-01-16T21:35:11-03:00] The execution has completed! Use retrieve command to collect the results and share the archive with your Red Hat partner.
- Collect the results
$ KUBECONFIG=$PWD/.opct-10t11d33/clusters/opct-10t11d33/auth/kubeconfig $CLI retrieve INFO[2023-01-16T21:35:16-03:00] Collecting results... WARN[2023-01-16T21:35:33-03:00] error retrieving certification results from sonobyuoy: unexpected EOF WARN[2023-01-16T21:35:33-03:00] Retrying retrieval 9 more times WARN[2023-01-16T21:35:52-03:00] error retrieving certification results from sonobyuoy: unexpected EOF WARN[2023-01-16T21:35:52-03:00] Retrying retrieval 8 more times WARN[2023-01-16T21:36:10-03:00] error retrieving certification results from sonobyuoy: unexpected EOF WARN[2023-01-16T21:36:10-03:00] Retrying retrieval 7 more times WARN[2023-01-16T21:36:24-03:00] error retrieving certification results from sonobyuoy: unexpected EOF WARN[2023-01-16T21:36:24-03:00] Retrying retrieval 6 more times INFO[2023-01-16T21:36:37-03:00] Results saved to /home/mtulio/go/src/github.com/mtulio/mtulio.labs-cloud-iac/labs/okd-installer/202301161839_sonobuoy_aea11b61-8cd5-4f8e-8c63-fcd183d4999b.tar.gz INFO[2023-01-16T21:36:37-03:00] Use the results command to check the certification test summary or share the results archive with your Red Hat partner.
Expected results:
- Check the aggregator status before sending the retry, and fail if it's not ready