chaostoolkit / chaostoolkit-kubernetes

Kubernetes driver extension of the Chaos Toolkit probes and actions API
https://chaostoolkit.org/drivers/kubernetes/
Apache License 2.0
191 stars 79 forks source link

Cannot use no_proxy env variable with http_proxy #69

Open tdevilleduc opened 4 years ago

tdevilleduc commented 4 years ago

I work behind a corporate proxy with windows 10 So i use 3 env variables:

When i'm using chaostoolkit-kubernetes i cannot contact my minikube cluster

[2019-12-20 15:55:19 INFO] Validating the experiment's syntax [2019-12-20 15:55:20 INFO] Experiment looks valid [2019-12-20 15:55:20 INFO] Running experiment: Le pod MySQL KO ne doit pas perturber le service [2019-12-20 15:55:20 INFO] Steady state hypothesis: Les APIs répondent [2019-12-20 15:55:20 INFO] Probe: Swagger OK [2019-12-20 15:55:20 INFO] Probe: GET /api/users OK [2019-12-20 15:55:20 INFO] Probe: GET /api/users/{id} OK [2019-12-20 15:55:20 INFO] Probe: GET /api/workstations OK [2019-12-20 15:55:20 INFO] Probe: GET /api/workstations/{id} OK [2019-12-20 15:55:20 INFO] Steady state hypothesis is met! [2019-12-20 15:55:20 INFO] Action: Suppression du pod MYSQL 2019-12-20 15:55:23,855 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))': /apis/apps/v1/namespaces/default/deployments?labelSelector=module%3Dmysql 2019-12-20 15:55:23,911 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))': /apis/apps/v1/namespaces/default/deployments?labelSelector=module%3Dmysql 2019-12-20 15:55:23,998 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))': /apis/apps/v1/namespaces/default/deployments?labelSelector=module%3Dmysql [2019-12-20 15:55:24 ERROR] => failed: urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='145.42.9.20', port=8443): Max retries exceeded with url: /apis/apps/v1/namespaces/default/deployments?labelSelector=module%3Dmysql (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden'))) [2019-12-20 15:55:24 INFO] Steady state hypothesis: Les APIs répondent [2019-12-20 15:55:24 INFO] Probe: Swagger OK [2019-12-20 15:55:24 INFO] Probe: GET /api/users OK [2019-12-20 15:55:24 INFO] Probe: GET /api/users/{id} OK [2019-12-20 15:55:24 INFO] Probe: GET /api/workstations OK [2019-12-20 15:55:24 INFO] Probe: GET /api/workstations/{id} OK [2019-12-20 15:55:24 INFO] Steady state hypothesis is met! [2019-12-20 15:55:24 INFO] Let's rollback... [2019-12-20 15:55:24 INFO] No declared rollbacks, let's move on. [2019-12-20 15:55:24 INFO] Experiment ended with status: completed

The only way to make this work is too remove HTTP_PROXY env variable But I need it for other use cases

Is it possible to have NO_PROXY en variable support inchaostoolkit-kubernetes ? I tried to make it myself but i'm newbie in Python

naadev commented 4 years ago

I'm having same problem

kgangerlm commented 2 years ago

Same issue here. It looks like this project isn't really maintained