Symptoms:
YYYY-MM-DDTHH:MM:SS content-library:Patch ERROR vmware_b2b.patching.executor.hook_executor Patch hook 'content-library:Patch' failed.
Traceback (most recent call last):
File "/storage/updatemgr/software-updatex438i2oq/stage/scripts/patches/py/vmware_b2b/patching/executor/hook_executor.py", line 74, in executeHook
executionResult = systemExtension(args) dynamicProperty = (vmodl.DynamicProperty) [],msg = '',
faultCause = <unset>,
faultMessage = (vmodl.LocalizableMessage) [],
errorMessage = 'Entry with name serviceId: XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX not found.',
name = 'serviceId: XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX'
To fix this issue, cis.content-library service ID needs to be changed to match the correctly registered ID
Please follow the below steps for resolution:
Important: Before doing changes (step 4) please make sure to take offline snapshot of vCenter Server Appliance (vCenter Virtual Machine powered off)
# /usr/lib/vmware-lookupsvc/tools/lstool.py list --url http://localhost:7090/lookupservice/sdk
- Find the cis.cls service attributes:
Example:
Name: cis.content-library.ServiceName
Description: cis.content-library.ServiceDescription
Service Product: com.vmware.cis
Service Type: cis.cls
Service ID: YYYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYYYY --> This is the correct one
Site ID: default-first-site
Node ID: #########-#####-####-####-#########
Owner ID: vpxd-extension-##########-####-####-####-############@vsphere.local
# cd /etc/vmware-content-library/
# less cls_service_cisreg.spec
The last line of the file looks like the below:
cmreg.serviceid = XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX --> This is the incorrect ID reported in the log
- Replace the service ID with the correct one using text editor