You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Soheil Eizadi <se...@infoblox.com> on 2014/04/08 01:39:02 UTC

Problem with VMware CloudStack SSVM Agent

I am trying to bring up CloudStack 4.4 on vSphere 5.1, I cannot get the Agent to run on SSVM, here is the error:

.... =templateProcessor mtu=1500 eth2ip=10.48.15.100 eth2mask=255.255.255.0 gateway=10.48.15.1 public.network.device=eth2 eth0mask=0.0.0.0 eth0ip=0.0.0.0 eth1ip=10.48.15.49 eth1mask=255.255.255.0 mgmtcidr=10.48.15.0/24 localgw=10.48.15.1 private.network.device=eth1 eth3ip=10.48.15.33 eth3mask=255.255.255.0 storageip=10.48.15.33 storagenetmask=255.255.255.0 storagegateway=10.48.15.1 internaldns1=10.48.2.11 internaldns2= dns1=10.48.2.11 dns2=

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/cloud/agent/AgentShell : Unsupported major.minor version 51.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)

at java.lang.ClassLoader.defineClass(ClassLoader.java:615)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Could not find the main class: com.cloud.agent.AgentShell.  Program will exit.



Here is the SSVM diags:

root@s-22-VM:/var/log/cloud# /usr/local/cloud/systemvm/ssvm-check.sh

================================================

First DNS server is  10.48.2.11

PING 10.48.2.11 (10.48.2.11): 56 data bytes

64 bytes from 10.48.2.11: icmp_seq=0 ttl=63 time=1.423 ms

64 bytes from 10.48.2.11: icmp_seq=1 ttl=63 time=0.338 ms

--- 10.48.2.11 ping statistics ---

2 packets transmitted, 2 packets received, 0% packet loss

round-trip min/avg/max/stddev = 0.338/0.881/1.423/0.543 ms

Good: Can ping DNS server

================================================

Good: DNS resolves download.cloud.com

================================================

ERROR: NFS is not currently mounted

Try manually mounting from inside the VM

NFS server is  eth2

ping: unknown host

WARNING: cannot ping nfs server

routing table follows

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

10.48.15.0      0.0.0.0         255.255.255.0   U     0      0        0 eth1

10.48.15.0      0.0.0.0         255.255.255.0   U     0      0        0 eth2

10.48.15.0      0.0.0.0         255.255.255.0   U     0      0        0 eth3

0.0.0.0         10.48.15.1      0.0.0.0         UG    0      0        0 eth2

================================================

Management server is 10.48.15.10. Checking connectivity.

Good: Can connect to management server port 8250

================================================

ERROR: Java process not running.  Try restarting the SSVM.

RE: Problem with VMware CloudStack SSVM Agent

Posted by Soheil Eizadi <se...@infoblox.com>.
I made sure that I was using the latest systemVM Template. Still have Java problem. I seem to remember trying to run the latest Mgmt Server and it required Java 7 so I updated the Mgmt Server to Java 7.

%  ./client/target/generated-webapp/WEB-INF/classes/scripts/storage/secondary/cloud-install-sys-tmplt -m /mnt/sec -u http://jenkins.buildacloud.org/job/build-systemvm64-master/lastSuccessfulBuild/artifact/tools/appliance/dist/systemvm64template-master-vmware.ova -h vmware -F
________________________________________
From: Soheil Eizadi [seizadi@infoblox.com]
Sent: Tuesday, April 08, 2014 6:39 AM
To: dev@cloudstack.apache.org
Subject: RE: Problem with VMware CloudStack SSVM Agent

Yes it is Java 6 running on SSVM, is there a newer version of systemvm template I should load?

It might be a second order effect, but the SSVM runs out of disk space (100%) and when I reboot it whatever is consuming disk space (maybe Java?) is cleared to 50%.
-Soheil

root@s-22-VM:~# java -version
Java HotSpot(TM) Client VM warning: Insufficient space for shared memory file:
   /tmp/hsperfdata_root/29147
Try using the -Djava.io.tmpdir= option to select an alternate temp location.

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode)
root@s-22-VM:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1              2015820   2015820         0 100% /
tmpfs                   256216         0    256216   0% /lib/init/rw
udev                    251676        64    251612   1% /dev
tmpfs                   256216         0    256216   0% /dev/shm

________________________________________
From: Erik Weber [terbolous@gmail.com]
Sent: Monday, April 07, 2014 11:44 PM
To: dev
Subject: Re: Problem with VMware CloudStack SSVM Agent

Could you check wich java version it has installed?
>From the error message I'd interpret it as it's trying to run java7 code on
java6 jre.

--
Erik Weber


On Tue, Apr 8, 2014 at 1:39 AM, Soheil Eizadi <se...@infoblox.com> wrote:

> I am trying to bring up CloudStack 4.4 on vSphere 5.1, I cannot get the
> Agent to run on SSVM, here is the error:
>
> .... =templateProcessor mtu=1500 eth2ip=10.48.15.100
> eth2mask=255.255.255.0 gateway=10.48.15.1 public.network.device=eth2
> eth0mask=0.0.0.0 eth0ip=0.0.0.0 eth1ip=10.48.15.49 eth1mask=255.255.255.0
> mgmtcidr=10.48.15.0/24 localgw=10.48.15.1 private.network.device=eth1
> eth3ip=10.48.15.33 eth3mask=255.255.255.0 storageip=10.48.15.33
> storagenetmask=255.255.255.0 storagegateway=10.48.15.1
> internaldns1=10.48.2.11 internaldns2= dns1=10.48.2.11 dns2=
>
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> com/cloud/agent/AgentShell : Unsupported major.minor version 51.0
>
> at java.lang.ClassLoader.defineClass1(Native Method)
>
> at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>
> at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>
> at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>
> Could not find the main class: com.cloud.agent.AgentShell.  Program will
> exit.
>
>
>
> Here is the SSVM diags:
>
> root@s-22-VM:/var/log/cloud# /usr/local/cloud/systemvm/ssvm-check.sh
>
> ================================================
>
> First DNS server is  10.48.2.11
>
> PING 10.48.2.11 (10.48.2.11): 56 data bytes
>
> 64 bytes from 10.48.2.11: icmp_seq=0 ttl=63 time=1.423 ms
>
> 64 bytes from 10.48.2.11: icmp_seq=1 ttl=63 time=0.338 ms
>
> --- 10.48.2.11 ping statistics ---
>
> 2 packets transmitted, 2 packets received, 0% packet loss
>
> round-trip min/avg/max/stddev = 0.338/0.881/1.423/0.543 ms
>
> Good: Can ping DNS server
>
> ================================================
>
> Good: DNS resolves download.cloud.com
>
> ================================================
>
> ERROR: NFS is not currently mounted
>
> Try manually mounting from inside the VM
>
> NFS server is  eth2
>
> ping: unknown host
>
> WARNING: cannot ping nfs server
>
> routing table follows
>
> Kernel IP routing table
>
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
>
> 10.48.15.0      0.0.0.0         255.255.255.0   U     0      0        0
> eth1
>
> 10.48.15.0      0.0.0.0         255.255.255.0   U     0      0        0
> eth2
>
> 10.48.15.0      0.0.0.0         255.255.255.0   U     0      0        0
> eth3
>
> 0.0.0.0         10.48.15.1      0.0.0.0         UG    0      0        0
> eth2
>
> ================================================
>
> Management server is 10.48.15.10. Checking connectivity.
>
> Good: Can connect to management server port 8250
>
> ================================================
>
> ERROR: Java process not running.  Try restarting the SSVM.
>

RE: Problem with VMware CloudStack SSVM Agent

Posted by Soheil Eizadi <se...@infoblox.com>.
Yes it is Java 6 running on SSVM, is there a newer version of systemvm template I should load?

It might be a second order effect, but the SSVM runs out of disk space (100%) and when I reboot it whatever is consuming disk space (maybe Java?) is cleared to 50%.
-Soheil

root@s-22-VM:~# java -version
Java HotSpot(TM) Client VM warning: Insufficient space for shared memory file:
   /tmp/hsperfdata_root/29147
Try using the -Djava.io.tmpdir= option to select an alternate temp location.

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode)
root@s-22-VM:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1              2015820   2015820         0 100% /
tmpfs                   256216         0    256216   0% /lib/init/rw
udev                    251676        64    251612   1% /dev
tmpfs                   256216         0    256216   0% /dev/shm

________________________________________
From: Erik Weber [terbolous@gmail.com]
Sent: Monday, April 07, 2014 11:44 PM
To: dev
Subject: Re: Problem with VMware CloudStack SSVM Agent

Could you check wich java version it has installed?
>From the error message I'd interpret it as it's trying to run java7 code on
java6 jre.

--
Erik Weber


On Tue, Apr 8, 2014 at 1:39 AM, Soheil Eizadi <se...@infoblox.com> wrote:

> I am trying to bring up CloudStack 4.4 on vSphere 5.1, I cannot get the
> Agent to run on SSVM, here is the error:
>
> .... =templateProcessor mtu=1500 eth2ip=10.48.15.100
> eth2mask=255.255.255.0 gateway=10.48.15.1 public.network.device=eth2
> eth0mask=0.0.0.0 eth0ip=0.0.0.0 eth1ip=10.48.15.49 eth1mask=255.255.255.0
> mgmtcidr=10.48.15.0/24 localgw=10.48.15.1 private.network.device=eth1
> eth3ip=10.48.15.33 eth3mask=255.255.255.0 storageip=10.48.15.33
> storagenetmask=255.255.255.0 storagegateway=10.48.15.1
> internaldns1=10.48.2.11 internaldns2= dns1=10.48.2.11 dns2=
>
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> com/cloud/agent/AgentShell : Unsupported major.minor version 51.0
>
> at java.lang.ClassLoader.defineClass1(Native Method)
>
> at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>
> at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>
> at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>
> Could not find the main class: com.cloud.agent.AgentShell.  Program will
> exit.
>
>
>
> Here is the SSVM diags:
>
> root@s-22-VM:/var/log/cloud# /usr/local/cloud/systemvm/ssvm-check.sh
>
> ================================================
>
> First DNS server is  10.48.2.11
>
> PING 10.48.2.11 (10.48.2.11): 56 data bytes
>
> 64 bytes from 10.48.2.11: icmp_seq=0 ttl=63 time=1.423 ms
>
> 64 bytes from 10.48.2.11: icmp_seq=1 ttl=63 time=0.338 ms
>
> --- 10.48.2.11 ping statistics ---
>
> 2 packets transmitted, 2 packets received, 0% packet loss
>
> round-trip min/avg/max/stddev = 0.338/0.881/1.423/0.543 ms
>
> Good: Can ping DNS server
>
> ================================================
>
> Good: DNS resolves download.cloud.com
>
> ================================================
>
> ERROR: NFS is not currently mounted
>
> Try manually mounting from inside the VM
>
> NFS server is  eth2
>
> ping: unknown host
>
> WARNING: cannot ping nfs server
>
> routing table follows
>
> Kernel IP routing table
>
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
>
> 10.48.15.0      0.0.0.0         255.255.255.0   U     0      0        0
> eth1
>
> 10.48.15.0      0.0.0.0         255.255.255.0   U     0      0        0
> eth2
>
> 10.48.15.0      0.0.0.0         255.255.255.0   U     0      0        0
> eth3
>
> 0.0.0.0         10.48.15.1      0.0.0.0         UG    0      0        0
> eth2
>
> ================================================
>
> Management server is 10.48.15.10. Checking connectivity.
>
> Good: Can connect to management server port 8250
>
> ================================================
>
> ERROR: Java process not running.  Try restarting the SSVM.
>

Re: Problem with VMware CloudStack SSVM Agent

Posted by Erik Weber <te...@gmail.com>.
Could you check wich java version it has installed?
>From the error message I'd interpret it as it's trying to run java7 code on
java6 jre.

-- 
Erik Weber


On Tue, Apr 8, 2014 at 1:39 AM, Soheil Eizadi <se...@infoblox.com> wrote:

> I am trying to bring up CloudStack 4.4 on vSphere 5.1, I cannot get the
> Agent to run on SSVM, here is the error:
>
> .... =templateProcessor mtu=1500 eth2ip=10.48.15.100
> eth2mask=255.255.255.0 gateway=10.48.15.1 public.network.device=eth2
> eth0mask=0.0.0.0 eth0ip=0.0.0.0 eth1ip=10.48.15.49 eth1mask=255.255.255.0
> mgmtcidr=10.48.15.0/24 localgw=10.48.15.1 private.network.device=eth1
> eth3ip=10.48.15.33 eth3mask=255.255.255.0 storageip=10.48.15.33
> storagenetmask=255.255.255.0 storagegateway=10.48.15.1
> internaldns1=10.48.2.11 internaldns2= dns1=10.48.2.11 dns2=
>
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> com/cloud/agent/AgentShell : Unsupported major.minor version 51.0
>
> at java.lang.ClassLoader.defineClass1(Native Method)
>
> at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>
> at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>
> at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>
> Could not find the main class: com.cloud.agent.AgentShell.  Program will
> exit.
>
>
>
> Here is the SSVM diags:
>
> root@s-22-VM:/var/log/cloud# /usr/local/cloud/systemvm/ssvm-check.sh
>
> ================================================
>
> First DNS server is  10.48.2.11
>
> PING 10.48.2.11 (10.48.2.11): 56 data bytes
>
> 64 bytes from 10.48.2.11: icmp_seq=0 ttl=63 time=1.423 ms
>
> 64 bytes from 10.48.2.11: icmp_seq=1 ttl=63 time=0.338 ms
>
> --- 10.48.2.11 ping statistics ---
>
> 2 packets transmitted, 2 packets received, 0% packet loss
>
> round-trip min/avg/max/stddev = 0.338/0.881/1.423/0.543 ms
>
> Good: Can ping DNS server
>
> ================================================
>
> Good: DNS resolves download.cloud.com
>
> ================================================
>
> ERROR: NFS is not currently mounted
>
> Try manually mounting from inside the VM
>
> NFS server is  eth2
>
> ping: unknown host
>
> WARNING: cannot ping nfs server
>
> routing table follows
>
> Kernel IP routing table
>
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
>
> 10.48.15.0      0.0.0.0         255.255.255.0   U     0      0        0
> eth1
>
> 10.48.15.0      0.0.0.0         255.255.255.0   U     0      0        0
> eth2
>
> 10.48.15.0      0.0.0.0         255.255.255.0   U     0      0        0
> eth3
>
> 0.0.0.0         10.48.15.1      0.0.0.0         UG    0      0        0
> eth2
>
> ================================================
>
> Management server is 10.48.15.10. Checking connectivity.
>
> Good: Can connect to management server port 8250
>
> ================================================
>
> ERROR: Java process not running.  Try restarting the SSVM.
>