You will need to update marvin since I changed the
cloudstackConnection class last week to get POST requests to work.

When you startup the server using jetty:run you can do a marvin.sync
as follows:

$ sudo mvn -Pdeveloper,sync -Dendpoint=localhost -pl :cloud-marvin

This assumes you have pip installed on your machine for python 2.7.

If that doesn't work simply do
$ pip uninstall -y marvin
$ pip install tools/marvin/dist/Marvin-0.1.0.tar.gz

-- 
Prasanna.,

On Tue, Apr 23, 2013 at 01:03:25PM -0400, Will Stevens wrote:
> I pulled from the apache master (
> https://git-wip-us.apache.org/repos/asf/cloudstack.git) yesterday and the
> latest commit that I have is: bdd5634924db84144c05887c6552c89aa4e78051
> 
> I have the code compiling correctly and I am able to start the server.
> 
> When I try to do: mvn -P developer -pl tools/devcloud -Ddeploysvr -X
> 
> I get the error at the bottom.
> 
> Troubleshooting I have done so far...
> - I have two version of python on my CentOs system.  2.6 and 2.7
> - I have installed 'tools/marvin/dist/Marvin-0.1.0.tar.gz' on both the 2.6
> and 2.7 versions of python
> - I am still getting the 'ImportError: No module named requests', so I
> installed the 'requests' module for both the 2.6 and 2.7 versions of python
> (which resolves that error).
> - If I run 'python2.7 ../marvin/marvin/deployDataCenter.py -i devcloud.cfg'
> directly, I also get this same error.
> 
> I would like to get back into development, so I would like to get this
> resolved.  Any help would be appreciated.
> 
> Thanks,
> 
> Will
> 
> ---
> 
> [DEBUG] -- end configuration --
> [DEBUG] Executing command line: python ../marvin/marvin/deployDataCenter.py
> -i devcloud.cfg
> Traceback (most recent call last):
>   File "../marvin/marvin/deployDataCenter.py", line 469, in <module>
>     deploy.deploy()
>   File "../marvin/marvin/deployDataCenter.py", line 452, in deploy
>     self.loadCfg()
>   File "../marvin/marvin/deployDataCenter.py", line 409, in loadCfg
>     apiKey, securityKey = self.registerApiKey()
>   File "../marvin/marvin/deployDataCenter.py", line 349, in registerApiKey
>     listuserRes = self.testClient.getApiClient().listUsers(listuser)
>   File
> "/mnt/hgfs/palo_alto/incubator-cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
> line 428, in listUsers
>     response = self.connection.make_request(command, response)
> AttributeError: 'cloudConnection' object has no attribute 'make_request'
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 13.959s
> [INFO] Finished at: Tue Apr 23 12:45:16 EDT 2013
> [INFO] Final Memory: 20M/50M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default) on project
> cloud-devcloud: Command execution failed. Process exited with an error: 1
> (Exit value: 1) -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default) on project
> cloud-devcloud: Command execution failed.
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Command
> execution failed.
> at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:362)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> ... 19 more
> Caused by: org.apache.commons.exec.ExecuteException: Process exited with an
> error: 1 (Exit value: 1)
> at
> org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
> at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
> at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:610)
> at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:352)
> ... 21 more
> [ERROR]
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


------------------------
Powered by BigRock.com

Reply via email to