On Fri, Jan 11, 2013 at 07:19:50AM +0530, Chiradeep Vittal wrote:
> While DevCloud is wonderful, it is limited in its ability to test advanced
> network services.
> 
> The hypervisor-simulator plugin lets us test management server
> interactions during the provisioning process.
> For example, using the simulator, I was able to start up several simulated
> redunant virtual routers and test provisioning of various networking rules
> (firewall, port-forwarding, loadbalancer). The simulator pretends that the
> rules were actually provisioned, otherwise the user experience is just
> like  a real CloudStack zone.

+1 - I find it very useful to test everything within management server
until cmd handoff to the hypervisor. Our integration tests written
with marvin specifically mark out @attr(tag='simulator') so as to use this
ability to run tests quickly whenever a backend isn't necessary for
the test.

> 
> To use the simulator
> mvn install -Dsimulator
> cp agent-simulator/tomcatconf/components-simulator.xml.in
> client//target/cloud-client-ui-4.1.0-SNAPSHOT/WEB-INF/classes/components-si
> mulator.xml
> Edit 
> client//target/cloud-client-ui-4.1.0-SNAPSHOT/WEB-INF/classes/environment.p
> roperties to point to the new xml
> 
> 
> mvn -P developer -pl developer  -Ddeploydb
> mvn -P developer -pl developer -Ddeploydb-simulator
> mvn -pl :cloud-client-ui jetty:run -Dsimulator
> 
> The UI doesn't let you add clusters of type 'Simulator', you can do this
> via the API
> cloudmonkey add cluster hypervisor=Simulator clustertype=CloudManaged
> 
>       
> Obviously a couple of steps above can be mavenized.

I'll look into this. I did setup a `simulator` profile. I can change 
the goals to simplify the deployment and also the creation of the
advanced zone using a marvin config from the marvin/sandbox.

Our ant target was quite simply -
ant clean-all run-simulator
ant clean-all run-marvin -Dmarvin.config=<cfg-file>



 
-- 
Prasanna.,

Reply via email to