Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Absent Member.. Ashokkumar_1 Absent Member..
Absent Member..
6389 views

VMWare Internal Error

Jump to solution

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

0 Likes
1 Solution

Accepted Solutions
Acclaimed Contributor.. Dima Gomel Acclaimed Contributor..
Acclaimed Contributor..

Re: VMWare Internal Error

Jump to solution

Hi Ashok,

I'm sorry, It's typo error. I mistyped "pniSpecs" and "pnicSpecs".

The string 1149 should be as following

       if pnicSpecs is not None:

Please either add "c" manually or used attached file.

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.

View solution in original post

30 Replies
Acclaimed Contributor.. Dima Gomel Acclaimed Contributor..
Acclaimed Contributor..

Re: VMWare Internal Error

Jump to solution

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

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
Highlighted
Acclaimed Contributor.. Dima Gomel Acclaimed Contributor..
Acclaimed Contributor..

Re: VMWare Internal Error

Jump to solution

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).

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
Tags (1)
0 Likes
Absent Member.. Ashokkumar_1 Absent Member..
Absent Member..

Re: VMWare Internal Error

Jump to solution

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

0 Likes
Absent Member.. Ashokkumar_1 Absent Member..
Absent Member..

Re: VMWare Internal Error

Jump to solution

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 ?

0 Likes
Acclaimed Contributor.. Dima Gomel Acclaimed Contributor..
Acclaimed Contributor..

Re: VMWare Internal Error

Jump to solution

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.

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
Absent Member.. Ashokkumar_1 Absent Member..
Absent Member..

Re: VMWare Internal Error

Jump to solution

Hi Dima,

 

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

 

Regards

Ashok

0 Likes
Absent Member.. Ashokkumar_1 Absent Member..
Absent Member..

Re: VMWare Internal Error

Jump to solution

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

0 Likes
Acclaimed Contributor.. Dima Gomel Acclaimed Contributor..
Acclaimed Contributor..

Re: VMWare Internal Error

Jump to solution

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

The fix will be part of next CP release.

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
Acclaimed Contributor.. Dima Gomel Acclaimed Contributor..
Acclaimed Contributor..

Re: VMWare Internal Error

Jump to solution

Publicly available defect http://support.openview.hp.com/selfsolve/document/FID/DOCUMENTUM_QCCR1H81659 is part of CP12 Update 2.

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
Absent Member.. Ashokkumar_1 Absent Member..
Absent Member..

Re: VMWare Internal Error

Jump to solution

Hi Dima,

Thanks again for providing the fix.

I have replaced the script given by you and after running the Discovery , I could see the Cis getting created.

but still in the Communication Log am receiving the following Error

 

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 1252, in _discoverDatacenters
  File "_vmware_vim_base", line 1437, in onDatacenter
  File "_vmware_vim_base", line 2154, in reportManagedDatacenter
  File "_vmware_vim_40", line 1013, in reportNetworking
  File "_vmware_vim_40", line 1042, in reportDvsNetworking
  File "_vmware_vim_40", line 1149, in reportUplinkToEsxInterfaceLinks
TypeError: 'NoneType' object is not iterable
</log>
 <log start="22:07:03" severity="debug">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 1252, in _discoverDatacenters
  File "_vmware_vim_base", line 1437, in onDatacenter
  File "_vmware_vim_base", line 2154, in reportManagedDatacenter
  File "_vmware_vim_40", line 1013, in reportNetworking
  File "_vmware_vim_40", line 1042, in reportDvsNetworking
  File "_vmware_vim_40", line 1149, in reportUplinkToEsxInterfaceLinks
TypeError: 'NoneType' object is not iterable
</log>
 <log start="22:07:03" severity="debug">Reporting error code 103 to framework.</log>
 <log start="22:07:03" severity="debug">Error message is: 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 1252, in _discoverDatacenters
  File "_vmware_vim_base", line 1437, in onDatacenter
  File "_vmware_vim_base", line 2154, in reportManagedDatacenter
  File "_vmware_vim_40", line 1013, in reportNetworking
  File "_vmware_vim_40", line 1042, in reportDvsNetworking
  File "_vmware_vim_40", line 1149, in reportUplinkToEsxInterfaceLinks
TypeError: 'NoneType' object is not iterable

 

Is some information we will miss during the discovery because of this above error and do we have a fix to overcome this error

 

Regards

Ashok

0 Likes
Acclaimed Contributor.. Dima Gomel Acclaimed Contributor..
Acclaimed Contributor..

Re: VMWare Internal Error

Jump to solution

Please find new version of _vmware_vim_40.py. Let us know if this worked.

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
Absent Member.. Ashokkumar_1 Absent Member..
Absent Member..

Re: VMWare Internal Error

Jump to solution
Hi Dima,

I have upgraded the Content pack to 12.02 which is the recent release.
After upgrading it, i tried to ran the VM Discovery Job and still am facing a similar error message but few Cis are getting Discovered.
The following is the error message am receiving now:

<< 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 1252, in _discoverDatacenters
File "_vmware_vim_base", line 1437, in onDatacenter
File "_vmware_vim_base", line 2154, in reportManagedDatacenter
File "_vmware_vim_40", line 1013, in reportNetworking
File "_vmware_vim_40", line 1042, in reportDvsNetworking
File "_vmware_vim_40", line 1149, in reportUplinkToEsxInterfaceLinks
TypeError: 'NoneType' object is not iterable

Please give some more guidance.

Regards
Ashok
0 Likes
Absent Member.. Ashokkumar_1 Absent Member..
Absent Member..

Re: VMWare Internal Error

Jump to solution
Hi Dima,

After the upgradation to CP 12.02, I have replaced the new version of _vmware_vim_40.py script shared by you yesterday.
After replacing the script and ran the Disocvery, now am receiving a different error.

<< Progress message, Severity: Error>>
Failed executing script, details: Error in script _vmware_vim_40.py
java.lang.RuntimeException: Failed to compile file E:\hp\UCMDB\DataFlowProbe\bin\..\runtime\probeManager\discoveryScripts\_vmware_vim_40.py
at com.hp.ucmdb.discovery.library.execution.impl.ScriptsLoader.compileCode(ScriptsLoader.java:257)
at com.hp.ucmdb.discovery.library.execution.impl.ScriptsLoader.loadModule(ScriptsLoader.java:221)
at com.hp.ucmdb.discovery.library.execution.impl.ScriptsLoader.loadModule(ScriptsLoader.java:145)
at com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl.executeScript(ExecutionEngineImpl.java:226)
at com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl.executeScript(ExecutionEngineImpl.java:211)
at com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl.executeScript(ExecutionEngineImpl.java:207)
at com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl.executeScripts(ExecutionEngineImpl.java:125)
at com.hp.ucmdb.discovery.library.execution.impl.ExecutionEngineImpl.execute(ExecutionEngineImpl.java:88)
at com.hp.ucmdb.discovery.probe.services.dynamic.core.TablesProcessorUtil.processDestinationTables(TablesProcessorUtil.java:136)
at com.hp.ucmdb.discovery.probe.services.dynamic.core.DynamicService.discover(DynamicService.java:73)
at com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.JobExecuter.launchTask(JobExecuter.java:1604)
at com.hp.ucmdb.discovery.probe.agents.probemgr.taskexecuter.remote.RemoteJobExecutor.main(RemoteJobExecutor.java:131)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.hp.ucmdb.discovery.library.execution.impl.ScriptsLoader.compileCode(ScriptsLoader.java:255)
... 11 more
Caused by: SyntaxError: ("mismatched input '' expecting DEDENT", ('_vmware_vim_40', 1149, 4, '\t\t\t\tif pniSpecs is not None:\n'))

at org.python.core.ParserFacade.fixParseError(ParserFacade.java:92)
at org.python.core.ParserFacade.parse(ParserFacade.java:184)
at org.python.core.Py.compile_flags(Py.java:1731)
at org.python.core.Py.compile(Py.java:1697)
... 15 more


Please let me know, if i have to go back with the older script or do we need any more modification in the script you have shared.

Thanks & Regards
Ashok
0 Likes
Acclaimed Contributor.. Dima Gomel Acclaimed Contributor..
Acclaimed Contributor..

Re: VMWare Internal Error

Jump to solution

Dear Ashok,

please raise support case ASAP. Please add request for elevation to Dmitry Gomel.

In the meantime, use OTTB CP12.02.

Please add communication log with results from OTTB CP12.02 job.

 

Regards
-Dmitry Gomel, PMP
Click the Like button at the bottom to say 'Thanks'.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.