X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Finstall_osm.sh;h=d51cf85de47c855f4826258bec90a5c81e3509df;hb=c1ec57151ba9d0f0a8d6c15f5bc30c8a2330ccf7;hp=09e86be384f4c20071ea9d8acb39fefc33d3c5b7;hpb=2059b39f539a63acbdbbf861e42816b87fe9a236;p=osm%2Fdevops.git diff --git a/installers/install_osm.sh b/installers/install_osm.sh index 09e86be3..d51cf85d 100755 --- a/installers/install_osm.sh +++ b/installers/install_osm.sh @@ -188,6 +188,12 @@ function configure(){ echo -e " Configuring SO" sudo route add -host $JUJU_CONTROLLER_IP gw $VCA_CONTAINER_IP sudo sed -i "$ i route add -host $JUJU_CONTROLLER_IP gw $VCA_CONTAINER_IP" /etc/rc.local + + # make journaling persistent + lxc exec SO-ub -- mkdir -p /var/log/journal + lxc exec SO-ub -- systemd-tmpfiles --create --prefix /var/log/journal + lxc exec SO-ub -- systemctl restart systemd-journald + echo RIFT_EXTERNAL_ADDRESS=$DEFAULT_IP | lxc exec SO-ub -- tee -a /usr/rift/etc/default/launchpad lxc exec SO-ub -- systemctl restart launchpad @@ -229,10 +235,31 @@ function configure(){ --data '{"rw-ro-account:account": [ { "openmano": { "host": "'$RO_CONTAINER_IP'", "port": "9090", "tenant-id": "'$RO_TENANT_ID'"}, "name": "osmopenmano", "ro-account-type": "openmano" }]}') [[ $result =~ .*success.* ]] || FATAL "Failed resource-orchestrator configuration: $result" - lxc exec SO-ub -- /usr/rift/rift-shell -- rwcli --username admin --passwd admin </dev/null || FATAL "lxd not present, exiting." [ -n "$LXD" ] && echo -e "\nConfiguring lxd" && install_lxd -wget -q -O- https://osm-download.etsi.org/ftp/osm-2.0-two/README.txt &> /dev/null +wget -q -O- https://osm-download.etsi.org/ftp/osm-3.0-three/README.txt &> /dev/null # use local devops for containers export OSM_USE_LOCAL_DEVOPS=true @@ -408,5 +435,5 @@ nat #Configure components configure -wget -q -O- https://osm-download.etsi.org/ftp/osm-2.0-two/README2.txt &> /dev/null +wget -q -O- https://osm-download.etsi.org/ftp/osm-3.0-three/README2.txt &> /dev/null echo -e "\nDONE"