UCMDB and UD Practitioners Forum (Previously CMS)
Showing results for 
Search instead for 
Do you mean 

VMWare Internal Error

SOLVED
Go to Solution
Valued Contributor

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

23 REPLIES
HPE Expert

Re: VMWare Internal Error

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

Regards
-Dmitry Gomel, PMP
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Click the Like button at the bottom to say 'Thanks'.
HPE Expert

Re: VMWare Internal Error

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
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Click the Like button at the bottom to say 'Thanks'.
Valued Contributor

Re: VMWare Internal Error

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

Valued Contributor

Re: VMWare Internal Error

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 ?

HPE Expert

Re: VMWare Internal 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.

Regards
-Dmitry Gomel, PMP
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Click the Like button at the bottom to say 'Thanks'.
Valued Contributor

Re: VMWare Internal Error

Hi Dima,

 

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

 

Regards

Ashok

Valued Contributor

Re: VMWare Internal Error

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

HPE Expert

Re: VMWare Internal Error

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
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Click the Like button at the bottom to say 'Thanks'.
HPE Expert

Re: VMWare Internal Error

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

Regards
-Dmitry Gomel, PMP
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Click the Like button at the bottom to say 'Thanks'.
Valued Contributor

Re: VMWare Internal Error

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

HPE Expert

Re: VMWare Internal Error

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

Regards
-Dmitry Gomel, PMP
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Click the Like button at the bottom to say 'Thanks'.
Valued Contributor

Re: VMWare Internal Error

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
Valued Contributor

Re: VMWare Internal Error

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
HPE Expert

Re: VMWare Internal Error

[ Edited ]

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
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Click the Like button at the bottom to say 'Thanks'.
Valued Contributor

Re: VMWare Internal Error

Hi Dima,

 

I have already raised a Support Case 4644437416 and it has already reached the R n D team and they came back saying that Cp 12.02 will fix this issue.

So, i have applied this content pack but it didnt help and we were receiving a similar error and that error i have shared with you in my last post.

 

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

 

If you have any inputs to take it forward with the error, please give me your asssistance.

 

Regards

Ashok

HPE Expert

Re: VMWare Internal Error

I took the case and working on solution.

Regards
-Dmitry Gomel, PMP
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Click the Like button at the bottom to say 'Thanks'.
Valued Contributor

Re: VMWare Internal Error

Thanks Dima
HPE Expert

Re: VMWare Internal Error

Please try new version. It should work fine.

Let me know if this helps.

Regards
-Dmitry Gomel, PMP
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Click the Like button at the bottom to say 'Thanks'.
Valued Contributor

Re: VMWare Internal Error

[ Edited ]

Hi Dima,

 

I have replaced your new Script with the existing script and also have restarted the services and then ran the Discovery Job.

This time also it was failing but it was giving a different error.

I have updated the Case with the communication log.

<< 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
NameError: global name 'pniSpecs' is not defined


 Please let me know, if you can do something on this.

 

Regards

Ashok

HPE Expert

Re: VMWare Internal Error

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
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Click the Like button at the bottom to say 'Thanks'.
Valued Contributor

Re: VMWare Internal Error

Hi Dima,

 

I guess this time it finally worked!! :)

I have replaced your new version of script and ran the Job , it indeed didn't fail but completed with a warning message as:

 

<< Progress message, Severity: Warning>>
Warning processing results: Results contain ignored CIs. For details please check cmdb.reconciliation.log. The following CIs were ignored: From Class [interface] 2 CIs were  ignored due to Multiple Match; From Class [containment] 2 CIs were  ignored due to Link with ignored end; 

 

I guess this message doesn't carry much significance on the Quality of the CIs discovered

Please confirm, if this message can be ignored, and If Yes, You can close my Support Case as well.

 

I Appreciate your Excellent Work and Knowledge on resolving this bug which was not fixed in CP12.02. May be you can raise an ER to fix in the upcoming release.

 

Thanks Dima!

 

Regards

Ashok

 

 

HPE Expert

Re: VMWare Internal Error

[ Edited ]

Hi,

Thanks for letting me know and for the good news.

I agreed to provide the results to R&D for fix in one of the next updates for CP12 and future releases.

The problem you are facing related to reconciliation layer. 2 CIs and 2 Links looks identical for reconciliation.

You could analyse cmdb.reconciliation.ignored.log for more details.

Have a good day!

Regards
-Dmitry Gomel, PMP
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Click the Like button at the bottom to say 'Thanks'.
HPE Expert

Re: VMWare Internal Error

Hi,

I sent the fix for implementation but it won't be a part of released today Content Pack 12 Update 3 (CP 12.03).

FYI 

Regards
-Dmitry Gomel, PMP
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Click the Like button at the bottom to say 'Thanks'.
//Add this to "OnDomLoad" event