fieldType.Host" or "fieldType.Template", resulting in validation failures when attempting to add tags to their respective objects.VMware vCenter Server 8.x
VMware vCenter Server 7.x
fieldType.Host" or "fieldType.Template".urn:vim25:HostSystem", "urn:vim25:VirtualMachine". Ensure to take proper snapshot of the vCenter Server before proceeding. Refer: Snapshot Best practices for vCenter Server Virtual Machines
To correct illegal associable entity types set in a tag category:
For example, update vmwTaggingCategoryAssociableType: fieldType.Host to vmwTaggingCategoryAssociableType: urn:vim25:HostSystem.
2. Example command (run on the vCenter appliance):
/opt/likewise/bin/ldapmodify -h localhost -p 389 -x -D "cn=administrator,cn=users,dc=vsphere,dc=local" -W << EOFdn: cn=urn:vmomi:InventoryServiceCategory:<CategoryGUID>:GLOBAL,cn=urn:vmomi:InventoryServiceScope:default-scope:GLOBAL,cn=Tagging,cn=Services,dc=vsphere,dc=localChangetype: ModifyReplace: vmwTaggingCategoryAssociableTypevmwTaggingCategoryAssociableType: urn:vim25:HostSystemEOF
3. After modifying the LDAP entry, restart the vpxd-svcs service on the vCenter to apply changes: service-control --restart vpxd-svcs
4. Use the vSphere Client or ldapadd to verify/update associable types on tag categories as desired.
/opt/likewise/bin/ldapmodify -h localhost -p 389 -x -D "cn=administrator,cn=users,dc=vsphere,dc=local" -W << EOFdn: cn=urn:vmomi:InventoryServiceCategory:<CategoryGUID>:GLOBAL,cn=urn:vmomi:InventoryServiceScope:default-scope:GLOBAL,cn=Tagging,cn=Services,dc=vsphere,dc=localChangetype: addReplace: vmwTaggingCategoryAssociableTypevmwTaggingCategoryAssociableType: urn:vim25:HostSystemvmwTaggingCategoryAssociableType: urn:vim25:VirtualMachineEOF
5. Once corrected, tags under the category can be successfully added to hosts, VMs, or templates as intended.