Patching an ESXi host through vCenter with vSphere Update Manager fails with error "/usr/sbin/esxupdate returned with exit status: 15"
ESXi 7.x / 8.x
vCenter 7.x / 8.x
ESXi is unable to query the offline file system stats.
The vCenter will return a generic "error 15" during the process.
Log file - /var/log/vmware/vmware-updatemgr/vum-server/vmware-vum-server.log
<YYYY-MM-DD>T<time> info vmware-vum-server[25670] [Originator@6876 sub=VciRemediateTask.RemediateTask{7}] [vciTaskBase 1372] SerializeToVimFault fault:
--> (integrity.fault.VcIntegrityFault) {
--> faultCause = (vmodl.MethodFault) null,
--> faultMessage = <unset>
--> msg = "Install error on host: <host_fqdn>, error details: Platform Configuration Error: /usr/sbin/esxupdate returned with exit status: 15"
--> }
--> Converted fault:
--> (vim.fault.ExtendedFault) {
--> faultCause = (vmodl.MethodFault) null,
--> faultMessage = <unset>,
--> faultTypeId = "com.vmware.vcIntegrity.VcIntegrityFault",
--> data = (vim.KeyValue) [
--> (vim.KeyValue) {
--> key = "faultCause",
--> value = ""
--> },
--> (vim.KeyValue) {
--> key = "faultMessage",
--> value = ""
--> }
--> ]
--> msg = "Install error on host:
<host_fqdn>
, error details: Platform Configuration Error: /usr/sbin/esxupdate returned with exit status: 15"--> }
The esxupdate.log file on ESXi will report the offline lun:
Log file - /var/run/log/esxupdate.log
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: An esxupdate error exception was caught:
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: Traceback (most recent call last):
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: File "/tmp/esx-update-2101793/lib64/python3.8/site-packages/vmware/esximage/Utils/HostInfo.py", line 225, in _getFileSystemList
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: File "/lib64/python3.8/site-packages/esxutils.py", line 220, in runCli
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: esxutils.EsxcliError: Errors:
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: Error getting data for filesystem on '/vmfs/volumes/<datastore>': Cannot open volume: /vmfs/volumes/<datastore>, skipping.
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR:
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR:
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: During handling of the above exception, another exception occurred:
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR:
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: Traceback (most recent call last):
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: File "/usr/sbin/esxupdate", line 216, in main
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: cmd.Run()
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: File "/lib64/python3.8/site-packages/vmware/esx5update/Cmdline.py", line 153, in Run
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: File "/tmp/esx-update-2101793/lib64/python3.8/site-packages/vmware/esximage/Transaction.py", line 851, in InstallVibsFromSources
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: File "/tmp/esx-update-2101793/lib64/python3.8/site-packages/vmware/esximage/Transaction.py", line 1097, in _installVibs
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: File "/tmp/esx-update-2101793/lib64/python3.8/site-packages/vmware/esximage/Transaction.py", line 1266, in _validateAndInstallProfile
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: File "/tmp/esx-update-2101793/lib64/python3.8/site-packages/vmware/esximage/ImageManager/HostSeeding.py", line 995, in __init__
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: File "/tmp/esx-update-2101793/lib64/python3.8/site-packages/vmware/esximage/ImageManager/HostSeeding.py", line 1032, in _loadCachedVibs
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: File "/tmp/esx-update-2101793/lib64/python3.8/site-packages/vmware/esximage/Utils/HostInfo.py", line 283, in GetVmfslFileSystems
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: File "/tmp/esx-update-2101793/lib64/python3.8/site-packages/vmware/esximage/Utils/HostInfo.py", line 228, in _getFileSystemList
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: esximage.Errors.InstallationError: Failed to query file system stats: Errors:
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR: Error getting data for filesystem on '/vmfs/volumes/<datastore>': Cannot open volume: /vmfs/volumes/
<datastore>
, skipping.<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: ERROR:
<YYYY-MM-DD>T<time> esxupdate: 2101793: esxupdate: DEBUG: <<<
To resolve this issue, reconnect the LUN or remove it from the ESXi host.
Attach Storage Devices
https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.storage.doc/GUID-2C6EAF9D-6EC1-465D-84BF-AF0034696815.html
Detach Storage Devices
https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.storage.doc/GUID-F2E75F67-740B-4406-9F0C-A2D99A698F2A.html