Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8E78C902A for ; Fri, 28 Sep 2012 00:24:54 +0000 (UTC) Received: (qmail 43152 invoked by uid 500); 28 Sep 2012 00:24:54 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 43105 invoked by uid 500); 28 Sep 2012 00:24:54 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 43094 invoked by uid 99); 28 Sep 2012 00:24:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2012 00:24:54 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jmartin@basho.com designates 209.85.212.177 as permitted sender) Received: from [209.85.212.177] (HELO mail-wi0-f177.google.com) (209.85.212.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2012 00:24:50 +0000 Received: by wibhj13 with SMTP id hj13so695698wib.0 for ; Thu, 27 Sep 2012 17:24:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=SMp6HVrOKVR9jOIEBkyW1av1NHZ67Y1bvfz+1xU05wg=; b=JrzRU+8+rpd9MuIdK+Lgt4BQdqAs9468J5atLahHKXvn3fwgS2YeRojT1KI/t4P4kK ZdSEBX52qu1r86shHIfwkZ5NJqFQ6hwLWrDO4Rw/d4UliAULfgM7h4Vk2RQk5xSxerjy 6l/K1Y68Fu2PRJHhDtXRIVNGLRNtF33lZnprbkizHjNiwtBe8G98JBqIGOmiUwu8cnAY pf788QxCWKSGPn6whLVcO8K7z+G0Z82l9lpH6OS88JEchoCDegMWD+jPylroGaOGbBny BQMPZDAGP1gTWmcIqOAlMXq2EuKqjgcatFKbMY3oDR1WtxX8MI71ftgnYIpL8SKrGLq4 ya/w== Received: by 10.180.104.200 with SMTP id gg8mr20275wib.14.1348791868407; Thu, 27 Sep 2012 17:24:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.83.167 with HTTP; Thu, 27 Sep 2012 17:24:08 -0700 (PDT) In-Reply-To: <3D94D8F8-71DE-4EE4-A674-CEC0A3949F50@gmail.com> References: <94B7CA6E-6C14-4308-B15D-D202E21B08E8@gmail.com> <3D94D8F8-71DE-4EE4-A674-CEC0A3949F50@gmail.com> From: James Martin Date: Thu, 27 Sep 2012 20:24:08 -0400 Message-ID: Subject: Re: error building devcloud: ClassCastException: com.cloud.agent.api.Answer To: cloudstack-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnntVuV0jy/ma12PuIUIASGfzqPWYOqI0tWA1tDxbETgC9DSnnrJHQa27WlT5Z0UGnQohJw X-Virus-Checked: Checked by ClamAV on apache.org Sebastien, It seems deployDataCenter.py is dependent on cloudstackAPI python $HOME/work/code/cloudstack/cloudstack/tools/marvin/marvin/deployDataCenter.py -i devcloud.cfg Traceback (most recent call last): File "/Users/jmartin/work/code/cloudstack/cloudstack/tools/marvin/marvin/deployDataCenter.py", line 19, in import configGenerator File "/Users/jmartin/work/code/cloudstack/cloudstack/tools/marvin/marvin/configGenerator.py", line 21, in import jsonHelper File "/Users/jmartin/work/code/cloudstack/cloudstack/tools/marvin/marvin/jsonHelper.py", line 21, in from cloudstackAPI import * ImportError: No module named cloudstackAPI I've also tried this method: python -m marvin.deployDataCenter -i devcloud.cfg Traceback (most recent call last): File "/Users/jmartin/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/Users/jmartin/.homebrew/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/Users/jmartin/.homebrew/lib/python2.7/site-packages/marvin/deployDataCenter.py", line 430, in deploy.deploy() File "/Users/jmartin/.homebrew/lib/python2.7/site-packages/marvin/deployDataCenter.py", line 414, in deploy self.createZones(self.config.zones) File "/Users/jmartin/.homebrew/lib/python2.7/site-packages/marvin/deployDataCenter.py", line 287, in createZones zoneId = zoneresponse.id AttributeError: 'NoneType' object has no attribute 'id' Thanks, James On Thu, Sep 27, 2012 at 5:05 PM, Sebastien Goasguen wrote: > Hi James, > > if you build marvin (ant build-marvin) on your host, you should be able to do: > > python /path/to/src/tools/marvin/marvin/deployDataCenter.py -i devcloud.cfg > > This will talk to your Vbox vm where you are setting up devcloud. Assuming you set it up on localhost with port forwarding 8096 and 3306. > > marvin requires pymysql , installable from easy_install > > I think the .cfg file that's in there is buggy, but I can patch. > > Let me know if that brings you closer. > > -sebastien > > > On Sep 27, 2012, at 7:42 PM, James Martin wrote: > >> Sebastien, >> >> Sorry, let me give a better example. I'm trying to run a script that >> will provide an initial configuration of cloudstack so I don't have to >> go through the initial wizard on a fresh install. I see the >> devcloud.cfg & marvin you are mentioning, but I can't figure out how >> it is suppose to be used to configure a fresh install. >> >> >> James >> >> On Thu, Sep 27, 2012 at 7:46 AM, Sebastien Goasguen wrote: >>> Hi James, >>> >>> What do you mean by "populate" ? adding a host ? >>> >>> If that's the case, I believe the thinking was to use marvin (/tools/marvin) deployDataCenter and use the devcloud.cfg file that's in the devcloud dir to setup the db/zones/pods etc of devcloud. >>> >>> -Sebastien >>> >>> On Sep 27, 2012, at 1:02 AM, James Martin wrote: >>> >>>> I'm using the cs-bootstrap-s3.py script to populate a working >>>> devcloud instance: >>>> >>>> during the run of the script I get the error: >>>> >>>> urllib2.HTTPError: HTTP Error 530: Cannot transit agent status with >>>> event AgentDisconnected for host 1, mangement server id is >>>> 8796761548538,Unable to transition to a new state from Creating via >>>> AgentDisconnected >>>> >>>> >>>> in the in the $CATALINA_HOME/bin/vmops.log it seems to correlate to : >>>> >>>> >>>> 2012-09-26 22:25:08,989 WARN [cloud.resource.ResourceManagerImpl] >>>> (AgentTaskPool-1:null) Unable to connect due to >>>> com.cloud.utils.exception.CloudRuntimeException: Unable to connect 1 >>>> at com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:624) >>>> at com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1500) >>>> at com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1631) >>>> at com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1668) >>>> at com.cloud.agent.manager.AgentManagerImpl$SimulateStartTask.run(AgentManagerImpl.java:1195) >>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) >>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) >>>> at java.lang.Thread.run(Thread.java:679) >>>> Caused by: java.lang.ClassCastException: com.cloud.agent.api.Answer >>>> cannot be cast to com.cloud.agent.api.SetupAnswer >>>> at com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer.processConnect(XcpServerDiscoverer.java:634) >>>> at com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:605) >>>> ... 7 more >>>> >>>> >>>> >>>> Can anyone provide insight here? >>>> >>>> Thanks, >>>> >>>> James >>> >