Skip to content

Demo Walkthrough UPB NetSoft2017

Manuel Peuster edited this page May 7, 2018 · 9 revisions

Story: Deploy service using OSM full installation

Start VM and Prepare Demo

Login with sonata/sonata.

Click Cancel in the System program problem detected dialog (caused by outdated VM, nothing important).

Ensure Connectivity

You have to set the route to be able to access the OSM launchpad (do on host):

sudo demo/osm/set_route.sh

Open the used Service and VNF Descriptors

# NSD
mousepad demo/osm/pkggen/demo_nsd/demo_nsd.yaml &

# VNFD(s)
mousepad demo/osm/pkggen/http/http_vnfd.yaml &
mousepad demo/osm/pkggen/l4fw/l4fw_vnfd.yaml &
mousepad demo/osm/pkggen/proxy/proxy_vnfd.yaml &

Demo storyboard

Start the emulator

# start emulator
sudo python demo/demo_topology.py

Keep terminal window open!

Open Dashboards

Open Chrome (Desktop).

OSM Launchpad

Use Chrome and browse to https://10.87.78.189:8443 (you may need to accept the unsecure certificate!).

Login: User = admin Password = admin

Emulator Dashboard

Browse to: http://127.0.0.1:5001/dashboard/index_upb.html

On-board service

(This is optional since the VNFDs and NSDs are already on-boarded in the shipped VM. You have to delete them first if you want to on-board them again.)

You can onboard the service by dragging the VNFD and NSD packages to the left bar of the OSM Launchpad. To do so, open the tab Catalog of OSM Launchpad and drag an drop:

# VNFD packages
demo/osm/pkggen/http.tar.gz
demo/osm/pkggen/l4fw.tar.gz
demo/osm/pkggen/proxy.tar.gz
# NSD package
demo/osm/pkggen/demo_nsd.tar.gz

Instanitate service

  • LAUNCHPAD > Instantiate
  • Select service with name demo
  • Next
  • Select instance name and target PoP(s)
  • LAUNCH
  • (Attention: The GUI will stay in Finished instantiation of 3 VNFs state. However, the service is fully deployed on the emulator. Reason might by the missing cloud init and management functionalities.)
  • Switch to the emulator dashboard to show the started service

Start Monitoring

(additional Terminal Tab/Window)

# start son-monitor
sudo son-monitor init
# monitor service
sudo son-monitor msd -f demo/osm/msd-osm-gui.yml
# (stop monitoring)
sudo son-monitor init stop

# open Chrome browser and use the bookmarks to navigate to Grafana dashboard

Use the service

# open browser and access the service through the proxy VNF
demo/scripts/open_service_with_proxy.py &

# or click "Chromium Web Browser w. Proxy" on Desktop to visit "CatTube" and watch the video

Alternative (if the interactive Video service does not work):

# full downlaod of video file
curl -x http://172.17.0.4:3128 20.0.0.2:8899/bunny.mp4 > /dev/null

Done

Attention:

Graceful shutdown of the service is not possible. To restart the VM do the following:

  1. Go to OSM Launchpad, click on NS instance, click on the Trashbin icon on the right to terminate the service.
  2. Shutdown all browser windows
  3. Execute sudo son-monitor init stop
  4. Do a containernet> exit in the emulator window (hit enter first, if containernet> is not shown)
  5. reboot the VM

Setup helper

Already performend, not needed for demo, just for documentation!

Create and attach PoPs (do in RO container):

export OPENMANO_TENANT=osm
openmano tenant-create osm
openmano datacenter-create pop1 http://172.0.0.101:6003/v2.0 --type openstack --description "osm-pop1"
openmano datacenter-create pop2 http://172.0.0.101:6004/v2.0 --type openstack --description "osm-pop2"
openmano datacenter-attach pop1 --user=username --password=password --vim-tenant-name=tenantName
openmano datacenter-attach pop2 --user=username --password=password --vim-tenant-name=tenantName

Debugging

OSM is already installed and running inside an lxc container:

lxc list
lxc exec osmr2 -- bash
lxc list

Logs:

less /var/log/osm/openmano.log
Clone this wiki locally