Changes between Version 15 and Version 16 of deploy-am

Show
Ignore:
Timestamp:
05/03/11 12:13:25 (8 years ago)
Author:
anirban (IP: 152.54.6.213)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • deploy-am

    v15 v16  
    2121}}} 
    2222 
    23 Make directories for storing Eucalyptus credentials, ORCA actors' runtime credentials, ORCA configuration files and Euca site resource description files. 
     23Make directories for storing Eucalyptus credentials, Euca site resource description files, ORCA actors' runtime credentials and ORCA configuration files. 
    2424{{{ 
    25 $ mkdir $ORCA_HOME/ec2  
     25$ mkdir $ORCA_HOME/ec2 
     26$ mkdir $ORCA_HOME/ndl 
    2627$ mkdir $ORCA_HOME/runtime 
    2728$ mkdir $ORCA_HOME/config 
    28 $ mkdir $ORCA_HOME/ndl 
    2929}}} 
    3030 
     
    4040#EUCA_KEY_DIR=$(dirname $(readlink -f ${BASH_SOURCE})) 
    4141}}} 
     42 
     43=== Generate and Store Resource Representation for the Eucalyptus Site === 
     44Generate the NDL resource description of the Eucalyptus site and store it in $ORCA_HOME/ndl. Example of an Eucalyptus site NDL resource description can be found [source:orca/trunk/network/src/main/resources/orca/network/rencivmsite.rdf here]. Consult RENCI staff on how to generate this.  
     45{{{ 
     46$ cp $ORCA_SRC/network/src/main/resources/orca/network/rencivmsite.rdf $ORCA_HOME/ndl/. 
     47$ cp $ORCA_SRC/network/src/main/resources/orca/network/renciNet.rdf $ORCA_HOME/ndl/. 
     48}}} 
     49 
     50=== Runtime credentials === 
     51Generate guids and certificates for all the actors in your container. Suppose you have three actors in your container - one for managing the Eucalyptus vms, one for managing the vlans inside the eucalyptus cluster and one for managing vlans when you want to connect your euca cluster to external resources through network transit domains. You need to do the following for each of the three actors in your container. Store the guids, which will be used for configuring the actors. 
     52{{{ 
     53$ cd $ORCA_SRC/tools/config 
     54$ ant guid 
     55$ ant security.create.actor.config -Dactor=<guid_output_from_previous_command> 
     56}}} 
     57Store runtime credentials in $ORCA_HOME. 
     58{{{ 
     59$ cp -r $ORCA_SRC/tools/config/runtime/* $ORCA_HOME/runtime/. 
     60}}} 
     61 
     62=== Configuration === 
     63$ORCA_HOME/config .  
     64Refer to the config files in the repository - config.xml and name it 'config.xml'. $ORCA_HOME/config/config.xml . Remember to insert the correct guids generated in the last step for eac of the actors. 
     65container.properties . Refer to container.properties and name it 'container.properties'. $ORCA_HOME/config/container.properties 
     66ec2.site.properties 
     67eucanet.cred.properties 
     68 
     69=== Image Proxy === 
     70ORCA provides the capability for the user to specify urls for the filesystem image, kernel (optional) and ramdisk (optional) in their resource request. The user images would then be used to stand up the vms. The Image proxy is used to serve this purpose.  Follow instructions on [https://code.renci.org/gf/project/networkedclouds/wiki/?pagename=ImageProxy] to setup and run Image proxy. To configure ORCA to use the Image proxy, follow instructions on [wiki:image-proxy-with-orca ImageProxy with ORCA]. 
     71 
     72[[Image(image-proxy.png, 30%)]] 
     73 
     74 
     75=== ssh Proxy Tunneling and Using Shorewall === 
     76When you need access to vm instances created in a private address space separated from the public Internet, ssh proxy tunneling can be used. We support Shorewall-DNAT proxy for this purpose. Install and run Shorewall on a machine (the NAT host) that is accessible via the public internet by following instructions at [wiki:shorewall-dnat-proxy Shorewall setup]. To use Shorewall with ORCA, follow instructions for [wiki:shorewall-with-orca Shorewall configuration for ORCA].  
     77 
     78[[Image(dnat-proxy.png, 30%)]] 
    4279 
    4380=== Set up tomcat === 
     
    92129}}} 
    93130 
    94 === Generate Resource Representation for the Eucalyptus Site === 
    95 Generate the NDL resource description of the Eucalyptus site and store it in $ORCA_HOME/ndl. Example of an Eucalyptus site NDL resource description can be found [source:orca/trunk/network/src/main/resources/orca/network/rencivmsite.rdf here]. 
    96  
    97 Put full site rdf in the following directory - $ORCA_HOME/ndl 
    98  
    99 === Runtime credentials === 
    100 Generate guids and certificates for all the actors in your container. Suppose you have three actors in your container - one for managing the Eucalyptus vms, one for managing the vlans inside the eucalyptus cluster and one for managing vlans when you want to connect your euca cluster to external resources through network transit domains. You need to do the following for each of the three actors in your container. Store the guids, which will be used for configuring the actors. 
    101 {{{ 
    102 $ cd $ORCA_SRC/tools/config 
    103 $ ant guid 
    104 $ ant security.create.actor.config -Dactor=<guid_output_from_previous_command> 
    105 }}} 
    106 Store runtime credentials in $ORCA_HOME. 
    107 {{{ 
    108 $ cp -r $ORCA_SRC/tools/config/runtime/* $ORCA_HOME/runtime/. 
    109 }}} 
    110  
    111 === Configuration === 
    112 $ORCA_HOME/config .  
    113 Refer to the config files in the repository - config.xml and name it 'config.xml'. $ORCA_HOME/config/config.xml . Remember to insert the correct guids generated in the last step for eac of the actors. 
    114 container.properties . Refer to container.properties and name it 'container.properties'. $ORCA_HOME/config/container.properties 
    115 ec2.site.properties 
    116 eucanet.cred.properties 
    117  
    118 === Image Proxy === 
    119 ORCA provides the capability for the user to specify urls for the filesystem image, kernel (optional) and ramdisk (optional) in their resource request. The user images would then be used to stand up the vms. The Image proxy is used to serve this purpose.  Follow instructions on [https://code.renci.org/gf/project/networkedclouds/wiki/?pagename=ImageProxy] to setup and run Image proxy. To configure ORCA to use the Image proxy, follow instructions on [wiki:image-proxy-with-orca ImageProxy with ORCA]. 
    120  
    121 [[Image(image-proxy.png, 30%)]] 
    122  
    123  
    124 === ssh Proxy Tunneling and Using Shorewall === 
    125 When you need access to vm instances created in a private address space separated from the public Internet, ssh proxy tunneling can be used. We support Shorewall-DNAT proxy for this purpose. Install and run Shorewall on a machine (the NAT host) that is accessible via the public internet by following instructions at [wiki:shorewall-dnat-proxy Shorewall setup]. To use Shorewall with ORCA, follow instructions for [wiki:shorewall-with-orca Shorewall configuration for ORCA].  
    126  
    127 [[Image(dnat-proxy.png, 30%)]] 
    128  
    129131=== Final Deployment === 
    130132tomcat restart, state_recovery lock file, deploy to the machine