On update tab when validating the image we set on this cluster getting below error:
Error "Software Solution com.vmware.vsphere-wcp with version 8.0.2-23319993 cannot be found in depot."
in /var/log/vmware/vmware-updatemgr/vum-server/vmware-vum-server.log you would see below stating what is causing issue.
YYYY-MM-DDTHH:MM:SS info vmware-vum-server[3408962] [Originator@6876 sub=ServiceProvider] [EmbeddedPyServiceProvider 1548] Draft validation results: {"info": [], "warnings": [], "errors": [{"id":"com.vmware.vcIntegrity.lifecycle.EsxImage.SolutionNotFound", "message": {"id": "com.vmware.vcIntegrity.lifecycle.EsxImage.SolutionNotFound", "default_message": "Software Solution com.vmware.vsphere-wcp with version 8.0.2-23319993 cannot be found in depot.", "args": ["com.vmware.vsphere-wcp", "8.0.2-23319993"]}, "resolution": null, "time": "YYYY-MM-DDTHH:MM:SS"}]}YYYY-MM-DDTHH:MM:SS info vmware-vum-server[3408962] [Originator@6876 sub=DraftsManager] [DraftsManager 1224] ValidateHardwareSupportSpec called
Which then leads to failure (/var/log/vmware/vmware-updatemgr/vum-server/vmware-vum-server.log)
YYYY-MM-DDTHH:MM:SS error vmware-vum-server[3408962] [Originator@6876 sub=EntityImageManager] [EntityImageManager 103] [TranslateError] startYYYY-MM-DDTHH:MM:SS error vmware-vum-server[3408962] [Originator@6876 sub=EntityImageManager] [EntityImageManager 113] [TranslateError] Error: Error:--> com.vmware.vapi.std.errors.error--> Messages:--> com.vmware.vcIntegrity.lifecycle.softwarespec.SolutionNotFound<The specified solution is cannot be found in depots.>-->YYYY-MM-DDTHH:MM:SS error vmware-vum-server[3408962] [Originator@6876 sub=DraftsManager] [DraftsManager 1408] Failed to get config schemas for draftYYYY-MM-DDTHH:MM:SS error vmware-vum-server[3408962] [Originator@6876 sub=DraftsManager] [DraftsManager 1489] Failed to validate cluster configurationYYYY-MM-DDTHH:MM:SS error vmware-vum-server[3408962] [Originator@6876 sub=DraftsManager] [DraftsManager 1523] Failed to validate draft spec.
...
YYYY-MM-DDTHH:MM:SS warning vmware-vum-server[3398641] [Originator@6876 sub=TaskStatsCollector] [taskStatsCollector 190] Task type or creation time not presentYYYY-MM-DDTHH:MM:SS info vmware-vum-server[3408962] [Originator@6876 sub=PM.AsyncTask.DraftCommitClusterTask{117}] [vciTaskBase 1496] SerializeToVimFault fault:--> (vmodl.fault.SystemError) {--> faultCause = (vmodl.MethodFault) null,--> faultMessage = (vmodl.LocalizableMessage) [--> (vmodl.LocalizableMessage) {--> key = "com.vmware.vcIntegrity.lifecycle.softwarespec.SolutionNotFound",--> arg = <unset>,--> message = <unset>--> }--> ],--> reason = "vLCM Task failed, see Error Stack for details."--> msg = "{--> "data": null,--> "error_type": "ERROR",--> "messages": [--> {--> "args": [],--> "default_message": "The specified solution is cannot be found in depots.",--> "id": "com.vmware.vcIntegrity.lifecycle.softwarespec.SolutionNotFound"--> }--> ]--> }"--> }
vCenter Server 8.0 Update 2b 23319993
vSphere Supervisor
vSphere-wcp solution missing in the offline depot
Upload wcp-depot.zip to VUM server using lifecycle manager UI
Once upload is completed verify if the depot is created in the VUM server using the API (SSH into VC and run below dcli commands)
Offline depot without any owner metadata is the newly uploaded depot. Verify it’s content with the depot content API.
# dcli +show-unreleased com vmware esx settings depots offline list<truncated><depot ID>: owner: [email protected] file_id: /storage/updatemgr/patch-store-temp/vum5704569949903948832.zip description: ownerdata: location: source_type: PUSH<truncated>
# dcli +show-unreleased com vmware esx settings depots offline content get --depot <depot ID> +format json | jq -r '.metadata_bundles.vmw[0].solutions."com.vmware.vsphere-wcp".versions'[ { "display_version": "8.0.2", "version": "8.0.2-23504390" ------> This should match }]
Set Spherelet Solution
Verify there is no Spherelet solution set for the cluster.dcli +show-unreleased com vmware esx settings clusters software solutions list --cluster <cluster_moid>
Set the Spherelet solution on the cluster. (Can monitor the status of the set solution from the UI also)
# dcli +show-unreleased com vmware esx settings clusters software solutions set-task --cluster <cluster_moid> --components '[{"component":"VMware-Spherelet-1-27"}]' --solution "com.vmware.vsphere-wcp" --version "8.0.2-23504390"<returns_task_id>
Cluster compliance should now run successfully.