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

07/01/13 17:35:31 (8 years ago)
Gary Wong

Flesh out the instructions and screenshots for the Flack portion.


  • GENIExperimenter/Tutorials/PortalOmniExample/ObtainResources

    v3 v4  
    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 ==
    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.
     60<table border="0" cellpadding="0" cellspacing="0">
     61  <tr>
     62    <td>
     63      <img src="" />
     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>
    5970Otherwise, you will need to create a new slice, which can be done through the GENI Portal, as follows:
    92103<a href="">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>
    94 <p>Next, you should load this topology into Flack.  ...FIXME screenshot</p>
     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>
     118<td><img src="" /></td>
    97122== 3. Modify the experiment to automatically install and execute network test software ==
    99 Click "i" on client
    101 + Add Install Service
    102 {{{
     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="" /></td>
     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>
     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">
    104 }}}
     150and ask for this to be installed in:
     151<pre class="wiki">
    107 + Add Execute service
    108 {{{
     155<p>Similarly, please use the "<tt>+ Add Execute Service</tt>" button to request
     156that the command:
     157<pre class="wiki">
    109158sudo /local/
    110 }}}
     160be executed using
     161<pre class="wiki">
    113 Apply
    115 Same on server
     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>
     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>
     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></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>
     175<td><img src="" /></td>
    117179== 4. Export the modified experiment ==
    119 View rspec
    121 Save to file
     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>
     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>
     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>
     201<td><img src="" /></td>
    123205== 5. Instantiate the new experiment using Omni ==