Yes, that won't work as it is the production script, and assumes that you've 
installed CloudStack therefore tries to locate the db.properties file in 
/etc/cloud/...
You may try scp/copying the systemvm template from latest DevCloud 
(/opt/storage/secondary/template), it uses the same acton template that you're 
trying to install.

Regards.

On 10-Dec-2012, at 2:09 PM, Kanzhe Jiang <kanzhe.ji...@bigswitch.com> wrote:

> The mvn command was fine. The reason I tried "cloud-setup-databases" was
> trying to fix the error when trying to prepare the system vm template with
> the following command.
> 
> ./scripts/storage/secondary/cloud-install-sys-tmplt -m /export/secondary -u
> http://download.cloud.com/templates/acton/acton-systemvm-02062012.vhd.bz2-h
> xenserver -F
> sed: can't read /etc/cloud/management/db.properties: No such file or
> directory
> sed: can't read /etc/cloud/management/db.properties: No such file or
> directory
> sed: can't read /etc/cloud/management/db.properties: No such file or
> directory
> ERROR 2005 (HY000): Unknown MySQL server host '--user=' (0)
> Unable to get template Id from database
> Installation failed
> 
> 
> On Mon, Dec 10, 2012 at 2:03 PM, Edison Su <edison...@citrix.com> wrote:
> 
>> For developer, you can run maven command to deploydb:
>> mvn -P developer -pl developer -Ddeploydb
>> The developer build ref:
>> https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html
>> 
>>> -----Original Message-----
>>> From: Kanzhe Jiang [mailto:kanzhe.ji...@bigswitch.com]
>>> Sent: Monday, December 10, 2012 4:58 PM
>>> To: cloudstack-dev@incubator.apache.org
>>> Subject: Error when running cloud-setup-databases from the source
>>> 
>>> I cloned master branch on a ubuntu 12.04 server and installed all
>> required
>>> packages that were listed.
>>> Failed with the following error when trying to set up the database.
>>> cloud_utils.py is under <repo>/python/lib.
>>> 
>>> bsn@CloudstackDev:~/incubator-
>>> cloudstack$ python ./client/target/utilities/bin/cloud-setup-databases
>>> cloud:pass@localhost--deploy-as:root:password
>>> Traceback (most recent call last):
>>>  File "./client/target/utilities/bin/cloud-setup-databases", line 46, in
>>> <module>
>>>    from cloud_utils import check_selinux, CheckFailed, resolves_to_ipv6
>>> 
>>> Question:
>>> 1. Should python scripts under client/target/utilities/bin be changed to
>>> executable and the directory is added to the path?
>>> 2. Am I missing a step to set up python path correctly?
>>> 
>>> Thanks,
>>> --
>>> Kanzhe Jiang
>>> MTS at BigSwitch
>> 
> 
> 
> 
> -- 
> Kanzhe Jiang
> MTS at BigSwitch

Reply via email to