Highlighted
Honored Contributor.
Honored Contributor.
383 views

in createHost AttributeError: 'NoneType' object has no attribute 'toGregorianCalendar' - VMware

Hi 

Out of 10 vcenters, VMware Vcenter discovery is not working at all for 1 vcenter

No New VMs are getting discovered which are associated with this vcenter. Error from communication log of in createHost AttributeError: 'NoneType' object has no attribute 'toGregorianCalendar'in createHost AttributeError: 'NoneType' object has no attribute 'toGregorianCalendar' for vcenter.

<< Progress message, Severity: Error>>
VMware VIM: Internal error. Details:
Traceback (most recent call last):
File "vmware_vim", line 553, in onConnection
File "vmware_virtualcenter_topology_by_vim", line 44, in discoverVcenterTopology
File "_vmware_vim_base", line 1503, in discover
File "_vmware_vim_base", line 1316, in _discoverDatacenters
File "_vmware_vim_base", line 1553, in onDatacenter
File "_vmware_vim_base", line 2510, in reportManagedDatacenter
File "_vmware_vim_base", line 1774, in reportComputeResource
File "_vmware_vim_base", line 1911, in reportEsx
File "_vmware_vim_20", line 1849, in build
File "_vmware_vim_20", line 1762, in createHost
AttributeError: 'NoneType' object has no attribute 'toGregorianCalendar'

Note:
1. No new VMs are getting discovered and old  VMs discovered are not getting updated information.
2. VMware VirtualCenter Topology by VIM job is working on rest of 9 vcenters and VMs are getting discovered from those 9 vcenters.

Thanks & Regards,
Rohit Sobhani

4 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: in createHost AttributeError: 'NoneType' object has no attribute 'toGregorianCalendar' - VMware

Rohit;

This is a support case.  Please open one on this to get the script fixed.

Hope this helps,
Keith Paschal
UCMDB Worldwide Support Lead
Micro Focus Support
If you find this or any post resolves your issue, please be sure to mark it as an accepted solution."

Click the KUDOS star on the left to say 'Thanks'
0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Re: in createHost AttributeError: 'NoneType' object has no attribute 'toGregorianCalendar' - VMware

The issue is fixed in CP30 https://softwaresupport.softwaregrp.com/doc/KM03236460 or contact support for a work around.

John

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: in createHost AttributeError: 'NoneType' object has no attribute 'toGregorianCalendar' - VMware

Keith Paschal

I have had raised the support case. Got to know that this issue is fixed in CP30.

Thanks for the help.

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: in createHost AttributeError: 'NoneType' object has no attribute 'toGregorianCalendar' - VMware

Got to know that this issue is fixed in CP30.and figured it out myself required changes for getting rid of below error

 in createHost AttributeError: 'NoneType' object has no attribute 'toGregorianCalendar' 

Thanks for the help!!

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.