SoS hostcleanup may fail if the ESXi Host has Network Dump enabled.
search cancel

SoS hostcleanup may fail if the ESXi Host has Network Dump enabled.

book

Article ID: 324078

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

Symptoms:
  • When attempting to cleanup an ESXi Host using the SoS utility its fails both the below commands:
/opt/vmware/sddc-support/sos --cleanup-decommissioned-host ../<host to be decommissioned sample>.json
/opt/vmware/sddc-support/sos --cleanup-host <HOST IP ADDR>
  • In the sos.log, error messages similar to the below are seen:
2019-02-20T06:34:37.229Z [DEBUG commandutils.py::run_cmds_over_ssh::392::_network_cleanup_workflowThread0] server: 172.20.10.51 --- stderr: Error performing operation: Cannot delete this interface, it is currently being used for Network Dump. Please disable network dump before deleting.
VmkNic: Error setting IP address, deleting vmknic vmk0 on netstack defaultTcpipStack due to Unable to Set: Sysinfo error: Address not availableSee VMkernel log for details.
Error performing operation: Unable to Set: Sysinfo error: Address not availableSee VMkernel log for details.

Note: This log excerpt is an example. Date, time, and environmental variables may vary depending on your environment.


Environment

VMware Cloud Foundation 3.7.x

Resolution

To allow SoS to successfully cleanup the ESXi Hosts, disable Network Dump on any affected hosts. 
  1. To do this, open an SSH session to the ESXi and login in with root.
  2. Run the command to disable Network Dump.
esxcli system coredump network set --enable false
  1. Re-run the SoS command to cleanup the hosts. 


Additional Information

Impact/Risks:
This issue is only affecting VMware Cloud Foundation 3.7.0 and has been resolved in 3.7.1.