summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2018-09-18 17:11:46 +0400
committerMichael Polenchuk <mpolenchuk@mirantis.com>2018-09-18 17:42:35 +0400
commitc57d4c9a8e26c7dcb8f9f1b98c5b5d6d668750a3 (patch)
treefb20cb4ced61503c35eea803f7571af92b5907bc /ci
parent202f4d38e9221306bed7a563ab7f5aa639b045a0 (diff)
Make docker isolation chain go first
Restart docker service to refresh FORWARD chain and insert docker related rules on top. Change-Id: I971840f5979636c4ea8ae4d66a82982c24aa5f66 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/deploy.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh
index 11218196e..8baacfab0 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -300,12 +300,16 @@ elif [ ${USE_EXISTING_INFRA} -gt 0 ]; then
else
prepare_vms "${base_image}" "${MCP_STORAGE_DIR}" "${virtual_repos_pkgs}" \
"${virtual_nodes[@]}"
- prepare_containers "${MCP_STORAGE_DIR}"
create_networks "${OPNFV_BRIDGES[@]}"
do_sysctl_cfg
do_udev_cfg
create_vms "${MCP_STORAGE_DIR}" "${virtual_nodes_data}" "${OPNFV_BRIDGES[@]}"
start_vms "${virtual_nodes[@]}"
+
+ # https://github.com/docker/libnetwork/issues/1743
+ # rm -f /var/lib/docker/network/files/local-kv.db
+ sudo systemctl restart docker
+ prepare_containers "${MCP_STORAGE_DIR}"
fi
start_containers "${MCP_STORAGE_DIR}"