cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "manasaveloori (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-7116) unable to add KVM host to MS with error java.lang.UnsupportedClassVersionError: com/cloud/agent/AgentShell : Unsupported major.minor version 51.0
Date Thu, 17 Jul 2014 11:47:05 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-7116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14064845#comment-14064845
] 

manasaveloori commented on CLOUDSTACK-7116:
-------------------------------------------

duplicate of CLOUDSTACK-6417 

> unable to add KVM host to MS with error java.lang.UnsupportedClassVersionError: com/cloud/agent/AgentShell
: Unsupported major.minor version 51.0
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7116
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7116
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: KVM
>    Affects Versions: 4.5.0
>            Reporter: shweta agarwal
>            Priority: Blocker
>             Fix For: 4.5.0
>
>         Attachments: cloudstack-agent.err, management-server.log.tar.gz
>
>
> Repro steps:
> 1. Create a KVM host on rhel 6.3
> As I used following build http://repo-ccp.citrix.com/releases/ASF/rhel/6.3/master/CloudPlatform-4.5.0-57-rhel6.3.tar.gz
> so i need to install jsvc outside of cloudstack for which I have done the following step:
> yum install java-gcj-compat
> rpm -Uvh ftp://rpmfind.net/linux/centos/6.5/os/x86_64/Packages/jakarta-commons-daemon-jsvc-1.0.1-8.9.el6.x86_64.rpm
> and then I installed agent
> Once agent installation is complete I tried to add this KVM host to MS
> and host addition failed with MS logs showing
> 2014-07-16 06:09:19,082 DEBUG [c.c.h.k.d.LibvirtServerDiscoverer] (catalina-exec-7:ctx-ec9fe1d8
ctx-949d2702) Timeout, to wait for the host connecting to mgt svr, assuming it is failed
> 2014-07-16 06:09:19,083 WARN  [c.c.r.ResourceManagerImpl] (catalina-exec-7:ctx-ec9fe1d8
ctx-949d2702) Unable to find the server resources at http://10.147.40.23
> 2014-07-16 06:09:19,084 INFO  [c.c.u.e.CSExceptionErrorCode] (catalina-exec-7:ctx-ec9fe1d8
ctx-949d2702) Could not find exception: com.cloud.exception.DiscoveryException in error code
list for exceptions
> 2014-07-16 06:09:19,084 WARN  [o.a.c.a.c.a.h.AddHostCmd] (catalina-exec-7:ctx-ec9fe1d8
ctx-949d2702) Exception:
> com.cloud.exception.DiscoveryException: Unable to add the host
>         at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:791)
>         at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:586)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:601)
>         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
>         at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
>         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
>         at $Proxy148.discoverHosts(Unknown Source)
>         at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:142)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
>         at com.cloud.api.ApiServer.queueCommand(ApiServer.java:694)
>         at com.cloud.api.ApiServer.handleRequest(ApiServer.java:517)
>         at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:317)
>         at com.cloud.api.ApiServlet$1.run(ApiServlet.java:118)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>         at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:115)
>         at com.cloud.api.ApiServlet.doPost(ApiServlet.java:82)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>         at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
>         at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
>         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268)
>         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:722)
> 2014-07-16 06:09:19,085 INFO  [c.c.a.ApiServer] (catalina-exec-7:ctx-ec9fe1d8 ctx-949d2702)
Unable to add the host
> 2014-07-16 06:09:19,086 DEBUG [c.c.a.ApiServlet] (catalina-exec-7:ctx-ec9fe1d8 ctx-949d2702)
===END===  10.146.0.131 -- POST  command=addHost&response=json&sessionkey=Q6u8rwFKnqRnaawN%2BAq1B%2Bw5770%3D
> 2014-07-16 06:09:22,584 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-16814d09)
Resetting hosts suitable for reconnect
> 2014-07-16 06:09:22,586 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-16814d09)
Completed resetting hosts suitable for reconnect
> 2014-07-16 06:09:22,586 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-16814d09)
Acquiring hosts for clusters already owned by this management server
> 2014-07-16 06:09:22,586 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-16814d09)
Completed acquiring hosts for clusters already owned by this management server
> 2014-07-16 06:09:22,586 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-16814d09)
Acquiring hosts for clusters not owned by any management server
> 2014-07-16 06:09:22,586 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-16814d09)
Completed acquiring hosts for clusters not owned by any management server
> 2014-07-16 06:09:24,098 DEBUG [c.c.a.t.Request] (AgentManager-Handler-3:null) Seq 0-512:
Scheduling the first command  { Cmd , MgmtId: -1, via: 0, Ver: v1, Flags: 101, [{"com.cloud.agent.api.StartupProxyCommand":{"proxyPort":80,"proxyVmId":2,"type":"ConsoleProxy","dataCenter":"1","pod":"1","guid":"Proxy.2-ConsoleProxyResource","name":"v-2-VM","id":0,"version":"4.5.0-SNAPSHOT","iqn":"NoIqn","publicIpAddress":"10.147.51
> Agent logs shows
> java.lang.UnsupportedClassVersionError: com/cloud/agent/AgentShell : Unsupported major.minor
version 51.0
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
>         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
>         at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
>         at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:107)
> 16/07/2014 10:04:18 3545 jsvc.exec error: Cannot load daemon
> 16/07/2014 10:04:18 3544 jsvc.exec error: Service exit with a return value of 3
> ~
> attaching Ms logs and agent logs



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message