Error share without share network cannot be deleted in generic driver

Bug #1405362 reported by Sun Jun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Medium
Sun Jun

Bug Description

In generic driver, If we do not specify the "--share-network" while creating a new share(not from snapshot), the share will turn error and the error share can't been deleted(will be "error_deleting").

[How to Reproduce]
1.driver = generic driver;
2.create a share without share-network info , for example: manila create --name $share-name NFS 1
3.manila list ----> the share will be in error status
4.manila delete $share-id ----> the share will be in error_deleting status

Sun Jun (sanjeo)
Changed in manila:
assignee: nobody → Sun Jun (sanjeo)
summary: - Error share cannot be deleted in generic driver
+ Error share without share network cannot be deleted in generic driver
Changed in manila:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

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

commit 34fff5656330c856d06b1658e513324c12de5cd7
Author: Sun Jun <email address hidden>
Date: Thu Dec 25 12:56:44 2014 +0800

    Allow deleting share with invalid share server in generic driver

    In generic driver, if we do not specify the "--share-network" while
    creating a new share(not from snapshot), the share will get error state
    and it cannot be deleted(will be in "error_deleting" status).

    Remove decorator "ensure_server" for method "delete_share" that is
    dedicated mostly for share creation and allow delete share with invalid
    share-server in Generic driver.

    Change-Id: Id4f2138507a1b6c6c303837b6bc09c39c86559df
    Closes-Bug: #1405362

Changed in manila:
status: In Progress → Fix Committed
Changed in manila:
milestone: none → kilo-2
importance: Undecided → Medium
Thierry Carrez (ttx)
Changed in manila:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in manila:
milestone: kilo-2 → 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.