Changes between Version 3 and Version 4 of GENIExperimenter/Tutorials/PortalOmniExample/ObtainResources


Ignore:
Timestamp:
07/01/13 17:35:31 (11 years ago)
Author:
Gary Wong
Comment:

Flesh out the instructions and screenshots for the Flack portion.

Legend:

Unmodified
Added
Removed
Modified
  • GENIExperimenter/Tutorials/PortalOmniExample/ObtainResources

    v3 v4  
     1
    12= Obtain Resources: create a slice and reserve resources =
    23Introduction: [wiki:GENIExperimenter/Tutorials/PortalOmniExample Getting Started with GENI and the GENI Portal]
     
    5556== 1. Create a slice ==
    5657
    57 If you are following on from the Flack tutorial, and the slice you created then has not yet expired, you can reuse the same slice -- skip ahead to the next step.
     58{{{
     59#!html
     60<table border="0" cellpadding="0" cellspacing="0">
     61  <tr>
     62    <td>
     63      <img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/Graphics/warning-icon-hi.png?format=raw" />
     64    </td>
     65    <td>If you are following on from the Flack tutorial, and the slice you created then has not yet expired, you can reuse the same slice -- skip ahead to step 2 (Import a simple experiment).</td>
     66  </tr>
     67</table>
     68}}}
    5869
    5970Otherwise, you will need to create a new slice, which can be done through the GENI Portal, as follows:
     
    92103<a href="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/PortalOmniExample/ObtainResources/example.rspec?format=raw">prepared rspec file</a>.  You should download this now, and save it where you can get to it with your browser.  If you have time, it is worthwhile inspecting the contents to see the style of rspec files (in this case, another simple sliver consisting of two nodes connected by a single network link).</p>
    93104
    94 <p>Next, you should load this topology into Flack.  ...FIXME screenshot</p>
     105<table><tr>
     106<td>
     107  <p>Next, you should load this topology into Flack.</p>
     108  <p>From the "Import" menu (see figure), select the "Import from file" item.<p>
     109  <p>Now select the file you saved a moment ago and open it.</p>
     110  <p>Because this file contains a generic description of resources and does
     111  not specify any particular aggregate manager, Flack will report
     112  "There were resources detected without a manager selected, please select which manager you would like to use."
     113  Select "OK", and then choose the manager listed on your worksheet from the
     114  list.  Then select "Accept", and a network topology (which might look
     115  familiar if you have completed earlier tutorials) should appear
     116  on the canvas.</p>
     117</td>
     118<td><img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/PortalOmniExample/ObtainResources/flack-import-small.png?format=raw" /></td>
     119</tr></table>
    95120}}}
    96121
    97122== 3. Modify the experiment to automatically install and execute network test software ==
    98123
    99 Click "i" on client
    100 
    101 + Add Install Service
    102 {{{
     124{{{
     125#!html
     126<table><tr>
     127<td><p>For this sample experiment, we'd like some additional software
     128(<tt>Apache</tt>, <tt>iperf</tt>, and a couple of custom scripts) loaded
     129onto the VMs to perform traffic measurements.  In Flack, you can manipulate
     130the details of the request for a node or link with the "<tt>i</tt>" button
     131on the relevant component on the canvas (see figure).  Do this now on the
     132client node.</p></td>
     133<td><img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/PortalOmniExample/ObtainResources/flack-node-info-small.png?format=raw" /></td>
     134</tr></table>
     135
     136<table><tr>
     137<td><p>When you open the node information, you should see options like those
     138in the figure.  The controls available to you will vary depending on the
     139types of the aggregate manager and the component, but many features are
     140widely available throughout GENI.</p>
     141
     142<p>The way we will request installation of the proper software and execution
     143of our experiment is to add <i>install</i> and <i>execute</i> services.
     144First, select "<tt>+ Add Install Service</tt>" as shown.  Flack will now
     145prompt you for an "Archive URL" and a location for installation.  For this
     146experiment, please enter the URL:
     147<pre class="wiki">
    103148http://www.gpolab.bbn.com/experiment-support/HelloGENI/hellogeni-install.tar.gz
    104 }}}
     149</pre>
     150and ask for this to be installed in:
     151<pre class="wiki">
    105152/local
    106 
    107 + Add Execute service
    108 {{{
     153</pre></p>
     154
     155<p>Similarly, please use the "<tt>+ Add Execute Service</tt>" button to request
     156that the command:
     157<pre class="wiki">
    109158sudo /local/install-script.sh
    110 }}}
     159</pre></p>
     160be executed using
     161<pre class="wiki">
    111162sh
    112 
    113 Apply
    114 
    115 Same on server
     163</pre></p>
     164
     165<p>Be very careful when entering this information -- these commands will not
     166be executed yet, so it will be some time before you will see any relevant
     167error messages if there is a mistake here.</p>
     168
     169<p>Once both the "install" and "execute" services are specified, please
     170choose "Apply".  Then repeat the procedure to add the same "install" and
     171"execute" services on the server node.</p>
     172
     173<p>If you have time, it would be instructive to download the "<tt>hellogeni-install</tt>" file yourself, and inspect the contents.  You will see the <tt>install-script.sh</tt> file referred to in the execute service, and this is a good example of how you can ask for GENI components to perform tasks for you without any manual intervention.  This is a very useful facility for large experiments!</p>
     174</td>
     175<td><img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/PortalOmniExample/ObtainResources/flack-services-small.png?format=raw" /></td>
     176</tr></table>
     177}}}
    116178
    117179== 4. Export the modified experiment ==
    118 
    119 View rspec
    120 
    121 Save to file
     180{{{
     181#!html
     182<p>Now we will pull back some of the covers and inspect exactly what Flack has been doing for us when preparing the rspecs for the experiments we design.  Each node and link has a corresponding element in the rspec, and the details of the component configuration (such as the install and execute services we requested above) are specified with attributes, or sometimes child elements, within those portions of the document.</p>
     183
     184<table><tr>
     185<td>
     186<p>Please use the "View" menu (see figure) and select the "Preview
     187request document(s)" item.  This will bring up a window showing the
     188current rspec -- please take a moment to inspect it.  The XML elements
     189under the "<tt>flack</tt>" namespace were added for Flack's internal
     190use (containing information about the canvas layout, editing history, etc.),
     191and are ignored by aggregate managers.  The "node" and "link" elements
     192contain the specification for the components we will request, and if you
     193look closely, you will be able to see the install and execute service
     194elements you added earlier.</p>
     195
     196<p>Next, please use the "Save to file" button (in the upper left) to
     197make a local copy of your rspec.  We'll use this in the next step to
     198demonstrate how other client tools also use rspec files to communicate
     199requests to aggregate managers.</p>
     200</td>
     201<td><img src="http://groups.geni.net/geni/attachment/wiki/GENIExperimenter/Tutorials/PortalOmniExample/ObtainResources/flack-view-small.png?format=raw" /></td>
     202</tr></table>
     203}}}
    122204
    123205== 5. Instantiate the new experiment using Omni ==