You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I provision this CRD in my k8s cluster, here is what's gonna happen:
chaos-controller-manager sends API call to my PhysicalMachine host
My host starts disruption on ens21 which makes my host unreachable
chaos-controller-manager waits for API response but there is an ongoing network chaos (for 3 min) so it times-out
Failed to apply chaos: : Post "http://10.52.0.205:31767/api/attack/network": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
I believe this is caused in server.go#L160 by ExecuteAttack() being called before function returns http.StatusOK. This behavior works for most of the chaos but this one is a bit different as it has its own "duration" and is autonomous on recovering.
Moreover, note that if spec.duration > spec.network-down.duration a retry will be sent to the host API during the spare time between the two "duration" (4th minute in the manifest above). And this second time HTTP will return HTTP 200 and a second network disruption will be triggered.
The text was updated successfully, but these errors were encountered:
Context:
I want to create a network attack that sets
ens21
down for 3 minutes, using chaosd in server mode with chaos-mesh CRD integration.Running naive version with chaosd CLI works:
Then, here is a simple version of the attack manifest:
If I provision this CRD in my k8s cluster, here is what's gonna happen:
ens21
which makes my host unreachableI believe this is caused in server.go#L160 by
ExecuteAttack()
being called before function returnshttp.StatusOK
. This behavior works for most of the chaos but this one is a bit different as it has its own "duration" and is autonomous on recovering.Moreover, note that if
spec.duration
>spec.network-down.duration
a retry will be sent to the host API during the spare time between the two "duration" (4th minute in the manifest above). And this second time HTTP will return HTTP 200 and a second network disruption will be triggered.The text was updated successfully, but these errors were encountered: