wiki:Tutorials/Cloud/OSM

Version 47 (modified by msherman, 5 years ago) ( diff )

Open Source MANO (OSM)

A full deployment consists of 3 components:

  • OSM as the NFV Orchestrator
  • OpenVIM or Openstack as the virtual infrastructure manager (VIM)
  • some number of compute nodes, where the VIM will run VMs under OSM's instruction

We will use the following components:

  • OSM on ubuntu 18.04
  • Devstack on ubuntu 18.04, in a single node configuration (this can easily be extended following devstack guides)

This tutorial implements the getting started from: https://osm.etsi.org/docs/user-guide/01-quickstart.html#installing-osm

and adds support for ORBIT hardware, with the image based on Ubuntu 18.04.

To save time, run the OSM and VIM steps in separate ssh terminals, as they can be done at the same time.

OSM Node

Pre-set-up:
  1. Create a reservation
  2. Log into the console
  3. Load image: omf load -t srv1-lg1.sb1.cosmos-lab.org -i tutorial-osm.ndz -r 60
    1. You should see: INFO exp: 1 node successfully imaged ...
  4. Turn the node on: omf tell -a on -t srv1-lg1.sb1.cosmos-lab.org
  • ssh Credentials: native / native
  • Web Credentials admin / admin

VIM Node

OSM must have a Virtual Infrastructure Manager (VIM) to control. We will use openstack on single node devstack for this tutorial, following: https://docs.openstack.org/devstack/latest/guides/single-machine.html

Pre-Set up:
  1. omf load -t srv2-lg1.sb1.cosmos-lab.org -i devstack_1804.ndz -r 60
    1. You should see: INFO exp: 1 node successfully imaged ...
  2. omf tell -a on -t srv2-lg1.sb1.cosmos-lab.org
  3. Wait for the node to come up
  4. ssh native@srv2-lg1.sb1.cosmos-lab.org
  5. cd ~/devstack
  6. ./stack.sh

Commands will run for a while (minutes). If successful, it will output the credentials and address to login via the webui, and will look like the following:

=========================
DevStack Component Timing
 (times are in seconds)  
=========================
run_process           16 
test_with_retry        2 
apt-get-update         5 
osc                  115 
wait_for_service      10 
git_timed            107 
dbsync                65 
pip_install          201 
apt-get              166 
-------------------------
Unaccounted time     345 
=========================
Total runtime        1032


This is your host IP address: 10.19.1.2
This is your host IPv6 address: ::1
Horizon is now available at http://10.19.1.2/dashboard
Keystone is serving at http://10.19.1.2/identity/
The default users are: admin and demo
The password: native

You will need the ip address, keystone url, user and password in the following steps.

Accessing the WebUI

Both nodes are listening on port 80. Redirect two ports over ssh, following This Guide

For example, forward 9901 → srv1-lg1:80 , 9902 → srv2-lg1:80

Connecting OSM to the VIM

  1. Log into the OSM with admin/admin
  2. Click "VIM accounts" on the left bar
  3. Delete existing accounts with the trash can icon
  4. Add the new account for your openstack with the following information:
    • URL http://$DEVSTACK_IP/identity/v3/
    • User admin
    • password nomoresecret
    • tenant admin
    • name openstack-site
    • Type: openstack
  5. Click create

Adding a disk image to openstack

  1. download the attachment cirros034 from this page
  2. in a new window, go to the openstack webui
  3. click images
  4. click create image
    • name: cirros034
    • image source: browse for the file you downloaded
    • format: qcow2
  5. click create image

Creating a VNF

  1. VNF package onboarding
    1. go to packages → vnf packages
    2. download the attachment cirros_vnf.tar.gz
    3. drag the downloaded file to the window
  2. NS package onboarding
    1. go to packages → ns packages
    2. download the attachment cirros_2vnf_ns.tar.gz
    3. drag it to the window
  3. Instantiate the NF
    1. click the launch icon and enter information
      • name
      • description
      • nsd_id: cirros_2vnf_ns
      • vim account id: openstack-site
  • use openstack ui to load console and ping
Note: See TracWiki for help on using the wiki.