Bug 2225402

Summary: Associating a host with an VM with added "Precision Clock Device" on Satellite fails with error unknown VMODL type VirtualPrecisionClock
Product: Red Hat Satellite Reporter: Jayant Bhatia <jbhatia>
Component: Compute Resources - VMWareAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.11.0CC: ahumbe, chrobert, gtalreja, mhulan, rlavi, saydas
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jayant Bhatia 2023-07-25 08:53:31 UTC
Description of problem:

Compute resource VMware

While trying to associate a host with an VM with added "Precision Clock Device" the following error occurred: unknown VMODL type VirtualPrecisionClock


Version-Release number of selected component (if applicable): All Satellite versions


This could be observed because of some missing "Data Types" in the vmodl.db in the Satellite ruby interface for vSphere API (rubygem-rbvmomi). The problem is reported for vSphere Version 7.0.3 Build: 20990077. 

VMWare documentation: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-4E6AE904-75C6-475F-8732-07E4542D7798.html

Similar issue with missing data types: https://github.com/vmware-archive/rbvmomi/issues/208

Comment 4 Sayan Das 2023-07-27 07:41:45 UTC
Reproducer steps shared by the end-user :

New virtual machine:
 1. Create New Virtual Maschine (From vSphere Web-Client)
	Guest OS Family:  	Linux
	Guest OS Version:	Red Hat Enterprise Linux 8 (64-bit)
	Compatibility: 		ESXi 7.0 U2 and later
	
	Customize hardware -> Add new device -> Precision CLock (Host System Time NTP)
	-> Build VM


2. Create Host (From RH Satellite)
3. Compute Resources -> Virtual Maschines -> Associate VM 

---> Results in error: "Oops, we're sorry but something went wrong unknown VMODL type VirtualPrecisionClock"


Existing virtual machine:

Modify hardware ((From vSphere Web-Client))
1. Add new device -> Precision CLock (Host System Time NTP)

2. All hosts -> VM Hostname -> Edit 

---> Results in error: "Oops, we're sorry but something went wrong unknown VMODL type VirtualPrecisionClock"