Changes between Version 8 and Version 9 of Handler-Testing

Show
Ignore:
Timestamp:
03/09/10 12:52:34 (9 years ago)
Author:
anirban (IP: 152.54.6.35)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Handler-Testing

    v8 v9  
    2828== Testing handlers with NA components == 
    2929 
    30  1. Let $ORCA_ROOT be the root of your orca source tree. Edit build.properties in the appropriate handler directory to reflect the correct IP address of the node agent and the substrate locations. For example, look at the build.properties for BEN gec7 demo handler in $ORCA_ROOT/controllers/ben/resources/handlers/controllers/ben/gec7 . master.service.location needs to contain the correct IP address for the node agent machine. 
     30 0. Let $ORCA_ROOT be the root of your orca source tree. Edit build.properties in the appropriate handler directory to reflect the correct IP address of the node agent and the substrate locations. For example, look at the build.properties for BEN gec7 demo handler in $ORCA_ROOT/controllers/ben/resources/handlers/controllers/ben/gec7 . master.service.location needs to contain the correct IP address for the node agent machine. 
    3131 1. Build ORCA from $ORCA_ROOT 
    3232{{{ 
    3333$ mvn install 
    3434}}} 
    35  2. Prepare handlers for execution in tools/cmdline. Note that because this command attempts to start ORCA instance, you must have mysql with valid schema and dataset running on the localhost. Note that ORCA deployment tree is created under tools/cmdline (including all plugins and handlers, and that is where they are executed from). 
     35This will create the handlers/ tree and packages/ tree inside tools/cmdline 
     36 2. Make sure that the node agent (NA) is up and running. The NA actually controls the substrate. Also, the drivers need to be installed there. See documentation on how to set up node agents and install drivers on them - https://geni-orca.renci.org/trac/wiki/DeployNodeAgent . Make sure that the 'ant drivers.install' step goes smoothly. That should verify whether the security setup is correct so that you can talk to the node agent. 
     37 3. As a part of the node agent setup process, a runtime/ directory would be created inside tools/config. This directory contains keys etc. required to talk to node agent. This runtime/ directory needs to be sym-linked under tools/cmdline.  
     38{{{ 
     39$ cd $ORCA_ROOT/tools/cmdline 
     40$ ln -s $ORCA_ROOT/tools/config/runtime runtime 
     41}}} 
     424. Prepare handlers for execution in tools/cmdline. Note that because this command attempts to start ORCA instance, you must have mysql with valid schema and dataset running on the localhost. Note that ORCA deployment tree is created under tools/cmdline (including all plugins and handlers, and that is where they are executed from). 
    3643{{{ 
    3744$ cd tools/cmdline 
    3845$ ant test.handler.prepare 
    3946}}}  
    40 This will create the handlers/ tree and packages/ tree inside tools/cmdline 
    41  3. Make sure that the node agent (NA) is up and running. The NA actually controls the substrate. Also, the drivers need to be installed there. See documentation on how to set up node agents and install drivers on them - https://geni-orca.renci.org/trac/wiki/DeployNodeAgent . Make sure that the 'ant drivers.install' step goes smoothly. That should verify whether the security setup is correct so that you can talk to the node agent. 
    42  4. As a part of the node agent setup process, a runtime/ directory would be created inside tools/config. This directory contains keys etc. required to talk to node agent. This runtime/ directory needs to be sym-linked under tools/cmdline.  
    43 {{{ 
    44 $ cd $ORCA_ROOT/tools/cmdline 
    45 $ ln -s $ORCA_ROOT/tools/config/runtime runtime 
    46 }}} 
    47  6. Disable emulation in $ORCA_ROOT/tools/cmdline/config/container.properties so that actual substrates are touched. Make emulation=false in container.properties. 
    48  7. Go to tools/cmdline directory. 
     47 5. Disable emulation in $ORCA_ROOT/tools/cmdline/config/container.properties so that actual substrates are touched. Make emulation=false in container.properties. 
     48 6. Go to tools/cmdline directory. 
    4949{{{ 
    5050$ cd $ORCA_ROOT/tools/cmdline 
    5151}}} 
    52  8. Test handler  
     52 7. Test handler  
    5353{{{ 
    5454$ ant test.handler -Dtarget=<join|leave> -Demulation=false -Dhandler=<path to handler xml file in tools/cmdline subtree> -Dactor.id=admin -Dorca.home=. -Dsecure.communication=true <-DsomeProperty=any other optional properties>