chaos-mesh / chaosd

A Chaos Engineering toolkit.
Apache License 2.0
132 stars 63 forks source link

complete disconnection of the network on the device when an error occurs in "hostname" parameter #226

Open nikitasavchenko555 opened 1 year ago

nikitasavchenko555 commented 1 year ago

When I was using chaosd in service mode, I mistakenly sent the following request to the machine where it was running: curl -X POST localhost:31767/api/attack/network -H "Content-Type:application/json" -d '{"action":"loss","hostnames":"etcd1.ru,etcd2.ru,etcd3.ru","device":"ens2","percent":"100"}' So I specified "hostnames" instead of "hostname" and ns2 was the only external interface, after executing the request, the machine stopped being accessible via http. I think this behavior can lead to some inconveniences.