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: build failing in devcloud
Date Tue, 18 Dec 2012 23:45:16 GMT

On 18-Dec-2012, at 3:40 PM, James Martin <jmartin@basho.com> wrote:

> On Tue, Dec 18, 2012 at 6:36 PM, Rohit Yadav <rohit.yadav@citrix.com> wrote:
>> James, are you using the DevCloud built by veewee/vagrant or the one I published?
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 systemvm.iso (mvn clean install -P systemvm).
> 
> I'm using the one built by veewee/vagrant

I'm having some issue with my local rvm, cleaning everything and starting afresh and using
Chip's updated.
If you have any pending patch, pl. send it for review so I can merge and work on that.

To debug that I'll need to build it myself, will keep you posted.

Regards.

> 
> - James
>> 
>> Regards.
>> 
>> On 18-Dec-2012, at 3:20 PM, James Martin <jmartin@basho.com> 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(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 <module>
>>>   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 <rohit.yadav@citrix.com> 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 <jmartin@basho.com> 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 <module>
>>>>>  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: <urlopen error [Errno 111] Connection refused>
>>>>> [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
>>>> 
>> 


Mime
View raw message