You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by James Martin <jm...@basho.com> on 2012/12/18 18:04:06 UTC

build failing in devcloud

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

Re: build failing in devcloud

Posted by James Martin <jm...@basho.com>.
On Tue, Dec 18, 2012 at 6:45 PM, Rohit Yadav <ro...@citrix.com> wrote:
>
> On 18-Dec-2012, at 3:40 PM, James Martin <jm...@basho.com> wrote:
>
>> On Tue, Dec 18, 2012 at 6:36 PM, Rohit Yadav <ro...@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.
>
No patches pending.

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

Cool, thanks.

- James

> Regards.
>
>>
>> - James
>>>
>>> Regards.
>>>
>>> On 18-Dec-2012, at 3:20 PM, James Martin <jm...@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 <ro...@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 <jm...@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
>>>>>
>>>
>

Re: build failing in devcloud

Posted by sebgoa <ru...@gmail.com>.
Ok, did: rvm get stable

And got unstuck, going through ./boxer.sh -b all now

I will let you know how it goes

-Sebastien

On Dec 19, 2012, at 2:49 PM, James Martin wrote:

> comments in-line
> 
> On Wed, Dec 19, 2012 at 4:50 AM, sebgoa <ru...@gmail.com> wrote:
>> 
>> On Dec 19, 2012, at 12:45 AM, Rohit Yadav wrote:
>> 
>>> 
>>> On 18-Dec-2012, at 3:40 PM, James Martin <jm...@basho.com> wrote:
>>> 
>>>> On Tue, Dec 18, 2012 at 6:36 PM, Rohit Yadav <ro...@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.
>> 
>> I gave it a whirl this morning and I got this:
>> 
>> yoyo:deps runseb$ gcc -v
>> Using built-in specs.
>> Target: i686-apple-darwin10
>> Configured with: /var/tmp/gcc/gcc-5666.3~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
>> Thread model: posix
>> gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
>> 
>> yoyo:deps runseb$ ruby -v
>> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0]
>> 
>> yoyo:devcloud runseb$ cd src/deps/
>> Using /Users/runseb/.rvm/gems/ruby-1.9.3-p194 with gemset vagrant-xen-cloudstack
>> Updating https://github.com/chipchilders/vagrant
>> Fetching gem metadata from https://rubygems.org/./Users/runseb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault
>> 
>> 
> 
> Very odd, I don't suffer any problems:
> 
> Jamess-MacBook-Air:devcloud jmartin$ pwd
> /Users/jmartin/work/code/cloudstack/incubator-cloudstack/tools/devcloud
> Jamess-MacBook-Air:devcloud jmartin$ cd src/
> Using /Users/jmartin/.rvm/gems/ruby-1.9.3-p194 with gemset
> vagrant-xen-cloudstack
> Running /Users/jmartin/.rvm/hooks/after_use
> Fetching gem metadata from https://rubygems.org/........
> Fetching gem metadata from https://rubygems.org/..
> Fetching https://github.com/chipchilders/vagrant
> remote: Counting objects: 28181, done.
> remote: Compressing objects: 100% (9284/9284), done.
> remote: Total 28181 (delta 18713), reused 27432 (delta 18110)
> Receiving objects: 100% (28181/28181), 4.61 MiB | 660 KiB/s, done.
> Resolving deltas: 100% (18713/18713), done.
> Using archive-tar-minitar (0.5.2)
> Installing ffi (1.2.0) with native extensions
> Installing childprocess (0.3.6)
> Using erubis (2.7.0)
> Using i18n (0.6.1)
> Installing json (1.6.7) with native extensions
> Using log4r (1.1.10)
> Using net-ssh (2.2.2)
> Using net-scp (1.0.4)
> Using vagrant (1.1.0.dev) from https://github.com/chipchilders/vagrant
> (at master)
> Using bundler (1.2.1)
> Your bundle is complete! Use `bundle show [gemname]` to see where a
> bundled gem is installed.
> Running /Users/jmartin/.rvm/hooks/after_cd
> Jamess-MacBook-Air:src jmartin$ gcc -v
> Using built-in specs.
> Target: i686-apple-darwin11
> Configured with:
> /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/src/configure
> --disable-checking --enable-werror
> --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2
> --mandir=/share/man --enable-languages=c,objc,c++,obj-c++
> --program-prefix=llvm-
> --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
> --with-slibdir=/usr/lib --build=i686-apple-darwin11
> --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/dst-llvmCore/Developer/usr/local
> --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11
> --target=i686-apple-darwin11
> --with-gxx-include-dir=/usr/include/c++/4.2.1
> Thread model: posix
> gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
> Jamess-MacBook-Air:src jmartin$ ruby -v
> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.1.0]
> 
> 
> 
> 
>> 
>> -sebastien
>> 
>> 
>>> 
>>>> 
>>>> - James
>>>>> 
>>>>> Regards.
>>>>> 
>>>>> On 18-Dec-2012, at 3:20 PM, James Martin <jm...@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 <ro...@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 <jm...@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
>>>>>>> 
>>>>> 
>>> 
>> 


Re: build failing in devcloud

Posted by James Martin <jm...@basho.com>.
comments in-line

On Wed, Dec 19, 2012 at 4:50 AM, sebgoa <ru...@gmail.com> wrote:
>
> On Dec 19, 2012, at 12:45 AM, Rohit Yadav wrote:
>
>>
>> On 18-Dec-2012, at 3:40 PM, James Martin <jm...@basho.com> wrote:
>>
>>> On Tue, Dec 18, 2012 at 6:36 PM, Rohit Yadav <ro...@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.
>
> I gave it a whirl this morning and I got this:
>
> yoyo:deps runseb$ gcc -v
> Using built-in specs.
> Target: i686-apple-darwin10
> Configured with: /var/tmp/gcc/gcc-5666.3~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
> Thread model: posix
> gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
>
> yoyo:deps runseb$ ruby -v
> ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0]
>
> yoyo:devcloud runseb$ cd src/deps/
> Using /Users/runseb/.rvm/gems/ruby-1.9.3-p194 with gemset vagrant-xen-cloudstack
> Updating https://github.com/chipchilders/vagrant
> Fetching gem metadata from https://rubygems.org/./Users/runseb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault
>
>

Very odd, I don't suffer any problems:

Jamess-MacBook-Air:devcloud jmartin$ pwd
/Users/jmartin/work/code/cloudstack/incubator-cloudstack/tools/devcloud
Jamess-MacBook-Air:devcloud jmartin$ cd src/
Using /Users/jmartin/.rvm/gems/ruby-1.9.3-p194 with gemset
vagrant-xen-cloudstack
Running /Users/jmartin/.rvm/hooks/after_use
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Fetching https://github.com/chipchilders/vagrant
remote: Counting objects: 28181, done.
remote: Compressing objects: 100% (9284/9284), done.
remote: Total 28181 (delta 18713), reused 27432 (delta 18110)
Receiving objects: 100% (28181/28181), 4.61 MiB | 660 KiB/s, done.
Resolving deltas: 100% (18713/18713), done.
Using archive-tar-minitar (0.5.2)
Installing ffi (1.2.0) with native extensions
Installing childprocess (0.3.6)
Using erubis (2.7.0)
Using i18n (0.6.1)
Installing json (1.6.7) with native extensions
Using log4r (1.1.10)
Using net-ssh (2.2.2)
Using net-scp (1.0.4)
Using vagrant (1.1.0.dev) from https://github.com/chipchilders/vagrant
(at master)
Using bundler (1.2.1)
Your bundle is complete! Use `bundle show [gemname]` to see where a
bundled gem is installed.
Running /Users/jmartin/.rvm/hooks/after_cd
Jamess-MacBook-Air:src jmartin$ gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with:
/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/src/configure
--disable-checking --enable-werror
--prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2
--mandir=/share/man --enable-languages=c,objc,c++,obj-c++
--program-prefix=llvm-
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
--with-slibdir=/usr/lib --build=i686-apple-darwin11
--enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/dst-llvmCore/Developer/usr/local
--program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11
--target=i686-apple-darwin11
--with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Jamess-MacBook-Air:src jmartin$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.1.0]




>
> -sebastien
>
>
>>
>>>
>>> - James
>>>>
>>>> Regards.
>>>>
>>>> On 18-Dec-2012, at 3:20 PM, James Martin <jm...@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 <ro...@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 <jm...@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
>>>>>>
>>>>
>>
>

Re: build failing in devcloud

Posted by sebgoa <ru...@gmail.com>.
On Dec 19, 2012, at 12:45 AM, Rohit Yadav wrote:

> 
> On 18-Dec-2012, at 3:40 PM, James Martin <jm...@basho.com> wrote:
> 
>> On Tue, Dec 18, 2012 at 6:36 PM, Rohit Yadav <ro...@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.

I gave it a whirl this morning and I got this:

yoyo:deps runseb$ gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5666.3~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)

yoyo:deps runseb$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0]

yoyo:devcloud runseb$ cd src/deps/
Using /Users/runseb/.rvm/gems/ruby-1.9.3-p194 with gemset vagrant-xen-cloudstack
Updating https://github.com/chipchilders/vagrant
Fetching gem metadata from https://rubygems.org/./Users/runseb/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault



-sebastien


> 
>> 
>> - James
>>> 
>>> Regards.
>>> 
>>> On 18-Dec-2012, at 3:20 PM, James Martin <jm...@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 <ro...@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 <jm...@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
>>>>> 
>>> 
> 


Re: build failing in devcloud

Posted by Rohit Yadav <ro...@citrix.com>.
On 18-Dec-2012, at 3:40 PM, James Martin <jm...@basho.com> wrote:

> On Tue, Dec 18, 2012 at 6:36 PM, Rohit Yadav <ro...@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 <jm...@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 <ro...@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 <jm...@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
>>>> 
>> 


Re: build failing in devcloud

Posted by James Martin <jm...@basho.com>.
On Tue, Dec 18, 2012 at 6:36 PM, Rohit Yadav <ro...@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

- James
>
> Regards.
>
> On 18-Dec-2012, at 3:20 PM, James Martin <jm...@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 <ro...@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 <jm...@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
>>>
>

Re: build failing in devcloud

Posted by Rohit Yadav <ro...@citrix.com>.
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).

Regards. 

On 18-Dec-2012, at 3:20 PM, James Martin <jm...@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 <ro...@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 <jm...@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
>> 


Re: build failing in devcloud

Posted by James Martin <jm...@basho.com>.
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 <ro...@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 <jm...@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
>

Re: build failing in devcloud

Posted by Rohit Yadav <ro...@citrix.com>.
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 <jm...@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