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 E87A2DB64 for ; Tue, 18 Dec 2012 23:41:23 +0000 (UTC) Received: (qmail 64434 invoked by uid 500); 18 Dec 2012 23:41:23 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 64394 invoked by uid 500); 18 Dec 2012 23:41:23 -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 64385 invoked by uid 99); 18 Dec 2012 23:41:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 23:41:23 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: unknown ~allinclude:aspmx.googlemail.com (nike.apache.org: encountered unrecognized mechanism during SPF processing of domain of jmartin@basho.com) Received: from [209.85.215.176] (HELO mail-ea0-f176.google.com) (209.85.215.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 23:41:17 +0000 Received: by mail-ea0-f176.google.com with SMTP id d13so526821eaa.7 for ; Tue, 18 Dec 2012 15:40:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding:x-gm-message-state; bh=dc7xKMz7NkRHbTSFhmdR54H8pr/lztcGehVEe5FahtI=; b=pL3EctUkwS11nGvHMzJmDSfQ/O44YI0SA/C2L1PY7zxuiuhYViJ1ED+J0GUCR4jAWk 72iFHJfAXojd8u9kKBEagA0k0sAh3AF0uWT7yBF/xWSyoFPjcW/2unbQlJf51T034mmh NOvS+tHwGphRjioxsjYp9s6/XXZzrC3ZoU3PVV42xzaduIAVTcbNrwTb+X8EOPd7isEI ZxtToxF03+t6doox/VFJ+QGPS7I1t0q/9rfHLzdn3Oq+wSTg7DSzlVVaPANG1f6W/6yK 7YkgDlLQE2mbkQDfxvKKt00hK+gyMybwVshzSNV/7XnjcXuU8s2bA6n7zkdP0YeY9SdH ggaQ== Received: by 10.14.215.6 with SMTP id d6mr9540846eep.40.1355874056890; Tue, 18 Dec 2012 15:40:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.64.194 with HTTP; Tue, 18 Dec 2012 15:40:36 -0800 (PST) In-Reply-To: <30CA5478-6964-4165-A780-9D500AC4D742@citrix.com> References: <48113A01-BA46-48C0-9931-8B21D5C6157C@citrix.com> <30CA5478-6964-4165-A780-9D500AC4D742@citrix.com> From: James Martin Date: Tue, 18 Dec 2012 18:40:36 -0500 Message-ID: Subject: Re: build failing in devcloud To: cloudstack-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmdd+AuxekEhAThN1l3a1x8T5gRurMt0Sugpy8w2iPtlRFc3S5y3Pqu0iV/ri8kFXovxt9J X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Dec 18, 2012 at 6:36 PM, Rohit Yadav wrote= : > James, are you using the DevCloud built by veewee/vagrant or the one I pu= blished? Did you boot DevCloud as Xen 4.1 or as Linux? > If it's the former I will have to build and check the xen configuration, = if it's the latter check that your mgmt server can reach host IP, "host" is= the ip of your mgmt server in global configuration and you've built system= vm.iso (mvn clean install -P systemvm). I'm using the one built by veewee/vagrant - James > > Regards. > > On 18-Dec-2012, at 3:20 PM, James Martin wrote: > >> Rohit, >> >> So I started the mgmt server and now receive this error when running >> that command: >> >> INFO [cloud.resource.ResourceManagerImpl] (18110988@qtp-22396194-3:) >> Trying to add a new host at http://192.168.56.10/ in data center 1 >> WARN [cloud.resource.ResourceManagerImpl] (18110988@qtp-22396194-3:) >> Unable to find the server resources at http://192.168.56.10/ >> WARN [api.commands.AddHostCmd] (18110988@qtp-22396194-3:) Exception: >> com.cloud.exception.DiscoveryException: Unable to add the host >> at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(Resour= ceManagerImpl.java:754) >> at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceMa= nagerImpl.java:551) >> at com.cloud.api.commands.AddHostCmd.execute(AddHostCmd.java:140) >> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:168) >> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:540) >> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:424) >> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:312) >> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:64) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) >> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.ja= va:511) >> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.= java:401) >> at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandl= er.java:216) >> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.= java:182) >> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.= java:766) >> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.jav= a:450) >> at org.mortbay.jetty.handler.ContextHandlerCollection.handle(Conte= xtHandlerCollection.java:230) >> at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerColle= ction.java:114) >> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.= java:152) >> at org.mortbay.jetty.Server.handle(Server.java:326) >> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.j= ava:542) >> at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(= HttpConnection.java:928) >> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) >> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212= ) >> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404= ) >> at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPo= int.java:410) >> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThread= Pool.java:582) >> WARN [cloud.api.ApiDispatcher] (18110988@qtp-22396194-3:) class >> com.cloud.api.ServerApiException : Unable to add the host >> Traceback (most recent call last): >> File "../marvin/marvin/deployDataCenter.py", line 435, in >> deploy.deploy() >> File "../marvin/marvin/deployDataCenter.py", line 419, in deploy >> self.createZones(self.config.zones) >> File "../marvin/marvin/deployDataCenter.py", line 312, in createZones >> self.createpods(zone.pods, zoneId, networkid) >> File "../marvin/marvin/deployDataCenter.py", line 109, in createpods >> self.createClusters(pod.clusters, zoneId, podId) >> File "../marvin/marvin/deployDataCenter.py", line 73, in createClusters >> cluster.hypervisor) >> File "../marvin/marvin/deployDataCenter.py", line 53, in addHosts >> self.apiClient.addHost(hostcmd) >> File "/opt/cloudstack/incubator-cloudstack/tools/marvin/marvin/cloudsta= ckAPI/cloudstackAPIClient.py", >> line 1075, in addHost >> response =3D self.connection.make_request(command, response) >> File "/opt/cloudstack/incubator-cloudstack/tools/marvin/marvin/cloudsta= ckConnection.py", >> line 175, in make_request >> result =3D self.make_request_with_auth(commandName, requests) >> File "/opt/cloudstack/incubator-cloudstack/tools/marvin/marvin/cloudsta= ckConnection.py", >> line 89, in make_request_with_auth >> raise e >> >> I am able to log into the web interface successfully using >> http://192.168.56.10:8080/client/. >> >> - James >> >> >> On Tue, Dec 18, 2012 at 2:57 PM, Rohit Yadav wr= ote: >>> I think it's one of the common errors, when you are deploying a basic z= one (which is being done by this command), make sure your mgmt server is ru= nning. >>> This command calls marvin's deployDataCenter.py and gives it devcloud.c= fg from tools/devcloud to deploy a basic zone. >>> >>> Regards. >>> >>> On 18-Dec-2012, at 9:04 AM, James Martin wrote: >>> >>>> Looks like the last stage of the /opt/cloudstack/buildcloudstack.sh >>>> script is failing in the devcloud creation environment: >>>> >>>> /opt/cloudstack/apache-maven-3.0.4/bin/mvn -P developer -pl >>>> tools/devcloud -Ddeploysvr >>>> >>>> >>>> [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 435, in >>>> deploy.deploy() >>>> File "../marvin/marvin/deployDataCenter.py", line 418, in deploy >>>> self.loadCfg() >>>> File "../marvin/marvin/deployDataCenter.py", line 394, in loadCfg >>>> apiKey, securityKey =3D self.registerApiKey() >>>> File "../marvin/marvin/deployDataCenter.py", line 334, in registerApiK= ey >>>> listuserRes =3D self.testClient.getApiClient().listUsers(listuser) >>>> File "/opt/cloudstack/incubator-cloudstack/tools/marvin/marvin/cloudst= ackAPI/cloudstackAPIClient.py", >>>> line 360, in listUsers >>>> response =3D self.connection.make_request(command, response) >>>> File "/opt/cloudstack/incubator-cloudstack/tools/marvin/marvin/cloudst= ackConnection.py", >>>> line 177, in make_request >>>> result =3D self.make_request_without_auth(commandName, requests) >>>> File "/opt/cloudstack/incubator-cloudstack/tools/marvin/marvin/cloudst= ackConnection.py", >>>> line 108, in make_request_without_auth >>>> self.connection =3D >>>> urllib2.urlopen("%s://%s:%d%s?%s"%(self.protocol, self.mgtSvr, >>>> self.port, self.path, requestUrl)) >>>> File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen >>>> return _opener.open(url, data, timeout) >>>> File "/usr/lib/python2.7/urllib2.py", line 400, in open >>>> response =3D self._open(req, data) >>>> File "/usr/lib/python2.7/urllib2.py", line 418, in _open >>>> '_open', req) >>>> File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain >>>> result =3D func(*args) >>>> File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open >>>> return self.do_open(httplib.HTTPConnection, req) >>>> File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open >>>> raise URLError(err) >>>> urllib2.URLError: >>>> [INFO] ---------------------------------------------------------------= --------- >>>> [INFO] BUILD FAILURE >>>> [INFO] ---------------------------------------------------------------= --------- >>>> [INFO] Total time: 2.688s >>>> [INFO] Finished at: Tue Dec 18 14:26:48 UTC 2012 >>>> [INFO] Final Memory: 12M/29M >>>> [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/MojoExecutionExceptio= n >>>> >>>> >>>> - James >>> >