| 1 | = GR-ADM-5: Software Update Test = |
| 2 | |
| 3 | |
| 4 | This page captures status for the test case GR-ADM-5.For additional information see the [wiki:GENIRacksHome/GRAMRacks/AcceptanceTestStatusApr2014 Acceptance Test Status - April 2014] page overall status, or the [wiki:GENIRacksHome/AcceptanceTests/GRAMAcceptanceTestsPlan GRAM Acceptance Test Plan] for details about the planned evaluation. |
| 5 | |
| 6 | |
| 7 | || '''Step''' || '''State''' ||''' Notes ''' || '''Tickets''' || |
| 8 | || Step 1 || [[span(Pass, style=background-color: green )]] || || || |
| 9 | || Step 2 || [[span(Pass, style=background-color: green )]] || || || |
| 10 | || Step 3 || [[span(Pass, style=background-color: green )]]|| || || |
| 11 | || Step 4 || [[span(Pass, style=background-color: green )]]|| || || |
| 12 | || Step 5 || [[span(Pass, style=background-color: green )]]|| || || |
| 13 | |
| 14 | [[BR]] |
| 15 | || '''State Legend''' || '''Description''' || |
| 16 | ||[[span(Pass, style=background-color: green )]] || Test completed and met all criteria || |
| 17 | ||[[span(Pass: most criteria, style=background-color: #98FB98)]]|| Test completed and met most criteria. Exceptions documented || |
| 18 | ||[[span(Fail, style=background-color: red)]] || Test completed and failed to meet criteria. || |
| 19 | ||[[span(Complete, style=background-color: yellow)]] || Test completed but will require re-execution due to expected changes || |
| 20 | ||[[span(Blocked, style=background-color: orange)]] || Blocked by ticketed issue(s). || |
| 21 | ||[[span(In Progress, style=background-color: #63B8FF)]]|| Currently under test. || |
| 22 | ||[[span(Not Planned)]] || This area is not part of initial evaluation || |
| 23 | |
| 24 | = Test Plan Steps = |
| 25 | |
| 26 | |
| 27 | == Step 1. Review relevant rack documentation about software upgrades == |
| 28 | |
| 29 | Using instructions found at https://superior.bbn.com/trac/bbn-rack/wiki/GramUpdateGuide created both an install and an upgrade package. Following is a capture of the update package creation: |
| 30 | |
| 31 | {{{ |
| 32 | lnevers@scorpia:~/gram/pkg$ ./create_gram_packages.py --is_update=True --version=3.33 --output_directory=/home/lnevers --gram_root=/home/lnevers/ --gcf_root=/home/lnevers/gcf-2.4 |
| 33 | INFO:root:Issuing command python createupdatedpkg.py --gcf_root=/home/lnevers/gcf-2.4 --version=3.33 --gram_root=/home/lnevers/ --deb_filename=/home/lnevers/gram_update.deb |
| 34 | INFO:root:Issuing command rm -rf /tmp/gram_dpkg |
| 35 | INFO:root:Issuing command rm -rf /home/lnevers/gram_update.deb |
| 36 | INFO:root:Issuing command mkdir -p /tmp/gram_dpkg |
| 37 | INFO:root:Issuing command mkdir -p /tmp/gram_dpkg/opt |
| 38 | INFO:root:Issuing command mkdir -p /tmp/gram_dpkg/etc |
| 39 | INFO:root:Issuing command mkdir -p /tmp/gram_dpkg/home/gram |
| 40 | INFO:root:Issuing command mkdir -p /tmp/gram_dpkg/home/gram/.gcf |
| 41 | INFO:root:Issuing command cp -Rf /home/lnevers//gram /tmp/gram_dpkg/home/gram |
| 42 | INFO:root:Issuing command cp -Rf /home/lnevers//gram/gcf_config /tmp/gram_dpkg/home/gram/.gcf |
| 43 | INFO:root:Issuing command cp -Rf /home/lnevers/gcf-2.4 /tmp/gram_dpkg/opt |
| 44 | INFO:root:Issuing command cp -Rf /home/lnevers//gram/etc/gram /tmp/gram_dpkg/etc |
| 45 | INFO:root:Issuing command cp /home/lnevers//gram/src/gram/am/gram/config.json /tmp/gram_dpkg/etc/gram |
| 46 | INFO:root:Issuing command cp -Rf /home/lnevers//gram/pkg/gram_dpkg//DEBIAN_update /tmp/gram_dpkg |
| 47 | INFO:root:Issuing command mv /tmp/gram_dpkg//DEBIAN_update /tmp/gram_dpkg/DEBIAN |
| 48 | INFO:root:Issuing command mv /tmp/gram_dpkg/opt/gcf-2.4 /tmp/gram_dpkg/opt/gcf |
| 49 | INFO:root:Issuing command git clone -b betta http://github.com/noxrepo/pox |
| 50 | remote: Reusing existing pack: 10485, done. |
| 51 | Receiving objects: 100% (10485/10485), 5.03 MiB | 1.60 MiB/s, done. |
| 52 | remote: Total 10485 (delta 0), reused 0 (delta 0) |
| 53 | Resolving deltas: 100% (6177/6177), done. |
| 54 | INFO:root:Issuing command mv pox /tmp/gram_dpkg/opt |
| 55 | INFO:root:Issuing command rm -rf /tmp/gram_dpkg/etc/gram/snapshots |
| 56 | INFO:root:Issuing command rm -rf /tmp/gram_dpkg/etc/gram/snapshots |
| 57 | INFO:root:Issuing command rm -rf /tmp/gram_dpkg/home/gram/gram/pkg/gram_dpkg/tmp |
| 58 | INFO:root:Issuing command rm -rf /tmp/gram_dpkg/home/gram//gram/.git |
| 59 | INFO:root:Issuing command rm -rf /tmp/gram_dpkg/opt/pox/.git |
| 60 | INFO:root:Issuing command dpkg-deb -b /tmp/gram_dpkg /home/lnevers/gram_update.deb |
| 61 | lnevers@scorpia:~/gram/pkg$ |
| 62 | }}} |
| 63 | The above generated a file named "/home/lnevers/gram_update.deb", which was installed on the Boston Rack Control Node. The version build was GRAM package is ''Version3.33'': |
| 64 | {{{ |
| 65 | |
| 66 | gram@bbn-cam-ctrl-1:~$ sudo gdebi gram_update.deb |
| 67 | [sudo] password for gram: |
| 68 | Reading package lists... Done |
| 69 | Building dependency tree |
| 70 | Reading state information... Done |
| 71 | Building data structures... Done |
| 72 | Building data structures... Done |
| 73 | |
| 74 | |
| 75 | GRAM installation package |
| 76 | Do you want to install the software package? [y/N]:y |
| 77 | (Reading database ... 183626 files and directories currently installed.) |
| 78 | Preparing to replace gram 3.32 (using gram_update.deb) ... |
| 79 | Unpacking replacement gram ... |
| 80 | Setting up gram (3.33) ... |
| 81 | gram-am stop/waiting |
| 82 | gram-am start/running, process 15176 |
| 83 | gram-ch stop/waiting |
| 84 | gram-ch start/running, process 15196 |
| 85 | stop: Unknown instance: |
| 86 | gram-ctrl start/running, process 15209 |
| 87 | stop: Unknown instance: |
| 88 | gram-mon start/running, process 15219 |
| 89 | gram-vmoc stop/waiting |
| 90 | gram-vmoc start/running, process 15234 |
| 91 | |
| 92 | gram@bbn-cam-ctrl-1:~$ |
| 93 | }}} |
| 94 | Software restarted without any problems. |
| 95 | |
| 96 | Version for each of the dependencies: |
| 97 | |
| 98 | !OpenStack Version: |
| 99 | {{{ |
| 100 | gram@clemson-clemson-control-1:~$ nova-manage --version list |
| 101 | 2013.1.4 |
| 102 | }}} |
| 103 | OVS Open vSwitch datapaths Control (dpctl): |
| 104 | {{{ |
| 105 | gram@clemson-clemson-control-1:~$ ovs-dpctl -V |
| 106 | ovs-dpctl (Open vSwitch) 1.4.6 |
| 107 | Compiled Jan 10 2014 01:45:55 |
| 108 | }}} |
| 109 | OVS Quantum Plugin: |
| 110 | {{{ |
| 111 | gram@clemson-clemson-control-1:~$ ovs-vsctl -V |
| 112 | ovs-vsctl (Open vSwitch) 1.4.6 |
| 113 | Compiled Jan 10 2014 01:45:55 |
| 114 | }}} |
| 115 | |
| 116 | Database version: |
| 117 | {{{ |
| 118 | gram@clemson-clemson-control-1:~$ /usr/sbin/mysqld -V |
| 119 | 140411 16:15:23 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead. |
| 120 | /usr/sbin/mysqld Ver 5.5.35-0ubuntu0.12.04.2 for debian-linux-gnu on x86_64 ((Ubuntu)) |
| 121 | }}} |
| 122 | |
| 123 | Pox Version: |
| 124 | {{{ |
| 125 | gram@clemson-clemson-control-1:~$ /opt/pox/pox.py --version |
| 126 | POX 0.1.0 (betta) / Copyright 2011-2013 James McCauley, et al. |
| 127 | CPython (2.7.3/Sep 26 2013 20:03:06) |
| 128 | }}} |
| 129 | Python Version: |
| 130 | {{{ |
| 131 | gram@clemson-clemson-control-1:~$ python -V |
| 132 | Python 2.7.3 |
| 133 | }}} |
| 134 | |
| 135 | == Step 2. Identify one or more software packages to upgrade. == |
| 136 | |
| 137 | Determined which packages needed updating: |
| 138 | {{{ |
| 139 | gram@clemson-clemson-control-1:~$ sudo apt-get update |
| 140 | gram@clemson-clemson-control-1:~$ sudo aptitude |
| 141 | |
| 142 | --- Security Updates (22) |
| 143 | --- Upgradable Packages (45) <---Packages that can be upgraded |
| 144 | --- Installed Packages (668) |
| 145 | --- Not Installed Packages (61868) |
| 146 | --- Obsolete and Locally Created Packages (2) |
| 147 | --- Virtual Packages (7660) |
| 148 | --- Tasks (35745) |
| 149 | |
| 150 | }}} |
| 151 | |
| 152 | == Step 3. For each package, test the software before upgrading it == |
| 153 | |
| 154 | Before upgrading some of the packages: |
| 155 | - created several experiment, |
| 156 | - logged in and used the resources |
| 157 | - deleted the sliver |
| 158 | - verified resource release via nova commands |
| 159 | |
| 160 | == Step 4. Upgrade each package == |
| 161 | Upgrades several packages |
| 162 | |
| 163 | == Step 5. For each package, test the software after upgrading it == |
| 164 | |
| 165 | After the update verified allocation: |
| 166 | - created several experiment, |
| 167 | - logged in and used the resources |
| 168 | - deleted the sliver |
| 169 | - verified resource release via nova commands |