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 or higher]</strong>
16 <h4>For Mac and Linux</h4>
18 $ sudo easy_install pip<br>
19 $ sudo pip install sfa
22 <p>Please download <a target="_blank" href="https://bootstrap.pypa.io/get-pip.py">get-pip.py</a></p>
24 $ python get-pip.py<br>
29 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>
32 More details about SFA is available at the following address:
33 <a target="_blank" href="http://svn.planet-lab.org/wiki/SFATutorialInstall#installingthroughpipfromPyPI">Installing SFA</a>
36 <h3>Configuring SFA</h3>
39 Once SFA tools are successfully installed, you need to configure the SFA client aka SFI
44 $ cp ~/.ssh/id_rsa ~/.sfi/user-hrn.pkey
48 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>
50 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>
51 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>
52 (with dots replaced with underscores).
56 Next, you will setup your ~/.sfi/sfi_config. The following represents the sfi_config file for a OneLab user:
61 auth = onelab.upmc<br>
62 user = onelab.upmc.mohammed-yasin_rahman<br>
63 registry = http://portal.onelab.eu:12345/<br>
64 sm = http://sfa3.planet-lab.eu:12346/<br>
68 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.
71 Add the the following to sfi_config for delegating credentials to OneLab portal:
76 backend = http://portal.onelab.eu:7080<br>
77 delegate = onelab.myslice<br>
78 platform = myslice<br>
79 username = mohammed-yasin.rahman@lip6.fr
88 And finally delegate your credentials to the portal
94 The complete tutorial is available at the following address:
95 <a target="_blank" href="http://trac.myslice.info/wiki/InstallSfa">http://trac.myslice.info/wiki/InstallSfa</a>