Changes between Version 29 and Version 30 of Tutorials/m0SDN/OpenStack


Ignore:
Timestamp:
Jul 5, 2023, 2:19:07 PM (12 months ago)
Author:
sreeramm490
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/m0SDN/OpenStack

    v29 v30  
    882. Any available Orbit Sandbox Node
    99
    10 3. Ubuntu 20.04.5 LTS or Ubuntu 22.04.5 LTS (Choice is up to you)
     103. Ubuntu 20.04.5 LTS or Ubuntu 22.04.2 LTS (Choice is up to you)
    1111
    1212----
     
    1414In this tutorial, we will be using one of the sb9 nodes for setting up OpenStack. However, sb(1-10) should also be capable for OpenStack setup. 
    1515
    16 Make sure you have Ubuntu 20.04.5 (**baseline20.04.ndz**) or 22.04.5 (**ubuntu2204-beta.ndz**) LTS. To get the Ubuntu Version, follow these steps after ssh'ing into your console. Substitute for the image and node you want.
     16Make sure you have Ubuntu 20.04.5 (**baseline20.04.ndz**) or 22.04.2 (**ubuntu2204-beta.ndz**) LTS. To get the Ubuntu Version, follow these steps after ssh'ing into your console. Substitute for the image and node you want.
    1717
    1818The below steps illustrate loading Ubuntu 20.04.5 LTS for node1-2 of sb9. On your sb9 console,
    1919
    20 {{{omf tell -t node1-2 -a offh }}}
     20{{{#!shell
     21username@console:~$ omf tell -t node1-2 -a offh
     22}}}
    2123
    22 {{{omf load -t node1-2 -i baseline20.04.ndz}}}
     24{{{#!shell
     25username@console:~$ omf load -t node1-2 -i baseline20.04.ndz
     26}}}
    2327
    24 {{{omf tell -t node1-2 -a on}}}
     28{{{#!shell
     29username@console:~$ omf tell -t node1-2 -a on
     30}}}
    2531
    2632To verify if you have loaded your Ubuntu version properly, use this command after ssh into the node1-2
    2733
    28 {{{lsb_release -a}}}
     34{{{#!shell
     35root@node1-2:~# lsb_release -a
     36}}}
    2937
    3038This will list the current version of Ubuntu loaded.
    3139
    32 === Set up an OpenStack development environment via DevStack ===
    33 After loading the Ubuntu 20.04 image is complete, you can follow below steps to install OpenStack
     40Example Image:
     41
     42[[Image(lsb_release.jpg)]]
     43
     44=== Set up an OpenStack development environment via [https://github.com/openstack/devstack DevStack] ===
     45After loading your version of Ubuntu, you can follow below steps to install OpenStack
    3446
    35471. Update and Upgrade Packages:
    36 {{{sudo apt-get update && sudo apt-get upgrade}}}
     48{{{#!shell
     49root@node1-2:~# sudo apt-get update && sudo apt-get upgrade -y
     50}}}
    37512. Install Git:
    38 {{{sudo apt-get install git}}}
     52{{{#!shell
     53root@node1-2:~# sudo apt-get install git
     54}}}
    39553. Clone the DevStack Repository:
    40 {{{git clone https://github.com/openstack/devstack.git}}}
     56{{{#!shell
     57root@node1-2:~# git clone https://github.com/openstack/devstack.git
     58}}}
    41594. Create a Stack User:
    42 {{{sudo ./devstack/tools/create-stack-user.sh}}}
     60{{{#!shell
     61root@node1-2:~# sudo ./devstack/tools/create-stack-user.sh
     62}}}
    43635. Switch to the Stack User:
    44 {{{sudo su stack}}}
     64{{{#!shell
     65root@node1-2:~# sudo su stack
     66}}}
     67{{{#!shell
     68stack@node1-2:/root$ cd ~
     69}}}
     706. Clone the DevStack Repository (as the Stack User):
     71{{{#!shell
     72stack@node1-2:~$ git clone https://git.openstack.org/openstack-dev/devstack
     73}}}
     747. Remove the Existing Python 3 Pip Package (if present) and Download and Install the Latest Python 3 Pip Package:
     75{{{#!shell
     76stack@node1-2:~$ sudo apt remove python3-pip
     77}}}
     78{{{#!shell
     79stack@node1-2:~$ wget https://bootstrap.pypa.io/get-pip.py
     80}}}
     81{{{#!shell
     82stack@node1-2:~$ sudo python3 get-pip.py
     83}}}
     848. Install a Specific Version of the Cryptography Package(there is version conflict with the OpenSSL package automatically installed by dev stack, install the below version to prevent this issue):
     85{{{#!shell
     86stack@node1-2:~$ pip install cryptography==38.0.4
     87}}}
     889. Copy the local.conf into the devstack folder:
     89{{{#!shell
     90stack@node1-2:~$ cd devstack/samples/local.conf devstack
     91}}}
     92{{{#!shell
     93stack@node1-2:~$ cd devstack
     94}}}
     9510. Identify Node's IP Address; configure and setup local.conf in Devstack folder according to requirement (either the controller or compute node):
     96{{{#!shell
     97stack@node1-2:~/devstack$ hostname -I
     98}}}
     99Example Image:
    45100
    46 
    47 {{{cd ~}}}
    48 6. Clone the DevStack Repository (as the Stack User):
    49 {{{git clone https://git.openstack.org/openstack-dev/devstack}}}
    50 7. Remove the Existing Python 3 Pip Package (if present) and Download and Install the Latest Python 3 Pip Package:
    51 {{{sudo apt remove python3-pip}}}
    52 
    53 
    54 {{{wget https://bootstrap.pypa.io/get-pip.py}}}
    55 
    56 
    57 {{{sudo python3 get-pip.py}}}
    58 
    59 8. Install a Specific Version of the Cryptography Package(there is version conflict with the OpenSSL package automatically installed by dev stack, install the below version to prevent this issue) :
    60 {{{pip install cryptography==38.0.4}}}
    61 9. Configure and setup local.conf in dev stack folder according to requirement (either the controller or compute node):
    62 
    63 {{{cd devstack/samples }}}
    64 
    65 
    66 {{{cp local.conf ../}}}
    67 
    68 
    69 {{{cd ../}}}
    70 
    71 after copying local.conf to the devstack folder, uncomment and change the HOST_IP to the IP of the current node(so here in this case 10.19.1.2) and
     101{{{#!shell
     102stack@node1-2:~/devstack$ cd
     103}}}
     104{{{#!shell
     105stack@node1-2:~/devstack$ nano local.conf
     106}}}
     107Scroll to the ADMIN_PASSWORD, and change the password to what you prefer. Afterwards, scroll to HOST_IP. Remove the comment in front of the HOST_IP to the IP of the current node(so here in this case 10.19.1.2) and
    72108
    7310910. Fireup the Stack: