incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohit Yadav <rohit.ya...@citrix.com>
Subject RE: devcloud with maven issue
Date Mon, 29 Oct 2012 16:06:35 GMT
Hi Sebastien,

I fixed the problem; https://git-wip-us.apache.org/repos/asf?p=incubator-cloudstack.git;a=commit;h=c68c7e2a2d47cd8df628fa30791a00f6ec1f1c44
git pull and let me know if that still fails; about the commands:

> mvn -P developer -pl developer -Ddeploydb
This one deploys several sql files needed to setup db for mgmt server.

> mvn -P developer -pl tools/devcloud -Ddeploydb
This one sets up tools/devcloud/devcloud.sql over the db schema applied by previous command.
If you see the file, it simply sets some global settings and built-in template.

> mvn -pl :cloud-client-ui jetty:run
Run mgmt server!

Make sure to restart mgmt server after you deploy the datacenter, the default toold/devcloud/devcloud.cfg
using: (this would require python and mysql-connector-python, get it via easy_install or pip):
 mvn -P developer,deploysvr -pl tools/devcloud -Ddeploysvr

Regards.

________________________________________
From: Sebastien Goasguen [runseb@gmail.com]
Sent: Monday, October 29, 2012 9:09 PM
To: cloudstack-dev@incubator.apache.org
Subject: devcloud with maven issue

Hi,
I have followed:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building+with+Maven#BuildingwithMaven-Dependencies

And I am able to run the mgt server locally with:

mvn -P developer -pl developer -Ddeploydb
mvn -pl :cloud-client-ui jetty:run

Now I am trying to check devcloud with maven as in:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+devcloud+environment+setup

 mvn -P developer -pl developer -Ddeploydb

 mvn -P developer -pl tools/devcloud -Ddeploydb
 mvn -pl :cloud-client-ui jetty:run

What is the second line supposed to do ?

I am getting errors like these:

[INFO] --- sql-maven-plugin:1.5:execute (create-schema) @ cloud-devcloud ---
[INFO] Executing file: /var/folders/78/47rnllms4dz54_nqwq44q1w80000gn/T/devcloud.2089700605sql
[ERROR] Failed to execute:  INSERT INTO `cloud`.`configuration` (instance, name, value) VALUE('DEFAULT',
'integration.api.port', '8096')
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.070s
[INFO] Finished at: Mon Oct 29 16:31:30 CET 2012
[INFO] Final Memory: 11M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:sql-maven-plugin:1.5:execute (create-schema)
on project cloud-devcloud: Duplicate entry 'integration.api.port' for key 'PRIMARY' ->
[Help 1]
[ERROR]

thanks,

-Sebastien

Mime
View raw message