pingping-lin | 7d4e907 | 2015-11-18 13:16:35 -0800 | [diff] [blame] | 1 | This is a tutorial for you to manually run this test. |
| 2 | Normally, we run it from Jenkins, most of steps below are configured on Jenkins, |
| 3 | and will be automatically run by Jenkins. |
| 4 | But here, we need to manually run all the steps. |
| 5 | |
| 6 | In this test environment, we use 3 nodes: |
| 7 | 1) One is for running Mininet, Quagga, TestON, compiling ONOS. |
| 8 | 2) The second one is running ONOS. |
| 9 | 3) The third one is running FlowSpace Firewall (FSFW). |
| 10 | |
| 11 | |
| 12 | Step 1: Install and configure Quagga. |
| 13 | |
| 14 | SDN-IP application uses Quagga as the BGP speaker. You need to install Quagga |
| 15 | on the Mininet node, and I assume you already have Mininet in the first node. |
| 16 | $ sudo apt-get install quagga |
| 17 | |
| 18 | After installation, check whether the Quagga directory is /usr/lib/quagga, |
| 19 | otherwise you need to change the Quagga directory in USECASE_SdnipI2MN.py. |
| 20 | |
| 21 | Then create a running directory for Quagga: |
| 22 | $cd /usr/local/var/run/ |
| 23 | $sudo mkdir quagga |
| 24 | $sudo chmod 777 quagga |
| 25 | |
| 26 | |
| 27 | Step 2: SDN-IP/ONOS configuration. |
| 28 | |
| 29 | Copy the SDN-IP/ONOS file to your ONOS directory: |
| 30 | $cp ~/OnosSystemTest/TestON/tests/USECASE_SdnipFunction_fsfw/network-cfg.json ~/onos/tools/package/config/network-cfg.json |
| 31 | $cp ~/OnosSystemTest/TestON/tests/USECASE_SdnipFunction_fsfw/sdnip_single_instance ~/onos/tools/test/cells/sdnip_single_instance |
| 32 | |
| 33 | Then enable the cell file: |
| 34 | $cell sdnip_single_instance |
| 35 | |
| 36 | You also need to compile ONOS: |
| 37 | $cd ~/onos |
| 38 | $mcis |
| 39 | |
| 40 | Step 3: Copy public RSA keys from first node to second node. |
| 41 | |
| 42 | Copy public RSA key of the "root" user (not other users) from the first node to |
| 43 | second node which is running ONOS. |
| 44 | This is because we need to set up a tunnel from Mninet node to ONOS node for |
| 45 | communication between Quagga and SDN-IP. |
| 46 | |
| 47 | The location of the root key is: |
| 48 | $ sudo su root |
| 49 | # cat ~/.ssh/id_rsa.pub |
| 50 | |
| 51 | Copy the key above to this file on the second node: |
| 52 | $vim ~/.ssh/authorized_keys |
| 53 | |
| 54 | To correctly run ONOS, also make sure that the public key of the user which |
| 55 | compiles ONOS is also in "authorized_keys" file on the second node. |
| 56 | |
| 57 | |
| 58 | Step 4: Install, configure, and run FSFW. |
| 59 | |
| 60 | Install FSFW, and copy the FSFW configuration file from TestON directory in the first node to the FSFW node. |
Jon Hall | 53c5e66 | 2016-04-13 16:06:56 -0700 | [diff] [blame] | 61 | $scp ~/OnosSystemTest/TestON/tests/USECASE_SdnipFunction_fsfw/dependencies/fsfw.xml root@10.128.10.12:/etc/fsfw/ |
pingping-lin | 7d4e907 | 2015-11-18 13:16:35 -0800 | [diff] [blame] | 62 | |
| 63 | Change the controller IP address in fsfw.xml to your IP address of the node |
| 64 | running ONOS. |
| 65 | $service fsfw start |
| 66 | |
| 67 | Note: you only need to do Step 1, 2, 3, and 4 once. |
| 68 | |
| 69 | |
| 70 | Step 5: Each time, before starting the test, run the following command to clean |
| 71 | the whole environment. |
| 72 | $ ~/OnosSystemTest/TestON/bin/cleanup.sh |
| 73 | |
| 74 | |
| 75 | Step 6: Finally you can run TestON script. |
| 76 | $cd ~/OnosSystemTest/TestON/bin |
| 77 | $./cli.py run USECASE_SdnipFunction_fsfw |