nova should have a option to reset(or delete) the user quota to default

Bug #1064854 reported by Vijaya Erukala
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Unassigned
python-novaclient
Fix Released
Medium
Unassigned

Bug Description

At present nova client has following commands for the quota operation.

$nova --help | grep quota
    quota-defaults List the default quotas for a tenant.
    quota-show List the quotas for a tenant.
    quota-update Update the quotas for a tenant.

It will be very helpful to have a command to reset(or delete) quota values to defaults .
For ex: User who wants to do huge tests on the system and rollback once the test is done.

So a new command quota-reset need to be added to the nova client which reverts the quota value supplied for the tenant ,to the default.

Something similar to nova quota-reset( <tenant-id > <key>)

we can use nova quota-defaults to list the default quotas then use the quota-update to update the quota's to default, but the problem with this approach is that if you then change the default quotas, they are not reflected for the tenant.

similar discussion I have started here :https://lists.launchpad.net/openstack/msg17306.html

Tags: api
Changed in nova:
assignee: nobody → Vijaya Erukala (vijaya-erukala)
description: updated
Changed in python-novaclient:
assignee: nobody → Vijaya Erukala (vijaya-erukala)
Michael Still (mikal)
Changed in nova:
status: New → Triaged
importance: Undecided → Medium
Changed in python-novaclient:
importance: Undecided → Medium
status: New → Triaged
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/15104

Changed in nova:
assignee: Vijaya Erukala (vijaya-erukala) → boddepalli srikanth (boddepalli-srikanth)
status: Triaged → In Progress
Changed in python-novaclient:
assignee: Vijaya Erukala (vijaya-erukala) → boddepalli srikanth (boddepalli-srikanth)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

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

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/17580

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

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

Changed in nova:
status: In Progress → Confirmed
assignee: boddepalli srikanth (boddepalli-srikanth) → nobody
Changed in python-novaclient:
status: In Progress → Confirmed
assignee: boddepalli srikanth (boddepalli-srikanth) → nobody
Changed in nova:
assignee: nobody → Sergio Cazzolato (sergio-j-cazzolato)
Changed in python-novaclient:
assignee: nobody → Sergio Cazzolato (sergio-j-cazzolato)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in nova:
status: Confirmed → In Progress
Changed in python-novaclient:
status: Confirmed → In Progress
Revision history for this message
Michael Still (mikal) wrote :

Both of the patches associated with this bug are abandoned.

Changed in nova:
status: In Progress → New
assignee: Sergio Cazzolato (sergio-j-cazzolato) → nobody
Changed in python-novaclient:
status: In Progress → New
assignee: Sergio Cazzolato (sergio-j-cazzolato) → nobody
Revision history for this message
Michael Turek (mjturek) wrote :

This request is pretty old, is this still a desired feature?

Tracy Jones (tjones-i)
tags: added: api
Revision history for this message
Miguel Grinberg (miguelgrinberg) wrote :

Looks like this was already implemented by "quota-delete".

$ nova --help | grep quota
    quota-class-show List the quotas for a quota class.
    quota-class-update Update the quotas for a quota class.
    quota-defaults List the default quotas for a tenant.
    quota-delete Delete quota for a tenant/user so their quota
    quota-show List the quotas for a tenant/user.
    quota-update Update the quotas for a tenant/user.

Revision history for this message
Christopher Yeoh (cyeoh-0) wrote :

Agreed, looks like this is already implemented

Changed in nova:
status: New → Fix Released
Changed in python-novaclient:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Matt Riedemann (<email address hidden>) on branch: master
Review: https://review.openstack.org/15104
Reason: Please write up a blueprint spec for Kilo if this is something you want to still pursue.

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.