[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
[ https://issues.apache.org/jira/browse/CLOUDSTACK-7116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14082932#comment-14082932 ] Erik Weber commented on CLOUDSTACK-7116: Did you remove java 1.6 as well, as that might still be the default if you have both? > 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 >Assignee: Kishan Kavala >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.ApplicationFilterC
[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
[ https://issues.apache.org/jira/browse/CLOUDSTACK-7116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14072928#comment-14072928 ] Kishan Kavala commented on CLOUDSTACK-7116: --- Agent requires java7. Unsupported major minor exception is seen when lower version of java is installed. > 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 >Assignee: Kishan Kavala >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.catalin
[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
[ 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.catali