// The disk should be detached from host0 on it's deletion
// The disk should be detached from host0 on it's deletion
By("Waiting for pd to detach from host0")
By("Waiting for pd to detach from host0")
waitForPDDetach(diskName,host0Name)
waitForPDDetach(diskName,host0Name)
framework.ExpectNoError(WaitForGroupSize(framework.TestContext.CloudConfig.NodeInstanceGroup,int32(initialGroupSize)),"Unable to get back the cluster to inital size")
framework.ExpectNoError(framework.WaitForGroupSize(framework.TestContext.CloudConfig.NodeInstanceGroup,int32(initialGroupSize)),"Unable to get back the cluster to inital size")
return
return
})
})
It("should be able to detach from a node whose api object was deleted [Slow] [Disruptive] [Volume]",func(){
It("should be able to detach from a node whose api object was deleted [Slow] [Disruptive] [Volume]",func(){
// need to set the resource version or else the Create() fails
// need to set the resource version or else the Create() fails
_,err:=nodeClient.Create(nodeToDelete)
_,err:=nodeClient.Create(nodeToDelete)
framework.ExpectNoError(err,"Unable to re-create the deleted node")
framework.ExpectNoError(err,"Unable to re-create the deleted node")
framework.ExpectNoError(WaitForGroupSize(framework.TestContext.CloudConfig.NodeInstanceGroup,int32(initialGroupSize)),"Unable to get the node group back to the original size")
framework.ExpectNoError(framework.WaitForGroupSize(framework.TestContext.CloudConfig.NodeInstanceGroup,int32(initialGroupSize)),"Unable to get the node group back to the original size")