"mvn install" will generate cloudstackAPI python module under 
tools/marvin/marvin. Is there no such folder on your environment?

> -----Original Message-----
> From: Donal Lafferty [mailto:donal.laffe...@citrix.com]
> Sent: Tuesday, October 23, 2012 4:16 PM
> To: Donal Lafferty; 'cloudstack-dev@incubator.apache.org'
> Subject: RE: Testing CloudStack with devcloud VM and MAVEN
> 
> Sorry, that should say 'using -P developer'.
> 
> In my case, the issue is that tools/marvin/marvin/jsonHelper.py uses
> the cloudstackAPI module before it is generated.
> 
> E.g.
> 
> $ mvn -P developer -pl tools/devcloud -Ddeploysvr
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ----------------------------------------------------------------
> --------
> [INFO] Building Apache CloudStack Developer Tools 4.1.0-SNAPSHOT
> [INFO] ----------------------------------------------------------------
> --------
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-
> devcloud ---
> [INFO]
> [INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor)
> @ cloud-devcloud ---
> [INFO]
> [INFO] --- exec-maven-plugin:1.2.1:exec (default) @ cloud-devcloud ---
> Traceback (most recent call last):
>   File "../marvin/marvin/deployDataCenter.py", line 19, in <module>
>     import configGenerator
>   File "C:\cygwin\home\donall\incubator\incubator-
> cloudstack\tools\marvin\marvin\configGenerator.py", line 21, in
> <module>
>     import jsonHelper
>   File "C:\cygwin\home\donall\incubator\incubator-
> cloudstack\tools\marvin\marvin\jsonHelper.py", line 21, in <module>
>     from cloudstackAPI import *
> ImportError: No module named cloudstackAPI
> [INFO] ----------------------------------------------------------------
> --------
> [INFO] BUILD FAILURE
> [INFO] ----------------------------------------------------------------
> --------
> [INFO] Total time: 2.259s
> [INFO] Finished at: Wed Oct 24 00:12:12 BST 2012
> [INFO] Final Memory: 13M/31M
> [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]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [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
> 
> 
> 
> -----Original Message-----
> From: Donal Lafferty
> Sent: 23 October 2012 23:58
> To: Donal Lafferty; 'cloudstack-dev@incubator.apache.org'
> Subject: RE: Testing CloudStack with devcloud VM and MAVEN
> 
> Actually, using -P does not work either.
> 
> Anyone else with some suggestions?
> 
> DL
> 
> -----Original Message-----
> From: Donal Lafferty
> Sent: 23 October 2012 23:28
> To: cloudstack-dev@incubator.apache.org
> Subject: RE: Testing CloudStack with devcloud VM and MAVEN
> 
> Hi Hieu,
> 
> How did you run the final step (#8)?
> 
> I think there is a typo.
> 
> Instead of 'mvn -P deploysvr -pl tools/devcloud -Ddeploysvr' try 'mvn -
> P developer -pl tools/devcloud -Ddeploysvr'
> 
> 
> -----Original Message-----
> From: Hieu Le [mailto:hieul...@gmail.com]
> Sent: 23 October 2012 17:16
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: Testing CloudStack with devcloud VM and MAVEN
> 
> I can ping/ssh to devcloud vm and I also set the network configuration
> of
> devcloud vm like Edison's guide.
> 
> I have also tried to create a new VM, install Ubuntu 12.04 and xcp-xapi
> on
> it; tried to add this as cloud node and failed.
> 
> Please help !
> On Tue, Oct 23, 2012 at 12:53 PM, Rohit Yadav
> <rohit.ya...@citrix.com>wrote:
> 
> >
> > On 23-Oct-2012, at 10:13 AM, Hieu Le <hieul...@gmail.com> wrote:
> >
> > > Hi Edison,
> > >
> > > I have try your method and the result is that I can't add devcloud
> node
> > to
> > > mgt server on my desktop. The log always say Unable to add host,
> unable
> > to
> > > find the server resources at HTTP://193.168.56.2
> > >
> > > Can you solve this problem? Thank you so much.
> >
> > Try to ping 192.168.56.1 and try to ssh into your vm, if you're not
> able
> > to do it:
> >
> > Goto VirtualBox Manager; open settings of the vm, goto network, check
> what
> > is the host-only adapter name (vboxnet0 is default)
> > Now, open VBox Manager->Preferences->Network->select vboxnet0 (the
> > default)->edit
> >
> > Check the IPv4 Address, the wiki guide [0] uses 192.168.56.1 as the
> > gateway, set this IP in the IPv4 field and make sure you've no dhcp
> server
> > on this network. On Windows, while installing VirtualBox, the guide
> assumes
> > you had installed the network adapters and they were not disabled or
> > removed (for the host-only adapter functionality).
> >
> > Make sure, you set the promiscuous mode to "allow all" (this petty
> setting
> > ate [1] many hours of my life).
> >
> > [0]
> >
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+devcl
> oud+environment+setup
> > [1]
> >
> http://wiki.cloudstack.org/display/COMM/DIY+DevCloud+Setup#DIYDevCloudS
> etup-Networking
> >
> > Regards.
> >
> > >
> > > Sent from my HTC(c)
> > > On Oct 22, 2012 12:07 PM, "Edison Su" <edison...@citrix.com> wrote:
> > >
> > >>
> > >>
> > >> Sent from my iPhone
> > >>
> > >> On Oct 21, 2012, at 6:21 PM, "Hieu Le" <hieul...@gmail.com> wrote:
> > >>
> > >>> Thank you so much Edison, I will try this method.
> > >>>
> > >>> Anyway, in this wiki page, you said "start mgt server on your
> laptop"
> > >>> including deploy DB in both my laptop and devcloud VM; and in
> step 8
> > you
> > >>> also said "deploy in devcloud", so while deploy in devcloud, the
> mgt
> > >> server
> > >>> will still run on my laptop with its own DB and another mgt
> server will
> > >> be
> > >>> devcloud VM, do I understand right ?
> > >>
> > >> No, all the commands are running on your laptop. Mgt server will
> add
> > >> devcloud vm as a hypervisor host.
> > >> Btw, I updated the document: need to configure network in devcloud
> vm,
> > >> otherwise mgt server can't connect to devcloud vm.
> > >>>
> > >>> I will try and give feedback.
> > >>>
> > >>>
> > >>> On Sun, Oct 21, 2012 at 2:09 PM, Edison Su <edison...@citrix.com>
> > wrote:
> > >>>
> > >>>> I created a wiki page:
> > >>>>
> > >>
> >
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+devcl
> oud+environment+setup
> > >>>>
> > >>>> Sent from my iPhone
> > >>>>
> > >>>> On Oct 20, 2012, at 9:49 AM, "Edison Su" <edison...@citrix.com>
> > wrote:
> > >>>>
> > >>>>> I"l write a new wiki page about how to use devcloud and maven
> today.
> > >>>>>
> > >>>>> Sent from my iPhone
> > >>>>>
> > >>>>> On Oct 20, 2012, at 5:18 AM, "Donal Lafferty" <
> > >> donal.laffe...@citrix.com>
> > >>>> wrote:
> > >>>>>
> > >>>>>> I think that Hieu Le is having a problem with
> > >>>>
> > >>
> >
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/DIY+DevCloud+Set
> up
> > >>>>>>
> > >>>>>>
> > >>>>>> The page states:
> > >>>>>>
> > >>>>>> To build, deploy-server and database:
> > >>>>>> $ ant clean-all build-all deploy-server deploydb
> > >>>>>>
> > >>>>>> Type to run mgt server:
> > >>>>>> $ ant debug
> > >>>>>>
> > >>>>>>
> > >>>>>> Can someone update these instructions with their Maven
> equivalent?
> > >>>>>>
> > >>>>>> DL
> > >>>>>>
> > >>>>>> -----Original Message-----
> > >>>>>> From: Hieu Le [mailto:hieul...@gmail.com]
> > >>>>>> Sent: 20 October 2012 03:27
> > >>>>>> To: cloudstack-dev@incubator.apache.org
> > >>>>>> Cc: Marcus Sorensen; jmar...@basho.com
> > >>>>>> Subject: Re: Testing CloudStack with devcloud VM and MAVEN
> > >>>>>>
> > >>>>>> So, is there a way to deploy code and debug in devcloud with
> maven
> > and
> > >>>>>> eclipse ?
> > >>>>>>
> > >>>>>> On Sat, Oct 20, 2012 at 9:17 AM, David Nalley <da...@gnsa.us>
> > wrote:
> > >>>>>>
> > >>>>>>> On Fri, Oct 19, 2012 at 9:45 PM, Alex Huang
> <alex.hu...@citrix.com
> > >
> > >>>> wrote:
> > >>>>>>>> -1
> > >>>>>>>>
> > >>>>>>>> devCloud also functions as an easy way to test out
> CloudStack.
> >  That
> > >>>> can
> > >>>>>>> only be done with the all-in-one concept.
> > >>>>>>>>
> > >>>>>>>> I like the idea of having management server on my laptop and
> use
> > >>>>>>> devCloud only as the hypervisor but both format have to exist.
> > >>>>>>>>
> > >>>>>>>
> > >>>>>>> Agreed - being able to let someone play with CloudStack is
> > important.
> > >>>>>>> Besides, with things like vagrant and veewee maintaining both
> > >>>>>>> shouldn't be a big deal.
> > >>>>>>>
> > >>>>>>> --David
> > >>>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>> --
> > >>>>>>
> > >>>>>> ------------------------------------
> > >>>>>>
> > >>>>>> Le Quang Hieu
> > >>>>>>
> > >>>>>> Specialist - Core Cloud Computing  Dept
> > >>>>>>
> > >>>>>> Cloud Computing Research Center
> > >>>>>>
> > >>>>>> Viettel Research and Development Institute
> > >>>>>>
> > >>>>>> No. 380 Lac Long Quan Str, Tay Ho Dist, Hanoi, Vietnam
> > >>>>>>
> > >>>>>> Mobile: (84) 974616850
> > >>>>
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>>
> > >>> ------------------------------------
> > >>>
> > >>> Le Quang Hieu
> > >>>
> > >>> Specialist - Core Cloud Computing  Dept
> > >>>
> > >>> Cloud Computing Research Center
> > >>>
> > >>> Viettel Research and Development Institute
> > >>>
> > >>> No. 380 Lac Long Quan Str, Tay Ho Dist, Hanoi, Vietnam
> > >>>
> > >>> Mobile: (84) 974616850
> > >>
> >
> >
> 
> 
> --
> 
> ------------------------------------
> 
> Le Quang Hieu
> 
> Specialist - Core Cloud Computing  Dept
> 
> Cloud Computing Research Center
> 
> Viettel Research and Development Institute
> 
> No. 380 Lac Long Quan Str, Tay Ho Dist, Hanoi, Vietnam
> 
> Mobile: (84) 974616850

Reply via email to