Loading Hackfest_Demos/OSM-15/setup_scripts/README.md +20 −19 Original line number Original line Diff line number Diff line Loading @@ -3,30 +3,32 @@ First, check the common-vars for the following: First, check the common-vars for the following: ``` ``` APT_PROXY=http://172.21.1.1:3142 APT_PROXY=http://172.21.1.1.3142 FLAVOR=m1.xlarge FLAVOR=test_flavor_fix PROJECT=f15ab4f845dc4052811fce96a3676ac8 KEY_NAME=hackfest SUBNET=172.21.248 NETWORK=osm-ext FOCAL=ubuntu20.04 ``` ``` APT_PROXY: the address of a caching web proxy for installing packages APT_PROXY: the address of a caching web proxy for installing packages FLAVOR: the flavour of the new VM to launch. Must have at least 4 CPUs, 8 GB RAM and 60 GB Disk. FLAVOR: the flavour of the new VM to launch. Must have at least 4 CPUs, 8 GB RAM and 60 GB Disk. PROJECT: The project ID in which to launch the new VM KEY_NAME: Key to connect VMs SUBNET: the first three octets of the subnet to use. IP addresses will be allocated from this subnet, starting with .101 - .199 NETWORK: IP addresses will be allocated from this network, this network is management network of OSM instance FOCAL: Image to install VMs ### Create VMs ### Initial Configuration This script creates the VMs in required project This script updates apt, upgrades the system to the latest 20.04 and installs remote desktop software ``` ``` ./run-vm-initial-setup.sh ./run-create-openstack-vm.sh ``` ``` ### Install Microk8s This script will configure the Microk8s VM launched by the create-openstack-user-and-project script. ### Initial Configuration This script updates apt, upgrades the system to the latest 20.04 and installs remote desktop software ``` ``` ./run-microk8s-setup.sh ./run-vm-initial-setup.sh ``` ``` Loading @@ -38,7 +40,7 @@ This script downloads the installer and runs it. It also sets the OSM admin pas ``` ``` ### Add VIM and K8s Cluster ### Add VIM and K8s Cluster Add VIM and ks8cluster to OSM instance ``` ``` ./run-osm-vim-k8scluster-add.sh ./run-osm-vim-k8scluster-add.sh ``` ``` Loading @@ -46,10 +48,9 @@ This script downloads the installer and runs it. It also sets the OSM admin pas ## Full Flow ## Full Flow ``` ``` ./run-create-openstack-user-and-project.sh 1 1 ./run-create-openstack-user-and-project.sh ./run-vm-setup.sh 1 1 ./run-vm-initial-setup.sh ./run-microk8s-setup.sh 1 1 ./run-install-osm.sh ./run-install-osm.sh 1 1 ./run-osm-vim-k8scluster-add.sh ./run-osm-vim-k8scluster-add.sh 1 1 ``` ``` Hackfest_Demos/OSM-15/setup_scripts/common-vars +2 −2 Original line number Original line Diff line number Diff line Loading @@ -16,7 +16,7 @@ if [ ! -z ${DEBUG} ]; then fi fi START=5 START=5 MAX=6 MAX=10 if [ ! -z $2 ] ; then if [ ! -z $2 ] ; then START=$1 START=$1 Loading @@ -28,7 +28,7 @@ fi # ETSI VIM ADMIN_DOMAIN=default # ETSI VIM ADMIN_DOMAIN=default APT_PROXY=http://172.21.1.1.3142 APT_PROXY=http://172.21.1.1.3142 FLAVOR=test_flavor_fix FLAVOR=osm.sanity KEY_NAME=hackfest KEY_NAME=hackfest NETWORK=osm-ext NETWORK=osm-ext FOCAL=ubuntu20.04 FOCAL=ubuntu20.04 Loading Hackfest_Demos/OSM-15/setup_scripts/create-openstack-vm.sh +1 −1 Original line number Original line Diff line number Diff line Loading @@ -8,7 +8,7 @@ PARTICIPANT=${1} VM_NAME=`expr charmedosm-${PARTICIPANT}` VM_NAME=`expr charmedosm-${PARTICIPANT}` echo "Creating public port" echo "Creating public port" # This port gets created as the admin # This port gets created as the admin openstack port create --security-group default --network osm-ext $VM_NAME openstack port create --security-group default --network $NETWORK $VM_NAME wait wait Loading Hackfest_Demos/OSM-15/setup_scripts/run-full-setup.sh +4 −5 Original line number Original line Diff line number Diff line Loading @@ -3,11 +3,10 @@ echo $0 started at $(date) . ./common-vars . ./common-vars #./run-create-openstack-vm.sh $@ ./run-create-openstack-vm.sh $@ ./run-vm-initial-setup.sh $@ ./run-vm-initial-setup.sh $@ #./run-microk8s-setup.sh $@ & ./run-install-osm.sh $@ #./run-install-osm.sh $@ wait #wait ./run-osm-vim-k8scluster-add.sh $@ #./run-osm-vim-k8scluster-add.sh $@ echo $0 $@ complete at $(date) echo $0 $@ complete at $(date) No newline at end of file Loading
Hackfest_Demos/OSM-15/setup_scripts/README.md +20 −19 Original line number Original line Diff line number Diff line Loading @@ -3,30 +3,32 @@ First, check the common-vars for the following: First, check the common-vars for the following: ``` ``` APT_PROXY=http://172.21.1.1:3142 APT_PROXY=http://172.21.1.1.3142 FLAVOR=m1.xlarge FLAVOR=test_flavor_fix PROJECT=f15ab4f845dc4052811fce96a3676ac8 KEY_NAME=hackfest SUBNET=172.21.248 NETWORK=osm-ext FOCAL=ubuntu20.04 ``` ``` APT_PROXY: the address of a caching web proxy for installing packages APT_PROXY: the address of a caching web proxy for installing packages FLAVOR: the flavour of the new VM to launch. Must have at least 4 CPUs, 8 GB RAM and 60 GB Disk. FLAVOR: the flavour of the new VM to launch. Must have at least 4 CPUs, 8 GB RAM and 60 GB Disk. PROJECT: The project ID in which to launch the new VM KEY_NAME: Key to connect VMs SUBNET: the first three octets of the subnet to use. IP addresses will be allocated from this subnet, starting with .101 - .199 NETWORK: IP addresses will be allocated from this network, this network is management network of OSM instance FOCAL: Image to install VMs ### Create VMs ### Initial Configuration This script creates the VMs in required project This script updates apt, upgrades the system to the latest 20.04 and installs remote desktop software ``` ``` ./run-vm-initial-setup.sh ./run-create-openstack-vm.sh ``` ``` ### Install Microk8s This script will configure the Microk8s VM launched by the create-openstack-user-and-project script. ### Initial Configuration This script updates apt, upgrades the system to the latest 20.04 and installs remote desktop software ``` ``` ./run-microk8s-setup.sh ./run-vm-initial-setup.sh ``` ``` Loading @@ -38,7 +40,7 @@ This script downloads the installer and runs it. It also sets the OSM admin pas ``` ``` ### Add VIM and K8s Cluster ### Add VIM and K8s Cluster Add VIM and ks8cluster to OSM instance ``` ``` ./run-osm-vim-k8scluster-add.sh ./run-osm-vim-k8scluster-add.sh ``` ``` Loading @@ -46,10 +48,9 @@ This script downloads the installer and runs it. It also sets the OSM admin pas ## Full Flow ## Full Flow ``` ``` ./run-create-openstack-user-and-project.sh 1 1 ./run-create-openstack-user-and-project.sh ./run-vm-setup.sh 1 1 ./run-vm-initial-setup.sh ./run-microk8s-setup.sh 1 1 ./run-install-osm.sh ./run-install-osm.sh 1 1 ./run-osm-vim-k8scluster-add.sh ./run-osm-vim-k8scluster-add.sh 1 1 ``` ```
Hackfest_Demos/OSM-15/setup_scripts/common-vars +2 −2 Original line number Original line Diff line number Diff line Loading @@ -16,7 +16,7 @@ if [ ! -z ${DEBUG} ]; then fi fi START=5 START=5 MAX=6 MAX=10 if [ ! -z $2 ] ; then if [ ! -z $2 ] ; then START=$1 START=$1 Loading @@ -28,7 +28,7 @@ fi # ETSI VIM ADMIN_DOMAIN=default # ETSI VIM ADMIN_DOMAIN=default APT_PROXY=http://172.21.1.1.3142 APT_PROXY=http://172.21.1.1.3142 FLAVOR=test_flavor_fix FLAVOR=osm.sanity KEY_NAME=hackfest KEY_NAME=hackfest NETWORK=osm-ext NETWORK=osm-ext FOCAL=ubuntu20.04 FOCAL=ubuntu20.04 Loading
Hackfest_Demos/OSM-15/setup_scripts/create-openstack-vm.sh +1 −1 Original line number Original line Diff line number Diff line Loading @@ -8,7 +8,7 @@ PARTICIPANT=${1} VM_NAME=`expr charmedosm-${PARTICIPANT}` VM_NAME=`expr charmedosm-${PARTICIPANT}` echo "Creating public port" echo "Creating public port" # This port gets created as the admin # This port gets created as the admin openstack port create --security-group default --network osm-ext $VM_NAME openstack port create --security-group default --network $NETWORK $VM_NAME wait wait Loading
Hackfest_Demos/OSM-15/setup_scripts/run-full-setup.sh +4 −5 Original line number Original line Diff line number Diff line Loading @@ -3,11 +3,10 @@ echo $0 started at $(date) . ./common-vars . ./common-vars #./run-create-openstack-vm.sh $@ ./run-create-openstack-vm.sh $@ ./run-vm-initial-setup.sh $@ ./run-vm-initial-setup.sh $@ #./run-microk8s-setup.sh $@ & ./run-install-osm.sh $@ #./run-install-osm.sh $@ wait #wait ./run-osm-vim-k8scluster-add.sh $@ #./run-osm-vim-k8scluster-add.sh $@ echo $0 $@ complete at $(date) echo $0 $@ complete at $(date) No newline at end of file