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

deny_all_ingress not working

Open shiju-tech opened this issue 3 years ago • 1 comments

Describe the bug Action fails with below error:

[2021-01-31 16:12:34 INFO] Action: deny_all_ingress [2021-01-31 16:12:34 ERROR] => failed: kubernetes.client.exceptions.ApiException: (400) Reason: Bad Request HTTP response headers: HTTPHeaderDict({'Content-Length': '506', 'Cache-Control': 'no-cache, private', 'Date': 'Sun, 31 Jan 2021 16:13:04 GMT', 'Content-Type': 'application/json'}) HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"NetworkPolicy in version "v1" cannot be handled as a NetworkPolicy: v1.NetworkPolicy.Spec: v1.NetworkPolicySpec.PodSelector: v1.LabelSelector.MatchLabels: ReadMapCB: expect { or n, but found ", error found in #10 byte of ...|Labels": "app=ccs-ed|..., bigger context ...|.io/v1", "spec": {"podSelector": {"matchLabels": "app=service"}, "policyTypes": ["In|...","reason":"BadRequest","code":400}

shiju-tech avatar Jan 31 '21 16:01 shiju-tech

@brettburley if you can rebase this, I'll pull it in tonight/tomorrow :)

thanks again for pushing ahead with this recent block of improvements!

toranb avatar Apr 28 '17 01:04 toranb

Sorry for taking so long to come back here.

I need to play it again, but could you share:

  • your kubernetes version (client/server)
  • your policy

cheers

Lawouach avatar Feb 25 '21 10:02 Lawouach