vmware-tanzu/sonobuoy

could not create sonobuoy client: couldn't get sonobuoy api helper: could not get api group resources

Opened this issue · 0 comments

What steps did you take and what happened:
[A clear and concise description of what the bug is.]
Unable to retrieve the results from sonobuoy after the successful test runs that we had run in the remote machine using the kubeconfig file but while retrieving the results getting ""could not create sonobuoy client: couldn't get sonobuoy api helper: could not get api group resources: Get "https://:/api?timeout=32s": dial tcp : i/o timeout"

Earlier we used Service principal to sign into the azure and spin up the remote machine and we able to test and retrieve the results successfully at runtime from the remote machine but due to security waves we started using user assigned identity to the remote machine.

What did you expect to happen:

After using the UMI the sonobuoy run command working fine but not able to retrieve the results.

Anything else you would like to add:
2024-07-17T07:44:02.0920231Z 07:44:02 Sonobuoy plugins have completed. Preparing results for download.
2024-07-17T07:44:22.0918035Z 07:44:22 azure-arc-platform global complete passed
2024-07-17T07:44:22.0918491Z 07:44:22 azure-arc-agent-cleanup global complete passed
2024-07-17T07:44:22.0918727Z 07:44:22 Sonobuoy has completed. Use sonobuoy retrieve to get results.
2024-07-17T07:44:52.1094225Z time="2024-07-17T07:44:52Z" level=error msg="could not create sonobuoy client: couldn't get sonobuoy api helper: could not get api group resources: Get "https://:6443/api?timeout=32s": dial tcp :6443: i/o timeout"

Environment:

Sonobuoy version: v0.57.1
Kubernetes version: (use kubectl version): 1.28.10
Kubernetes installer & version: 1.28.10
Cloud provider or hardware configuration: Azure
OS (e.g. from /etc/os-release): Ubuntu 22.02
Sonobuoy tarball (which contains * below)