Comment 7 for bug 1084273

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/folsom)

Reviewed: https://review.openstack.org/25571
Committed: http://github.com/openstack/cinder/commit/2e7f71738d2f695e8079ef0cd3b6c248ee67187e
Submitter: Jenkins
Branch: stable/folsom

commit 2e7f71738d2f695e8079ef0cd3b6c248ee67187e
Author: John Griffith <email address hidden>
Date: Thu Feb 28 19:01:39 2013 +0000

    Elevate context for delete volume with no host.

    So in the case of a volume that is placed in error state
    on create and never actually deployed, the cinder.volume.api delete
    call does a short cut call to db.destroy_volume which is fine because
    all we have is a DB entry (scheduler never deployed the volume).

    Unfortunately, this requires admin context, so just add an elevate
    context to the db.destroy_volume call.

    Fixes bug: 1084273

    Change-Id: I0ef8bf4356047c385bef703b8dce7d5edf537bf6
    (cherry picked from commit a2830e5417539980249e3ab12d8bf9538d8956c4)