Lock required in delete share/snapshot

Bug #1479174 reported by Peter Wang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Invalid
Medium
Madhu Mohan Nelemane

Bug Description

Recently I was running tempest for Manila,
I noticed some times, Test cases issued 2 delete snapshot command nearly in the same time and
these 2 api call came to our backend driver in a row within 0.6 s, below the manila api/driver call sequence in time line:

18:20:56.264 DELETE_1 cames via HTTP DELETE
18:20:56.86 DELETE_2 cames vai HTTP POST(Action body: {"os-force_delete": null})
18:20:57.414 DELETE_1 finisned in driver
18:20:57.474 DELETE_2 finisned in driver

that's say, driver will received 2nd delete_snapshot request while processing the 1st delete_snapshot.
while from Cinder, cinder manager will not dispatch the 2nd delete_snapshot request to driver until 1nd delete_snapshot finished ,since cinder add @locked_snapshot_operation for delete_snapshot

my question is : can Manila also add lock as cinder do?

Thanks
Peter

Tags: races manila
Peter Wang (peter.wang)
affects: manila (Ubuntu) → manila
Peter Wang (peter.wang)
tags: added: manila
Changed in manila:
importance: Undecided → Medium
Changed in manila:
assignee: nobody → Igor Malinovskiy (imalinovskiy)
Changed in manila:
assignee: Igor Malinovskiy (imalinovskiy) → nobody
Changed in manila:
milestone: none → mitaka-1
Changed in manila:
milestone: mitaka-1 → mitaka-2
Changed in manila:
milestone: mitaka-2 → mitaka-3
Changed in manila:
milestone: mitaka-3 → mitaka-rc1
Changed in manila:
assignee: nobody → Madhu Mohan Nelemane (mmohan-9)
Changed in manila:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to manila (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/289441

Changed in manila:
milestone: mitaka-rc1 → newton-1
Changed in manila:
milestone: newton-1 → none
Tom Barron (tpb)
tags: added: races
Revision history for this message
Jason Grosso (jgrosso) wrote :

is this still an issue that is being worked on? Is it still happening in the latest releases of Manila.

Revision history for this message
Jason Grosso (jgrosso) wrote :

If this is still occurring please open a new issue.

Changed in manila:
status: In Progress → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on manila (master)

Change abandoned by Goutham Pacha Ravi (<email address hidden>) on branch: master
Review: https://review.opendev.org/289441
Reason: No update for several releases. Please restore if you intend to drive this

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.