Cinder can extend volume size to more than 'per_volume_gigabytes' quota value

Bug #1650589 reported by Alexander Gromov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
Medium
Michael Dovgal

Bug Description

MOS 9.2 snapshot #638

Steps to reproduce:
1. Get current project_id
project_id=$(openstack project show -f value -c id admin)

2. Set per-volume-gigabytes to 20GB
cinder quota-update --per-volume-gigabytes 20 $project_id

3. Create volume with size less than quota value
cinder create 10

4. Try to extend volume's size to the value more than quota
cinder extend <volume id> 25

Expected results:
OverLimit Exception should be raised.

Actual result:
Extension is successful.

The output example for snapshot #638: http://paste.openstack.org/show/592641/

Changed in mos:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → MOS Cinder (mos-cinder)
milestone: none → 9.2
importance: High → Medium
Michael Dovgal (mdovgal)
Changed in mos:
assignee: MOS Cinder (mos-cinder) → Michael Dovgal (mdovgal)
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/cinder (9.0/mitaka)

Fix proposed to branch: 9.0/mitaka
Change author: Cao ShuFeng <email address hidden>
Review: https://review.fuel-infra.org/29489

Changed in mos:
status: Confirmed → In Progress
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/cinder (9.0/mitaka)

Reviewed: https://review.fuel-infra.org/29489
Submitter: Pkgs Jenkins <email address hidden>
Branch: 9.0/mitaka

Commit: f8dd403a7cd5729d4e13f21a71411e455913cdb8
Author: Cao ShuFeng <email address hidden>
Date: Wed Dec 21 16:00:24 2016

check per_volume_gigabytes quota for cinder extend

Cinder extend will not check per_volume_gigabytes quota now. This
allows user to extend a volume to a size lager than
per_volume_gigabytes. This change disables such behavior.

Change-Id: Id3015ecdd6300bea02e989349b355d1404f26403
Closes-Bug: #1650589

Changed in mos:
status: In Progress → Fix Committed
tags: added: on-verification
Revision history for this message
TatyanaGladysheva (tgladysheva) wrote :

Verified on 9.2 snapshot #670.

Actual results:
http://paste.openstack.org/show/593228/

tags: removed: on-verification
Changed in mos:
status: Fix Committed → Fix Released
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.