Symptoms
Tanzu operations fails with below error message in vSphere Client :
A specified parameter was not correct. spec.managedBy.extensionKey
VPXD log file /var/log/vmware/vpxd.log will show errors similar to below snippets:
2023-07-06T14:09:07.352-04:00 info vpxd[45334] [Originator@6876 sub=vpxLro opID=vmoperator-tkc-1-control-plane-c6t6m-update-94cac82c-b9] [VpxLRO] -- BEGIN task-31371 -- vm-xxxx -- vim.VirtualMachine.reconfigure -- 52adffff-0eff-2abf-c960-faf8ca95ffff(52b90bd9-ffff-bb66-c333-25830f1dffff)2023-07-06T14:09:07.352-04:00 warning vpxd[45334] [Originator@6876 sub=Vmomi opID=vmoperator-tkc-1-control-plane-c6t6m-update-94cac82c-b9] VMOMI activation LRO failed; <<52adffff-0eff-2abf-c960-faf8ca95ffff, <TCP '127.0.0.1 : 8085'>, <TCP '127.0.0.1 : 39422'>>, vm-xxxxx, vim.VirtualMachine.reconfigure>, N5Vmomi5Fault15InvalidArgument9ExceptionE(Fault cause: vmodl.fault.InvalidArgument --> ) [context]zKq7AVECAQAAAEq5RwEbdnB4ZAAAENk3bGlidm1hY29yZS5zbwAAp3gsACVsLQAt6TIBzWKHdnB4ZAABe0xmgT8HLAGBYwosAYFKFSwBgfuxKgGBTtwqAYGD3ioBARxE9AExR/QBsEf0glf0BQFsaWJ2aW0tdHlwZXMuc28AgcLWYQGBvdlgAYH+2mABgSzqYAGBjxdgAYFawWABAKdJIwBPnyMAzmQ3A4d/AGxpYnB0aHJlYWQuc28uMAAELzYPbGliYy5zby42AA==[/context]2023-07-06T14:09:07.357-04:00 info vpxd[45334] [Originator@6876 sub=vpxLro opID=vmoperator-tkc-1-control-plane-c6t6m-update-94cac82c-b9] [VpxLRO] -- FINISH task-313712023-07-06T14:09:07.357-04:00 info vpxd[45334] [Originator@6876 sub=Default opID=vmoperator-tkc-1-control-plane-c6t6m-update-94cac82c-b9] [VpxLRO] -- ERROR task-31371 -- vm-xxxxx -- vim.VirtualMachine.reconfigure: vmodl.fault.InvalidArgument:--> Result:--> (vmodl.fault.InvalidArgument) {--> faultCause = (vmodl.MethodFault) null,--> faultMessage = <unset>,--> invalidProperty = "spec.managedBy.extensionKey"--> msg = ""--> }--> Args:...--> managedBy = (vim.ext.ManagedByInfo) {--> extensionKey = "com.vmware.vcenter.wcp",--> type = "VirtualMachine"--> },
WCP extension "com.vmware.vcenter.wcp" is not listed under available extensions in VPXD while checking it through vCenter Server MOB
Connect to VC MOB - https://vCenter_Server_name_or_IP/mobLogin with SSO Administrator credentialsClick on ContentClick on ExtensionManager to list the available Extensions
Cause
This issue is observed when the Extension "com.vmware.vcenter.wcp" is missing in VPXD Service on vCenter Server.
Resolution
To resolve the issue, please re-register the plugin by following below steps:
Connect to vCenter Server using SSH Client (Eg. Putty)Download the attached script "register_wcp_extension_with_vpxd.py "Save the script to /tmp/ location on vCenter Server (you may use WinSCP to copy the file OR create a file using 'vi' editor and copy paste the script contents)Execute the script using Python
python /tmp/register_wcp_extension_with_vpxd.pySample Execution Result: