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 514B6D891 for ; Tue, 18 Dec 2012 23:21:13 +0000 (UTC) Received: (qmail 2273 invoked by uid 500); 18 Dec 2012 23:21:12 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 2235 invoked by uid 500); 18 Dec 2012 23:21:12 -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 2227 invoked by uid 99); 18 Dec 2012 23:21:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 23:21:12 +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:support.zendesk.com (athena.apache.org: encountered unrecognized mechanism during SPF processing of domain of jmartin@basho.com) Received: from [74.125.83.52] (HELO mail-ee0-f52.google.com) (74.125.83.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2012 23:21:08 +0000 Received: by mail-ee0-f52.google.com with SMTP id d17so670986eek.39 for ; Tue, 18 Dec 2012 15:20:47 -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:x-gm-message-state; bh=7ZRNzg2qDoNW5T4xX1dDUjEC9aDOi01Cv5wVBEsdPf8=; b=INGCE2FaeAubplimPdUUw6x7RlbdQSHOsAj8qPrZyzAk6BZINWxGzK2XhsLc8NXKiF D1MKaPW25kQ1cDhUEhi5Pk/JK9gl+8rV+bLZCzVUw1ixj4ikJErb4DNyO2/zKTQLAVjn sDSDXoF/nkW9e02QPUM154ZFT89lG4j3Z/zzjkd1b+hM7kNYZfpS6OMulsrsbtkvg6j0 b6oQyxYX4lETOsJvExBITVl9VtNITy7oeWL0jIntlxWYs+fwL7VVE2neVsfoV2GFJEr1 rQWZC8HV9PhsklGm7SbdrG57U/UkjYVzQ2aWFNRdTFDU3sL8OFuUk5R3lVxtJe2fEbnk PubA== Received: by 10.14.221.9 with SMTP id q9mr9782110eep.3.1355872847194; Tue, 18 Dec 2012 15:20:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.64.194 with HTTP; Tue, 18 Dec 2012 15:20:27 -0800 (PST) In-Reply-To: <48113A01-BA46-48C0-9931-8B21D5C6157C@citrix.com> References: <48113A01-BA46-48C0-9931-8B21D5C6157C@citrix.com> From: James Martin Date: Tue, 18 Dec 2012 18:20:27 -0500 Message-ID: Subject: Re: build failing in devcloud To: cloudstack-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQncVRwfmb0wHWx8XO7Ymwn0qHFPuuDqdgz0+7Iu5h6m0amj0PAJc9LYmXtTLTShLwXcyCy/ X-Virus-Checked: Checked by ClamAV on apache.org 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(ResourceManagerImpl.java:754) at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.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.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.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.java:450) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.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.java: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(SelectChannelEndPoint.java:410) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.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/cloudstackAPI/cloudstackAPIClient.py", line 1075, in addHost response = self.connection.make_request(command, response) File "/opt/cloudstack/incubator-cloudstack/tools/marvin/marvin/cloudstackConnection.py", line 175, in make_request result = self.make_request_with_auth(commandName, requests) File "/opt/cloudstack/incubator-cloudstack/tools/marvin/marvin/cloudstackConnection.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 wrote: > I think it's one of the common errors, when you are deploying a basic zone (which is being done by this command), make sure your mgmt server is running. > This command calls marvin's deployDataCenter.py and gives it devcloud.cfg 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 = self.registerApiKey() >> File "../marvin/marvin/deployDataCenter.py", line 334, in registerApiKey >> listuserRes = self.testClient.getApiClient().listUsers(listuser) >> File "/opt/cloudstack/incubator-cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py", >> line 360, in listUsers >> response = self.connection.make_request(command, response) >> File "/opt/cloudstack/incubator-cloudstack/tools/marvin/marvin/cloudstackConnection.py", >> line 177, in make_request >> result = self.make_request_without_auth(commandName, requests) >> File "/opt/cloudstack/incubator-cloudstack/tools/marvin/marvin/cloudstackConnection.py", >> line 108, in make_request_without_auth >> self.connection = >> 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 = 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 = 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/MojoExecutionException >> >> >> - James >