chart-testing icon indicating copy to clipboard operation
chart-testing copied to clipboard

Improve error logs when a service is unavailable

Open goelankitt opened this issue 3 years ago • 0 comments

Is this a request for help?: No

Is this a BUG REPORT or FEATURE REQUEST? (choose one): Feature Request

I set the default value of a service type to "LoadBalancer". And hence that service would not become ready on the kind cluster. The ct tool eventually waits for the service to become ready and then times out. The error log does not show anything related to the actual failure i.e. the service not becoming ready. I was just wondering if it's possibly to improve the error log in this case by printing the service(or any other k8s resource) that is not ready.

You can check the CI logs here: Logs

Version of Helm and Kubernetes:

What happened: The service was stuck in Pending state because it's type was "LoadBalancer" and ct failed with following error:

------------------------------------------------------------------------------------------------------------------------
 ✖︎ cortex-gateway => (version: "0.1.0", path: "stable/cortex-gateway") > Error waiting for process: exit status 1
------------------------------------------------------------------------------------------------------------------------
Error installing charts: Error processing charts
Error: Error installing charts: Error processing charts
Error: Process completed with exit code 1.

What you expected to happen: I expected it to print which service/pods were unavailable/not ready.

How to reproduce it (as minimally and precisely as possible): In any helm chart default values file set the type of service to LoadBalancer.

Anything else we need to know: No

goelankitt avatar Oct 06 '21 10:10 goelankitt