X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Ffull_install_osm.sh;h=4a4287ad6f7f9fa751d63549e258555fb28123b2;hb=refs%2Fchanges%2F52%2F14052%2F2;hp=1bed516370b404f5cf8d0f834e8271bd79ab587d;hpb=45ab04c03ec1242fe0b02abbd9f1403a5e71afb3;p=osm%2Fdevops.git diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index 1bed5163..4a4287ad 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -507,7 +507,7 @@ function deploy_osm_services() { function deploy_charmed_services() { [ -z "${DEBUG_INSTALL}" ] || DEBUG beginning of function juju add-model $OSM_STACK_NAME $OSM_VCA_K8S_CLOUDNAME - juju deploy ch:mongodb-k8s -m $OSM_STACK_NAME + juju deploy ch:mongodb-k8s -m $OSM_STACK_NAME --channel latest/stable [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function } @@ -520,7 +520,7 @@ function deploy_osm_pla_service() { function install_osm_ngsa_service() { [ -z "${DEBUG_INSTALL}" ] || DEBUG beginning of function - $OSM_DEVOPS/installers/install_ngsa.sh -d ${OSM_HELM_WORK_DIR} -D ${OSM_DEVOPS} ${DEBUG_INSTALL} || \ + $OSM_DEVOPS/installers/install_ngsa.sh -d ${OSM_HELM_WORK_DIR} -D ${OSM_DEVOPS} -t ${OSM_DOCKER_TAG} ${DEBUG_INSTALL} || \ FATAL_TRACK install_osm_ngsa_service "install_ngsa.sh failed" [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function } @@ -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 "$@" || \