You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Sebastien Goasguen <ru...@gmail.com> on 2013/01/30 13:16:29 UTC

inconsistent docs in wiki for maven build and devcloud

Hi,

I noticed some inconsistent documentation on how to build from source, as well as multiple devcloud pages that use different profiles and properties.

namely:
https://cwiki.apache.org/CLOUDSTACK/devcloud-kvm.html
https://cwiki.apache.org/CLOUDSTACK/devcloud.html
https://cwiki.apache.org/CLOUDSTACK/cloudstack-devcloud-environment-setup.html
http://wiki.cloudstack.org/display/COMM/DevCloud
https://cwiki.apache.org/CLOUDSTACK/diy-devcloud-setup.html (is pre maven)

systemvm was not a profile before, seems to have been made into a profile and now is a "property"

I do this on my laptop (running mgt server and db there):
mvn -Pdeveloper clean install -DskipTests -Dsystemvm
mvn -pl developer,tools/devcloud -Ddeploydb -P developer
mvn -pl client jetty:run

The configure devcloud with:
mvn -P developer -pl tools/devcloud -Ddeploysvr

This results in systemvm not starting. No errors in logs.

What's the proper way to build from source for devcloud ?

-Sebastien

Re: inconsistent docs in wiki for maven build and devcloud

Posted by Gavin Lee <ga...@gmail.com>.
Hi, Sebastien
Following Rohit's blog: http://rohityadav.in/logs/devcloud/
I can build devcloud, but my management server is running in Dom0 not local.
I also used deployDataCenter.py rather than mvn command to deploy a basic zone.

On Wed, Jan 30, 2013 at 8:16 PM, Sebastien Goasguen <ru...@gmail.com> wrote:
> Hi,
>
> I noticed some inconsistent documentation on how to build from source, as well as multiple devcloud pages that use different profiles and properties.
>
> namely:
> https://cwiki.apache.org/CLOUDSTACK/devcloud-kvm.html
> https://cwiki.apache.org/CLOUDSTACK/devcloud.html
> https://cwiki.apache.org/CLOUDSTACK/cloudstack-devcloud-environment-setup.html
> http://wiki.cloudstack.org/display/COMM/DevCloud
> https://cwiki.apache.org/CLOUDSTACK/diy-devcloud-setup.html (is pre maven)
>
> systemvm was not a profile before, seems to have been made into a profile and now is a "property"
>
> I do this on my laptop (running mgt server and db there):
> mvn -Pdeveloper clean install -DskipTests -Dsystemvm
> mvn -pl developer,tools/devcloud -Ddeploydb -P developer
> mvn -pl client jetty:run
>
> The configure devcloud with:
> mvn -P developer -pl tools/devcloud -Ddeploysvr
>
> This results in systemvm not starting. No errors in logs.
>
> What's the proper way to build from source for devcloud ?
>
> -Sebastien



-- 
Gavin

Re: inconsistent docs in wiki for maven build and devcloud

Posted by Prasanna Santhanam <ts...@apache.org>.
On Thu, Jan 31, 2013 at 04:34:44AM +0530, Sebastien Goasguen wrote:
> >> What's the proper way to build from source for devcloud ?
> > 
> > What I explained in my blog was manual creation for most part, we have
> > some stuff in tools/devcloud which is supposed to build devcloud using
> > viewee/vagrant/vbox here: (it's not maintained for long, it may not
> > work now, will check next week):
> > tools/devcloud/README.md
> 
> I mean that the systemvm profile is a bit new. Early compile from
> source did not have this profile.
> Then it seems to have been changed from a -P systemvm to a -D
> systemvm?so I am confused.

The systemvm profile isn't new, it's disappearance is I guess. It's a
attribute rather than a profile now. Not a maven expert but the switch
to detect mkisofs/genisoimage may have altered it? Not a problem -
let's use the attribute. 

The wiki docs were corrected.

Thanks,

-- 
Prasanna.,

Re: inconsistent docs in wiki for maven build and devcloud

Posted by Rohit Yadav <bh...@apache.org>.
On Wed, Jan 30, 2013 at 3:04 PM, Sebastien Goasguen <ru...@gmail.com> wrote:
>
...
>>> I do this on my laptop (running mgt server and db there):
>>> mvn -Pdeveloper clean install -DskipTests -Dsystemvm
>>
>> Should be:
>> mvn clean install -P systemvm,developer -DskipTests (# if skipping tests)
>
> I get a missing profile with systemvm, I have to use -Dsystemvm ?????

I have no idea, are you using maven3? See from the building page,
systemvm is a profile:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on+master+branch#Howtobuildonmasterbranch-BuildingCloudStack

Make sure you've mkisofs and check the built systemvm.iso from
console-proxy/dist
>> What I explained in my blog was manual creation for most part, we have
>> some stuff in tools/devcloud which is supposed to build devcloud using
>> viewee/vagrant/vbox here: (it's not maintained for long, it may not
>> work now, will check next week):
>> tools/devcloud/README.md
>
> I mean that the systemvm profile is a bit new. Early compile from source did not have this profile.
> Then it seems to have been changed from a -P systemvm to a -D systemvm…so I am confused.

Yes, but it was introduced more than two months ago by Hugo. I asked
on ML if we want to enable it by default, the consensus was we should
not have isos enabled by default, the idea I remember is that users
may want to change scripts (even when they install cloudstack) and
maybe we should have a way for CloudStack to build an iso from the
scripts paths before it's used with the hosts.

Regards.

>
>>
>> Hope this helps.
>> Regards.
>>
>>>
>>> -Sebastien
>

Re: inconsistent docs in wiki for maven build and devcloud

Posted by Sebastien Goasguen <ru...@gmail.com>.
On Jan 30, 2013, at 8:24 PM, Rohit Yadav <bh...@apache.org> wrote:

> On Wed, Jan 30, 2013 at 4:16 AM, Sebastien Goasguen <ru...@gmail.com> wrote:
>> Hi,
>> 
>> I noticed some inconsistent documentation on how to build from source, as well as multiple devcloud pages that use different profiles and properties.
>> 
>> namely:
>> https://cwiki.apache.org/CLOUDSTACK/devcloud-kvm.html
> 
> This is for DevCloud-KVM (I would recommend for test automation).
> 
>> https://cwiki.apache.org/CLOUDSTACK/devcloud.html
> 
> This is for DevCloud (VirtualBox) (recommended offline
> infra/host/storage dev appliance for developers).
> 
>> https://cwiki.apache.org/CLOUDSTACK/cloudstack-devcloud-environment-setup.html
> This can be removed, any useful content should be moved to
> https://cwiki.apache.org/CLOUDSTACK/devcloud.html
> 
>> http://wiki.cloudstack.org/display/COMM/DevCloud
> Useful stuff should be moved to
> https://cwiki.apache.org/CLOUDSTACK/devcloud.html
> wiki.cloudstack.org is deprecated now.
> 
>> https://cwiki.apache.org/CLOUDSTACK/diy-devcloud-setup.html (is pre maven)
> We can get rid of this one.
> 
>> 
>> systemvm was not a profile before, seems to have been made into a profile and now is a "property"
>> 
>> I do this on my laptop (running mgt server and db there):
>> mvn -Pdeveloper clean install -DskipTests -Dsystemvm
> 
> Should be:
> mvn clean install -P systemvm,developer -DskipTests (# if skipping tests)

I get a missing profile with systemvm, I have to use -Dsystemvm ?????

> 
>> mvn -pl developer,tools/devcloud -Ddeploydb -P developer
>> mvn -pl client jetty:run
>> 
>> The configure devcloud with:
>> mvn -P developer -pl tools/devcloud -Ddeploysvr
>> 
>> This results in systemvm not starting. No errors in logs.
> 
> Hope you're running latest DevCloud and running mgmt server on host
> os/laptop, else you should use marvin directly instead of maven
> calling marvin to deploy datacenter for you:

yes devcloud2, running mgt server on laptop..

> 
> cd tools/devcloud;
> # If mgmt server running on host os 192.168.56.1:
> python ../marvin/marvin/deployDataCenter.py -i devcloud.cfg

laptop set as 192.168.56.1 via vbox host only interface
devcloud2 192.168.56.10

did not modify tools/devcloud/devcloud.cfg

I must have forgotten a step somewhere...


> 
> # If mgmt server running inside devcloud, 192.168.56.10:
> # make sure to change host value to 192.168.56.10 in devcloud.sql
> before you deplodyb
> python ../marvin/marvin/deployDataCenter.py -i devcloud_internal-mgt.cfg
> 
>> 
>> What's the proper way to build from source for devcloud ?
> 
> What I explained in my blog was manual creation for most part, we have
> some stuff in tools/devcloud which is supposed to build devcloud using
> viewee/vagrant/vbox here: (it's not maintained for long, it may not
> work now, will check next week):
> tools/devcloud/README.md

I mean that the systemvm profile is a bit new. Early compile from source did not have this profile.
Then it seems to have been changed from a -P systemvm to a -D systemvm…so I am confused.

> 
> Hope this helps.
> Regards.
> 
>> 
>> -Sebastien


Re: inconsistent docs in wiki for maven build and devcloud

Posted by Rohit Yadav <bh...@apache.org>.
On Wed, Jan 30, 2013 at 4:16 AM, Sebastien Goasguen <ru...@gmail.com> wrote:
> Hi,
>
> I noticed some inconsistent documentation on how to build from source, as well as multiple devcloud pages that use different profiles and properties.
>
> namely:
> https://cwiki.apache.org/CLOUDSTACK/devcloud-kvm.html

This is for DevCloud-KVM (I would recommend for test automation).

> https://cwiki.apache.org/CLOUDSTACK/devcloud.html

This is for DevCloud (VirtualBox) (recommended offline
infra/host/storage dev appliance for developers).

> https://cwiki.apache.org/CLOUDSTACK/cloudstack-devcloud-environment-setup.html
This can be removed, any useful content should be moved to
https://cwiki.apache.org/CLOUDSTACK/devcloud.html

> http://wiki.cloudstack.org/display/COMM/DevCloud
Useful stuff should be moved to
https://cwiki.apache.org/CLOUDSTACK/devcloud.html
wiki.cloudstack.org is deprecated now.

> https://cwiki.apache.org/CLOUDSTACK/diy-devcloud-setup.html (is pre maven)
We can get rid of this one.

>
> systemvm was not a profile before, seems to have been made into a profile and now is a "property"
>
> I do this on my laptop (running mgt server and db there):
> mvn -Pdeveloper clean install -DskipTests -Dsystemvm

Should be:
mvn clean install -P systemvm,developer -DskipTests (# if skipping tests)

> mvn -pl developer,tools/devcloud -Ddeploydb -P developer
> mvn -pl client jetty:run
>
> The configure devcloud with:
> mvn -P developer -pl tools/devcloud -Ddeploysvr
>
> This results in systemvm not starting. No errors in logs.

Hope you're running latest DevCloud and running mgmt server on host
os/laptop, else you should use marvin directly instead of maven
calling marvin to deploy datacenter for you:

cd tools/devcloud;
# If mgmt server running on host os 192.168.56.1:
python ../marvin/marvin/deployDataCenter.py -i devcloud.cfg

# If mgmt server running inside devcloud, 192.168.56.10:
# make sure to change host value to 192.168.56.10 in devcloud.sql
before you deplodyb
python ../marvin/marvin/deployDataCenter.py -i devcloud_internal-mgt.cfg

>
> What's the proper way to build from source for devcloud ?

What I explained in my blog was manual creation for most part, we have
some stuff in tools/devcloud which is supposed to build devcloud using
viewee/vagrant/vbox here: (it's not maintained for long, it may not
work now, will check next week):
tools/devcloud/README.md

Hope this helps.
Regards.

>
> -Sebastien

Re: inconsistent docs in wiki for maven build and devcloud

Posted by Rohit Yadav <bh...@apache.org>.
On Wed, Jan 30, 2013 at 4:16 AM, Sebastien Goasguen <ru...@gmail.com> wrote:
> Hi,
>
> I noticed some inconsistent documentation on how to build from source, as well as multiple devcloud pages that use different profiles and properties.
>
> namely:
> https://cwiki.apache.org/CLOUDSTACK/devcloud-kvm.html

This is for DevCloud-KVM (I would recommend for test automation).

> https://cwiki.apache.org/CLOUDSTACK/devcloud.html

This is for DevCloud (VirtualBox) (recommended offline
infra/host/storage dev appliance for developers).

> https://cwiki.apache.org/CLOUDSTACK/cloudstack-devcloud-environment-setup.html
This can be removed, any useful content should be moved to
https://cwiki.apache.org/CLOUDSTACK/devcloud.html

> http://wiki.cloudstack.org/display/COMM/DevCloud
Useful stuff should be moved to
https://cwiki.apache.org/CLOUDSTACK/devcloud.html
wiki.cloudstack.org is deprecated now.

> https://cwiki.apache.org/CLOUDSTACK/diy-devcloud-setup.html (is pre maven)
We can get rid of this one.

>
> systemvm was not a profile before, seems to have been made into a profile and now is a "property"
>
> I do this on my laptop (running mgt server and db there):
> mvn -Pdeveloper clean install -DskipTests -Dsystemvm

Should be:
mvn clean install -P systemvm,developer -DskipTests (# if skipping tests)

> mvn -pl developer,tools/devcloud -Ddeploydb -P developer
> mvn -pl client jetty:run
>
> The configure devcloud with:
> mvn -P developer -pl tools/devcloud -Ddeploysvr
>
> This results in systemvm not starting. No errors in logs.

Hope you're running latest DevCloud and running mgmt server on host
os/laptop, else you should use marvin directly instead of maven
calling marvin to deploy datacenter for you:

cd tools/devcloud;
# If mgmt server running on host os 192.168.56.1:
python ../marvin/marvin/deployDataCenter.py -i devcloud.cfg

# If mgmt server running inside devcloud, 192.168.56.10:
# make sure to change host value to 192.168.56.10 in devcloud.sql
before you deplodyb
python ../marvin/marvin/deployDataCenter.py -i devcloud_internal-mgt.cfg

>
> What's the proper way to build from source for devcloud ?

What I explained in my blog was manual creation for most part, we have
some stuff in tools/devcloud which is supposed to build devcloud using
viewee/vagrant/vbox here: (it's not maintained for long, it may not
work now, will check next week):
tools/devcloud/README.md

Hope this helps.
Regards.

>
> -Sebastien