| 1 | [[PageOutline]] |
| 2 | |
| 3 | = Detailed test plan for IG-ADM-5: Software Update Test = |
| 4 | |
| 5 | ''This page is GPO's working page for performing IG-ADM-5. It is public for informational purposes, but it is not an official status report. See [wiki:GENIRacksHome/InstageniRacks/AcceptanceTestStatus] for the current status of InstaGENI acceptance tests.'' |
| 6 | |
| 7 | = Page format = |
| 8 | |
| 9 | * The status chart summarizes the state of this test |
| 10 | * The high-level description from test plan contains text copied exactly from the public test plan and acceptance criteria pages. |
| 11 | * The steps contain things i will actually do/verify: |
| 12 | * Steps may be composed of related substeps where i find this useful for clarity |
| 13 | * Each step is either a preparatory step (identified by "(prep)") or a verification step (the default): |
| 14 | * Preparatory steps are just things we have to do. They're not tests of the rack, but are prerequisites for subsequent verification steps |
| 15 | * Verification steps are steps in which we will actually look at rack output and make sure it is as expected. They contain a '''Using:''' block, which lists the steps to run the verification, and an '''Expect:''' block which lists what outcome is expected for the test to pass. |
| 16 | |
| 17 | = Status of test = |
| 18 | |
| 19 | See [wiki:GENIRacksHome/InstageniRacks/AcceptanceTestStatus#Legend] for the meanings of test states. |
| 20 | |
| 21 | || '''Step''' || '''State''' || '''Date completed''' || '''Open Tickets''' || '''Closed Tickets/Comments''' || |
| 22 | || 1 || [[Color(green,Pass)]] || 2013-03-14 || || || |
| 23 | || 2 || [[Color(green,Pass)]] || 2013-03-14 || || || |
| 24 | || 3 || [[Color(green,Pass)]] || 2013-03-14 || || || |
| 25 | || 4 || [[Color(green,Pass)]] || 2013-03-14 || || || |
| 26 | || 5 || [[Color(green,Pass)]] || 2013-03-14 || || || |
| 27 | |
| 28 | [[BR]] |
| 29 | |
| 30 | = High-level description from test plan = |
| 31 | |
| 32 | In this test, we update software on the rack as a test of the software update procedure. |
| 33 | |
| 34 | == Procedure == |
| 35 | |
| 36 | 1. Review relevant rack documentation about software upgrades. |
| 37 | 2. Identify one or more software packages to upgrade. |
| 38 | 3. For each package, test the software before upgrading it. |
| 39 | 4. Upgrade each package. |
| 40 | 5. For each package, test the software after upgrading it. |
| 41 | |
| 42 | == Criteria to verify as part of this test == |
| 43 | |
| 44 | * VII.07. A site administrator can perform software and OS updates on the rack. (F.5) |
| 45 | |
| 46 | = Step 1: Review relevant rack documentation about software upgrades = |
| 47 | |
| 48 | == Results of testing Step 1 on 2013-03-14 == |
| 49 | |
| 50 | http://www.protogeni.net/wiki/instageni/software-update-process, has documentation about the InstaGENI software update process; it needs to be fleshed out, but at least there's a page. |
| 51 | |
| 52 | = Step 2: Identify one or more software packages to upgrade = |
| 53 | |
| 54 | We decided to upgrade tango-monitor-foam, as documented at http://groups.geni.net/geni/wiki/TangoGeniMonitoring/FoamConfiguration. |
| 55 | |
| 56 | = Step 3: For each package, test the software before upgrading it = |
| 57 | |
| 58 | I browsed to https://gmoc-db.grnoc.iu.edu/protected-openid/index.pl?method=aggregate_details;aggregate=foam.instageni.gpolab.bbn.com%3A3626 at 10:39 Eastern, logged in, and observed that the "Last Updated" time was "2013-03-14 14:35:27" (UTC). That's about four minutes in the past, which shows that updates are currently working. |
| 59 | |
| 60 | I also observed that the "Version" string was "0.8.2". That format shows that the data is being reported by tango-monitor-foam 0.4. |
| 61 | |
| 62 | = Step 4: Upgrade each package = |
| 63 | |
| 64 | I followed the instructions at http://groups.geni.net/geni/wiki/TangoGeniMonitoring/FoamConfiguration. |
| 65 | |
| 66 | I downloadeded the the tango-monitor-foam_0.5.0-1.deb package file from http://software.geni.net/local-sw/, and copied it into my home directory as ~/tango-monitor-foam_0.5.0-1_all.deb. |
| 67 | |
| 68 | Then, I installed tango-monitor-gmoc, following the instructions at http://groups.geni.net/geni/wiki/TangoGeniMonitoring/GmocConfiguration. |
| 69 | |
| 70 | I downloaded the tango-monitor-gmoc_1.2.12-1_all.deb package file from http://software.geni.net/local-sw/, and copied it into my home directory as ~/tango-monitor-gmoc_1.2.12-1_all.deb. |
| 71 | |
| 72 | Since I'm installing tango-monitor-gmoc as part of a tango-monitor-foam upgrade, I installed both packages at once. On foam.instageni.gpolab.bbn.com: |
| 73 | |
| 74 | {{{ |
| 75 | [10:49:44] jbs@foam.instageni.gpolab.bbn.com:/home/jbs |
| 76 | +$ sudo dpkg -i ~/tango-monitor-gmoc_1.2.12-1_all.deb ~/tango-monitor-foam_0.5.0-1_all.deb |
| 77 | Selecting previously unselected package tango-monitor-gmoc. |
| 78 | (Reading database ... 54595 files and directories currently installed.) |
| 79 | Unpacking tango-monitor-gmoc (from .../tango-monitor-gmoc_1.2.12-1_all.deb) ... |
| 80 | dpkg: error processing /home/jbs/tango-monitor-gmoc_1.2.12-1_all.deb (--install): |
| 81 | trying to overwrite '/usr/local/lib/gmoc.py', which is also in package tango-monitor-foam 0.4-2 |
| 82 | Preparing to replace tango-monitor-foam 0.4-2 (using .../tango-monitor-foam_0.5.0-1_all.deb) ... |
| 83 | Unpacking replacement tango-monitor-foam ... |
| 84 | dpkg: dependency problems prevent configuration of tango-monitor-foam: |
| 85 | tango-monitor-foam depends on tango-monitor-gmoc; however: |
| 86 | Package tango-monitor-gmoc is not installed. |
| 87 | dpkg: error processing tango-monitor-foam (--install): |
| 88 | dependency problems - leaving unconfigured |
| 89 | Errors were encountered while processing: |
| 90 | /home/jbs/tango-monitor-gmoc_1.2.12-1_all.deb |
| 91 | tango-monitor-foam |
| 92 | |
| 93 | [10:49:49] jbs@foam.instageni.gpolab.bbn.com:/home/jbs |
| 94 | +$ sudo apt-get -f install |
| 95 | Reading package lists... Done |
| 96 | Building dependency tree |
| 97 | Reading state information... Done |
| 98 | Correcting dependencies... Done |
| 99 | The following packages were automatically installed and are no longer required: |
| 100 | libnumber-compare-perl ttf-dejavu-extra ttf-dejavu-core |
| 101 | libfile-find-rule-perl libdbi1 librrd4 libcairo2 libthai-data librrds-perl |
| 102 | libdatrie1 fontconfig libpixman-1-0 libxml-writer-perl python-rrdtool |
| 103 | libxft2 fontconfig-config libthai0 libxrender1 libtext-glob-perl ttf-dejavu |
| 104 | libfontconfig1 libpango1.0-0 libxcb-render0 libxcb-shm0 |
| 105 | Use 'apt-get autoremove' to remove them. |
| 106 | The following packages will be REMOVED: |
| 107 | tango-monitor-foam |
| 108 | 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. |
| 109 | 1 not fully installed or removed. |
| 110 | After this operation, 0 B of additional disk space will be used. |
| 111 | Do you want to continue [Y/n]? |
| 112 | (Reading database ... 54593 files and directories currently installed.) |
| 113 | Removing tango-monitor-foam ... |
| 114 | dpkg: warning: while removing tango-monitor-foam, directory '/usr/local/lib' not empty so not removed. |
| 115 | |
| 116 | [10:52:53] jbs@foam.instageni.gpolab.bbn.com:/home/jbs |
| 117 | +$ sudo dpkg -i ~/tango-monitor-gmoc_1.2.12-1_all.deb ~/tango-monitor-foam_0.5.0-1_all.deb |
| 118 | (Reading database ... 54579 files and directories currently installed.) |
| 119 | Unpacking tango-monitor-gmoc (from .../tango-monitor-gmoc_1.2.12-1_all.deb) ... |
| 120 | Selecting previously unselected package tango-monitor-foam. |
| 121 | Unpacking tango-monitor-foam (from .../tango-monitor-foam_0.5.0-1_all.deb) ... |
| 122 | Setting up tango-monitor-gmoc (1.2.12-1) ... |
| 123 | Setting up tango-monitor-foam (0.5.0-1) ... |
| 124 | }}} |
| 125 | |
| 126 | That's all as expected, according to the docs. |
| 127 | |
| 128 | None of the other steps from the docs are necessary if you're upgrading rather than installing for the first time. |
| 129 | |
| 130 | = Step 5: For each package, test the software after upgrading it = |
| 131 | |
| 132 | I browsed to https://gmoc-db.grnoc.iu.edu/protected-openid/index.pl?method=aggregate_details;aggregate=foam.instageni.gpolab.bbn.com%3A3626 at 11:02 Eastern, and observed that the "Last Updated" time was "2013-03-14 15:00:22" (UTC). That's about two minutes in the past, which shows that updates are still (or again) working. |
| 133 | |
| 134 | I also observed that the "Version" string was "foam-0.8.2,flowvisor-0.8.14". That format shows that the data is being reported by tango-monitor-foam 0.5. |
| 135 | |
| 136 | So, everything seems to have worked as expected, with no issues. |