chaostoolkit-kubernetes icon indicating copy to clipboard operation
chaostoolkit-kubernetes copied to clipboard

Cannot use no_proxy env variable with http_proxy

Open tdevilleduc opened this issue 5 years ago • 2 comments

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

  • HTTP_PROXY
  • HTTPS_PROXY
  • NO_PROXY in order to specify some ip and host that need to bypass proxy definition

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

tdevilleduc avatar Dec 20 '19 15:12 tdevilleduc

@runspired can you articulate when run.join should be used and why? I do agree with your comment - just wanted to be educated if at all possible

toranb avatar Dec 14 '16 22:12 toranb

@dbashford I merged the PR that better supports run.join for tests. You can rebase and uncomment the last test in runloop-test.js to drive out the last set of changes for this pull request

toranb avatar Dec 15 '16 12:12 toranb

Rebased, switched to join and uncommented the test. Thanks for knocking that out for me!

dbashford avatar Dec 15 '16 14:12 dbashford

Yay! :)

runspired avatar Dec 16 '16 20:12 runspired

I'm having same problem

naadev avatar Sep 04 '20 16:09 naadev

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

kgangerlm avatar Sep 02 '22 17:09 kgangerlm