Quota "injected-file-content-bytes" does not work for each user

Bug #1227434 reported by Ken'ichi Ohmichi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Ken'ichi Ohmichi

Bug Description

"nova quota-update --injected-file-content-bytes 1024 --user <user> <tenant>" is executed, the result is like the following:

$ nova quota-update --injected-file-content-bytes 1024 --user 90380a66fd644f4e84104a175cba31a3 d42d3159ef7c42b5a48435116291a1b4
ERROR: The resource could not be found. (HTTP 404) (Request-ID: req-4429b291-85cb-4d78-b04d-0e6fa4341e8b)
$

Changed in nova:
assignee: nobody → Ken'ichi Ohmichi (oomichi)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: New → In Progress
tags: added: havana-rc-potential
Changed in nova:
importance: Undecided → Medium
milestone: none → havana-rc2
Revision history for this message
Russell Bryant (russellb) wrote :

On second thought, since this requires a DB migration, I think it would be better to hold off and backport this to stable/havana instead of adding it to havana-rc2 since we're so close to the havana release. Most of the user quota feature still works, so it's not a high priority bug. I'll add this to the list of known issues in the havana release.

Changed in nova:
milestone: havana-rc2 → none
tags: added: havana-backport-potential
removed: havana-rc-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/47299
Committed: http://github.com/openstack/nova/commit/16c9054ce3973eb2fe2f26180a6278659961ac52
Submitter: Jenkins
Branch: master

commit 16c9054ce3973eb2fe2f26180a6278659961ac52
Author: Ken'ichi Ohmichi <email address hidden>
Date: Wed Oct 9 15:30:40 2013 +0900

    Fix "resource" length in project_user_quotas table

    "nova quota-update --injected-file-content-bytes 1024 --user <user> <tenant>"
    is executed, the result is like the following:

    $ nova quota-update --injected-file-content-bytes 1024 --user [..]
    ERROR: The resource could not be found. (HTTP 404)
    $

    This is due to invalid length of resource in project_user_quotas table.
    Current length is 25 and "injected_file_content_bytes" is shortened to
    "injected_file_content_byt":

    mysql> select resource from project_user_quotas;
    +---------------------------+
    | resource |
    +---------------------------+
    | injected_file_content_byt |
    +---------------------------+

    The resource of project_user_quotas table has been changed to invalid
    length(25) since I56ad98d3702f53fe8cfa94093fea89074f7a5e90. The change
    does not seem intention, that would be just a bug.
    This patch fixes the problem.

    Closes-Bug: 1227434

    Change-Id: I3e080c30698dde62625eb477a85e1816191ff1e5

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
no longer affects: nova/havana
Changed in nova:
milestone: none → icehouse-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-1 → 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.