snapshot is stuck in 'deleting' after reboot cinder-volume in cascade deleting process

Bug #1586604 reported by wanghao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
High
wanghao

Bug Description

When cascade deleting volume and snapshot, reboot cinder-volume, after it snapshot is stuck in 'deleting' status and volume is gone. It's more worse that you can't delete this
snapshot even reset its status, since no volume is existing.

This should be fixed by adding process to handle the 'deleting' snapshot in init_host.

Reproduce step:

1. Create volume and snapshot.
2. Cascade deleting this volume.
3. When deleting is doing, reboot cinder-volume.
4. After this, snapshot is stuck in 'deleting' status.

wanghao (wanghao749)
Changed in cinder:
assignee: nobody → wanghao (wanghao749)
milestone: none → newton-1
importance: Undecided → Medium
description: updated
Changed in cinder:
importance: Medium → High
wanghao (wanghao749)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/322418

Changed in cinder:
status: New → In Progress
Changed in cinder:
milestone: newton-1 → newton-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/322418
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=bc9d737c87cb21e308a7a3be66ddd792418503ff
Submitter: Jenkins
Branch: master

commit bc9d737c87cb21e308a7a3be66ddd792418503ff
Author: wanghao <email address hidden>
Date: Sat May 28 17:19:26 2016 +0800

    Fix snapshot stuck in 'deleting' after reboot c-v

    When cascade deleting volume and snapshot, reboot
    cinder-volume, snapshot will be stuck in 'deleting'
    after it, and it's more worse that user can't delete
    this snapshot even reset its status, since no deleting
    volume is exitsing any more after init host.

    Fix this bug by using cascade deleting volume
    when init host, as any volume that is in deleting
    status has already passed API checks and should
    be deleted with all its snapshots.

    Change-Id: Ic47290b8b7004b9e37d096f52af025931ab13c6c
    Closes-Bug: #1586604

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/cinder 9.0.0.0b2

This issue was fixed in the openstack/cinder 9.0.0.0b2 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.