Changes between Version 5 and Version 6 of Handler-Testing

Show
Ignore:
Timestamp:
03/06/10 13:02:47 (9 years ago)
Author:
ibaldin (IP: 98.26.55.18)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Handler-Testing

    v5 v6  
    2121}}} 
    2222== Testing handlers with NA components == 
    23 0. Let $ORCA_HOME 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_HOME/controllers/ben/resources/handlers/controllers/ben/gec7 . master.service.location needs to contain the correct IP address for the node agent machine. 
    2423 
    25 1. Build ORCA from $ORCA_HOME 
     24 1. Let $ORCA_HOME 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_HOME/controllers/ben/resources/handlers/controllers/ben/gec7 . master.service.location needs to contain the correct IP address for the node agent machine. 
     25 1. Build ORCA from $ORCA_HOME 
    2626{{{ 
    2727$ mvn install 
    2828}}} 
    29  
    30 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). 
     29 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). 
    3130{{{ 
    3231$ cd tools/cmdline 
    3332$ ant test.handler.prepare 
    34 }}} 
     33}}}  
    3534This will create the handlers/ tree and packages/ tree inside tools/cmdline 
    36  
    37 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. 
    38  
    39 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.  
     35 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. 
     36 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.  
    4037{{{ 
    4138$ cd $ORCA_HOME/tools/cmdline 
    4239$ ln -s $ORCA_HOME/tools/config/runtime runtime 
    4340}}} 
    44  
    45 6. Disable emulation in $ORCA_HOME/tools/cmdline/config/container.properties so that actual substrates are touched. Make emulation=false in container.properties. 
    46  
    47 7. Go to tools/cmdline directory. 
     41 6. Disable emulation in $ORCA_HOME/tools/cmdline/config/container.properties so that actual substrates are touched. Make emulation=false in container.properties. 
     42 7. Go to tools/cmdline directory. 
    4843{{{ 
    4944$ cd $ORCA_HOME/tools/cmdline 
    5045}}} 
    51  
    52 8. Test handler  
     46 8. Test handler  
    5347{{{ 
    5448$ 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>