Changes between Version 58 and Version 59 of Tutorials/Cloud/OSM
- Timestamp:
- Aug 21, 2020, 2:15:10 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials/Cloud/OSM
v58 v59 1 === Open Source MANO (OSM) 2 1 [[TOC]] 2 === Open Source MANO (OSM) Tutorial 3 ==== Changelog 4 `08/20/2020 Updated to OSM release EIGHT, Openstack release Train` 5 6 ==== Overview 3 7 A full deployment consists of 3 components: 4 8 * OSM as the NFV Orchestrator 5 * Open VIM or Openstackas the virtual infrastructure manager (VIM)6 * some number of compute nodes, where the VIM will run VMs under OSM's instruction9 * Openstack, OpenVIM, OpenNebula, or similar as the virtual infrastructure manager (VIM) 10 * Some number of compute nodes, where the VIM will run VMs under OSM's instruction 7 11 8 12 We will use the following components: 9 13 * OSM on ubuntu 18.04 10 14 * Devstack on ubuntu 18.04, in a single node configuration (this can easily be extended following devstack guides) 11 15 * This Devstack configuration combines the VIM node and the compute node on one machine. OSM communicates with the Openstack identity service to discover the rest of the configuration. 12 16 13 17 This tutorial implements the getting started from: [https://osm.etsi.org/docs/user-guide/01-quickstart.html#installing-osm here], and adds support for ORBIT hardware, with the image based on Ubuntu 18.04. … … 15 19 To save time, run the OSM and VIM steps in separate ssh terminals, as they can be done at the same time. 16 20 17 ==== OSM Node 18 19 20 ===== Pre-set-up: 21 1. Create a reservation 22 1. Log into the console 23 1. Load image: {{{ omf load -t srv1-lg1.sb1.cosmos-lab.org -i tutorial-osm.ndz -r 60}}} 24 1. You should see: {{{ INFO exp: 1 node successfully imaged ... }}} 21 ==== Prerequisites: 22 1. SSH keys set up for the testbed 23 1. Ability to set up ssh tunneling to access the web interface pages 24 1. A reservation for a domain with at least two compute resources 25 1. For convenience, 3 terminal windows. 26 27 ==== OSM Node Set Up 28 29 1. Log into the console with your first terminal 30 1. Load the `tutorial-osm.ndz` onto the first node, and resize to >= 60gb: 31 * Example: {{{ omf load -t srv1-lg1.sb1.cosmos-lab.org -i tutorial-osm.ndz -r 60}}} 32 * Wait for imaging process to complete. Work on the other terminals in the meantime 33 * You should see: {{{ INFO exp: 1 node successfully imaged ... }}} 25 34 1. Turn the node on: {{{ omf tell -a on -t srv1-lg1.sb1.cosmos-lab.org }}} 26 35 1. Wait for the node to come up, (up to ~3 minutes) 27 1.You can ping the node, it will respond once booted36 * You can ping the node, it will respond once booted 28 37 29 38 … … 70 79 71 80 [[CollapsibleEnd]] 72 ==== VIM Node 81 82 ==== VIM Node Set up: 73 83 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/train/guides/single-machine.html this guide]. 74 84 75 85 76 77 ===== Pre-Set up: 78 1. {{{ omf load -t srv2-lg1.sb1.cosmos-lab.org -i tutorial-devstack.ndz -r 60}}} 79 1. You should see: {{{ INFO exp: 1 node successfully imaged ... }}} 80 1. {{{ omf tell -a on -t srv2-lg1.sb1.cosmos-lab.org }}} 86 1. Log into the console with your second terminal 87 1. Load the `tutorial-devstack.ndz` onto the second node, and resize to >= 60gb: 88 * Example: {{{ omf load -t srv2-lg1.sb1.cosmos-lab.org -i tutorial-devstack.ndz -r 60}}} 89 * Wait for imaging process to complete. Work on the other terminals in the meantime 90 * You should see: {{{ INFO exp: 1 node successfully imaged ... }}} 91 1. Turn the node on: {{{ omf tell -a on -t srv2-lg1.sb1.cosmos-lab.org }}} 81 92 1. Wait for the node to come up (up to ~3 minutes) 82 93 1. You can ping the node, it will respond once booted 83 1. {{{ ssh native@srv2-lg1.sb1.cosmos-lab.org }}} 84 1. {{{ cd ~/devstack }}} 85 1. {{{ ./stack.sh }}} 94 1. SSH into the node {{{ ssh native@srv2-lg1.sb1.cosmos-lab.org }}} 95 1. Change to the Devstack directory: {{{ cd ~/devstack }}} 96 1. Run the installation script: {{{ ./stack.sh }}} 97 98 Note, we use `username: native, password: native` , because Openstack needs a non-root user. 99 86 100 87 101 Commands will run for a while (about 10 minutes). If successful, it will output the credentials and address to login via the webui, and will look like the following: … … 114 128 }}} 115 129 116 You will need the ip address, keystone url, user and password in the following steps. 117 130 You will need the Host IP address, Horizon and Keystone URLs, and user and password in the following steps. 118 131 119 132 [[CollapsibleStart(From Scratch)]] … … 156 169 [[CollapsibleEnd]] 157 170 158 ==== Accessing the OSM WebUI159 Both nodes are listening on port 80. 160 161 Redirect two ports over ssh, following [wiki:UserGuide/RemoteAccess/SshTunnel This Guide] 162 163 For example, forward 9901 -> srv1-lg1:80 , 9902 -> srv2-lg1:80 164 165 Or Linux example, commands run on your local machine: 171 ==== Connecting to the Web Interfaces 172 173 Use your third terminal, or whatever ssh program you are using, to forward a different local port to port 80 on each of the OSM and VIM machines. 174 175 For more information, follow [wiki:UserGuide/RemoteAccess/SshTunnel This Guide] 176 177 For example, using a linux shell, and forwarding: 9901 -> srv1-lg1:80 , 9902 -> srv2-lg1:80 178 166 179 {{{ #!shell 167 180 ssh testbeduser@sb1.cosmos-lab.org -N \ … … 170 183 }}} 171 184 172 The web credentials are: admin / admin, running at the ip address of the first node. 173 174 If the webui doesn't come up: 175 1. SSH to the node with the ssh credentials: native / native 176 1. Check to see that all containers are running {{{ docker stack ps osm }}} 177 1. Try re-installing OSM by running {{{./install_osm.sh}}} 185 186 The OSM Web UI will likely be ready much sooner than the Openstack UI, due to the time taken for installation. 187 188 * OSM Web UI 189 * Credentials are: `admin / admin` 190 * Use your browser to navigate to the first forwarded port, here `localhost:9980` 191 * If the webui doesn't come up: 192 1. SSH to the node with the ssh credentials: native / native 193 1. Check to see that all containers are running {{{ docker stack ps osm }}} 194 1. Try re-installing OSM by running {{{./install_osm.sh}}} 195 * Openstack Web UI 196 * Credentials are: `admin / native`, unless different in the stack.sh output. 197 * Use your browser to navigate to the second forwarded port, here `localhost:9981` 198 * The web UI won't be ready until stack.sh completes successfully 199 * The following steps are executed in the respective web interfaces 178 200 179 201 … … 195 217 1. in a new window, go to the openstack webui 196 218 1. click images 197 1. click create image 219 1. click create image, and use the following properties (important) 198 220 * name: {{{cirros034}}} 199 * image source: browse for the file you downloaded 200 * format: qcow2221 * image source: browse for the file you downloaded from the wiki 222 * format: `qcow2` 201 223 1. click create image 202 224