[one-users] one_im_vmware - java error
Macha, Frank
frank.macha at atosorigin.com
Thu Oct 15 21:08:16 PDT 2009
Greetings...
Have downloaded one-1.3.8 to integrate w/ our environment. Am attempting
to connect two a couple of ESX (v4.0 and v3.5) systems and am getting
the following error (while running one_im_vmware manually):
$ ./one_im_vmware --username abc --password xxx --ignorecert
+ DRIVER_NAME=im_vmware
+ '[' -z /srv/cloud/one ']'
+ DRIVERRC=/srv/cloud/one/etc/im_vmware/im_vmwarerc
+ MADCOMMON=/srv/cloud/one/lib/mads/madcommon.sh
+ . /srv/cloud/one/lib/mads/madcommon.sh
++ '[' -z /srv/cloud/one ']'
++ DEFAULTRC=/srv/cloud/one/etc/defaultrc
++ export_rc_vars /srv/cloud/one/etc/defaultrc
++ '[' -f /srv/cloud/one/etc/defaultrc ']'
+++ cat /srv/cloud/one/etc/defaultrc
+++ egrep -e '^[a-zA-Z\-\_0-9]*='
+++ sed 's/=.*$//'
++ ONE_VARS='ONE_MAD_DEBUG PRIORITY'
++ . /srv/cloud/one/etc/defaultrc
+++ ONE_MAD_DEBUG=
+++ PRIORITY=19
++ for v in '$ONE_VARS'
++ export ONE_MAD_DEBUG
++ for v in '$ONE_VARS'
++ export PRIORITY
++ '[' -z 19 ']'
+ export_rc_vars /srv/cloud/one/etc/im_vmware/im_vmwarerc
+ '[' -f /srv/cloud/one/etc/im_vmware/im_vmwarerc ']'
++ cat /srv/cloud/one/etc/im_vmware/im_vmwarerc
++ egrep -e '^[a-zA-Z\-\_0-9]*='
++ sed 's/=.*$//'
+ ONE_VARS='VMWARE_TRUSTORE ONE_MAD_DEBUG'
+ . /srv/cloud/one/etc/im_vmware/im_vmwarerc
++ VMWARE_TRUSTORE=/srv/cloud/one/vmware-cert/vmware.keystore
++ ONE_MAD_DEBUG=1
+ for v in '$ONE_VARS'
+ export VMWARE_TRUSTORE
+ for v in '$ONE_VARS'
+ export ONE_MAD_DEBUG
+ LOG_FILE=im_vmware
+ MAD_FILE=OneImVmware
+ '[' -z /srv/cloud/one ']'
+ MAD_LOG_PATH=/srv/cloud/one/var/im_vmware.log
+ '[' -n 1 ']'
+ exec nice -n 19 java -cp
/srv/cloud/one/lib/mads::/usr/local/axis-1_4//lib/axis-ant.jar:/usr/loca
l/axis-1_4//lib/axis.jar:/usr/local/axis-1_4//lib/commons-discovery-0.2.
jar:/usr/local/axis-1_4//lib/commons-logging-1.0.4.jar:/usr/local/axis-1
_4//lib/jaxrpc.jar:/usr/local/axis-1_4//lib/log4j-1.2.8.jar:/usr/local/a
xis-1_4//lib/saaj.jar:/usr/local/axis-1_4//lib/wsdl4j-1.5.1.jar:/usr/lib
/jvm/java-1.5.0-sun//lib/tools.jar:/usr/local/visdk//samples/Axis/java/a
pputils.jar:/usr/local/visdk//samples/Axis/java/credstore.jar:/usr/local
/visdk//samples/Axis/java/samples.jar:/usr/local/visdk//samples/Axis/jav
a/vim25.jar:/usr/local/visdk//samples/Axis/java/vim.jar:/usr/local/visdk
//samples/Axis/java/lib/activation.jar:/usr/local/visdk//samples/Axis/ja
va/lib/jaxen-core.jar:/usr/local/visdk//samples/Axis/java/lib/jaxen-jdom
.jar:/usr/local/visdk//samples/Axis/java/lib/jdom.jar:/usr/local/visdk//
samples/Axis/java/lib/mailapi.jar:/usr/local/visdk//samples/Axis/java/li
b/saxpath.jar:/usr/local/visdk//samples/Axis/java/lib/smtp.jar:/usr/loca
l/visdk//samples/Axis/java/lib/wbem.jar:/usr/local/visdk//samples/Axis/j
ava/lib/xalan.jar:/usr/local/visdk//samples/Axis/java/lib/xerces.jar:/us
r/local/visdk//samples/Axis/java/lib/xml-apis.jar -Ddebug=1
-Djavax.net.ssl.trustStorepassword=xyz
-Djavax.net.ssl.trustStore=/srv/cloud/one/vmware-cert/vmware.keystore
-Xmx1024M OneImVmware --username root --password xxx --ignorecert
INIT
INIT SUCCESS
MONITOR 0 erpesx90.localdomain
Started
Ended GetProperty
Failed monitoring host erpesx90.localdomain
java.lang.NumberFormatException: For input string: "68713914368"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.jav
a:48)
at java.lang.Integer.parseInt(Integer.java:459)
at java.lang.Integer.parseInt(Integer.java:497)
at OneImVmware.loop(OneImVmware.java:159)
at OneImVmware.main(OneImVmware.java:60)
MONITOR FAILURE 0 Failed monitoring host erpesx90.localdomain.
finalize
FINALIZE SUCCESS
One quick note:
. I used the -ignorecert as I'm getting SSL handshake problems; I've
tried hostname and fqdn, but neither solves that issue. The ignorecert
is a temp. workaround. Have found discussions about the need for
FQDN/etc, and will chase that one down soon.
The crash above is happening when acquiring the memory from the ESX
hosts, at this point (OneImVmware.java, line159):
int totalMemory =
Integer.parseInt(gP.getObjectProperty("hard
ware.memorySize").toString().trim());
The other box is a 32GB system and is showing the same error.
Have both a 32bit and 64bit server where Nebula is installed and both
are giving the same error message.
My java is rather rusty, but is this converting from string to integer,
or vice-versa? A quick look at the GetObjectProperty seems to indicate
that getObjectProperty is returning a string. May make sense, but it's
strange that I'm getting this errors but haven't seem something like
this in the archives.
Thoughts?
Thanks in advance,
_____
Eloy F. 'Frank' Macha
ERP Technology Services
AtosOrigin, Inc.
6504 International Parkway, Ste 1050
Plano, TX 75093
Office: +1 469-533-6525
Cell: +1 972 814 4979
Fax: +1 469-533-6502
email: frank.macha at atosorigin.com <mailto:frank.macha at atosorigin.com>
www.atosorigin.com <http://www.atosorigin.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20091015/e1859145/attachment.htm>
More information about the Users
mailing list