Quota usage value error

Bug #1707377 reported by zhongjun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
High
zhongjun

Bug Description

Steps to reproduce:

We have 4 share-api service in each 4 vm

# manila create NFS 1 #create a new share
# manila quota-show --detail #The number of shares is equal to 4, the gigabytes is equal to 4
+-----------------------+----------------------------------+
| Property | Value |
+-----------------------+----------------------------------+
| share_groups | in_use = 0 |
| | limit = 50 |
| | reserved = 0 |
| gigabytes | in_use = 4 |
| | limit = 1000 |
| | reserved = 0 |
| snapshot_gigabytes | in_use = 0 |
| | limit = 1000 |
| | reserved = 0 |
| shares | in_use = 4 |
| | limit = 50 |
| | reserved = 0 |

#manila delete share_id # Delete the same share at the same time in each 4 vm
# manila quota-show --detail # The number of shares is equal to 0, the gigabytes is equal to 0
+-----------------------+----------------------------------+
| Property | Value |
+-----------------------+----------------------------------+
| share_groups | in_use = 0 |
| | limit = 50 |
| | reserved = 0 |
| gigabytes | in_use = 0 |
| | limit = 1000 |
| | reserved = 0 |
| snapshot_gigabytes | in_use = 0 |
| | limit = 1000 |
| | reserved = 0 |
| shares | in_use = 0 |
| | limit = 50 |
| | reserved = 0 |

We only delete one share, but the number of shares changed from 4 to 0, the gigabytes also changed from 4 to 0.

Revision history for this message
Ben Swartzlander (bswartz) wrote :

This bug to be fixed as part of the quota system rewrite planned for Rocky.

Changed in manila:
milestone: none → rocky-1
importance: Undecided → High
status: New → Triaged
Changed in manila:
assignee: nobody → zhongjun (jun-zhongjun)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/493071
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=3c596304991927f62290fd940a7f518ec1cae4a2
Submitter: Zuul
Branch: master

commit 3c596304991927f62290fd940a7f518ec1cae4a2
Author: Valeriy Ponomaryov <email address hidden>
Date: Fri Aug 11 19:16:16 2017 +0300

    Fix quota usages update deleting same share from several API endpoints

    It is possible to update quota usages multiple times sending share
    deletion request to several API endpoints concurrently.
    So, move quota usages update logic that is triggered by share deletion,
    to DB functions level, which will be able to be executed only when
    share deletion succeded. So, all concurrent requests, that failed to
    delete DB record, won't commit quota usages updates.

    Change-Id: If7d52e08d00d435f2e26c30654f0d2180b17b81a
    Closes-Bug: #1707379
    Closes-bug: #1707377

Changed in manila:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/manila 6.0.0.0b3

This issue was fixed in the openstack/manila 6.0.0.0b3 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.