Error starting management server with latest 4.3

2014-01-17 Thread Prabhakaran Ganesan
Hi,

I created  a new sandbox on 4.3, built the source and tried starting the 
management server yesterday. But I ran into the following error. I thought it 
could be something intermittent and tried with a fresh sandbox today. I still 
see the same problem. The build environment is based on Centos 6.4 i686. Any 
ideas?

Thanks
Prabhakar

INFO  [c.c.s.GsonHelper] (main:null) Default Builder inited.
INFO  [c.c.u.c.ComponentContext] (main:null) Setup Spring Application context
INFO  [o.a.c.s.l.CloudStackExtendedLifeCycle] (main:null) Running system 
integrity checker com.cloud.upgrade.DatabaseIntegrityChecker@77857
INFO  [c.c.u.DatabaseIntegrityChecker] (main:null) Grabbing lock to check for 
database integrity.
INFO  [c.c.u.DatabaseIntegrityChecker] (main:null) Performing database 
integrity check
INFO  [o.a.c.s.l.CloudStackExtendedLifeCycle] (main:null) Running system 
integrity checker 
org.apache.cloudstack.utils.identity.ManagementServerNode@1f94b12
INFO  [o.a.c.s.l.CloudStackExtendedLifeCycle] (main:null) Configuring 
CloudStack Components
2014-01-17 04:17:07.466:WARN::Failed startup of context 
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@112a02e{/client,/root/cloudstack/client/target/generated-webapp}
org.springframework.context.ApplicationContextException: Failed to start bean 
'cloudStackLifeCycle'; nested exception is net.sf.ehcache.CacheException: 
Unable to create CacheManagerPeerListener. Initial cause was 
sdk-vee-appliance-2.englab.juniper.net: sdk-vee-appliance-2.englab.juniper.net
at 
org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:170)
at 
org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)
at 
org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:339)
at 
org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:143)
at 
org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:108)
at 
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:945)
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at 
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContext(DefaultModuleDefinitionSet.java:141)
at 
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet$2.with(DefaultModuleDefinitionSet.java:119)
at 
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:239)
at 
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:244)
at 
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:244)
at 
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:227)
at 
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContexts(DefaultModuleDefinitionSet.java:115)
at 
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.load(DefaultModuleDefinitionSet.java:78)
at 
org.apache.cloudstack.spring.module.factory.ModuleBasedContextFactory.loadModules(ModuleBasedContextFactory.java:37)
at 
org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init(CloudStackSpringContext.java:69)
at 
org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.(CloudStackSpringContext.java:56)
at 
org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.(CloudStackSpringContext.java:60)
at 
org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListener.contextInitialized(CloudStackContextLoaderListener.java:51)
at 
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
at 
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at 
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(

Re: Error starting management server

2013-05-07 Thread Dharmesh Kakadia
It was some issue with the setup I had. Started with a fresh setup a
worked, so could't figure out was wrong. Thanks everyone for the help. I am
closing the issue CLOUDSTACK-2211.

Thanks,
Dharmesh

On Mon, Apr 29, 2013 at 2:02 PM, Prasanna Santhanam  wrote:

> On Mon, Apr 29, 2013 at 11:52:56AM +0530, Dharmesh Kakadia wrote:
> > Ans 1: No. I did route and it is going on vboxnet0 only.
> >
> > Ans 2: Yes. I am running DevcloudVM on virtualbox on same host where
> > codebase and management server is.
> >
> > I went to IRC, couldn't find you. Novice user !! Can I know your nick ?
>
> vogxn (on irc)
>
> 
> Powered by BigRock.com
>
>


Re: Error starting management server

2013-04-29 Thread Dharmesh Kakadia
Ans 1: No. I did route and it is going on vboxnet0 only.

Ans 2: Yes. I am running DevcloudVM on virtualbox on same host where
codebase and management server is.

I went to IRC, couldn't find you. Novice user !! Can I know your nick ?

Thanks,
Dharmesh


On Mon, Apr 29, 2013 at 11:29 AM, Prasanna Santhanam  wrote:

> That looks fine too. I have a silly question:
>
> 1. Does your internal univ. subnet conflict with 192.168.x.y? Is it
> contacting a different machine perhaps?
>
> 2. Is the devcloudVM on the same host as your codebase from where you
> run mvn?
>
> If no, can you get on IRC #cloudstack?
>
> --
> Prasanna.,
>
> On Mon, Apr 29, 2013 at 11:10:41AM +0530, Dharmesh Kakadia wrote:
> > This is xenbr0 and xenbr1.
> >
> > xenbr0Link encap:Ethernet  HWaddr 08:00:27:9b:32:00
> >   inet addr:192.168.56.10  Bcast:192.168.56.255
>  Mask:255.255.255.0
> >   inet6 addr: fe80::a00:27ff:fe9b:3200/64 Scope:Link
> >   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >   RX packets:738 errors:0 dropped:0 overruns:0 frame:0
> >   TX packets:336 errors:0 dropped:0 overruns:0 carrier:0
> >   collisions:0 txqueuelen:0
> >   RX bytes:146760 (143.3 KiB)  TX bytes:37974 (37.0 KiB)
> >
> > xenbr1Link encap:Ethernet  HWaddr 08:00:27:19:f1:58
> >   inet addr:10.0.3.15  Bcast:10.0.3.255  Mask:255.255.255.0
> >   inet6 addr: fe80::a00:27ff:fe19:f158/64 Scope:Link
> >   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >   RX packets:12 errors:0 dropped:0 overruns:0 frame:0
> >   TX packets:213 errors:0 dropped:0 overruns:0 carrier:0
> >   collisions:0 txqueuelen:0
> >   RX bytes:1945 (1.8 KiB)  TX bytes:18602 (18.1 KiB)
> >
> > eth0 and eth1 does not have IPs assigned.
> >
> > Thanks,
> > Dharmesh
> >
> >
> > On Mon, Apr 29, 2013 at 11:05 AM, Prasanna Santhanam 
> wrote:
> >
> > > On Mon, Apr 29, 2013 at 10:36:48AM +0530, Dharmesh Kakadia wrote:
> > > > I have updated the bug report. xapi is listening on devcloud host.
> "xe
> > > > vm-list" shows the control domain running. Anything that you think is
> > > wrong
> > > > ?
> > > >
> > > Has your devcloudVM come up with the NIC (192.168.56.10)? What does
> > > ifconfig -a show for xenbr0 and xenbr1?
> > >
> > > --
> > > Prasanna.,
> > >
> > > 
> > > Powered by BigRock.com
> > >
> > >
>
>
> 
> Powered by BigRock.com
>
>


Re: Error starting management server

2013-04-28 Thread Prasanna Santhanam
That looks fine too. I have a silly question:

1. Does your internal univ. subnet conflict with 192.168.x.y? Is it
contacting a different machine perhaps?

2. Is the devcloudVM on the same host as your codebase from where you
run mvn?

If no, can you get on IRC #cloudstack? 

-- 
Prasanna.,

On Mon, Apr 29, 2013 at 11:10:41AM +0530, Dharmesh Kakadia wrote:
> This is xenbr0 and xenbr1.
> 
> xenbr0Link encap:Ethernet  HWaddr 08:00:27:9b:32:00
>   inet addr:192.168.56.10  Bcast:192.168.56.255  Mask:255.255.255.0
>   inet6 addr: fe80::a00:27ff:fe9b:3200/64 Scope:Link
>   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>   RX packets:738 errors:0 dropped:0 overruns:0 frame:0
>   TX packets:336 errors:0 dropped:0 overruns:0 carrier:0
>   collisions:0 txqueuelen:0
>   RX bytes:146760 (143.3 KiB)  TX bytes:37974 (37.0 KiB)
> 
> xenbr1Link encap:Ethernet  HWaddr 08:00:27:19:f1:58
>   inet addr:10.0.3.15  Bcast:10.0.3.255  Mask:255.255.255.0
>   inet6 addr: fe80::a00:27ff:fe19:f158/64 Scope:Link
>   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>   RX packets:12 errors:0 dropped:0 overruns:0 frame:0
>   TX packets:213 errors:0 dropped:0 overruns:0 carrier:0
>   collisions:0 txqueuelen:0
>   RX bytes:1945 (1.8 KiB)  TX bytes:18602 (18.1 KiB)
> 
> eth0 and eth1 does not have IPs assigned.
> 
> Thanks,
> Dharmesh
> 
> 
> On Mon, Apr 29, 2013 at 11:05 AM, Prasanna Santhanam  wrote:
> 
> > On Mon, Apr 29, 2013 at 10:36:48AM +0530, Dharmesh Kakadia wrote:
> > > I have updated the bug report. xapi is listening on devcloud host. "xe
> > > vm-list" shows the control domain running. Anything that you think is
> > wrong
> > > ?
> > >
> > Has your devcloudVM come up with the NIC (192.168.56.10)? What does
> > ifconfig -a show for xenbr0 and xenbr1?
> >
> > --
> > Prasanna.,
> >
> > 
> > Powered by BigRock.com
> >
> >



Powered by BigRock.com



Re: Error starting management server

2013-04-28 Thread Dharmesh Kakadia
This is xenbr0 and xenbr1.

xenbr0Link encap:Ethernet  HWaddr 08:00:27:9b:32:00
  inet addr:192.168.56.10  Bcast:192.168.56.255  Mask:255.255.255.0
  inet6 addr: fe80::a00:27ff:fe9b:3200/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:738 errors:0 dropped:0 overruns:0 frame:0
  TX packets:336 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:146760 (143.3 KiB)  TX bytes:37974 (37.0 KiB)

xenbr1Link encap:Ethernet  HWaddr 08:00:27:19:f1:58
  inet addr:10.0.3.15  Bcast:10.0.3.255  Mask:255.255.255.0
  inet6 addr: fe80::a00:27ff:fe19:f158/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:12 errors:0 dropped:0 overruns:0 frame:0
  TX packets:213 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:1945 (1.8 KiB)  TX bytes:18602 (18.1 KiB)

eth0 and eth1 does not have IPs assigned.

Thanks,
Dharmesh


On Mon, Apr 29, 2013 at 11:05 AM, Prasanna Santhanam  wrote:

> On Mon, Apr 29, 2013 at 10:36:48AM +0530, Dharmesh Kakadia wrote:
> > I have updated the bug report. xapi is listening on devcloud host. "xe
> > vm-list" shows the control domain running. Anything that you think is
> wrong
> > ?
> >
> Has your devcloudVM come up with the NIC (192.168.56.10)? What does
> ifconfig -a show for xenbr0 and xenbr1?
>
> --
> Prasanna.,
>
> 
> Powered by BigRock.com
>
>


Re: Error starting management server

2013-04-28 Thread Prasanna Santhanam
On Mon, Apr 29, 2013 at 10:36:48AM +0530, Dharmesh Kakadia wrote:
> I have updated the bug report. xapi is listening on devcloud host. "xe
> vm-list" shows the control domain running. Anything that you think is wrong
> ?
> 
Has your devcloudVM come up with the NIC (192.168.56.10)? What does
ifconfig -a show for xenbr0 and xenbr1?
 
-- 
Prasanna.,


Powered by BigRock.com



Re: Error starting management server

2013-04-28 Thread Dharmesh Kakadia
I have updated the bug report. xapi is listening on devcloud host. "xe
vm-list" shows the control domain running. Anything that you think is wrong
?

Thanks,
Dharmesh


On Mon, Apr 29, 2013 at 9:54 AM, Prasanna Santhanam  wrote:

> On Sat, Apr 27, 2013 at 10:08:22PM +0530, Dharmesh Kakadia wrote:
> > I found out the issue. I was behind the proxy and python was not able to
> > bypass the local address. After unsetting proxy, I am able to add zones,
> > pod and cluster. But while adding hosts I get following error:
>
> Ah - should've noticed the university in the email :)
> Can you update your bugreport to include proxy support in the CLI and
> marvin?
>
> For the host exception, can you check if your devcloud VM has the XAPI
> service running?  xcp-xapi?
>
> >
> > INFO  [cloud.resource.ResourceManagerImpl] (1793095672@qtp-165312501-9:)
> > Trying to add a new host at http://192.168.56.10 in data center 1
> > WARN  [cloud.resource.ResourceManagerImpl] (1793095672@qtp-165312501-9:)
> > Unable to find the server resources at http://192.168.56.10
> > INFO  [utils.exception.CSExceptionErrorCode] (1793095672@qtp-165312501-9
> :)
> > Could not find exception: com.cloud.exception.DiscoveryException in error
> > code list for exceptions
> > WARN  [admin.host.AddHostCmd] (1793095672@qtp-165312501-9:) Exception:
> > com.cloud.exception.DiscoveryException: Unable to add the host
> > at
> >
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:894)
> > at
> >
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:639)
> > at
> >
> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
> > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
> > at com.cloud.api.ApiServer.queueCommand(ApiServer.java:512)
> > at com.cloud.api.ApiServer.handleRequest(ApiServer.java:362)
> > at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
> > at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > 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.content(HttpConnection.java:945)
> > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
> > at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
> > 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)
> > INFO  [cloud.api.ApiServer] (1793095672@qtp-165312501-9:) Unable to add
> the
> > host
> >
> > Host (192.168.56.10) and management servers are able to ping each other.
> > Any pointers on what can be wrong ?
> >
> > Thanks,
> > Dharmesh
> >
> >
> > On Fri, Apr 26, 2013 at 7:33 PM, Prasanna Santhanam 
> wrote:
> >
> > > On Fri, Apr 26, 2013 at 06:30:23PM +0530, Dharmesh Kakadia wrote:
> > > > Hi,
> > > >
> > > > I have created bug
> https://issues.apache.org/jira/browse/CLOUDSTACK-2211as
> > > > suggested by you.
> > > > Being a newbie I was not sure how things are done in Apache Way.
> Couldn't
> > > > assign you the bug. Correct me if I missed something.
> > >
> > > That is the Apache Way ;) I'll pick it up and add some logs for you
> > > soon. Thanks for your patience. You should be able to proceed with the
> > > UI Wizard in the meantime to setup your zones.
> > >
> > >
> > > --
> > > Prasanna.,
> > >
> > > 
> > > Powered by BigRock.com
> > >
> > >
>
> --
> Prasanna.,
>
> 
> Powered by BigRock.com
>
>


Re: Error starting management server

2013-04-28 Thread Prasanna Santhanam
On Sat, Apr 27, 2013 at 10:08:22PM +0530, Dharmesh Kakadia wrote:
> I found out the issue. I was behind the proxy and python was not able to
> bypass the local address. After unsetting proxy, I am able to add zones,
> pod and cluster. But while adding hosts I get following error:

Ah - should've noticed the university in the email :)
Can you update your bugreport to include proxy support in the CLI and marvin? 

For the host exception, can you check if your devcloud VM has the XAPI
service running?  xcp-xapi?

> 
> INFO  [cloud.resource.ResourceManagerImpl] (1793095672@qtp-165312501-9:)
> Trying to add a new host at http://192.168.56.10 in data center 1
> WARN  [cloud.resource.ResourceManagerImpl] (1793095672@qtp-165312501-9:)
> Unable to find the server resources at http://192.168.56.10
> INFO  [utils.exception.CSExceptionErrorCode] (1793095672@qtp-165312501-9:)
> Could not find exception: com.cloud.exception.DiscoveryException in error
> code list for exceptions
> WARN  [admin.host.AddHostCmd] (1793095672@qtp-165312501-9:) Exception:
> com.cloud.exception.DiscoveryException: Unable to add the host
> at
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:894)
> at
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:639)
> at
> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:512)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:362)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
> at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> 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.content(HttpConnection.java:945)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
> 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)
> INFO  [cloud.api.ApiServer] (1793095672@qtp-165312501-9:) Unable to add the
> host
> 
> Host (192.168.56.10) and management servers are able to ping each other.
> Any pointers on what can be wrong ?
> 
> Thanks,
> Dharmesh
> 
> 
> On Fri, Apr 26, 2013 at 7:33 PM, Prasanna Santhanam  wrote:
> 
> > On Fri, Apr 26, 2013 at 06:30:23PM +0530, Dharmesh Kakadia wrote:
> > > Hi,
> > >
> > > I have created bug https://issues.apache.org/jira/browse/CLOUDSTACK-2211as
> > > suggested by you.
> > > Being a newbie I was not sure how things are done in Apache Way. Couldn't
> > > assign you the bug. Correct me if I missed something.
> >
> > That is the Apache Way ;) I'll pick it up and add some logs for you
> > soon. Thanks for your patience. You should be able to proceed with the
> > UI Wizard in the meantime to setup your zones.
> >
> >
> > --
> > Prasanna.,
> >
> > 
> > Powered by BigRock.com
> >
> >

-- 
Prasanna.,


Powered by BigRock.com



Re: Error starting management server

2013-04-28 Thread Dharmesh Kakadia
Anyone ?


On Sat, Apr 27, 2013 at 10:08 PM, Dharmesh Kakadia wrote:

> I found out the issue. I was behind the proxy and python was not able to
> bypass the local address. After unsetting proxy, I am able to add zones,
> pod and cluster. But while adding hosts I get following error:
>
> INFO  [cloud.resource.ResourceManagerImpl] (1793095672@qtp-165312501-9:)
> Trying to add a new host at http://192.168.56.10 in data center 1
> WARN  [cloud.resource.ResourceManagerImpl] (1793095672@qtp-165312501-9:)
> Unable to find the server resources at http://192.168.56.10
> INFO  [utils.exception.CSExceptionErrorCode] (1793095672@qtp-165312501-9:)
> Could not find exception: com.cloud.exception.DiscoveryException in error
> code list for exceptions
> WARN  [admin.host.AddHostCmd] (1793095672@qtp-165312501-9:) Exception:
> com.cloud.exception.DiscoveryException: Unable to add the host
> at
> com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:894)
> at
> com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:639)
> at
> org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:512)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:362)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
> at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> 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.content(HttpConnection.java:945)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
> 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)
> INFO  [cloud.api.ApiServer] (1793095672@qtp-165312501-9:) Unable to add
> the host
>
> Host (192.168.56.10) and management servers are able to ping each other.
> Any pointers on what can be wrong ?
>
> Thanks,
> Dharmesh
>
>
> On Fri, Apr 26, 2013 at 7:33 PM, Prasanna Santhanam wrote:
>
>> On Fri, Apr 26, 2013 at 06:30:23PM +0530, Dharmesh Kakadia wrote:
>> > Hi,
>> >
>> > I have created bug
>> https://issues.apache.org/jira/browse/CLOUDSTACK-2211 as
>> > suggested by you.
>> > Being a newbie I was not sure how things are done in Apache Way.
>> Couldn't
>> > assign you the bug. Correct me if I missed something.
>>
>> That is the Apache Way ;) I'll pick it up and add some logs for you
>> soon. Thanks for your patience. You should be able to proceed with the
>> UI Wizard in the meantime to setup your zones.
>>
>>
>> --
>> Prasanna.,
>>
>> 
>> Powered by BigRock.com
>>
>>
>


Re: Error starting management server

2013-04-27 Thread Dharmesh Kakadia
I found out the issue. I was behind the proxy and python was not able to
bypass the local address. After unsetting proxy, I am able to add zones,
pod and cluster. But while adding hosts I get following error:

INFO  [cloud.resource.ResourceManagerImpl] (1793095672@qtp-165312501-9:)
Trying to add a new host at http://192.168.56.10 in data center 1
WARN  [cloud.resource.ResourceManagerImpl] (1793095672@qtp-165312501-9:)
Unable to find the server resources at http://192.168.56.10
INFO  [utils.exception.CSExceptionErrorCode] (1793095672@qtp-165312501-9:)
Could not find exception: com.cloud.exception.DiscoveryException in error
code list for exceptions
WARN  [admin.host.AddHostCmd] (1793095672@qtp-165312501-9:) Exception:
com.cloud.exception.DiscoveryException: Unable to add the host
at
com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:894)
at
com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:639)
at
org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:143)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:512)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:362)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
at com.cloud.api.ApiServlet.doPost(ApiServlet.java:71)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
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.content(HttpConnection.java:945)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
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)
INFO  [cloud.api.ApiServer] (1793095672@qtp-165312501-9:) Unable to add the
host

Host (192.168.56.10) and management servers are able to ping each other.
Any pointers on what can be wrong ?

Thanks,
Dharmesh


On Fri, Apr 26, 2013 at 7:33 PM, Prasanna Santhanam  wrote:

> On Fri, Apr 26, 2013 at 06:30:23PM +0530, Dharmesh Kakadia wrote:
> > Hi,
> >
> > I have created bug https://issues.apache.org/jira/browse/CLOUDSTACK-2211as
> > suggested by you.
> > Being a newbie I was not sure how things are done in Apache Way. Couldn't
> > assign you the bug. Correct me if I missed something.
>
> That is the Apache Way ;) I'll pick it up and add some logs for you
> soon. Thanks for your patience. You should be able to proceed with the
> UI Wizard in the meantime to setup your zones.
>
>
> --
> Prasanna.,
>
> 
> Powered by BigRock.com
>
>


Re: Error starting management server

2013-04-26 Thread Prasanna Santhanam
On Fri, Apr 26, 2013 at 06:30:23PM +0530, Dharmesh Kakadia wrote:
> Hi,
> 
> I have created bug https://issues.apache.org/jira/browse/CLOUDSTACK-2211 as
> suggested by you.
> Being a newbie I was not sure how things are done in Apache Way. Couldn't
> assign you the bug. Correct me if I missed something.

That is the Apache Way ;) I'll pick it up and add some logs for you
soon. Thanks for your patience. You should be able to proceed with the
UI Wizard in the meantime to setup your zones.


-- 
Prasanna.,


Powered by BigRock.com



Re: Error starting management server

2013-04-26 Thread Dharmesh Kakadia
Hi,

I have created bug https://issues.apache.org/jira/browse/CLOUDSTACK-2211 as
suggested by you.
Being a newbie I was not sure how things are done in Apache Way. Couldn't
assign you the bug. Correct me if I missed something.

Thanks,
Dharmesh


On Fri, Apr 26, 2013 at 4:32 PM, Prasanna Santhanam  wrote:

> On Fri, Apr 26, 2013 at 04:22:58PM +0530, Dharmesh Kakadia wrote:
> > I repeated the all the steps from wiki with a fresh code and still
> getting
> > the same error. I tried on both Mac OS and Ubuntu 12.04. Is wiki missing
> > any step ?
> >
>
> Sorry, I'm unable to repro this. I'll try to add some debug logs later
> to the jsonHelper where your problem appears to be coming from. For
> now please file a bug and feel free to assign it to me.
>
> --
> Prasanna.,
>
> 
> Powered by BigRock.com
>
>


Re: Error starting management server

2013-04-26 Thread Prasanna Santhanam
On Fri, Apr 26, 2013 at 04:22:58PM +0530, Dharmesh Kakadia wrote:
> I repeated the all the steps from wiki with a fresh code and still getting
> the same error. I tried on both Mac OS and Ubuntu 12.04. Is wiki missing
> any step ?
> 

Sorry, I'm unable to repro this. I'll try to add some debug logs later
to the jsonHelper where your problem appears to be coming from. For
now please file a bug and feel free to assign it to me.

-- 
Prasanna.,


Powered by BigRock.com



Re: Error starting management server

2013-04-26 Thread Dharmesh Kakadia
I repeated the all the steps from wiki with a fresh code and still getting
the same error. I tried on both Mac OS and Ubuntu 12.04. Is wiki missing
any step ?



On Fri, Apr 26, 2013 at 2:26 PM, Dharmesh Kakadia <
dharmesh.kaka...@research.iiit.ac.in> wrote:

> I am running  "mvn -P developer -pl tools/devcloud -Ddeploysvr" from base
> dir and "python ../marvin/marvin/ deployDataCenter.py -i devcloud.cfg"
> from tools/devcloud as directed in wiki.
>
>
> On Fri, Apr 26, 2013 at 2:20 PM, Prasanna Santhanam wrote:
>
>> On Fri, Apr 26, 2013 at 12:46:16PM +0530, Dharmesh Kakadia wrote:
>> > I tried
>> >
>> > mvn -P developer -pl tools/devcloud -Ddeploysvr
>> >
>> > and
>> >
>> > python ../marvin/marvin/deployDataCenter.py -i devcloud.cfg
>> >
>> > I used the devcloud.cfg from devcloud without any change. Here it is
>> >
>> > http://apaste.info/22Pd
>>
>> I just retried it and didn't see the problem you're facing - your json
>> is valid, the commands look alright.  are you sure you're running the
>> commands from the base dir of the source?
>>
>> --
>> Prasanna.,
>>
>> 
>> Powered by BigRock.com
>>
>>
>


Re: Error starting management server

2013-04-26 Thread Dharmesh Kakadia
I am running  "mvn -P developer -pl tools/devcloud -Ddeploysvr" from base
dir and "python ../marvin/marvin/ deployDataCenter.py -i devcloud.cfg" from
tools/devcloud as directed in wiki.


On Fri, Apr 26, 2013 at 2:20 PM, Prasanna Santhanam  wrote:

> On Fri, Apr 26, 2013 at 12:46:16PM +0530, Dharmesh Kakadia wrote:
> > I tried
> >
> > mvn -P developer -pl tools/devcloud -Ddeploysvr
> >
> > and
> >
> > python ../marvin/marvin/deployDataCenter.py -i devcloud.cfg
> >
> > I used the devcloud.cfg from devcloud without any change. Here it is
> >
> > http://apaste.info/22Pd
>
> I just retried it and didn't see the problem you're facing - your json
> is valid, the commands look alright.  are you sure you're running the
> commands from the base dir of the source?
>
> --
> Prasanna.,
>
> 
> Powered by BigRock.com
>
>


Re: Error starting management server

2013-04-26 Thread Prasanna Santhanam
On Fri, Apr 26, 2013 at 12:46:16PM +0530, Dharmesh Kakadia wrote:
> I tried
> 
> mvn -P developer -pl tools/devcloud -Ddeploysvr
> 
> and
> 
> python ../marvin/marvin/deployDataCenter.py -i devcloud.cfg
> 
> I used the devcloud.cfg from devcloud without any change. Here it is
> 
> http://apaste.info/22Pd

I just retried it and didn't see the problem you're facing - your json
is valid, the commands look alright.  are you sure you're running the
commands from the base dir of the source? 

-- 
Prasanna.,


Powered by BigRock.com



Re: Error starting management server

2013-04-26 Thread Dharmesh Kakadia
I have ran the deploydb step. (mvn -P developer -pl
developer,tools/devcloud -Ddeploydb). No error. I checked the mysql as
well. It has all the tables. I again wiped and re-run the 2 steps. Nothing
changed.



On Fri, Apr 26, 2013 at 1:04 PM, Sebastien Goasguen wrote:

> You might want to make sure that you database is wiped out before using
> marvin.
>
>
> That is to say, run the deploydb step before trying :
> > python ../marvin/marvin/deployDataCenter.py -i devcloud.cfg
>
>
> On Apr 26, 2013, at 3:16 AM, Dharmesh Kakadia <
> dharmesh.kaka...@research.iiit.ac.in> wrote:
>
> > I tried
> >
> >
> > mvn -P developer -pl tools/devcloud -Ddeploysvr
> >
> >
> > and
> >
> > python ../marvin/marvin/deployDataCenter.py -i devcloud.cfg
> >
> > I used the devcloud.cfg from devcloud without any change. Here it is
> >
> > http://apaste.info/22Pd
> >
> >
> > both are failing with
> >
> > Traceback (most recent call last):
> >  File "../marvin/marvin/deployDataCenter.py", line 469, in 
> >deploy.deploy()
> >  File "../marvin/marvin/deployDataCenter.py", line 452, in deploy
> >self.loadCfg()
> >  File "../marvin/marvin/deployDataCenter.py", line 409, in loadCfg
> >apiKey, securityKey = self.registerApiKey()
> >  File "../marvin/marvin/deployDataCenter.py", line 349, in registerApiKey
> >listuserRes = self.testClient.getApiClient().listUsers(listuser)
> >  File
> >
> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
> > line 436, in listUsers
> >response = self.connection.marvin_request(command,
> > response_type=response, method=method)
> >  File
> >
> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackConnection.py",
> > line 208, in marvin_request
> >response = jsonHelper.getResultObj(response.json(), response_type)
> >  File "/Library/Python/2.7/site-packages/requests/models.py", line 638,
> in
> > json
> >return json.loads(self.text or self.content, **kwargs)
> >  File
> >
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py",
> > line 326, in loads
> >return _default_decoder.decode(s)
> >  File
> >
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
> > line 360, in decode
> >obj, end = self.raw_decode(s, idx=_w(s, 0).end())
> >  File
> >
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
> > line 378, in raw_decode
> >raise ValueError("No JSON object could be decoded")
> > ValueError: No JSON object could be decoded
> >
> > Thanks,
> > Dharmesh
> >
> >
> > On Fri, Apr 26, 2013 at 12:29 PM, Prasanna  >wrote:
> >
> >> What's your python command on the command line? And the json file that
> >> you passed in to run it. Put it up on apaste.info?
> >>
> >> --
> >> Prasanna.,
> >>
> >> On Thu, Apr 25, 2013 at 06:04:14PM +0530, Dharmesh Kakadia wrote:
> >>> Hi,
> >>>
> >>> I was able to only run management server. Now stuck at step-8. I tried
> >>> running it both way (mvn and python).
> >>>
> >>> Traceback (most recent call last):
> >>>  File "../marvin/marvin/deployDataCenter.py", line 469, in 
> >>>deploy.deploy()
> >>>  File "../marvin/marvin/deployDataCenter.py", line 452, in deploy
> >>>self.loadCfg()
> >>>  File "../marvin/marvin/deployDataCenter.py", line 409, in loadCfg
> >>>apiKey, securityKey = self.registerApiKey()
> >>>  File "../marvin/marvin/deployDataCenter.py", line 349, in
> >> registerApiKey
> >>>listuserRes = self.testClient.getApiClient().listUsers(listuser)
> >>>  File
> >>>
> >>
> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
> >>> line 436, in listUsers
> >>>response = self.connection.marvin_request(command,
> >>> response_type=response, method=method)
> >>>  File
> >>>
> >>
> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackConnection.py",
> >>> line 208, in marvin_request
> >>>response = jsonHelper.getResultObj(response.json(), response_type)
> >>>  File "/Library/Python/2.7/site-packages/requests/models.py", line 638,
> >> in
> >>> json
> >>>return json.loads(self.text or self.content, **kwargs)
> >>>  File
> >>>
> >>
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py",
> >>> line 326, in loads
> >>>return _default_decoder.decode(s)
> >>>  File
> >>>
> >>
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
> >>> line 360, in decode
> >>>obj, end = self.raw_decode(s, idx=_w(s, 0).end())
> >>>  File
> >>>
> >>
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
> >>> line 378, in raw_decode
> >>>raise ValueError("No JSON object could be decoded")
> >>> ValueError: No JSON object could be decoded
> >>>
> >>>
> >>> I am using python2.7 and have version 2.6 installed on system.
> >>>
> >>> Also, I need help in using the management UI with devcloud. I am

Re: Error starting management server

2013-04-26 Thread Sebastien Goasguen
You might want to make sure that you database is wiped out before using marvin.


That is to say, run the deploydb step before trying :
> python ../marvin/marvin/deployDataCenter.py -i devcloud.cfg


On Apr 26, 2013, at 3:16 AM, Dharmesh Kakadia 
 wrote:

> I tried
> 
> 
> mvn -P developer -pl tools/devcloud -Ddeploysvr
> 
> 
> and
> 
> python ../marvin/marvin/deployDataCenter.py -i devcloud.cfg
> 
> I used the devcloud.cfg from devcloud without any change. Here it is
> 
> http://apaste.info/22Pd
> 
> 
> both are failing with
> 
> Traceback (most recent call last):
>  File "../marvin/marvin/deployDataCenter.py", line 469, in 
>deploy.deploy()
>  File "../marvin/marvin/deployDataCenter.py", line 452, in deploy
>self.loadCfg()
>  File "../marvin/marvin/deployDataCenter.py", line 409, in loadCfg
>apiKey, securityKey = self.registerApiKey()
>  File "../marvin/marvin/deployDataCenter.py", line 349, in registerApiKey
>listuserRes = self.testClient.getApiClient().listUsers(listuser)
>  File
> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
> line 436, in listUsers
>response = self.connection.marvin_request(command,
> response_type=response, method=method)
>  File
> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackConnection.py",
> line 208, in marvin_request
>response = jsonHelper.getResultObj(response.json(), response_type)
>  File "/Library/Python/2.7/site-packages/requests/models.py", line 638, in
> json
>return json.loads(self.text or self.content, **kwargs)
>  File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py",
> line 326, in loads
>return _default_decoder.decode(s)
>  File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
> line 360, in decode
>obj, end = self.raw_decode(s, idx=_w(s, 0).end())
>  File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
> line 378, in raw_decode
>raise ValueError("No JSON object could be decoded")
> ValueError: No JSON object could be decoded
> 
> Thanks,
> Dharmesh
> 
> 
> On Fri, Apr 26, 2013 at 12:29 PM, Prasanna 
> wrote:
> 
>> What's your python command on the command line? And the json file that
>> you passed in to run it. Put it up on apaste.info?
>> 
>> --
>> Prasanna.,
>> 
>> On Thu, Apr 25, 2013 at 06:04:14PM +0530, Dharmesh Kakadia wrote:
>>> Hi,
>>> 
>>> I was able to only run management server. Now stuck at step-8. I tried
>>> running it both way (mvn and python).
>>> 
>>> Traceback (most recent call last):
>>>  File "../marvin/marvin/deployDataCenter.py", line 469, in 
>>>deploy.deploy()
>>>  File "../marvin/marvin/deployDataCenter.py", line 452, in deploy
>>>self.loadCfg()
>>>  File "../marvin/marvin/deployDataCenter.py", line 409, in loadCfg
>>>apiKey, securityKey = self.registerApiKey()
>>>  File "../marvin/marvin/deployDataCenter.py", line 349, in
>> registerApiKey
>>>listuserRes = self.testClient.getApiClient().listUsers(listuser)
>>>  File
>>> 
>> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
>>> line 436, in listUsers
>>>response = self.connection.marvin_request(command,
>>> response_type=response, method=method)
>>>  File
>>> 
>> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackConnection.py",
>>> line 208, in marvin_request
>>>response = jsonHelper.getResultObj(response.json(), response_type)
>>>  File "/Library/Python/2.7/site-packages/requests/models.py", line 638,
>> in
>>> json
>>>return json.loads(self.text or self.content, **kwargs)
>>>  File
>>> 
>> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py",
>>> line 326, in loads
>>>return _default_decoder.decode(s)
>>>  File
>>> 
>> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
>>> line 360, in decode
>>>obj, end = self.raw_decode(s, idx=_w(s, 0).end())
>>>  File
>>> 
>> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
>>> line 378, in raw_decode
>>>raise ValueError("No JSON object could be decoded")
>>> ValueError: No JSON object could be decoded
>>> 
>>> 
>>> I am using python2.7 and have version 2.6 installed on system.
>>> 
>>> Also, I need help in using the management UI with devcloud. I am newbie
>> and
>>> guessed most of the values, but I am not able to add devcloud host
>>> (192.168.56.10). Any pointers ?
>>> 
>>> Thanks,
>>> Dharmesh
>>> 
>>> 
>>> On Thu, Apr 25, 2013 at 12:36 PM, Dharmesh Kakadia >> wrote:
>>> 
 Hi,
 
 Thanks. That was exactly what I was missing. Running now !!
 
 Thanks,
 Dharmesh
 
 
 On Thu, Apr 25, 2013 at 10:34 AM, Prasanna Santhanam >> wrote:
 
> On Wed, Apr 24, 2013 at 11:07:38PM +0530, Dharmesh Kakadia wrote:
>> Hi,
>> 
>> I am setting up dev env

Re: Error starting management server

2013-04-26 Thread Dharmesh Kakadia
I tried


mvn -P developer -pl tools/devcloud -Ddeploysvr


and

python ../marvin/marvin/deployDataCenter.py -i devcloud.cfg

I used the devcloud.cfg from devcloud without any change. Here it is

http://apaste.info/22Pd


both are failing with

Traceback (most recent call last):
  File "../marvin/marvin/deployDataCenter.py", line 469, in 
deploy.deploy()
  File "../marvin/marvin/deployDataCenter.py", line 452, in deploy
self.loadCfg()
  File "../marvin/marvin/deployDataCenter.py", line 409, in loadCfg
apiKey, securityKey = self.registerApiKey()
  File "../marvin/marvin/deployDataCenter.py", line 349, in registerApiKey
listuserRes = self.testClient.getApiClient().listUsers(listuser)
  File
"/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
line 436, in listUsers
response = self.connection.marvin_request(command,
response_type=response, method=method)
  File
"/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackConnection.py",
line 208, in marvin_request
response = jsonHelper.getResultObj(response.json(), response_type)
  File "/Library/Python/2.7/site-packages/requests/models.py", line 638, in
json
return json.loads(self.text or self.content, **kwargs)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py",
line 326, in loads
return _default_decoder.decode(s)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
line 360, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
line 378, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Thanks,
Dharmesh


On Fri, Apr 26, 2013 at 12:29 PM, Prasanna wrote:

> What's your python command on the command line? And the json file that
> you passed in to run it. Put it up on apaste.info?
>
> --
> Prasanna.,
>
> On Thu, Apr 25, 2013 at 06:04:14PM +0530, Dharmesh Kakadia wrote:
> > Hi,
> >
> > I was able to only run management server. Now stuck at step-8. I tried
> > running it both way (mvn and python).
> >
> > Traceback (most recent call last):
> >   File "../marvin/marvin/deployDataCenter.py", line 469, in 
> > deploy.deploy()
> >   File "../marvin/marvin/deployDataCenter.py", line 452, in deploy
> > self.loadCfg()
> >   File "../marvin/marvin/deployDataCenter.py", line 409, in loadCfg
> > apiKey, securityKey = self.registerApiKey()
> >   File "../marvin/marvin/deployDataCenter.py", line 349, in
> registerApiKey
> > listuserRes = self.testClient.getApiClient().listUsers(listuser)
> >   File
> >
> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
> > line 436, in listUsers
> > response = self.connection.marvin_request(command,
> > response_type=response, method=method)
> >   File
> >
> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackConnection.py",
> > line 208, in marvin_request
> > response = jsonHelper.getResultObj(response.json(), response_type)
> >   File "/Library/Python/2.7/site-packages/requests/models.py", line 638,
> in
> > json
> > return json.loads(self.text or self.content, **kwargs)
> >   File
> >
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py",
> > line 326, in loads
> > return _default_decoder.decode(s)
> >   File
> >
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
> > line 360, in decode
> > obj, end = self.raw_decode(s, idx=_w(s, 0).end())
> >   File
> >
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
> > line 378, in raw_decode
> > raise ValueError("No JSON object could be decoded")
> > ValueError: No JSON object could be decoded
> >
> >
> > I am using python2.7 and have version 2.6 installed on system.
> >
> > Also, I need help in using the management UI with devcloud. I am newbie
> and
> > guessed most of the values, but I am not able to add devcloud host
> > (192.168.56.10). Any pointers ?
> >
> > Thanks,
> > Dharmesh
> >
> >
> > On Thu, Apr 25, 2013 at 12:36 PM, Dharmesh Kakadia  >wrote:
> >
> > > Hi,
> > >
> > > Thanks. That was exactly what I was missing. Running now !!
> > >
> > > Thanks,
> > > Dharmesh
> > >
> > >
> > > On Thu, Apr 25, 2013 at 10:34 AM, Prasanna Santhanam  >wrote:
> > >
> > >> On Wed, Apr 24, 2013 at 11:07:38PM +0530, Dharmesh Kakadia wrote:
> > >> > Hi,
> > >> >
> > >> > I am setting up dev environment following :
> > >> > https://cwiki.apache.org/confluence/display/CLOUDSTACK/DevCloud
> > >>
> > >> Dev environment specifics are here:
> > >>
> > >>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+CloudStack+Development+Environment
> > >>
> > >> If you are using master branch for building:
> > >>
> > >>
> https://cwiki.apache.

Re: Error starting management server

2013-04-25 Thread Prasanna
What's your python command on the command line? And the json file that
you passed in to run it. Put it up on apaste.info?

-- 
Prasanna.,

On Thu, Apr 25, 2013 at 06:04:14PM +0530, Dharmesh Kakadia wrote:
> Hi,
> 
> I was able to only run management server. Now stuck at step-8. I tried
> running it both way (mvn and python).
> 
> Traceback (most recent call last):
>   File "../marvin/marvin/deployDataCenter.py", line 469, in 
> deploy.deploy()
>   File "../marvin/marvin/deployDataCenter.py", line 452, in deploy
> self.loadCfg()
>   File "../marvin/marvin/deployDataCenter.py", line 409, in loadCfg
> apiKey, securityKey = self.registerApiKey()
>   File "../marvin/marvin/deployDataCenter.py", line 349, in registerApiKey
> listuserRes = self.testClient.getApiClient().listUsers(listuser)
>   File
> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
> line 436, in listUsers
> response = self.connection.marvin_request(command,
> response_type=response, method=method)
>   File
> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackConnection.py",
> line 208, in marvin_request
> response = jsonHelper.getResultObj(response.json(), response_type)
>   File "/Library/Python/2.7/site-packages/requests/models.py", line 638, in
> json
> return json.loads(self.text or self.content, **kwargs)
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py",
> line 326, in loads
> return _default_decoder.decode(s)
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
> line 360, in decode
> obj, end = self.raw_decode(s, idx=_w(s, 0).end())
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
> line 378, in raw_decode
> raise ValueError("No JSON object could be decoded")
> ValueError: No JSON object could be decoded
> 
> 
> I am using python2.7 and have version 2.6 installed on system.
> 
> Also, I need help in using the management UI with devcloud. I am newbie and
> guessed most of the values, but I am not able to add devcloud host
> (192.168.56.10). Any pointers ?
> 
> Thanks,
> Dharmesh
> 
> 
> On Thu, Apr 25, 2013 at 12:36 PM, Dharmesh Kakadia wrote:
> 
> > Hi,
> >
> > Thanks. That was exactly what I was missing. Running now !!
> >
> > Thanks,
> > Dharmesh
> >
> >
> > On Thu, Apr 25, 2013 at 10:34 AM, Prasanna Santhanam wrote:
> >
> >> On Wed, Apr 24, 2013 at 11:07:38PM +0530, Dharmesh Kakadia wrote:
> >> > Hi,
> >> >
> >> > I am setting up dev environment following :
> >> > https://cwiki.apache.org/confluence/display/CLOUDSTACK/DevCloud
> >>
> >> Dev environment specifics are here:
> >>
> >> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+CloudStack+Development+Environment
> >>
> >> If you are using master branch for building:
> >>
> >> https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on+master+branch
> >>
> >> You might want to give more memory as shown in the wiki:
> >> export MAVEN_OPTS="-XX:MaxPermSize=512m -Xmx2g -Xdebug
> >> -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
> >>
> >> The supported tomcat version is 6.0.33. So you might want to downgrade
> >> and setup your CATALINA_HOME to point to the correct tomcat install.
> >>
> >> --
> >> Prasanna.,
> >>
> >> >
> >> > I am stuck on step 7.3 while starting the management server.
> >> >
> >> > the output of
> >> >
> >> > mvn -pl :cloud-client-ui jetty:run
> >> >
> >> > gets stuck after
> >> >
> >> > INFO  [utils.component.ComponentContext] (main:) Setup Spring
> >> Application
> >> > context
> >> >
> >> > I tried starting client-ui manually by copying the cloud-client-ui war
> >> file
> >> > into tomcat.
> >> >
> >> > Interestingly the log says
> >> >
> >> > SEVERE: Error listenerStart
> >> > Apr 24, 2013 6:32:38 PM org.apache.catalina.core.StandardContext start
> >> > SEVERE: Context [/cloud-client-ui-4.2.0-SNAPSHOT] startup failed due to
> >> > previous errors
> >> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
> >> > clearReferencesThreads
> >> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] appears to
> >> > have started a thread named [Timer-0] but has failed to stop it. This is
> >> > very likely to create a memory leak.
> >> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
> >> > clearReferencesThreads
> >> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] appears to
> >> > have started a thread named [ClusteredAgentManager Timer] but has
> >> failed to
> >> > stop it. This is very likely to create a memory leak.
> >> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
> >> > checkThreadLocalMapForLeaks
> >> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] created a
> >> > ThreadLocal with key of type [java.lang.ThreadLocal] (value
> >> > [java.lang.ThreadLocal@3a7d1a7

Re: Error starting management server

2013-04-25 Thread Dharmesh Kakadia
Anyone ? I am not able to figure it out.


On Thu, Apr 25, 2013 at 6:04 PM, Dharmesh Kakadia wrote:

> Hi,
>
> I was able to only run management server. Now stuck at step-8. I tried
> running it both way (mvn and python).
>
> Traceback (most recent call last):
>   File "../marvin/marvin/deployDataCenter.py", line 469, in 
> deploy.deploy()
>   File "../marvin/marvin/deployDataCenter.py", line 452, in deploy
> self.loadCfg()
>   File "../marvin/marvin/deployDataCenter.py", line 409, in loadCfg
> apiKey, securityKey = self.registerApiKey()
>   File "../marvin/marvin/deployDataCenter.py", line 349, in registerApiKey
> listuserRes = self.testClient.getApiClient().listUsers(listuser)
>   File
> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
> line 436, in listUsers
> response = self.connection.marvin_request(command,
> response_type=response, method=method)
>   File
> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackConnection.py",
> line 208, in marvin_request
> response = jsonHelper.getResultObj(response.json(), response_type)
>   File "/Library/Python/2.7/site-packages/requests/models.py", line 638,
> in json
> return json.loads(self.text or self.content, **kwargs)
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py",
> line 326, in loads
> return _default_decoder.decode(s)
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
> line 360, in decode
> obj, end = self.raw_decode(s, idx=_w(s, 0).end())
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
> line 378, in raw_decode
> raise ValueError("No JSON object could be decoded")
> ValueError: No JSON object could be decoded
>
>
> I am using python2.7 and have version 2.6 installed on system.
>
> Also, I need help in using the management UI with devcloud. I am newbie
> and guessed most of the values, but I am not able to add devcloud host
> (192.168.56.10). Any pointers ?
>
> Thanks,
> Dharmesh
>
>
> On Thu, Apr 25, 2013 at 12:36 PM, Dharmesh Kakadia wrote:
>
>> Hi,
>>
>> Thanks. That was exactly what I was missing. Running now !!
>>
>>  Thanks,
>> Dharmesh
>>
>>
>> On Thu, Apr 25, 2013 at 10:34 AM, Prasanna Santhanam wrote:
>>
>>> On Wed, Apr 24, 2013 at 11:07:38PM +0530, Dharmesh Kakadia wrote:
>>> > Hi,
>>> >
>>> > I am setting up dev environment following :
>>> > https://cwiki.apache.org/confluence/display/CLOUDSTACK/DevCloud
>>>
>>> Dev environment specifics are here:
>>>
>>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+CloudStack+Development+Environment
>>>
>>> If you are using master branch for building:
>>>
>>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on+master+branch
>>>
>>> You might want to give more memory as shown in the wiki:
>>> export MAVEN_OPTS="-XX:MaxPermSize=512m -Xmx2g -Xdebug
>>> -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
>>>
>>> The supported tomcat version is 6.0.33. So you might want to downgrade
>>> and setup your CATALINA_HOME to point to the correct tomcat install.
>>>
>>> --
>>> Prasanna.,
>>>
>>> >
>>> > I am stuck on step 7.3 while starting the management server.
>>> >
>>> > the output of
>>> >
>>> > mvn -pl :cloud-client-ui jetty:run
>>> >
>>> > gets stuck after
>>> >
>>> > INFO  [utils.component.ComponentContext] (main:) Setup Spring
>>> Application
>>> > context
>>> >
>>> > I tried starting client-ui manually by copying the cloud-client-ui war
>>> file
>>> > into tomcat.
>>> >
>>> > Interestingly the log says
>>> >
>>> > SEVERE: Error listenerStart
>>> > Apr 24, 2013 6:32:38 PM org.apache.catalina.core.StandardContext start
>>> > SEVERE: Context [/cloud-client-ui-4.2.0-SNAPSHOT] startup failed due to
>>> > previous errors
>>> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
>>> > clearReferencesThreads
>>> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] appears
>>> to
>>> > have started a thread named [Timer-0] but has failed to stop it. This
>>> is
>>> > very likely to create a memory leak.
>>> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
>>> > clearReferencesThreads
>>> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] appears
>>> to
>>> > have started a thread named [ClusteredAgentManager Timer] but has
>>> failed to
>>> > stop it. This is very likely to create a memory leak.
>>> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
>>> > checkThreadLocalMapForLeaks
>>> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] created a
>>> > ThreadLocal with key of type [java.lang.ThreadLocal] (value
>>> > [java.lang.ThreadLocal@3a7d1a7a]) and a value of type
>>> > [com.cloud.utils.db.Transaction] (value [ : ]) but failed to remove it
>>> when
>>> > the web application was stopped. This is very likely to c

Re: Error starting management server

2013-04-25 Thread Dharmesh Kakadia
Sorry. Understood now that the step-8 above will do add
datacenter/pod/cluster/host etc. Need help only in step-8.


On Thu, Apr 25, 2013 at 6:04 PM, Dharmesh Kakadia wrote:

> Hi,
>
> I was able to only run management server. Now stuck at step-8. I tried
> running it both way (mvn and python).
>
> Traceback (most recent call last):
>   File "../marvin/marvin/deployDataCenter.py", line 469, in 
> deploy.deploy()
>   File "../marvin/marvin/deployDataCenter.py", line 452, in deploy
> self.loadCfg()
>   File "../marvin/marvin/deployDataCenter.py", line 409, in loadCfg
> apiKey, securityKey = self.registerApiKey()
>   File "../marvin/marvin/deployDataCenter.py", line 349, in registerApiKey
> listuserRes = self.testClient.getApiClient().listUsers(listuser)
>   File
> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
> line 436, in listUsers
> response = self.connection.marvin_request(command,
> response_type=response, method=method)
>   File
> "/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackConnection.py",
> line 208, in marvin_request
> response = jsonHelper.getResultObj(response.json(), response_type)
>   File "/Library/Python/2.7/site-packages/requests/models.py", line 638,
> in json
> return json.loads(self.text or self.content, **kwargs)
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py",
> line 326, in loads
> return _default_decoder.decode(s)
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
> line 360, in decode
> obj, end = self.raw_decode(s, idx=_w(s, 0).end())
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
> line 378, in raw_decode
> raise ValueError("No JSON object could be decoded")
> ValueError: No JSON object could be decoded
>
>
> I am using python2.7 and have version 2.6 installed on system.
>
> Also, I need help in using the management UI with devcloud. I am newbie
> and guessed most of the values, but I am not able to add devcloud host
> (192.168.56.10). Any pointers ?
>
> Thanks,
> Dharmesh
>
>
> On Thu, Apr 25, 2013 at 12:36 PM, Dharmesh Kakadia wrote:
>
>> Hi,
>>
>> Thanks. That was exactly what I was missing. Running now !!
>>
>>  Thanks,
>> Dharmesh
>>
>>
>> On Thu, Apr 25, 2013 at 10:34 AM, Prasanna Santhanam wrote:
>>
>>> On Wed, Apr 24, 2013 at 11:07:38PM +0530, Dharmesh Kakadia wrote:
>>> > Hi,
>>> >
>>> > I am setting up dev environment following :
>>> > https://cwiki.apache.org/confluence/display/CLOUDSTACK/DevCloud
>>>
>>> Dev environment specifics are here:
>>>
>>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+CloudStack+Development+Environment
>>>
>>> If you are using master branch for building:
>>>
>>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on+master+branch
>>>
>>> You might want to give more memory as shown in the wiki:
>>> export MAVEN_OPTS="-XX:MaxPermSize=512m -Xmx2g -Xdebug
>>> -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
>>>
>>> The supported tomcat version is 6.0.33. So you might want to downgrade
>>> and setup your CATALINA_HOME to point to the correct tomcat install.
>>>
>>> --
>>> Prasanna.,
>>>
>>> >
>>> > I am stuck on step 7.3 while starting the management server.
>>> >
>>> > the output of
>>> >
>>> > mvn -pl :cloud-client-ui jetty:run
>>> >
>>> > gets stuck after
>>> >
>>> > INFO  [utils.component.ComponentContext] (main:) Setup Spring
>>> Application
>>> > context
>>> >
>>> > I tried starting client-ui manually by copying the cloud-client-ui war
>>> file
>>> > into tomcat.
>>> >
>>> > Interestingly the log says
>>> >
>>> > SEVERE: Error listenerStart
>>> > Apr 24, 2013 6:32:38 PM org.apache.catalina.core.StandardContext start
>>> > SEVERE: Context [/cloud-client-ui-4.2.0-SNAPSHOT] startup failed due to
>>> > previous errors
>>> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
>>> > clearReferencesThreads
>>> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] appears
>>> to
>>> > have started a thread named [Timer-0] but has failed to stop it. This
>>> is
>>> > very likely to create a memory leak.
>>> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
>>> > clearReferencesThreads
>>> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] appears
>>> to
>>> > have started a thread named [ClusteredAgentManager Timer] but has
>>> failed to
>>> > stop it. This is very likely to create a memory leak.
>>> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
>>> > checkThreadLocalMapForLeaks
>>> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] created a
>>> > ThreadLocal with key of type [java.lang.ThreadLocal] (value
>>> > [java.lang.ThreadLocal@3a7d1a7a]) and a value of type
>>> > [com.cloud.utils.db.Transaction] (value [ : ]) but failed to remove i

Re: Error starting management server

2013-04-25 Thread Dharmesh Kakadia
Hi,

I was able to only run management server. Now stuck at step-8. I tried
running it both way (mvn and python).

Traceback (most recent call last):
  File "../marvin/marvin/deployDataCenter.py", line 469, in 
deploy.deploy()
  File "../marvin/marvin/deployDataCenter.py", line 452, in deploy
self.loadCfg()
  File "../marvin/marvin/deployDataCenter.py", line 409, in loadCfg
apiKey, securityKey = self.registerApiKey()
  File "../marvin/marvin/deployDataCenter.py", line 349, in registerApiKey
listuserRes = self.testClient.getApiClient().listUsers(listuser)
  File
"/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackAPI/cloudstackAPIClient.py",
line 436, in listUsers
response = self.connection.marvin_request(command,
response_type=response, method=method)
  File
"/Users/GreatGod/cloudstack/cloudstack/tools/marvin/marvin/cloudstackConnection.py",
line 208, in marvin_request
response = jsonHelper.getResultObj(response.json(), response_type)
  File "/Library/Python/2.7/site-packages/requests/models.py", line 638, in
json
return json.loads(self.text or self.content, **kwargs)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py",
line 326, in loads
return _default_decoder.decode(s)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
line 360, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py",
line 378, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded


I am using python2.7 and have version 2.6 installed on system.

Also, I need help in using the management UI with devcloud. I am newbie and
guessed most of the values, but I am not able to add devcloud host
(192.168.56.10). Any pointers ?

Thanks,
Dharmesh


On Thu, Apr 25, 2013 at 12:36 PM, Dharmesh Kakadia wrote:

> Hi,
>
> Thanks. That was exactly what I was missing. Running now !!
>
> Thanks,
> Dharmesh
>
>
> On Thu, Apr 25, 2013 at 10:34 AM, Prasanna Santhanam wrote:
>
>> On Wed, Apr 24, 2013 at 11:07:38PM +0530, Dharmesh Kakadia wrote:
>> > Hi,
>> >
>> > I am setting up dev environment following :
>> > https://cwiki.apache.org/confluence/display/CLOUDSTACK/DevCloud
>>
>> Dev environment specifics are here:
>>
>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+CloudStack+Development+Environment
>>
>> If you are using master branch for building:
>>
>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on+master+branch
>>
>> You might want to give more memory as shown in the wiki:
>> export MAVEN_OPTS="-XX:MaxPermSize=512m -Xmx2g -Xdebug
>> -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
>>
>> The supported tomcat version is 6.0.33. So you might want to downgrade
>> and setup your CATALINA_HOME to point to the correct tomcat install.
>>
>> --
>> Prasanna.,
>>
>> >
>> > I am stuck on step 7.3 while starting the management server.
>> >
>> > the output of
>> >
>> > mvn -pl :cloud-client-ui jetty:run
>> >
>> > gets stuck after
>> >
>> > INFO  [utils.component.ComponentContext] (main:) Setup Spring
>> Application
>> > context
>> >
>> > I tried starting client-ui manually by copying the cloud-client-ui war
>> file
>> > into tomcat.
>> >
>> > Interestingly the log says
>> >
>> > SEVERE: Error listenerStart
>> > Apr 24, 2013 6:32:38 PM org.apache.catalina.core.StandardContext start
>> > SEVERE: Context [/cloud-client-ui-4.2.0-SNAPSHOT] startup failed due to
>> > previous errors
>> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
>> > clearReferencesThreads
>> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] appears to
>> > have started a thread named [Timer-0] but has failed to stop it. This is
>> > very likely to create a memory leak.
>> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
>> > clearReferencesThreads
>> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] appears to
>> > have started a thread named [ClusteredAgentManager Timer] but has
>> failed to
>> > stop it. This is very likely to create a memory leak.
>> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
>> > checkThreadLocalMapForLeaks
>> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] created a
>> > ThreadLocal with key of type [java.lang.ThreadLocal] (value
>> > [java.lang.ThreadLocal@3a7d1a7a]) and a value of type
>> > [com.cloud.utils.db.Transaction] (value [ : ]) but failed to remove it
>> when
>> > the web application was stopped. This is very likely to create a memory
>> > leak.
>> >
>> > I am running this on Mac OS with tomcat apache-tomcat-6.0.36 and java
>> > 1.6.0_45 and maven 3.0.3.
>> >
>> > Any help ?
>> >
>> > Thanks,
>> > Dharmesh
>>
>>
>> 
>> Powered by BigRock.com
>>
>>
>


Re: Error starting management server

2013-04-25 Thread Dharmesh Kakadia
Hi,

Thanks. That was exactly what I was missing. Running now !!

Thanks,
Dharmesh


On Thu, Apr 25, 2013 at 10:34 AM, Prasanna Santhanam  wrote:

> On Wed, Apr 24, 2013 at 11:07:38PM +0530, Dharmesh Kakadia wrote:
> > Hi,
> >
> > I am setting up dev environment following :
> > https://cwiki.apache.org/confluence/display/CLOUDSTACK/DevCloud
>
> Dev environment specifics are here:
>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+CloudStack+Development+Environment
>
> If you are using master branch for building:
>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on+master+branch
>
> You might want to give more memory as shown in the wiki:
> export MAVEN_OPTS="-XX:MaxPermSize=512m -Xmx2g -Xdebug
> -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
>
> The supported tomcat version is 6.0.33. So you might want to downgrade
> and setup your CATALINA_HOME to point to the correct tomcat install.
>
> --
> Prasanna.,
>
> >
> > I am stuck on step 7.3 while starting the management server.
> >
> > the output of
> >
> > mvn -pl :cloud-client-ui jetty:run
> >
> > gets stuck after
> >
> > INFO  [utils.component.ComponentContext] (main:) Setup Spring Application
> > context
> >
> > I tried starting client-ui manually by copying the cloud-client-ui war
> file
> > into tomcat.
> >
> > Interestingly the log says
> >
> > SEVERE: Error listenerStart
> > Apr 24, 2013 6:32:38 PM org.apache.catalina.core.StandardContext start
> > SEVERE: Context [/cloud-client-ui-4.2.0-SNAPSHOT] startup failed due to
> > previous errors
> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
> > clearReferencesThreads
> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] appears to
> > have started a thread named [Timer-0] but has failed to stop it. This is
> > very likely to create a memory leak.
> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
> > clearReferencesThreads
> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] appears to
> > have started a thread named [ClusteredAgentManager Timer] but has failed
> to
> > stop it. This is very likely to create a memory leak.
> > Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
> > checkThreadLocalMapForLeaks
> > SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] created a
> > ThreadLocal with key of type [java.lang.ThreadLocal] (value
> > [java.lang.ThreadLocal@3a7d1a7a]) and a value of type
> > [com.cloud.utils.db.Transaction] (value [ : ]) but failed to remove it
> when
> > the web application was stopped. This is very likely to create a memory
> > leak.
> >
> > I am running this on Mac OS with tomcat apache-tomcat-6.0.36 and java
> > 1.6.0_45 and maven 3.0.3.
> >
> > Any help ?
> >
> > Thanks,
> > Dharmesh
>
>
> 
> Powered by BigRock.com
>
>


Re: Error starting management server

2013-04-24 Thread Prasanna Santhanam
On Wed, Apr 24, 2013 at 11:07:38PM +0530, Dharmesh Kakadia wrote:
> Hi,
> 
> I am setting up dev environment following :
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/DevCloud

Dev environment specifics are here:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Setting+up+CloudStack+Development+Environment

If you are using master branch for building:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+on+master+branch

You might want to give more memory as shown in the wiki:
export MAVEN_OPTS="-XX:MaxPermSize=512m -Xmx2g -Xdebug
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"

The supported tomcat version is 6.0.33. So you might want to downgrade
and setup your CATALINA_HOME to point to the correct tomcat install.

-- 
Prasanna.,

> 
> I am stuck on step 7.3 while starting the management server.
> 
> the output of
> 
> mvn -pl :cloud-client-ui jetty:run
> 
> gets stuck after
> 
> INFO  [utils.component.ComponentContext] (main:) Setup Spring Application
> context
> 
> I tried starting client-ui manually by copying the cloud-client-ui war file
> into tomcat.
> 
> Interestingly the log says
> 
> SEVERE: Error listenerStart
> Apr 24, 2013 6:32:38 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/cloud-client-ui-4.2.0-SNAPSHOT] startup failed due to
> previous errors
> Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] appears to
> have started a thread named [Timer-0] but has failed to stop it. This is
> very likely to create a memory leak.
> Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] appears to
> have started a thread named [ClusteredAgentManager Timer] but has failed to
> stop it. This is very likely to create a memory leak.
> Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] created a
> ThreadLocal with key of type [java.lang.ThreadLocal] (value
> [java.lang.ThreadLocal@3a7d1a7a]) and a value of type
> [com.cloud.utils.db.Transaction] (value [ : ]) but failed to remove it when
> the web application was stopped. This is very likely to create a memory
> leak.
> 
> I am running this on Mac OS with tomcat apache-tomcat-6.0.36 and java
> 1.6.0_45 and maven 3.0.3.
> 
> Any help ?
> 
> Thanks,
> Dharmesh



Powered by BigRock.com



Error starting management server

2013-04-24 Thread Dharmesh Kakadia
Hi,

I am setting up dev environment following :
https://cwiki.apache.org/confluence/display/CLOUDSTACK/DevCloud

I am stuck on step 7.3 while starting the management server.

the output of

mvn -pl :cloud-client-ui jetty:run

gets stuck after

INFO  [utils.component.ComponentContext] (main:) Setup Spring Application
context

I tried starting client-ui manually by copying the cloud-client-ui war file
into tomcat.

Interestingly the log says

SEVERE: Error listenerStart
Apr 24, 2013 6:32:38 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/cloud-client-ui-4.2.0-SNAPSHOT] startup failed due to
previous errors
Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] appears to
have started a thread named [Timer-0] but has failed to stop it. This is
very likely to create a memory leak.
Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] appears to
have started a thread named [ClusteredAgentManager Timer] but has failed to
stop it. This is very likely to create a memory leak.
Apr 24, 2013 6:32:38 PM org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks
SEVERE: The web application [/cloud-client-ui-4.2.0-SNAPSHOT] created a
ThreadLocal with key of type [java.lang.ThreadLocal] (value
[java.lang.ThreadLocal@3a7d1a7a]) and a value of type
[com.cloud.utils.db.Transaction] (value [ : ]) but failed to remove it when
the web application was stopped. This is very likely to create a memory
leak.

I am running this on Mac OS with tomcat apache-tomcat-6.0.36 and java
1.6.0_45 and maven 3.0.3.

Any help ?

Thanks,
Dharmesh