Volume/snapshot manage quota commit twice
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
TommyLike |
Bug Description
When the snapshot-manage feature is used, the snapshots quota increments by 2 instead of 1. If snapshot-unmanage is used then the quota decrements by 1 (expected). This means that a net number of 1 snapshots are created when a snapshot is managed and afterwards unmanaged. This will force a user to bypass their quota faster, and bypass it even if they currently have zero snapshots managed.
Reproduced on a fresh DevStack (branch master):
jay@JubuntuVM:
Logical volume "jvol" created
jay@JubuntuVM:
Logical volume "jvolsnap" created
jay@JubuntuVM:
+----+-
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+----+-
+----+-
jay@JubuntuVM:
+------
| Type | In_use | Reserved | Limit |
+------
| backup_gigabytes | 0 | 0 | 1000 |
| backups | 0 | 0 | 10 |
| gigabytes | 0 | 0 | 1000 |
| gigabytes_
| per_volume_
| snapshots | 0 | 0 | 10 |
| snapshots_
| volumes | 0 | 0 | 10 |
| volumes_lvmdriver-1 | 0 | 0 | -1 |
+------
jay@JubuntuVM:
+------
| Property | Value |
+------
[...]
+------
jay@JubuntuVM:
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 46db1ddb-
+------
jay@JubuntuVM:
+------
| Type | In_use | Reserved | Limit |
+------
| backup_gigabytes | 0 | 0 | 1000 |
| backups | 0 | 0 | 10 |
| gigabytes | 1 | 0 | 1000 |
| gigabytes_
| per_volume_
| snapshots | 0 | 0 | 10 |
| snapshots_
| volumes | 2 | 0 | 10 |
| volumes_lvmdriver-1 | 0 | 0 | -1 |
+------
jay@JubuntuVM:
+------
| Property | Value |
+------
| created_at | 2016-06-
| description | None |
| id | 51931ed2-
| metadata | {} |
| name | None |
| os-extended-
| os-extended-
| size | 1 |
| status | available |
| updated_at | 2016-06-
| volume_id | 46db1ddb-
+------
jay@JubuntuVM:
+------
| ID | Volume ID | Status | Name | Size |
+------
| 51931ed2-
+------
jay@JubuntuVM:
+------
| Type | In_use | Reserved | Limit |
+------
| backup_gigabytes | 0 | 0 | 1000 |
| backups | 0 | 0 | 10 |
| gigabytes | 2 | 0 | 1000 |
| gigabytes_
| per_volume_
| snapshots | 2 | 0 | 10 |
| snapshots_
| volumes | 2 | 0 | 10 |
| volumes_lvmdriver-1 | 0 | 0 | -1 |
+------
Changed in cinder: | |
assignee: | nobody → Jay Conroy (james-conroy) |
description: | updated |
Changed in cinder: | |
status: | New → Confirmed |
summary: |
- Snapshots quota increments by 2 instead of 1 + Volume/snapshot manage quota commit twice |
tags: | added: bugsmash |
Changed in cinder: | |
assignee: | Jay Conroy (jayconroy) → TommyLike (hu-husheng) |
Dear Jay,
If I am right, this is already fixed by Cao Shufeng.
Let me check, will share the bug id.