Skip to content

Commit

Permalink
test-libs: restart docker after firewalld stop and iptables flush
Browse files Browse the repository at this point in the history
  • Loading branch information
pkubatrh authored and omron93 committed Dec 7, 2017
1 parent 561e10c commit fd9b209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-lib-openshift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,12 @@ function ct_os_cluster_up() {
if ! grep -qe '--insecure-registry.*172\.30\.0\.0' /etc/sysconfig/docker ; then
sed -i "s|OPTIONS='|OPTIONS='--insecure-registry 172.30.0.0/16 |" /etc/sysconfig/docker
fi
systemctl restart docker

systemctl stop firewalld
setenforce 0
iptables -F

systemctl restart docker
local cluster_ip="127.0.0.1"
[ "${is_public}" == "true" ] && cluster_ip=$(ct_get_public_ip)

Expand Down

0 comments on commit fd9b209

Please sign in to comment.