I think it's the issue https://issues.apache.org/jira/browse/CLOUDSTACK-3139, 
that your mgt server can't access the url of template.

> -----Original Message-----
> From: Chip Childers [mailto:chip.child...@sungard.com]
> Sent: Tuesday, July 09, 2013 9:41 AM
> To: <dev@cloudstack.apache.org>
> Subject: Re: Using the ACS simulator for jclouds "live" tests - some 
> questions.
> =)
> 
> During the setup process, I now get some NumberFormatExceptions.
> 
> I call:  mvn -Pdeveloper,marvin.setup
> -Dmarvin.config=setup/dev/advanced.cfg -pl :cloud-marvin integration-test
> 
> I see in the console:
> 
> ERROR [agent.manager.AgentManagerImpl] (Simulator-Agent-Mgr-1:)
> Monitor DownloadListener says there is an error in the connect process for 4
> due to null
> java.lang.NumberFormatException: null
> at java.lang.Long.parseLong(Long.java:404)
> at java.lang.Long.parseLong(Long.java:483)
> at com.cloud.utils.UriUtils.getRemoteSize(UriUtils.java:113)
> at
> org.apache.cloudstack.storage.image.TemplateServiceImpl.handleTemplate
> Sync(TemplateServiceImpl.java:325)
> at
> com.cloud.storage.download.DownloadListener.processConnect(DownloadL
> istener.java:307)
> at
> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(
> AgentManagerImpl.java:586)
> at
> com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(A
> gentManagerImpl.java:1480)
> at
> com.cloud.resource.ResourceManagerImpl.createHostAndAgent(Resource
> ManagerImpl.java:1798)
> at
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceMan
> agerImpl.java:824)
> at
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManager
> Impl.java:621)
> at
> com.cloud.agent.manager.MockAgentManagerImpl$SystemVMHandler.run(
> MockAgentManagerImpl.java:354)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav
> a:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
> va:615)
> at java.lang.Thread.run(Thread.java:722)
> INFO  [agent.manager.AgentManagerImpl] (Simulator-Agent-Mgr-1:) Host 4
> is disconnecting with event AgentDisconnected WARN
> [cloud.resource.ResourceManagerImpl] (Simulator-Agent-Mgr-1:) Unable to
> connect due to
> com.cloud.utils.exception.CloudRuntimeException: Unable to connect 4 at
> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(
> AgentManagerImpl.java:605)
> at
> com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(A
> gentManagerImpl.java:1480)
> at
> com.cloud.resource.ResourceManagerImpl.createHostAndAgent(Resource
> ManagerImpl.java:1798)
> at
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceMan
> agerImpl.java:824)
> at
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManager
> Impl.java:621)
> at
> com.cloud.agent.manager.MockAgentManagerImpl$SystemVMHandler.run(
> MockAgentManagerImpl.java:354)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav
> a:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
> va:615)
> at java.lang.Thread.run(Thread.java:722)
> Caused by: java.lang.NumberFormatException: null at
> java.lang.Long.parseLong(Long.java:404)
> at java.lang.Long.parseLong(Long.java:483)
> at com.cloud.utils.UriUtils.getRemoteSize(UriUtils.java:113)
> at
> org.apache.cloudstack.storage.image.TemplateServiceImpl.handleTemplate
> Sync(TemplateServiceImpl.java:325)
> at
> com.cloud.storage.download.DownloadListener.processConnect(DownloadL
> istener.java:307)
> at
> com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(
> AgentManagerImpl.java:586)
> ... 8 more
> Exception in thread "Simulator-Agent-Mgr-1"
> com.cloud.utils.exception.CloudRuntimeException: Cannot transit agent
> status with event AgentDisconnected for host 4, mangement server id is
> 2200358551563,Unable to transition to a new state from Creating via
> AgentDisconnected at
> com.cloud.agent.manager.AgentManagerImpl.agentStatusTransitTo(Agent
> ManagerImpl.java:1411)
> at
> com.cloud.resource.ResourceManagerImpl.markHostAsDisconnected(Resou
> rceManagerImpl.java:1748)
> at
> com.cloud.resource.ResourceManagerImpl.createHostAndAgent(Resource
> ManagerImpl.java:1814)
> at
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceMan
> agerImpl.java:824)
> at
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManager
> Impl.java:621)
> at
> com.cloud.agent.manager.MockAgentManagerImpl$SystemVMHandler.run(
> MockAgentManagerImpl.java:354)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav
> a:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
> va:615)
> at java.lang.Thread.run(Thread.java:722)
> 
> 
> 
> On Mon, Jul 8, 2013 at 9:44 PM, Edison Su <edison...@citrix.com> wrote:
> > The simulator issue should be fixed on 4.2 branch.
> >
> >> -----Original Message-----
> >> From: Chip Childers [mailto:chip.child...@sungard.com]
> >> Sent: Monday, July 08, 2013 1:56 PM
> >> To: dev@cloudstack.apache.org
> >> Subject: Re: Using the ACS simulator for jclouds "live" tests - some
> questions.
> >> =)
> >>
> >> On Thu, Jul 04, 2013 at 08:49:52PM +0530, Prasanna Santhanam wrote:
> >> > On Mon, Jun 24, 2013 at 11:08:20AM -0700, Andrew Bayer wrote:
> >> > > - At least one available simulator template (best-case would be
> >> > > Ubuntu
> >> > > 10.04 or 12.04) that can be "booted up" out of the box - for
> >> > > whatever reason (I honestly can't tell, from the brief dive I did
> >> > > through the code), all the builtin templates come up with
> >> > > isready=false in the listTemplates output, which makes jclouds
> >> > > think there are no templates, etc, etc... I thought this is
> >> > > because they're all in Allocated state, not Ready, but even
> >> > > changing them to
> >> Ready in the DB didn't do the trick.
> >> >
> >> > The guest OS is something that doesn't matter to the simulator.
> >> > Whatever you ask for will be deployed. One limitation of the
> >> > simulator is that it keeps CloudStack 'happy' by telling it it's
> >> > got whatever is requested. So any negative scenarios will be harder
> >> > to test without a change in the simulator.
> >> >
> >> > The templates issue still exists but with cloudmonkey you can
> >> > register your template and it will come to ready state:
> >> >
> >> > cloudmonkey>> register template format=RAW hypervisor=Simulator
> >> > cloudmonkey>> isfeatured=true ispublic=true name=tiny
> >> > cloudmonkey>> displaytext=tiny url=http://test.url.com/test.raw
> >> > cloudmonkey>> ostypeid=bb62589e-e3cd-11e2-ad39-ea6434daa8ba
> >> > cloudmonkey>> zoneid=55318568-8d4b-412c-8c10-82f47651eb51
> >>
> >> I've been using [1], and I keep hitting an issue with finding the
> >> template prior to creating a VM.
> >>
> >> What's the simulator trick to convincing the server that the
> >> templates are "Ready"?
> >>
> >> Snipped results:
> >>
> >>
> >> [INFO] --- exec-maven-plugin:1.2.1:exec (integration-test) @
> >> cloud-marvin --
> >> - ERROR Test Deploy Virtual Machine ... ERROR ERROR ERROR Test to
> >> create disk offering ... ok Test to update existing disk offering ...
> >> ok Test to delete disk offering ... ok test update configuration
> >> setting at zone level scope ... ok Test guest vlan range dedication
> >> ... ok Test to update a physical network and extend its vlan ...
> >> ERROR ERROR Test to acquire a provisioned public ip range ... ok Test
> >> to create a portable public ip range ... ok Test public IP range
> >> dedication ... ok Test for create region ... ok ERROR
> >>
> >>
> ==========================================================
> >> ============
> >> ERROR: test suite for <class
> >> 'integration.smoke.test_affinity_groups.TestDeployVmWithAffinityGroup
> >> '>
> >> ---------------------------------------------------------------------
> >> -
> >> Traceback (most recent call last):
> >>   File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line 208, in
> run
> >>     self.setUp()
> >>   File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line
> >> 291, in setUp
> >>     self.setupContext(ancestor)
> >>   File "/usr/local/lib/python2.7/dist-packages/nose/suite.py", line
> >> 314, in setupContext
> >>     try_run(context, names)
> >>   File "/usr/local/lib/python2.7/dist-packages/nose/util.py", line
> >> 469, in try_run
> >>     return func()
> >>   File "/home/sg-
> >> user/cloudstack/test/integration/smoke/test_affinity_groups.py", line
> >> 81, in setUpClass
> >>     cls.services["ostype"]
> >>   File "/usr/local/lib/python2.7/dist-
> >> packages/marvin/integration/lib/common.py", line 141, in get_template
> >>     ostypeid)
> >> Exception: Exception: Failed to find template with OSTypeID:
> >> f7691800-e7e9- 11e2-8591-02004f97000b
> >
> >

Reply via email to