Changes between Initial Version and Version 1 of GIR2.1_PLC_SFA


Ignore:
Timestamp:
03/14/11 21:57:57 (11 years ago)
Author:
lnevers@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GIR2.1_PLC_SFA

    v1 v1  
     1= MyPLC and SFA Evaluation =
     2
     3The MyPLC software versions evaluated based on instructions from [http://svn.planet-lab.org/wiki/MyPLC PlanetLab MyPLC] page and using the [http://svn.planet-lab.org/wiki/MyPLCUserGuide MyPLC User Guide].
     4
     5The SFA software versions evaluated based on instructions from [http://svn.planet-lab.org/wiki/SFAGuide PlanetLab SFA Guide]. Also reviewed the [http://svn.planet-lab.org/wiki/SFATutorial SFA Tutorial].
     6
     7The BBN Internal instructions for [http://groups.geni.net/syseng/wiki/GAPI_Installation MyPLC and SFA] were reviewed
     8as part of this evaluation.
     9
     10All evaluations were executed on Fedora 8 Systems.
     11
     12Time frame: These evaluations took place from May 19 through June 2, 2010
     13
     14= MyPLC and SFA Findings =
     15
     16'''MyPLC Findings''' Not yet completed.
     17
     18'''SFA Findings''' None.
     19
     20'''BBN GENI API Findingings'''
     21
     22The BBN Internal instructions for MyPLC and SFA required some clarification and all
     23feedback was incorporated in the [http://groups.geni.net/syseng/wiki/GAPI_Installation GAPI_Installation]
     24page:
     25 * Steps did not clearly identify what was being executed and why.
     26 * No clear distinction between user and admin actions, "Your account" used to describe either.
     27 * SFA prerequisites not fully captured.
     28
     29= MyPLC and SFA How-to =
     30
     31'''MyPLC How-to'''
     32
     331. Configured a !PlanetLab yum repo in /etc/yum.repos.d containing:
     34{{{
     35[myplc]
     36name= MyPLC
     37baseurl=http://build.planet-lab.org/planetlab/f8/pl-f8-i386-4.3-k22-latest/RPMS/
     38enabled=1
     39gpgcheck=0
     40}}}
     412. Installed MyPLC:
     42{{{
     43$ sudo yum install myplc
     44}}}
     453. Started MyPLC:
     46{{{
     47 $ sudo service plc start
     48}}}
     494. Configured MyPLC:
     50{{{
     51$ plc-config-tty
     52Enter command (u for usual changes, w to save, ? for help) u
     53== PLC_NAME : [ln plc2]
     54== PLC_SHORTNAME : [lnplc2]
     55== PLC_SLICE_PREFIX : [lnpl2]
     56== PLC_ROOT_USER : [root@localhost.localdomain]
     57== PLC_ROOT_PASSWORD : [root]
     58== PLC_MAIL_ENABLED : [true]
     59== PLC_MAIL_SUPPORT_ADDRESS : [lnevers@bbn.com]
     60== PLC_DB_HOST : [128.89.91.23]
     61== PLC_API_HOST : [128.89.91.23]
     62== PLC_WWW_HOST : [128.89.91.23]
     63== PLC_BOOT_HOST : [128.89.91.23]
     64== PLC_NET_DNS1 : [128.33.0.20]
     65== PLC_NET_DNS2 : [128.33.1.20]
     66}}}
     675. Start the plc server:
     68{{{
     69 $ sudo service plc start
     70}}}
     71
     72You may now login as a root user.
     73[[Image(2010-07-22_myplc-1.jpg)]]
     74
     75You may register a node from the left hand navigation Node-> Register Node.  This will kick off a 9
     76steps procedure captured below:
     77[[Image(2010-07-22_myplc-node-0.jpg)]]
     78
     79<<<NEED CAPTURE FOR ADDING NODE>>>
     80
     81
     82
     83
     84
     85'''SFA How-to'''
     86
     87In addition testing was completed using the [http://svn.planet-lab.org/wiki/SFAInstallationGuide PlanetLab SFA] instructions and with !PlanetLab resources, as captured below:
     88
     891. Configured a !PlanetLab yum repo in /etc/yum.repos.d containing:
     90{{{
     91[myplc]
     92name= MyPLC
     93baseurl=http://build.planet-lab.org/planetlab/f8/pl-f8-i386-4.3-k22-latest/RPMS/
     94enabled=1
     95gpgcheck=0
     96}}}
     972. Installed SFI tools:
     98{{{
     99$ sudo yum install sfa-plc sfa-client
     100
     101}}}
     102
     1033. Configured SFA:
     104{{{
     105 $ sudo sfa-config-tty
     106 Enter command (u for usual changes, w to save, ? for help) u
     107 == SFA_INTERFACE_HRN : [plc.gpotest]
     108 == SFA_REGISTRY_ROOT_AUTH : [plc.gpotest]
     109 == SFA_REGISTRY_HOST : [localhost]
     110 == SFA_AGGREGATE_HOST : [localhost]
     111 == SFA_SM_HOST : [localhost]
     112 == SFA_PLC_USER : [root@localhost.localdomain]
     113 == SFA_PLC_PASSWORD : [root]
     114 == SFA_PLC_DB_HOST : [localhost]
     115 == SFA_PLC_DB_USER : [pgsqluser]
     116 == SFA_PLC_DB_PASSWORD : [22f4a8bd-866b-4b0a-bd19-d28ce45a21b5]
     117 == SFA_PLC_URL : [https://localhost:443/PLCAPI/]
     118 Enter command (u for usual changes, w to save, ? for help) w
     119 Wrote /etc/sfa/configs/site.xml
     120 Merged
     121         /etc/sfa/default_config.xml
     122 and     /etc/sfa/configs/site.xml
     123 into    /etc/sfa/sfa_config.xml
     124 You might want to type 'r' (restart sfa), 'R' (reload sfa) or 'q' (quit)
     125 Enter command (u for usual changes, w to save, ? for help) q
     126}}}
     127
     1284. Copied my private key to the SFI configuration directory:
     129{{{
     130 $ mkdir ~/.sfi
     131 $ cp ~/.ssh/id_rsa ~/.sfi/lnevers.pkey
     132}}}
     133
     1345. Creates sfi_config containing the following:
     135{{{
     136SFI_AUTH="plc.gpotest.gpolabln"
     137SFI_USER="plc.gpotest.gpolabln.root"
     138SFI_REGISTRY="http://localhost:12345"
     139SFI_SM="http://localhost:12347"
     140SFI_GENI_AM="http://localhost:12348"
     141}}}
     142
     1436. Restart the SFA, import policy and start again:
     144
     145{{{
     146$ sudo service sfa reload
     147$ sudo sfa-import-plc.py
     148$ sudo service sfa start
     149}}}
     150
     1517. Verified the setup can be used:
     152{{{
     153 $ sfi.py list plc.gpotest.gpolabln
     154 plc.gpotest.gpolabln.aloria (node)
     155 plc.gpotest.gpolabln.test (slice)
     156 plc.gpotest.gpolabln.test2 (slice)
     157 plc.gpotest.gpolabln.root (user)
     158 plc.gpotest.gpolabln.lnevers (user)
     159 plc.gpotest.gpolabln.luisanevers (user)
     160}}}
     161
     162
     163''' BBN GENI API How-to'''
     164
     165Using the instructions detailed at the [http://groups.geni.net/syseng/wiki/GAPI_Installation GENI API Installation] page,
     166installed, configured and ran both MyPLC and SFA installation on three separate Fedora 8 systems. 
     167Instruction issues were fed back and resolved in the GAPI_Installation web page, therefore they are
     168not duplicated here.
     169
     170Once installed according to the directions on GAPI_Installation page, was able to run the MyPLC and successfully register users and nodes.