1 {% extends "layout.html" %}
7 <h2>Manual Delegation</h2>
11 In order to delegate your credentials to the OneLab portal, you need to install SFA tools.<br>
14 <strong>Requirement: python 2.7</strong>
16 <h4>For Mac and Linux</h4>
18 $ sudo easy_install pip<br>
19 $ sudo pip install sfa
23 $ python get-pip.py<br>
28 To get more information about pip, please visit: <a target="_blank" href="https://pip.pypa.io/en/latest/installing.html">https://pip.pypa.io/en/latest/installing.html</a>
31 More details about SFA is available at the following address:
32 <a target="_blank" href="http://svn.planet-lab.org/wiki/SFATutorialInstall#installingthroughpipfromPyPI">Installing SFA</a>
35 <h3>Configuring SFA</h3>
38 Once SFA tools are successfully installed, you need to configure the SFA client aka SFI
43 $ cp ~/.ssh/id_rsa ~/.sfi/user-hrn.pkey
47 Here, 'user-hrn' is your SFA hrn. If e.g., your OneLab account email is mohammed-yasin.rahman at upmc.fr, then your user-hrn is <b><i>'onelab.upmc.mohammed-yasin_rahman'.</i></b></p>
49 In this example, a user-hrn is built using the root authority i.e, <b><i>'onelab'</i></b> followed by a <b>'.'</b> then the sub authority i.e., <b><i>'upmc'</i></b>
50 followed by a <b>'.'</b> and then the last fragment in the hrn is made of the local part of your email adress i.e., <b><i>'mohammed-yasin_rahman'</i></b>
51 (with dots replaced with underscores).
55 Next, you will setup your ~/.sfi/sfi_config. The following represents the sfi_config file for a OneLab user:
60 auth = onelab.upmc<br>
61 user = onelab.upmc.mohammed-yasin_rahman<br>
62 registry = http://portal.onelab.eu:12345/<br>
63 sm = http://sfa3.planet-lab.eu:12346/<br>
69 Here again, <b><i>'user'</i></b> is your user-hrn, and <b><i>'auth'</i></b> is the authority that you belong to, in most cases you should just drop the last part of your hrn.
72 Add the the following to sfi_config for delegating credentials to OneLab portal:
77 backend = http://portal.onelab.eu:7080<br>
78 delegate = onelab.myslice<br>
79 platform = myslice<br>
80 username = [OneLab portal's username] e.g., mohammed-yasin.rahman@lip6.fr
89 And finally delegate your credentials to the portal
95 The complete tutorial is available at the following address:
96 <a target="_blank" href="http://trac.myslice.info/wiki/InstallSfa">http://trac.myslice.info/wiki/InstallSfa</a>