commit b265aad311a7cfd946e483c40a112ca793b3553a
Author: Li Ma <email address hidden>
Date: Wed Nov 19 03:12:24 2014 -0800
Add force_delete to safely delete created VMs
When Nova allows soft-delete operation, currently, rally cannot
deal with it and throws the exception when delete all the created
VMs.
Reproducing: (Nova enables soft-delete)
1. Run task: boot-from-volume-and-delete.json
2. It creates several VMs and volumes.
3. It deletes VMs.
4. VM states change to soft-deleted, but volume state is still in-use
because VM is not truly deleted.
5. It throws an exception saying that volume cannot be deleted.
6. The task is failed.
This fix adds force_delete when nova calls delete-server.
You can specify 'force_delete' in task configuration to determine
whether to use default delete action or force_delete action.
Reviewed: https:/ /review. openstack. org/135568 /git.openstack. org/cgit/ stackforge/ rally/commit/ ?id=b265aad311a 7cfd946e483c40a 112ca793b3553a
Committed: https:/
Submitter: Jenkins
Branch: master
commit b265aad311a7cfd 946e483c40a112c a793b3553a
Author: Li Ma <email address hidden>
Date: Wed Nov 19 03:12:24 2014 -0800
Add force_delete to safely delete created VMs
When Nova allows soft-delete operation, currently, rally cannot
deal with it and throws the exception when delete all the created
VMs.
Reproducing: (Nova enables soft-delete) volume- and-delete. json
1. Run task: boot-from-
2. It creates several VMs and volumes.
3. It deletes VMs.
4. VM states change to soft-deleted, but volume state is still in-use
because VM is not truly deleted.
5. It throws an exception saying that volume cannot be deleted.
6. The task is failed.
This fix adds force_delete when nova calls delete-server.
You can specify 'force_delete' in task configuration to determine
whether to use default delete action or force_delete action.
Change-Id: I56ac5c039b525a 8b05960dfbfd3ff 0cacec0aef6
Closes-Bug: #1394119