Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add events to kubectl.wait() and kubectl.rollout() errors
Most errors are timeouts, and the error from kubectl is not helpful: error: timed out waiting for the condition on deployments/nginx Try to add events from the relevant resource to help debugging the issue. Here is an example when running a self test in a loop, reaching Docker Hub rate limit: drenv.commands.Error: Command failed: command: ('kubectl', 'wait', '--context', 'dr1', 'deploy/nginx', '--for=condition=Available', '--namespace=ns1', '--timeout=120s') exitcode: 1 error: error: timed out waiting for the condition on deployments/nginx events: LAST SEEN TYPE REASON OBJECT MESSAGE 36m (x27 over 151m) Warning Failed Pod/nginx-7f456874f4-kqljw Failed to pull image "nginx": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/library/nginx:latest": ...: 429 Too Many Requests - Server message: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit 26m (x29 over 151m) Normal Pulling Pod/nginx-7f456874f4-kqljw Pulling image "nginx" 85s (x648 over 151m) Normal BackOff Pod/nginx-7f456874f4-kqljw Back-off pulling image "nginx" Signed-off-by: Nir Soffer <nsoffer@redhat.com>
- Loading branch information