Comment 9 for bug 1394119

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to rally (master)

Reviewed: https://review.openstack.org/135568
Committed: https://git.openstack.org/cgit/stackforge/rally/commit/?id=b265aad311a7cfd946e483c40a112ca793b3553a
Submitter: Jenkins
Branch: master

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.

    Change-Id: I56ac5c039b525a8b05960dfbfd3ff0cacec0aef6
    Closes-Bug: #1394119