Unable to detach the vSphere volume from Powered off node

This commit is contained in:
Balu Dontu 2017-09-15 15:47:45 -07:00
parent 98ed5dd8a2
commit c7fe83266a

View File

@ -411,8 +411,8 @@ func (vs *VSphere) InstanceID(nodeName k8stypes.NodeName) (string, error) {
if isActive {
return "/" + vm.InventoryPath, nil
}
return "", fmt.Errorf("The node %q is not active", nodeNameToVMName(nodeName))
glog.Warningf("The VM: %s is not in %s state", nodeNameToVMName(nodeName), vclib.ActivePowerState)
return "", cloudprovider.InstanceNotFound
}
// InstanceTypeByProviderID returns the cloudprovider instance type of the node with the specified unique providerID