wiki:GENIExperimenter/Tutorials/TrainTheTA-Fall2013/SliceAccessTutorial

Version 14 (modified by nriga@bbn.com, 6 years ago) (diff)

--

Portal Reservation

When the students reserve resources through the portal then the lead and the admin gets accounts in the compute resources as well. Let's try that:

  1. Login to the portal and load the Slice Tab
  2. Choose the slice called sliceaccess-portal
  3. Check the status for all the aggregates in the slice. Where does this slice have resources?
  4. Press the Details button and wait until all the information is loaded.
  5. Login to the node using your own account

Action:Send us in an email the keys installed for user vthomas (to tutorials@geni.net)

Tip: The installed keys are located in a text file under the .ssh directory of the user. Tip: You will need to use sudo to access the directory of another user

Reservation with other tools

When students are reserving resource with other tools then only their key is created on the nodes. To help your students debug in this case you should ask your students to load to their account a common public key. This process has two steps

A. Generate and load SSH Keypairs

To generate an SSH Key pair use keygen.

  1. In a terminal run
    ssh-keygen
    
  2. Follow the instructions:
    • You can name your key anything you like, for this exercise name it common-key
    • Make sure to remember the passphrase you set.
  3. Run ls to see the contents of your directory. There should be two files generated from the previous command:
    • common-key: This is the private key. You keep this to your self and maybe share it with the professor of the class and other admins of the project.
    • common-key.pub: This is the public key. This is the key you give to the students to load to their profile.
      Tip: If you have too many files try to filter the output to be easier to find you keys. Try:
         ls comm*
      
  4. Load the public key to your portal profile.
    1. Login to the portal and under the Profile tab and load the SSH Keys tab
    2. Click on the upload another ssh key button.

Warning: If there are no public keys in a profile and you upload one then you will not have option for the portal to generate one for you. Make sure your students have first generated their SSH Key pair and then upload the common key.

Action: Send us in an email the public key. (to tutorials@geni.net)

B. Access nodes

Let's try this and see how it works. The first steps are exactly the same as before:

  1. Login to the portal and load the Slice Tab
  2. Choose the slice called sliceaccess-flack
  3. Check the status for all the aggregates in the slice. Where does this slice have resources?
  4. Press the Details button and wait until all the information is loaded.
  5. Notice that there is only one account created.
  6. Download the common private key (the one that it is only for admins) from: http://tinyurl.com/TACommonKey (actual URL: http://www.gpolab.bbn.com/experiment-support/TrainTheTA/common-key )
    Tip:If you load it in the browser then just save the file using your browser's menus. Warning:You will need to change the permission to this file to be accessible only to you. In a terminal do:
     chmod 600 <location_of_downloaded_key>
    
  7. Use this key to login to the nodes:
    1. Copy the ssh command from the portal
    2. Paste it in the terminal
    3. Add in the end: -i <location_of_downloaded_key>

Action: Send us in an email the contents of the file done.txt (to tutorials@geni.net)