esxcli storage vvol vasaprovider list Status: Offline: SyncErrorvvold.log, the following error is observed: HandleRequest: unexpected exception handling function UpdateVasaProvider: Wrong X.509 Certificate format# esxcli storage vvol vasaprovider listVP Name: <VASA-Provider_name>URL: https://<VP-FQDN>:9997/vasaStatus: Offline: SyncError []VASA Version: 4Max Concurrent Operations: 4Arrays: Arrays: ArrayId: <Array_ID> Is Active: true Priority: 255VirtualHost: VirtualHost: IP: Port: 0 SNI:API Batch Size: APIBatchSize: BindVirtualVolume: 10 Default: 1024 GetTaskUpdateEx: 16 QueryVirtualVolumeInfo: 1024 SnapshotVirtualVolume: 10 SpaceStatsVirtualVolume: 1024 UnbindVirtualVolume: 16 UpdateVirtualVolumeMetdataEx: 1024
VMware ESXi 8.0 / 8.0 U3
VMware vCenter 8.0
VMware vSAN Witness VM (including Build ####25205845####)
This issue occurs due to the missing -----BEGIN CERTIFICATE----- header and -----END CERTIFICATE----- footer for the VASA Provider certificate within the ESXi Config Store. This typically happens during host remediation or witness deployment, resulting in a certificate string that is not in the required X.509 format.
A sample output from one of affected ESXI host shows the certificate rather shows up the string without PEM certificate header or footer.
# configstorecli config current get -c esx -g storage_vasa -k vvol -outfile vvol-vpconfig.json
# cat vvol-vpconfig.json | grep -i self_signed_certificateAs observed above, the header ---> "-----BEGIN CERTIFICATE-----" and footer "-----END CERTIFICATE-----" are missing in the stored certificate).
\nMIIDBBjANBgkqhkiG......... \n
This results in host exiting maintenance mode after patch upgrade failing to connect to VASA Provider as the self-signed certificate is not in X.509 format.
Following wrong format certificate error is observed in vvold logs while observing the issue:YYYY-MM-DDTHH:MM:SS.177Z Er(163) VVold[#######]: [Originator@6876 sub=IpcSvc IpcCtx=2441865-41] HandleRequest: unexpected exception handling function UpdateVasaProvider: Wrong X.509 Certificate formatYYYY-MM-DDTHH:MM:SS.177Z In(166) VVold[#######]: [Originator@6876 sub=Libs] 2441868:VVOLLIB : VVolLib_IpcStorageFaultToVVolLibError:765: Storage Fault TRANSPORT_FAULT (1): Wrong X.509 Certificate formatYYYY-MM-DDTHH:MM:SS.177Z Er(163) VVold[#######]: [Originator@6876 sub=Libs] 2441868:VVOLLIB : VVolLib_UpdateVendorProvider:8041: Failed with error (10) The VASA transport encountered an error
This issue is stipulated to be resolved in an upcoming vSphere release -- Broadcom Support Download portal
Workaround :
configstorecli config current get -c esx -g storage_vasa -k vvol -outfile vvol-vpconfig.jsonvi vvol-vpconfig.json
Update the self_signed_certificate field to:"-----BEGIN CERTIFICATE-----\n\n-----END CERTIFICATE-----"configstorecli config current set -c esx -g storage_vasa -k vvol -infile vvol-vpconfig.jsonvvold service:/etc/init.d/vvold restart