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


Ignore:
Timestamp:
03/14/11 22:01:48 (13 years ago)
Author:
lnevers@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GIR2.1_TIED

    v1 v1  
     1
     2= TIED Evaluation =
     3
     4The Trial Integration Environment in DETER ([http://fedd.isi.deterlab.net/trac TIED]) software allows users to create experiments across multiple independent resource pools with different access control interfaces. The TIED project completed the software delivery milestone TIED S2.C captured in [http://groups.geni.net/geni/ticket/512 ticket 512].  The milestone is met by the [http://fedd.isi.deterlab.net/trac/wiki/FeddReleaseNodes#Fedd3.01released27Aug2010 Fedd 3.01 ]release.   Fedd 3.01 delivers [http://www.protogeni.net/trac/protogeni/wiki/ComponentManagerAPIV2 ProtoGENI CM v2] and [http://groups.geni.net/geni/wiki/GeniApi GENIAPI AM v0.9] features and some bug fixes.
     5Fedd 3.01 release does not change the interface delivered by Fedd 3.0 (released 30 Jun 2010).  See [http://fedd.isi.deterlab.net/trac/wiki/FeddReleaseNodes Release Notes] for full feature list.
     6
     7An overview of the [http://fedd.isi.deterlab.net/trac/wiki/FeddAbout DETER Federation Architecture (DFA)] is available that give
     8The Fedd 3.01 release can be found [http://fedd.isi.deterlab.net/trac/wiki/FeddDownload#DownloadingandInstallingthetarfile here] along with
     9instructions to installing the software. After some initial attempts, a new [http://fedd.isi.deterlab.net/trac/wiki/FeddSkelPlugin Plug-in Skeleton] approach was suggested and used for this evaluation. The document provides a step-by-step skeleton fedd, which act as a component manager for some non existent resources, like a GENI API skeleton AM and clearinghouse. 
     10
     11Time Frame:  This evaluation took place August 30-31, 2010.
     12
     13= TIED Findings =
     14
     15Initial evaluation was run on Ubuntu Karmic, found that in the Ubuntu Karmic repositories one package is too old (m2crypto) and one is too new (ZSI).  Karmic uses m2crypto 0.19 there fore the pyasn1 library must be installed.  Also during installation found undocumented prere-quisites for swig, libmysqlclient15-dev and setuptools-0.6c9-py2.6.egg that were needed to complete.
     16
     17
     18= TIED How-to =
     19== TIED Ubuntu How-to ==
     20Using the [http://groups.geni.net/geni/wiki/TIEDFedd30GIR12 GIR 2.1 Information for Fedd 3.00] notes to validate package.
     21The instruction recommend using [http://www.freebsd.org/ FreeBSD], but since I do not have such a VM submitted a requested
     22and proceeded to start evaluation on Ubuntu Karmic.  Software has the following dependencies:
     23
     24   * [http://sourceforge.net/projects/swig/files/swig/swig-2.0.0/swig-2.0.0.tar.gz/download swig-2.0.0]
     25   * [http://python.org/ python] version 2.4 or later with the following packages:
     26         * ZSI version 2.0 or greater
     27         * m2crypto version 0.18 or greater (2.0 or greater preferred)
     28         * pyasn1 version 0.0.9 or greater (if m2crypto is 0.18)
     29         * MySQL-python-1.2.3
     30   * libmysqlclient15-dev package to allows myql python build.
     31
     321. Downloaded:
     33 * [http://sourceforge.net/projects/pywebsvcs/files/ZSI/ZSI-2.0/ ZSI-2.0.tar.gz]
     34 * [http://pypi.python.org/pypi/M2Crypto M2Crypto-0.20.2.tar.gz].
     35 * Ubuntu Karmic repositories only, m2crypto package is too old and ZSI is too new (ZSI).  Karmic uses m2crypto 0.19 therefore [http://sourceforge.net/projects/pyasn1/files/pyasn1-devel/0.0.11a/pyasn1-0.0.11a.tar.gz/download pyasn1] must be installed.
     36 * [http://sourceforge.net/projects/mysql-python/ MySQLdb]
     37
     382. Unpacked and installed the Python packages: ZSI, M2Crypto, pyasn1, and MySQLdb :
     39   Note: found that python mysql would not install without a mysql_conf, which is
     40   available by installing  sudo apt-get install "libmysqlclient15-dev"
     41{{{
     42 $ tar xvzf ZSI-2.0.tar.gz
     43 $ tar xvzf M2Crypto-0.20.2.tar.gz
     44 $ tar xvzf pyasn1-0.0.11a.tar.gz
     45 $ tar xvzf MySQL-python-1.2.3.tar.gz
     46 $ cd ZSI-2.0
     47 $ sudo python ./setup.py install
     48 $ cd ../M2Crypto-0.20.2/
     49 $ sudo python ./setup.py install
     50 $ cd ../pyasn1-0.0.11a
     51 $ sudo python ./setup.py install
     52 $ cd ../MySQL-python-1.2.3
     53 $ sudo apt-get install "libmysqlclient15-dev"
     54 $ vi site.cfg                          # un-commented and modified line 11 "mysql_config = /usr/bin/mysql_config"
     55 $ python setup.py build
     56 $ sudo python setup.py install
     57}}}
     58
     593. Downloaded the [http://fedd.isi.deterlab.net/trac/attachment/wiki/FeddDownload/fedd-3.01.tar.gz fedd-3.01.tar.gz] file and unpack:
     60{{{
     61 $ tar xvzf fedd-3.01.tar.gz
     62 $ cd fedd-3.01
     63 $ sudo python ./setup.py install
     64}}}
     65
     664. Create a '''userconf''' directory in a user define path. Create a file userconf/skel.conf
     67{{{
     68 [DEFAULT]
     69 # Customize this line
     70 base: /usr/local/fedd
     71
     72 [access]
     73
     74 project_priority: false
     75 log_level: debug
     76 access_state: %(base)s/skel_access.state
     77 accessdb: %(base)s/skel_access
     78 certdir: %(base)s/certs
     79 userconfdir: %(base)s/userconf
     80
     81 maxint: 3
     82
     83[globals]
     84 cert_file: %(base)s/fedd.pem
     85 services: 13230
     86
     87 access_type: skel
     88}}}
     89 
     905a. Create a file userconf/skel_access:
     91{{{
     92 (fedid:b55205ac843c40ce9c9feb3b358bff782ed337fd, testing, guest) -> access, (Local_attr)
     93}}}
     94
     955b. Create a certificate representing a fedid
     96{{{
     97 $ /usr/bin/openssl req -text -newkey rsa:1024 -keyout key.pem -nodes -subj /CN=users.gpolab.bbn.com -x509 -days 3650 -out cert.pem
     98 $ cat key.pem cert.pem > fedd.pem
     99}}}
     100
     101'''Running the Skeleton Plugin'''
     102
     103Start the Plug-in:
     104{{{
     105$ python ./fedd.py --config=/home/lnevers/TIED/userconf/skel.conf  --debug
     10601 Sep 10 10:57:38 fedd.access [read_state]: No saved state: Can't open /home/lnevers/TIED/userconf/skel_access.state:
     107[Errno 2] No such file or directory: '/home/lnevers/TIED/userconf/skel_access.state'
     108}}}
     109
     110Using a simple skeleton experiment description:
     111{{{
     112  set ns [new Simulator]
     113  source tb_compat.tcl
     114
     115  set a [$ns node]
     116  tb-set-node-testbed $a "skeleton"
     117
     118  $ns rtproto Static
     119  $ns run
     120}}}
     121Create an experiment:
     122{{{
     123$ fedd_create.py --cert=/home/lnevers/TIED/userconf/guest.pem --url=http://users.gpolab.bbn.com:23335 --experiment_name=ln_test --file=/home/lnevers/TIED/userconf/skel-only.tcl --map=skeleton:https://users.gpolab.bbn.com:13230
     124Warning:Neither master/project nor services requested
     125}}}
     126
     127You can check on the experiment status as follows:
     128{{{
     129 $ fedd_multistatus.py --cert=/home/lnevers/TIED/userconf/fedd.pem --url=http://users.gpolab.bbn.com:23335
     130}}}
     131
     132
     133== TIED FreeBSD How-to ==
     134
     1351. Using a newly built FreeBSD 8.1 VM, installed Python 2.6.6, py-m2crypto, xsi and apache 2.2 server using ports
     136
     1372. with all packages install, moved to fedd-3.01 installation:
     138{{{
     139   $ tar xvzf fedd-3.01.tar.gz
     140   $ cd fedd-3.01
     141   $ sudo python ./setup.py install
     142}}}
     143
     1443. Create a '''userconf''' directory in a user define path. Create a file userconf/skel.conf and modified
     145the base parameter to point to local install
     146{{{
     147  [DEFAULT]
     148  # Customize this line
     149  base: /home/lnevers/TIED/userconf
     150
     151  [access]
     152  project_priority: false
     153  log_level: debug
     154  access_state: %(base)s/skel_access.state
     155  accessdb: %(base)s/skel_access
     156  certdir: %(base)s/certs
     157  userconfdir: %(base)s/userconf
     158
     159  maxint: 3
     160
     161  [globals]
     162  cert_file: %(base)s/fedd.pem
     163  services: 13230
     164
     165  access_type: skel
     166}}}
     167 
     1684. Create a file userconf/skel_access:
     169{{{
     170 (fedid:b55205ac843c40ce9c9feb3b358bff782ed337fd, testing, guest) -> access, (Local_attr)
     171}}}
     172
     1735. Create a certificate representing a fedid
     174{{{
     175 $ /usr/bin/openssl req -text -newkey rsa:1024 -keyout key.pem -nodes -subj /CN=users.gpolab.bbn.com -x509 -days 3650 -out cert.pem
     176 $ cat key.pem cert.pem > fedd.pem
     177}}}
     178
     179'''Running the Skeleton Plugin'''
     180
     181Start the Plug-in:
     182{{{
     183$ fedd.py --config=/home/lnevers/TIED/userconf/skel.conf  --debug
     18409 Sep 10 14:18:45 fedd.access [read_state]: No saved state: Can't open /home/lnevers/TIED/userconf/skel_access.state: [Errno 2] No such file or directory: '/home/lnevers/TIED/userconf/skel_access.state'
     185}}}
     186
     187Using a simple skeleton experiment description:
     188{{{
     189  set ns [new Simulator]
     190  source tb_compat.tcl
     191
     192  set a [$ns node]
     193  tb-set-node-testbed $a "skeleton"
     194
     195  $ns rtproto Static
     196  $ns run
     197}}}
     198Create an experiment:
     199{{{
     200$ sudo fedd_create.py --cert=./fedd.pem --url=https://sindle.gpolab.bbn.com:23235 --experiment_name=ln_test --file=./skel-only.tcl --map=skeleton:https://sindle.gpolab.bbn.com:13230 --debug
     201Warning:Neither master/project nor services requested
     202Error: Connection Error (8)
     203Description: Cannot connect to https://sindle.gpolab.bbn.com:23235: Connection refused
     204}}}
     205  '''Note:''' The above failed, have outstanding request for information from developer.
     206 
     207You should be able to check on the experiment status as follows:
     208{{{
     209 $ fedd_multistatus.py --cert=/home/lnevers/TIED/userconf/fedd.pem --url=http://users.gpolab.bbn.com:23335
     210}}}