NetApp cDOT driver should split clone from snapshot after creation

Bug #1259988 reported by Valeriy Ponomaryov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Low
Clinton Knight

Bug Description

If we try delete snapshot, which is busy, it won't be deleted and won't get proper response

How to reproduce:

1) create share
2) create snapshot from 1) share
3) create share from snapshot
4) try delete snapshot

Result: it is not deleted and we get 200 Ok
Status of snapshot stay the same.

But we expect proper response from server, that it is busy and we can not do nothing with this.

p.s It was reproduced with prototype of NetApp driver, current LVM driver does not set 'busy' state to snapshot.

summary: - If we try delete snapshot, which is busy, it won't be deleted and won't
- get proper response
+ Wrong handling of busy snapshot
description: updated
description: updated
Changed in manila:
importance: Undecided → Low
Changed in manila:
milestone: none → kilo-1
Changed in manila:
milestone: kilo-1 → kilo-2
Changed in manila:
milestone: kilo-2 → kilo-3
tags: added: cmode driver netapp
Changed in manila:
assignee: nobody → NetApp (netapp)
Changed in manila:
status: New → Confirmed
assignee: NetApp (netapp) → Clinton Knight (clintonk)
summary: - Wrong handling of busy snapshot
+ cDOT driver should split clone from snapshot after creation
Changed in manila:
milestone: kilo-3 → kilo-rc1
summary: - cDOT driver should split clone from snapshot after creation
+ NetApp cDOT driver should split clone from snapshot after creation
Changed in manila:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to manila (master)

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

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

Reviewed: https://review.openstack.org/169364
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=d37f44f04a166b7b8cd3219ece6bace91e4bab0e
Submitter: Jenkins
Branch: master

commit d37f44f04a166b7b8cd3219ece6bace91e4bab0e
Author: Clinton Knight <email address hidden>
Date: Sun Mar 15 19:56:58 2015 -0400

    cDOT driver should split clone from snapshot after creation

    When the cDOT driver receives a create_share_from_snapshot command,
    it clones the share/flexvol from the specified snapshot in the
    parent share/flexvol. But if the resulting clone is not split
    from its parent, the snapshot remains busy and may not be deleted.
    This is resolved by starting a clone split operation anytime a
    clone is created.

    During the split operation, which usually completes within
    seconds, the snapshot remains busy. This patch detects that
    condition in the snapshot delete path and waits up to a minute
    for the busy condition to clear.

    Change-Id: I44bac106f7f7a1acc968c1d9a526dcef85f657b7
    Closes-Bug: #1259988

Changed in manila:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in manila:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in manila:
milestone: kilo-rc1 → 2015.1.0
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.