| 1 | [[PageOutline]] |
| 2 | |
| 3 | = GEMINI Testing executed on 8/23/2012 = |
| 4 | |
| 5 | [[BR]] |
| 6 | [wiki:GEMINIAcceptanceTests/TestStatus Status of All Test Runs] |
| 7 | [[BR]] |
| 8 | [[BR]] |
| 9 | [[BR]] |
| 10 | |
| 11 | == What was tested == |
| 12 | |
| 13 | Today I ran two different test cases: |
| 14 | |
| 15 | A. I tried different configurations of the "gemini" element in the rspec: active-only, passive-only, and both active and passive. |
| 16 | For each of these, I set both installed and enabled to "yes" for now (rather than installing without enabling and vice versa). |
| 17 | |
| 18 | B. I did more in-depth testing of the passive measurement configuration options. |
| 19 | |
| 20 | == Test Case A == |
| 21 | || '''Step''' || '''Status''' || '''Open Tickets''' || |
| 22 | || 1. [wiki:GEMINIAcceptanceTests/GEMINITest8.22.2012#a1.Establishtestexperimentenvironment Establish test/experiment environment] || [[Color(green, Pass)]] || || |
| 23 | || 2. [wiki:GEMINIAcceptanceTests/GEMINITest8.22.2012#a2.ObtainsliceofGENIresources Obtain slice of GENI resources] || [[Color(green, Pass)]] || || |
| 24 | || 2. [wiki:GEMINIAcceptanceTests/GEMINITest8.22.2012#a3.InstallandconfigureGEMINIIMtools Install and configure GEMINI I&M tools] || [[Color(red, Fail)]] || [http://groups.geni.net/gemini/ticket/6 #6] || |
| 25 | || 3. [wiki:GEMINIAcceptanceTests/GEMINITest8.22.2012#a4.Releaseresourcesandcleanup Release resources, and cleanup] || [[Color(green, Pass)]] || || |
| 26 | |
| 27 | == Test Case B == |
| 28 | || '''Step''' || '''Status''' || '''Open Tickets''' || |
| 29 | || || || || |
| 30 | |
| 31 | == Test Case A Details == |
| 32 | |
| 33 | === 1. Establish test/experiment environment === |
| 34 | |
| 35 | |
| 36 | ==== User Workspace ==== |
| 37 | * Using the GEC14 Tutorial VM |
| 38 | * Inputs: |
| 39 | * GENI certificate |
| 40 | * Two formats: PEM and PKC12 |
| 41 | * installed in $HOME/.ssl |
| 42 | * location of PEM file configured in omni_config |
| 43 | * stripped the passphrase for automation |
| 44 | * created the password file to be used by instrumentize.py |
| 45 | * SSH key pair |
| 46 | * installed in $HOME/.ssh |
| 47 | * location configured in omni_config |
| 48 | * key added to ssh-agent |
| 49 | * All credentials configured using credconfig.sh script |
| 50 | * GENI pkc12 certificate installed in the Firefox browser |
| 51 | * [http://groups.geni.net/geni/wiki/GEMINIFirefoxCertInstall] |
| 52 | * Outputs: |
| 53 | * omni.py ready to use |
| 54 | * ready to log into nodes in the slice |
| 55 | |
| 56 | ==== UNIS server ==== |
| 57 | * https://unis.incntre.iu.edu:8012/perfSONAR_PS/services/unis |
| 58 | |
| 59 | ==== LAMP CA ==== |
| 60 | * https://unis.incntre.iu.edu/protogeni/xmlrpc/lampca |
| 61 | |
| 62 | === 2. Obtain slice of GENI resources === |
| 63 | * Used omni to create the slice and the sliver on UKY Protogeni aggregate |
| 64 | * Rspec includes a gemini element for each node describing what services should be installed and enabled. I tried three different configurations; same config for each node: |
| 65 | * Both active and passive |
| 66 | {{{ |
| 67 | <gemini:node type="mp_node"> |
| 68 | <gemini:services> |
| 69 | <gemini:active install="yes" enable="yes"/> |
| 70 | <gemini:passive install="yes" enable="yes"/> |
| 71 | </gemini:services> |
| 72 | </gemini:node> |
| 73 | }}} |
| 74 | * Active-only |
| 75 | {{{ |
| 76 | <gemini:node type="mp_node"> |
| 77 | <gemini:services> |
| 78 | <gemini:active install="yes" enable="yes"/> |
| 79 | <gemini:passive install="no" enable="no"/> |
| 80 | </gemini:services> |
| 81 | </gemini:node> |
| 82 | }}} |
| 83 | * Passive-only |
| 84 | {{{ |
| 85 | <gemini:node type="mp_node"> |
| 86 | <gemini:services> |
| 87 | <gemini:active install="no" enable="no"/> |
| 88 | <gemini:passive install="yes" enable="yes"/> |
| 89 | </gemini:services> |
| 90 | </gemini:node> |
| 91 | }}} |
| 92 | |
| 93 | * Made sure I could ssh in to all of the nodes without a password |
| 94 | * Inputs: |
| 95 | * [https://github.com/GENI-GEMINI/UW/blob/master/gec14.xml rspec] |
| 96 | * modified gemini element for each case |
| 97 | * Output: |
| 98 | * slice manifest |
| 99 | * slice login information |
| 100 | |
| 101 | === 3. Install and configure GEMINI I&M tools === |
| 102 | |
| 103 | * Run instrumentize.py to install and configure GEMINI tools on the nodes in the slice |
| 104 | |
| 105 | * Instrumentize succeeded in approximately 15 minutes for the active-only and both cases. |
| 106 | * For the passive-only case, the instrumentize completed prematurely with the following traceback |
| 107 | {{{ |
| 108 | Traceback (most recent call last): |
| 109 | File "./instrumentize.py", line 327, in <module> |
| 110 | gemini_util.install_Active_measurements(my_manager["nodes_sliver_urn"],my_manager["GN_sliver_urn"],username,USERURN,SLICEURN,my_manager["LAMPCERT"],LOGFILE,keyfile,debug) |
| 111 | File "/home/geniuser/src/UW/gemini_util.py", line 1404, in install_Active_measurements |
| 112 | if (nodes_sliver_urns[node_sliver_urn]["active"]["enable"] != 'yes'): |
| 113 | KeyError: 'enable' |
| 114 | }}} |
| 115 | |
| 116 | * Inputs: |
| 117 | * slice name |
| 118 | * certificate file |
| 119 | * Output: |
| 120 | * portal username and password |
| 121 | * all nodes are ready to run the experiment |
| 122 | * phoebus installed |
| 123 | * Appropriate GEMINI tools installed |
| 124 | * able to log into the GEMINI portal |
| 125 | |
| 126 | [[Image(wiki:GEMINIAcceptanceTests/GEMINITest8.22.2012:GEMINIPortal.png)]] |
| 127 | |
| 128 | |
| 129 | === 4. Release resources, and cleanup === |
| 130 | * Used omni to delete the sliver |
| 131 | {{{ |
| 132 | geniuser@UserWorkspace:~/Tutorials/GEMINI/common$ omni.py -a pg-ky deletesliver johGEM1208221147 |
| 133 | INFO:omni:Loading config file /home/geniuser/.gcf/omni_config |
| 134 | INFO:omni:Using control framework pg |
| 135 | INFO:omni:Substituting AM nickname pg-ky with URL https://www.uky.emulab.net/protogeni/xmlrpc/am, URN unspecified_AM_URN |
| 136 | INFO:omni:Deleted sliver urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+johGEM1208221147 on unspecified_AM_URN at https://www.uky.emulab.net/protogeni/xmlrpc/am |
| 137 | INFO:omni: ------------------------------------------------------------ |
| 138 | INFO:omni: Completed deletesliver: |
| 139 | |
| 140 | Options as run: |
| 141 | aggregate: pg-ky |
| 142 | framework: pg |
| 143 | native: True |
| 144 | |
| 145 | Args: deletesliver johGEM1208221147 |
| 146 | |
| 147 | Result Summary: Deleted sliver urn:publicid:IDN+pgeni.gpolab.bbn.com+slice+johGEM1208221147 on unspecified_AM_URN at https://www.uky.emulab.net/protogeni/xmlrpc/am |
| 148 | INFO:omni: ============================================================ |
| 149 | }}} |
| 150 | |
| 151 | * Inputs: |
| 152 | * slice name |
| 153 | * Outputs: |
| 154 | * sliver has been deleted |
| 155 | |
| 156 | == Test Case B Details == |