Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 72847D4B6 for ; Mon, 10 Dec 2012 22:25:35 +0000 (UTC) Received: (qmail 99132 invoked by uid 500); 10 Dec 2012 22:25:35 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 99085 invoked by uid 500); 10 Dec 2012 22:25:35 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 99076 invoked by uid 99); 10 Dec 2012 22:25:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2012 22:25:35 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Edison.su@citrix.com designates 66.165.176.63 as permitted sender) Received: from [66.165.176.63] (HELO SMTP02.CITRIX.COM) (66.165.176.63) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2012 22:25:30 +0000 X-IronPort-AV: E=Sophos;i="4.84,254,1355097600"; d="scan'208";a="164838" Received: from sjcpmailmx01.citrite.net ([10.216.14.74]) by FTLPIPO02.CITRIX.COM with ESMTP/TLS/RC4-MD5; 10 Dec 2012 22:24:41 +0000 Received: from SJCPMAILBOX01.citrite.net ([10.216.4.72]) by SJCPMAILMX01.citrite.net ([10.216.14.74]) with mapi; Mon, 10 Dec 2012 14:24:40 -0800 From: Edison Su To: "cloudstack-dev@incubator.apache.org" Date: Mon, 10 Dec 2012 14:24:39 -0800 Subject: RE: Error when running cloud-setup-databases from the source Thread-Topic: Error when running cloud-setup-databases from the source Thread-Index: Ac3XIxv3DzhEvWccQ+qC1mF0gDavlwAAO0mQ Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org If you directly execute scripts under the source code, some of them will no= t work, as it depends on some system configuration files. For this particular issue, the quickest way to fix is "cp ./client/tomcatco= nf/db.properties.in /etc/cloud/management/db.properties" > -----Original Message----- > From: Kanzhe Jiang [mailto:kanzhe.jiang@bigswitch.com] > Sent: Monday, December 10, 2012 5:09 PM > To: cloudstack-dev@incubator.apache.org > Subject: Re: Error when running cloud-setup-databases from the source >=20 > 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 wit= h > the following command. >=20 > ./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=3D' (0) > Unable to get template Id from database Installation failed >=20 >=20 > On Mon, Dec 10, 2012 at 2:03 PM, Edison Su wrote: >=20 > > 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.jiang@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 /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 > > > 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 > > >=20 >=20 >=20 > -- > Kanzhe Jiang > MTS at BigSwitch