VMWare Internal Error

Hi,
I have installed UCMDB10.01 on Windows Platform.
I was trying to discover the VMware Topology through the VCener Server using the Discovery Job "VMware VCenter Connection by VIM".
I have already uploaded the vim25.jar file on the probe path "\<..>\probemanager\discoverResources\vmware"and restarted the probe as well.
Also, i have checked the credentials using the URL given by the VMware team manually, it is working without any issue.
But from UCMDB Discovery when i run this job, it gives the below error

<log start="04:45:31" severity="debug">AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (400)Bad Request
faultActor:
faultNode:
faultDetail:
{}:return code: 400

{http://xml.apache.org/axis/}HttpErrorCode:400
</log>
<log start="04:45:32" severity="debug">VMware VIM: Internal error. Details: (400)Bad Request</log>

Can anyone please help on resolving this issue

Regards
Ashok

  • Could you please provide communication log with results from the problematic run?

  • I've verified comm log provided with support case you raised.

    The comm log showing that you choose to connect with SSL.

    The problem most probably related to SLL and certificates.

     

    Please check the chapter in CP documentation below related to SSL and be sure you imported all server sertificates.

     

    SSL Support
    Web services use http transport which can also be transferred over SSL. The VMware
    Infrastructure Management (VIM) protocol uses SSL by default, but it is possible to configure it
    without SSL usage.
    Each server supporting the VIM protocol (vCenter server or ESX server) has its own SSL
    certificated. When connecting over SSL you should verify this certificate and accept it:
    -Import all certificates from the server into a truststore and verify upon each connection while
    rejecting those that are not present in the set of trusted certificates (this is the secure method).
    -Accept all certificates without verification (this is a less secure method).
    Currently, DFM supports only one strategy (accept all certificates always).

  • Hi Dima

     Itried with the mentioned URL          

    https://<Ipaddress>:9443/sdk  doesnt work and it gives an Error "HTTP 400 Bad Request" from Probe.         

     Actually, the VMware Team has given a URL to access the VSphere as follows and that is working when i tried manually, but not sure how to configure that from UCMDB Application end.

    https://hostname:9443/vsphere-client      

       Regards  Ashok

  • Hi,

    From the VMware Team came to know that they mention not to include the port number in the VIM Protocol.  Now, with this I was able to discover the VMware Virtual Center. But when I ran the next discovery Job "VMware vCenter Topology by VIM", the discovery job failed with the error as

    << Progress message, Severity: Error>> VMware VIM: Internal error. Details: Traceback (most recent call last): File "vmware_vim", line 530, in onConnection File "vmware_virtualcenter_topology_by_vim", line 44, in discoverVcenterTopology File "_vmware_vim_base", line 1387, in discover File "_vmware_vim_base", line 1248, in _discoverDatacenters File "_vmware_vim_40", line 484, in _discoverDatacenter File "_vmware_vim_base", line 1265, in _discoverDatacenter File "_vmware_vim_base", line 1297, in _discoverComputeResource File "_vmware_vim_base", line 1058, in getHostsInComputeResource File "_vmware_vim_base", line 858, in map File "_vmware_vim_base", line 835, in map File "_vmware_vim_40", line 251, in handleProxySwitches TypeError: 'NoneType' object is not iterable

     

    Please let me know, what is the reason for this error ?

  • This is a known issue described in http://support.openview.hp.com/selfsolve/document/FID/DOCUMENTUM_QCCR1H81993.

    The solution will come in next CP.

     

    To fix it in line 1366 in _vmware_vim_base.py please add "hostIp = None" as following :

                if hostName:
                    hostIp = None
                    if domainName:
                        fullHostName = ".".join([hostName, domainName])
                        hostIp = netutils.getHostAddress(fullHostName)
                   
                    if not hostIp:
                        hostIp = netutils.getHostAddress(hostName)
                   
                    if hostIp:
                        host._ip = hostIp

     

    Hope this helps.

  • Hi Dima,

     

    Thanks for thiis information. I will try this fix and let you know, if this works

     

    Regards

    Ashok

  • Hi Dima,

    I have added the line you have mentioned in the script and restarted the UCMDB Service as well as probe service, after that when i ran the Discovery Job am still receiving the same error as follow:

    Please let me know, if i need to do something else

     

    << Progress message, Severity: Error>>
    VMware VIM: Internal error. Details:
    Traceback (most recent call last):
      File "vmware_vim", line 530, in onConnection
      File "vmware_virtualcenter_topology_by_vim", line 44, in discoverVcenterTopology
      File "_vmware_vim_base", line 1388, in discover
      File "_vmware_vim_base", line 1248, in _discoverDatacenters
      File "_vmware_vim_40", line 484, in _discoverDatacenter
      File "_vmware_vim_base", line 1265, in _discoverDatacenter
      File "_vmware_vim_base", line 1297, in _discoverComputeResource
      File "_vmware_vim_base", line 1058, in getHostsInComputeResource
      File "_vmware_vim_base", line 858, in map
      File "_vmware_vim_base", line 835, in map
      File "_vmware_vim_40", line 251, in handleProxySwitches
    TypeError: 'NoneType' object is not iterable


     Am attaching the Log in my same case, where you have responded already

  • Hi Dima,

    I have added the line you have mentioned in the script and restarted the UCMDB Service as well as probe service, after that when i ran the Discovery Job am still receiving the same error as follow:

    Please let me know, if i need to do something else

     

    << Progress message, Severity: Error>>
    VMware VIM: Internal error. Details:
    Traceback (most recent call last):
      File "vmware_vim", line 530, in onConnection
      File "vmware_virtualcenter_topology_by_vim", line 44, in discoverVcenterTopology
      File "_vmware_vim_base", line 1388, in discover
      File "_vmware_vim_base", line 1248, in _discoverDatacenters
      File "_vmware_vim_40", line 484, in _discoverDatacenter
      File "_vmware_vim_base", line 1265, in _discoverDatacenter
      File "_vmware_vim_base", line 1297, in _discoverComputeResource
      File "_vmware_vim_base", line 1058, in getHostsInComputeResource
      File "_vmware_vim_base", line 858, in map
      File "_vmware_vim_base", line 835, in map
      File "_vmware_vim_40", line 251, in handleProxySwitches
    TypeError: 'NoneType' object is not iterable


     Am attaching the Log in my same case, where you have responded already

  • Hi Dima,

    I have added the line you have mentioned in the script and restarted the UCMDB Service as well as probe service, after that when i ran the Discovery Job am still receiving the same error as follow:

    Please let me know, if i need to do something else

     

    << Progress message, Severity: Error>>
    VMware VIM: Internal error. Details:
    Traceback (most recent call last):
      File "vmware_vim", line 530, in onConnection
      File "vmware_virtualcenter_topology_by_vim", line 44, in discoverVcenterTopology
      File "_vmware_vim_base", line 1388, in discover
      File "_vmware_vim_base", line 1248, in _discoverDatacenters
      File "_vmware_vim_40", line 484, in _discoverDatacenter
      File "_vmware_vim_base", line 1265, in _discoverDatacenter
      File "_vmware_vim_base", line 1297, in _discoverComputeResource
      File "_vmware_vim_base", line 1058, in getHostsInComputeResource
      File "_vmware_vim_base", line 858, in map
      File "_vmware_vim_base", line 835, in map
      File "_vmware_vim_40", line 251, in handleProxySwitches
    TypeError: 'NoneType' object is not iterable


     Am attaching the Log in my same case, where you have responded already

  • Please relpace the content of _vmware_vim_40.py in your system with attached file.

    The fix will be part of next CP release.

    _vmware_vim_40.zip