Skip to content

Relax vSphere delete prechecks#441

Open
davidhrbac wants to merge 1 commit into
rancher:masterfrom
davidhrbac:fix-55800-vsphere-remove-stale-config
Open

Relax vSphere delete prechecks#441
davidhrbac wants to merge 1 commit into
rancher:masterfrom
davidhrbac:fix-55800-vsphere-remove-stale-config

Conversation

@davidhrbac

@davidhrbac davidhrbac commented Jun 25, 2026

Copy link
Copy Markdown

Summary

  • add a delete-specific vSphere initialization path for VM removal
  • stop validating current network, hostsystem, and resource pool settings during delete
  • keep the datacenter/finder setup needed for VM lookup and ISO cleanup

Why

Scale-down of an existing VMware-backed machine can fail to delete the backing VM when the current machine configuration has gone stale, for example when hostsystem still points at an ESX host that has been removed. Deleting an existing VM should not depend on current placement settings that are only required for create-time decisions.

Fixes rancher/rancher#55800

Testing

  • go test ./drivers/vmwarevsphere/...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Scaling down a VMware-backed machine can leave an orphan powered-on VM when the configured ESX host was removed

1 participant