I just tried to delete a VIC deployed on ESXi that has expired license and got too verbose error about.
vmware/vic [7576●] » vic_delete
INFO[0000] ### Removing VCH ####
DEBU[0000] Accepting host "192.168.198.131" thumbprint 25:D0:01:F5:66:80:4B:C9:4B:0F:F8:A7:2A:B6:C3:AE:25:02:0C:DF
DEBU[0000] Creating VMOMI session with thumbprint 25:D0:01:F5:66:80:4B:C9:4B:0F:F8:A7:2A:B6:C3:AE:25:02:0C:DF
DEBU[0000] Session Environment Info: API Type=HostAgent API Version=6.5 Build=5969303 Name="VMware ESXi" OS Type=vmnix-x86 Product ID=embeddedEsx UUID= Vendor="VMware, Inc." Version=6.5.0
DEBU[0000] vSphere resource cache populating...
DEBU[0000] Cached dc:
DEBU[0000] Cached cluster:
DEBU[0000] Cached ds:
DEBU[0000] Cached host:
DEBU[0000] Cached pool:
DEBU[0000] Cached folders:
DEBU[0000] vSphere resource cache populated...
INFO[0000] Validating target
DEBU[0000] properties: [config.extraConfig summary.runtime.connectionState]
DEBU[0000] Cannot find image stores from configuration; attempting to find from vm datastore
DEBU[0000] properties: [datastore summary.runtime.connectionState]
WARN[0000] Disabling ha-host hostd.log collection (ServerFaultCode: Cannot complete the operation due to an incorrect request to the server.)
INFO[0000]
INFO[0000] VCH ID: VirtualMachine:203
DEBU[0000] properties: [config.extraConfig summary.runtime.connectionState]
INFO[0000] Removing VMs
DEBU[0000] properties: [config.extraConfig summary.runtime.connectionState]
DEBU[0000] No disks found attached to VM
INFO[0000] Removing image stores
DEBU[0000] Failed to delete "[datastore1] vic-docker/VIC": ServerFaultCode: Current license or ESXi version prohibits execution of the requested operation.
DEBU[0000] Attempt to delete top level folder [datastore1] vic-docker/VIC failed. Remove the children files instead.
2018/03/23 13:33:34 markDiskAsDeletable([datastore1] vic-docker/VIC/564d3ec3-3b98-184d-a4e9-7c1d09cdec3b/images/scratch/scratch.vmdk): %!s(<nil>)
DEBU[0000] Failed to delete "[datastore1] vic-docker/VIC/564d3ec3-3b98-184d-a4e9-7c1d09cdec3b/images/scratch/scratch.vmdk": ServerFaultCode: Current license or ESXi version prohibits execution of the requested operation.
DEBU[0000] Failed to delete "[datastore1] vic-docker/kvStores": ServerFaultCode: Current license or ESXi version prohibits execution of the requested operation.
DEBU[0000] Attempt to delete top level folder [datastore1] vic-docker/kvStores failed. Remove the children files instead.
DEBU[0000] Failed to delete "[datastore1] vic-docker/kvStores": ServerFaultCode: Current license or ESXi version prohibits execution of the requested operation.
DEBU[0000] Image store parent directory not empty, leaving in place.
INFO[0000] Removing volume stores
DEBU[0000] Provided datastore URL: "[datastore1] volumes"
DEBU[0000] Parsed volume store path: "volumes"
INFO[0000] Deleting volume store "volumes" on Datastore "datastore1" at path "volumes"
DEBU[0000] Failed to delete "[datastore1] volumes": ServerFaultCode: Current license or ESXi version prohibits execution of the requested operation.
DEBU[0000] Attempt to delete top level folder [datastore1] volumes failed. Remove the children files instead.
DEBU[0000] Failed to delete "[datastore1] volumes/volumes": ServerFaultCode: Current license or ESXi version prohibits execution of the requested operation.
ERRO[0000] Failed to delete volume store "volumes" on Datastore "datastore1" at path "volumes"
INFO[0000] Removing appliance VM network devices
DEBU[0000] Remove bridge network based on Network:HaNetwork-vic-docker
DEBU[0000] Delete bridge network: Network:HaNetwork-vic-docker @ /ha-datacenter/network/vic-docker
INFO[0000] Removing Portgroup "vic-docker"
ERRO[0000] ServerFaultCode: Current license or ESXi version prohibits execution of the requested operation.
ServerFaultCode: Current license or ESXi version prohibits execution of the requested operation.
ServerFaultCode: Current license or ESXi version prohibits execution of the requested operation.
ServerFaultCode: Current license or ESXi version prohibits execution of the requested operation.
ERRO[0000] --------------------
ERRO[0000] vic-machine-linux delete failed: delete failed
Expected behavior:
Check license before attempting to perform any delete operations. Print only one error in regard of license problems.
User Statement:
I just tried to delete a VIC deployed on ESXi that has expired license and got too verbose error about.
Expected behavior: Check license before attempting to perform any delete operations. Print only one error in regard of license problems.