[one-users] one_im_vmware - java error
Tino Vazquez
tinova at fdi.ucm.es
Fri Oct 16 02:44:05 PDT 2009
Hi Frank,
First of all, thanks for the level of detail in your email, it's much
easier to spot the problem this way.
The problem may be related with the high amount of RAM in your
physical machine. There is a fix that changes the Integer that holds
the amount of RAM for a Long, it is in the trunk, revision 768 [1].
Please update and let me know if the problem goes away, otherwise
we'll try something else.
Best regards,
-Tino
[1] http://redmine.opennebula.org/projects/opennebula/repository/revisions/768
--
Constantino Vázquez, Grid Technology Engineer/Researcher:
http://www.dsa-research.org/tinova
DSA Research Group: http://dsa-research.org
Globus GridWay Metascheduler: http://www.GridWay.org
OpenNebula Virtual Infrastructure Engine: http://www.OpenNebula.org
On Fri, Oct 16, 2009 at 6:08 AM, Macha, Frank
<frank.macha at atosorigin.com> wrote:
> 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/local/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/axis-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/apputils.jar:/usr/local/visdk//samples/Axis/java/credstore.jar:/usr/local/visdk//samples/Axis/java/samples.jar:/usr/local/visdk//samples/Axis/java/vim25.jar:/usr/local/visdk//samples/Axis/java/vim.jar:/usr/local/visdk//samples/Axis/java/lib/activation.jar:/usr/local/visdk//samples/Axis/java/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/lib/saxpath.jar:/usr/local/visdk//samples/Axis/java/lib/smtp.jar:/usr/local/visdk//samples/Axis/java/lib/wbem.jar:/usr/local/visdk//samples/Axis/java/lib/xalan.jar:/usr/local/visdk//samples/Axis/java/lib/xerces.jar:/usr/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.java: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
>
> www.atosorigin.com
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
More information about the Users
mailing list