2014-11-20 01:39:57 |
Li Ma |
description |
When Nova allows soft-delete operation, currently, rally cannot deal with it and throws the exception when clean up all the created VMs.
In benchmark/scenarios/nova/utils.py:
def _delete_server(self, server):
....
server.delete() <-- this can be soft-delete operation, meaning that VM is recycled temporarily but not completely deleted.
If we use force_delete() function, VM can be safely deleted. |
When Nova allows soft-delete operation, currently, rally cannot deal with it and throws the exception when clean up all the created VMs.
In benchmark/scenarios/nova/utils.py:
def _delete_server(self, server):
....
server.delete() <-- this can be soft-delete operation, meaning that VM is recycled temporarily but not completely deleted.
If we use force_delete() function, VM can be safely deleted.
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. |
|