| 1 | = MyPLC and SFA Evaluation = |
| 2 | |
| 3 | The 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 | |
| 5 | The 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 | |
| 7 | The BBN Internal instructions for [http://groups.geni.net/syseng/wiki/GAPI_Installation MyPLC and SFA] were reviewed |
| 8 | as part of this evaluation. |
| 9 | |
| 10 | All evaluations were executed on Fedora 8 Systems. |
| 11 | |
| 12 | Time 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 | |
| 22 | The BBN Internal instructions for MyPLC and SFA required some clarification and all |
| 23 | feedback was incorporated in the [http://groups.geni.net/syseng/wiki/GAPI_Installation GAPI_Installation] |
| 24 | page: |
| 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 | |
| 33 | 1. Configured a !PlanetLab yum repo in /etc/yum.repos.d containing: |
| 34 | {{{ |
| 35 | [myplc] |
| 36 | name= MyPLC |
| 37 | baseurl=http://build.planet-lab.org/planetlab/f8/pl-f8-i386-4.3-k22-latest/RPMS/ |
| 38 | enabled=1 |
| 39 | gpgcheck=0 |
| 40 | }}} |
| 41 | 2. Installed MyPLC: |
| 42 | {{{ |
| 43 | $ sudo yum install myplc |
| 44 | }}} |
| 45 | 3. Started MyPLC: |
| 46 | {{{ |
| 47 | $ sudo service plc start |
| 48 | }}} |
| 49 | 4. Configured MyPLC: |
| 50 | {{{ |
| 51 | $ plc-config-tty |
| 52 | Enter 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 | }}} |
| 67 | 5. Start the plc server: |
| 68 | {{{ |
| 69 | $ sudo service plc start |
| 70 | }}} |
| 71 | |
| 72 | You may now login as a root user. |
| 73 | [[Image(2010-07-22_myplc-1.jpg)]] |
| 74 | |
| 75 | You may register a node from the left hand navigation Node-> Register Node. This will kick off a 9 |
| 76 | steps 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 | |
| 87 | In addition testing was completed using the [http://svn.planet-lab.org/wiki/SFAInstallationGuide PlanetLab SFA] instructions and with !PlanetLab resources, as captured below: |
| 88 | |
| 89 | 1. Configured a !PlanetLab yum repo in /etc/yum.repos.d containing: |
| 90 | {{{ |
| 91 | [myplc] |
| 92 | name= MyPLC |
| 93 | baseurl=http://build.planet-lab.org/planetlab/f8/pl-f8-i386-4.3-k22-latest/RPMS/ |
| 94 | enabled=1 |
| 95 | gpgcheck=0 |
| 96 | }}} |
| 97 | 2. Installed SFI tools: |
| 98 | {{{ |
| 99 | $ sudo yum install sfa-plc sfa-client |
| 100 | |
| 101 | }}} |
| 102 | |
| 103 | 3. 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 | |
| 128 | 4. Copied my private key to the SFI configuration directory: |
| 129 | {{{ |
| 130 | $ mkdir ~/.sfi |
| 131 | $ cp ~/.ssh/id_rsa ~/.sfi/lnevers.pkey |
| 132 | }}} |
| 133 | |
| 134 | 5. Creates sfi_config containing the following: |
| 135 | {{{ |
| 136 | SFI_AUTH="plc.gpotest.gpolabln" |
| 137 | SFI_USER="plc.gpotest.gpolabln.root" |
| 138 | SFI_REGISTRY="http://localhost:12345" |
| 139 | SFI_SM="http://localhost:12347" |
| 140 | SFI_GENI_AM="http://localhost:12348" |
| 141 | }}} |
| 142 | |
| 143 | 6. 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 | |
| 151 | 7. 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 | |
| 165 | Using the instructions detailed at the [http://groups.geni.net/syseng/wiki/GAPI_Installation GENI API Installation] page, |
| 166 | installed, configured and ran both MyPLC and SFA installation on three separate Fedora 8 systems. |
| 167 | Instruction issues were fed back and resolved in the GAPI_Installation web page, therefore they are |
| 168 | not duplicated here. |
| 169 | |
| 170 | Once installed according to the directions on GAPI_Installation page, was able to run the MyPLC and successfully register users and nodes. |