Changes between Version 1 and Version 2 of Euca-Handler-Testing

Show
Ignore:
Timestamp:
03/02/10 00:23:16 (9 years ago)
Author:
ibaldin (IP: 98.26.55.18)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Euca-Handler-Testing

    v1 v2  
    11= Testing Eucalyptus handler = 
    22 
    3 You must set up your Eucalyptus substrate first. 
     3You must set up your Eucalyptus substrate first. This setup presumes you have an environment variable called $ORCA_HOME (typically pointed to /opt/orca). 
    44 
    551. Download your keys from euca. I think they come as a zip file. 
     
    14144. Generate a private key with euca: 
    1515 
    16 ec2-add-keypair mykey > mykey   OR euca-add-keypair mykey > mykey 
     16{{{ 
     17$ euca-add-keypair mykey > mykey 
     18}}} 
    1719 
    18205. Copy mykey to $ORCA_HOME/ec2 
    1921 
    20226. Edit $orca_home/ec2/eucarc: 
    21   - comment the first line (EUCA_KEY_DIR=$(dirname $(readlink -f $  
    22 {BASH_SOURCE}))) 
    23   add the following two lines 
    24 export AMI_NAME=emi-BC27103B 
     23  - comment the first line (EUCA_KEY_DIR=$(dirname $(readlink -f ${BASH_SOURCE}))) 
     24  - add the following two lines 
     25{{{ 
     26export AMI_NAME=<name of the emi filesystem image to be used> 
    2527export EC2_SSH_KEY=mykey 
     28}}} 
    2629 
    2730 - define JAVA_HOME to point to your JAVA installation. On a MAC this   
    2831is: 
    29  
    30 export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/  
     32{{{ 
     33$ export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/  
    3134CurrentJDK/Home 
     35}}} 
    3236 
    33377. Now you are ready to try running test.euca. 
     
    3539   - you must have do a build (mvn install in the root of the orca   
    3640tree) 
    37    - disable emulation: edit tools/cmdline/config/container.properties 
    38    - run the test: 
    39  
    40 and test.euca -DleaseLength=600 
     41{{{ 
     42$ ant test.euca -Demulation=false -DleaseLength=600 
     43}}} 
    4144 
    42458. At some point you will see that the reservation will become active   
    4346and the handler should display the IP address of the VM. You should be   
    44 able 
    45 to connect to the VM (it will be around for about 10 minutes): 
     47able to connect to the VM (it will be around for about 10 minutes): 
    4648 
    4749ssh -i $ORCA_HOME/mykey root@IP