Cannot update quotas using the XML API

Bug #1280159 reported by Sylvain Baubeau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
High
Sylvain Baubeau
Havana
Fix Released
High
Flavio Percoco

Bug Description

When one tries to update the quota set for a tenant, Cinder returns a "Quota limit must be specified as an integer value." error.

The request is a PUT to "PUT /v1/tenant_id/os-quota-sets/tenant_id" with the following body :

<?xml version="1.0" encoding="UTF-8"?>
<quota_set><gigabytes>1000</gigabytes><snapshots>10</snapshots><volumes>10</volumes></quota_set>

(This is the output of a GET on the same URL)

Changed in cinder:
assignee: nobody → Sylvain Baubeau (lebauce-t)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/73565

Changed in cinder:
status: New → In Progress
Changed in cinder:
importance: Undecided → High
milestone: none → icehouse-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/73565
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=a444ca8646103042d665536796168252a8ca1031
Submitter: Jenkins
Branch: master

commit a444ca8646103042d665536796168252a8ca1031
Author: Sylvain Baubeau <email address hidden>
Date: Fri Feb 14 18:13:50 2014 +0100

    Cast the quota set values to integer before checking their validity

    Change-Id: I56409607d435a5e2ff702ccb9f19c5d12b432570
    Closes-Bug: #1280159

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/80941

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/havana)

Reviewed: https://review.openstack.org/80941
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=9ff2f90a3f26ec27f2eead43e8c50fc33b2ee84c
Submitter: Jenkins
Branch: stable/havana

commit 9ff2f90a3f26ec27f2eead43e8c50fc33b2ee84c
Author: Sylvain Baubeau <email address hidden>
Date: Fri Feb 14 18:13:50 2014 +0100

    Cast the quota set values to integer before checking their validity

    Closes-Bug: #1280159
    (cherry picked from commit a444ca8646103042d665536796168252a8ca1031)

    Conflicts:
     cinder/api/contrib/quotas.py

    Change-Id: I56409607d435a5e2ff702ccb9f19c5d12b432570

tags: added: in-stable-havana
Thierry Carrez (ttx)
Changed in cinder:
milestone: icehouse-3 → 2014.1
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.