Changes between Version 29 and Version 30 of Tutorials/m0SDN/OpenStack
- Timestamp:
- Jul 5, 2023, 2:19:07 PM (17 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorials/m0SDN/OpenStack
v29 v30 8 8 2. Any available Orbit Sandbox Node 9 9 10 3. Ubuntu 20.04.5 LTS or Ubuntu 22.04. 5LTS (Choice is up to you)10 3. Ubuntu 20.04.5 LTS or Ubuntu 22.04.2 LTS (Choice is up to you) 11 11 12 12 ---- … … 14 14 In 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. 15 15 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.16 Make 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. 17 17 18 18 The below steps illustrate loading Ubuntu 20.04.5 LTS for node1-2 of sb9. On your sb9 console, 19 19 20 {{{omf tell -t node1-2 -a offh }}} 20 {{{#!shell 21 username@console:~$ omf tell -t node1-2 -a offh 22 }}} 21 23 22 {{{omf load -t node1-2 -i baseline20.04.ndz}}} 24 {{{#!shell 25 username@console:~$ omf load -t node1-2 -i baseline20.04.ndz 26 }}} 23 27 24 {{{omf tell -t node1-2 -a on}}} 28 {{{#!shell 29 username@console:~$ omf tell -t node1-2 -a on 30 }}} 25 31 26 32 To verify if you have loaded your Ubuntu version properly, use this command after ssh into the node1-2 27 33 28 {{{lsb_release -a}}} 34 {{{#!shell 35 root@node1-2:~# lsb_release -a 36 }}} 29 37 30 38 This will list the current version of Ubuntu loaded. 31 39 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 40 Example Image: 41 42 [[Image(lsb_release.jpg)]] 43 44 === Set up an OpenStack development environment via [https://github.com/openstack/devstack DevStack] === 45 After loading your version of Ubuntu, you can follow below steps to install OpenStack 34 46 35 47 1. Update and Upgrade Packages: 36 {{{sudo apt-get update && sudo apt-get upgrade}}} 48 {{{#!shell 49 root@node1-2:~# sudo apt-get update && sudo apt-get upgrade -y 50 }}} 37 51 2. Install Git: 38 {{{sudo apt-get install git}}} 52 {{{#!shell 53 root@node1-2:~# sudo apt-get install git 54 }}} 39 55 3. Clone the DevStack Repository: 40 {{{git clone https://github.com/openstack/devstack.git}}} 56 {{{#!shell 57 root@node1-2:~# git clone https://github.com/openstack/devstack.git 58 }}} 41 59 4. Create a Stack User: 42 {{{sudo ./devstack/tools/create-stack-user.sh}}} 60 {{{#!shell 61 root@node1-2:~# sudo ./devstack/tools/create-stack-user.sh 62 }}} 43 63 5. Switch to the Stack User: 44 {{{sudo su stack}}} 64 {{{#!shell 65 root@node1-2:~# sudo su stack 66 }}} 67 {{{#!shell 68 stack@node1-2:/root$ cd ~ 69 }}} 70 6. Clone the DevStack Repository (as the Stack User): 71 {{{#!shell 72 stack@node1-2:~$ git clone https://git.openstack.org/openstack-dev/devstack 73 }}} 74 7. Remove the Existing Python 3 Pip Package (if present) and Download and Install the Latest Python 3 Pip Package: 75 {{{#!shell 76 stack@node1-2:~$ sudo apt remove python3-pip 77 }}} 78 {{{#!shell 79 stack@node1-2:~$ wget https://bootstrap.pypa.io/get-pip.py 80 }}} 81 {{{#!shell 82 stack@node1-2:~$ sudo python3 get-pip.py 83 }}} 84 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): 85 {{{#!shell 86 stack@node1-2:~$ pip install cryptography==38.0.4 87 }}} 88 9. Copy the local.conf into the devstack folder: 89 {{{#!shell 90 stack@node1-2:~$ cd devstack/samples/local.conf devstack 91 }}} 92 {{{#!shell 93 stack@node1-2:~$ cd devstack 94 }}} 95 10. Identify Node's IP Address; configure and setup local.conf in Devstack folder according to requirement (either the controller or compute node): 96 {{{#!shell 97 stack@node1-2:~/devstack$ hostname -I 98 }}} 99 Example Image: 45 100 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 102 stack@node1-2:~/devstack$ cd 103 }}} 104 {{{#!shell 105 stack@node1-2:~/devstack$ nano local.conf 106 }}} 107 Scroll 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 72 108 73 109 10. Fireup the Stack: