Mesos-master and slave automation along with docker.

asked 2016-07-19 13:01:11 -0500

Arpitha gravatar image

I have written puppet code for automating mesos-master and mesos-slave using deric mesos module and docker on mesos-slave. However I have 2 issues with it:

  1. Mesos slave gets added to mesos-master sometimes and does not get added some other times.

  2. Docker is creating some iptables rules which is throwing the below error and I tried adding my own rules using firewall module but the error still exists. PS I have also tried exec(systemctl stop iptables) and exec(systemctl disable iptables)

Error: Execution of '/sbin/iptables -t filter -D FORWARD -i docker0 -o docker0 -j ACCEPT' returned 1: iptables: Bad rule (does a matching rule exist in that chain?). Error: /Stage[main]/Main/Firewall[9004 74aa613649d9718fb31361867b84366f]/ensure: change from present to absent failed: Execution of '/sbin/iptables -t filter -D FORWARD -i docker0 -o docker0 -j ACCEPT' returned 1: iptables: Bad rule (does a matching rule exist in that chain?). Error: Execution of '/sbin/iptables -t nat -D OUTPUT ! -d 127.0.0.0/8 -m addrtype --dst-type LOCAL -j DOCKER' returned 2: iptables v1.4.21: Couldn't load target `DOCKER':No such file or directory

Try iptables -h' or 'iptables --help' for more information. Error: /Stage[main]/Main/Firewall[9006 f5c6b7c8832d4b28ed0fdf8a525e233e]/ensure: change from present to absent failed: Execution of '/sbin/iptables -t nat -D OUTPUT ! -d 127.0.0.0/8 -m addrtype --dst-type LOCAL -j DOCKER' returned 2: iptables v1.4.21: Couldn't load targetDOCKER':No such file or directory

Try iptables -h' or 'iptables --help' for more information. Error: Execution of '/sbin/iptables -t filter -D FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT' returned 1: iptables: Bad rule (does a matching rule exist in that chain?). Error: /Stage[main]/Main/Firewall[9002 49631823720e9a79abd414e73cccd48d]/ensure: change from present to absent failed: Execution of '/sbin/iptables -t filter -D FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT' returned 1: iptables: Bad rule (does a matching rule exist in that chain?). Error: Execution of '/sbin/iptables -t nat -D POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE' returned 1: iptables: No chain/target/match by that name. Error: /Stage[main]/Main/Firewall[9007 efa39a4b89effc9642a89cf152ca1143]/ensure: change from present to absent failed: Execution of '/sbin/iptables -t nat -D POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE' returned 1: iptables: No chain/target/match by that name. Error: Execution of '/sbin/iptables -t filter -D FORWARD -o docker0 -j DOCKER' returned 2: iptables v1.4.21: Couldn't load targetDOCKER':No such file or directory

Try iptables -h' or 'iptables --help' for more information. Error: /Stage[main]/Main/Firewall[9001 305cfb035fc4adba0e46cad3d15bca23]/ensure: change from present to absent failed: Execution of '/sbin/iptables -t filter -D FORWARD -o docker0 -j DOCKER' returned 2: iptables v1.4.21: Couldn't load targetDOCKER':No such file or directory

Try iptables -h' or 'iptables --help' for more information. Notice: /Stage[main]/Mesos::Slave/Exec[Add the node ip ... (more)

edit retag flag offensive close merge delete