worstcase / blockade

Docker-based utility for testing network failures and partitions in distributed applications

Home Page:http://blockade.readthedocs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blockade destroy should quit with error if not executed with root privileges

szborows opened this issue · comments

Currently the execution happily passes straight into iptables setup and throws meaningless exception from subprocess.check_output - OSError File does not exist

With the (imminent) 0.3.0 release, root privileges are no longer required. Iptables and tc commands are themselves executed in docker containers. So the user just needs the ability to call docker.

It's still not the most beautiful error if the user doesn't have Docker privileges, so I'm going to keep this issue open and add a friendlier error in a future release.