X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Ffull_install_osm.sh;h=8c651e2e803b44b60e2ef89a6635296af7a88ddf;hb=e64d8cfde60d376724327dddd17f343d1db0388d;hp=8b7f1d8f62088f9b6822c00d3452bd010e7f033f;hpb=d2d00c7a4d69e1865f31a21d84592684189dea81;p=osm%2Fdevops.git diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index 8b7f1d8f..8c651e2e 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -823,6 +823,8 @@ function install_osm() { add_local_k8scluster track final_ops add_local_k8scluster_ok + arrange_docker_default_network_policy + wget -q -O- https://osm-download.etsi.org/ftp/osm-13.0-thirteen/README2.txt &> /dev/null track end sudo find /etc/osm @@ -884,6 +886,13 @@ function install_to_openstack() { return 0 } +function arrange_docker_default_network_policy() { + echo -e "Fixing firewall so docker and LXD can share the same host without affecting each other." + sudo iptables -I DOCKER-USER -j ACCEPT + sudo iptables-save | sudo tee /etc/iptables/rules.v4 + sudo ip6tables-save | sudo tee /etc/iptables/rules.v6 +} + function install_k8s_monitoring() { [ -z "${DEBUG_INSTALL}" ] || DEBUG beginning of function # install OSM monitoring @@ -1223,6 +1232,7 @@ fi # Charmed installation if [ -n "$CHARMED" ]; then + sudo snap install jq || FATAL "Could not install jq (snap package). Make sure that snap works" export OSM_TRACK_INSTALLATION_ID="$(date +%s)-$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16)" track start release $RELEASE none none docker_tag $OSM_DOCKER_TAG none none installation_type $OSM_INSTALLATION_TYPE none none ${OSM_DEVOPS}/installers/charmed_install.sh --tag $OSM_DOCKER_TAG "$@" || \