|
|
# Goal
|
|
|
|
|
|
Set up a new VM and be able to run the existing robot test manually
|
|
|
|
|
|
![Screenshot_at_2021-11-02_15-53-17](uploads/1c37e746c43ff1d36ee2db86fad7e10e/Screenshot_at_2021-11-02_15-53-17.png)
|
|
|
|
|
|
## Docker Setup
|
|
|
|
|
|
```
|
|
|
sudo apt update
|
|
|
sudo apt full-upgrade -y
|
|
|
sudo apt install docker.io -y
|
|
|
sudo usermod -aG docker $USER
|
|
|
newgrp docker
|
|
|
cat << EOF | sudo tee /etc/docker/daemon.json
|
|
|
{
|
|
|
"registry-mirrors": ["http://172.21.1.1:5000"]
|
|
|
}
|
|
|
EOF
|
|
|
sudo systemctl daemon-reload
|
|
|
sudo service docker restart
|
|
|
```
|
|
|
|
|
|
## Git Clones
|
|
|
```
|
|
|
git clone "https://osm.etsi.org/gerrit/osm/devops"
|
|
|
git clone "https://osm.etsi.org/gerrit/osm/IM"
|
|
|
git clone "https://osm.etsi.org/gerrit/osm/osmclient"
|
|
|
git clone "https://osm.etsi.org/gerrit/osm/tests"
|
|
|
```
|
|
|
|
|
|
## OSM Installation
|
|
|
|
|
|
This will install OSM using the juju bundles, which will make debugging easier later.
|
|
|
```
|
|
|
sudo snap install microk8s --classic --channel=1.19/stable
|
|
|
sudo sed -i "s|https://registry-1.docker.io|http://172.21.1.1:5000|" /var/snap/microk8s/current/args/containerd-template.toml
|
|
|
sudo systemctl restart snap.microk8s.daemon-containerd.service
|
|
|
sudo snap alias microk8s.kubectl kubectl
|
|
|
sudo ln -s `pwd`/devops /usr/share/osm-devops
|
|
|
cd devops/installers
|
|
|
./charmed_install.sh
|
|
|
```
|
|
|
|
|
|
**Note:** the `OSM_HOSTNAME` variable will be `OSM_HOSTNAME=nbi.172.21.249.30.nip.io:443`, replacing 172.21.249.30 as needed if the VM has a different floating IP address.
|
|
|
|
|
|
### Create VIM account for OSM
|
|
|
```
|
|
|
osm vim-create --name osm --user axel --password axel --auth_url http://172.21.247.1:5000/v3 --tenant etsi-cti --account_type openstack
|
|
|
```
|
|
|
|
|
|
### Create Openstack RC File
|
|
|
```
|
|
|
cat << EOF > ~/openstack.rc
|
|
|
export OS_AUTH_URL=http://172.21.247.1:5000/v3
|
|
|
export OS_PROJECT_ID=3b9e5d22e60049eaa24145ebab246008
|
|
|
export OS_PROJECT_NAME="etsi-cti"
|
|
|
export OS_USER_DOMAIN_NAME="Default"
|
|
|
export OS_USERNAME="axel"
|
|
|
export OS_PASSWORD="axel"
|
|
|
export OS_REGION_NAME="RegionOne"
|
|
|
export OS_INTERFACE=public
|
|
|
export OS_IDENTITY_API_VERSION=3
|
|
|
export OS_PROJECT_DOMAIN_NAME="Default"
|
|
|
EOF
|
|
|
``` |
|
|
\ No newline at end of file |