mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 16:29:21 +00:00
Unable to detach the vSphere volume from Powered off node
This commit is contained in:
parent
98ed5dd8a2
commit
c7fe83266a
@ -411,8 +411,8 @@ func (vs *VSphere) InstanceID(nodeName k8stypes.NodeName) (string, error) {
|
|||||||
if isActive {
|
if isActive {
|
||||||
return "/" + vm.InventoryPath, nil
|
return "/" + vm.InventoryPath, nil
|
||||||
}
|
}
|
||||||
|
glog.Warningf("The VM: %s is not in %s state", nodeNameToVMName(nodeName), vclib.ActivePowerState)
|
||||||
return "", fmt.Errorf("The node %q is not active", nodeNameToVMName(nodeName))
|
return "", cloudprovider.InstanceNotFound
|
||||||
}
|
}
|
||||||
|
|
||||||
// InstanceTypeByProviderID returns the cloudprovider instance type of the node with the specified unique providerID
|
// InstanceTypeByProviderID returns the cloudprovider instance type of the node with the specified unique providerID
|
||||||
|
Loading…
Reference in New Issue
Block a user