Quota delete command doesn't reset quota to default values

Bug #1503054 reported by Antoine Eiche
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
In Progress
Undecided
Unassigned
OpenContrail
New
Undecided
Unassigned

Bug Description

According to
http://docs.openstack.org/user-guide-admin/networking_advanced_quotas.html,
when you run the quota-delete command, "you can see that quota
values for the tenant are reset to the default values". However,
this is not the current behavior of the neutron plugin which
resets quotas to value -1 (unlimited quota).

1. We update the network quota value
    $ neutron quota-update --tenant-id ea6c9e9d64684449af1ac298e60d68f0 --network 42 -c network -f json
    [{"Field": "network", "Value": 42}]
2. We delete quotas associated to tenant ea6c9e9d64684449af1ac298e60d68f0w
    $ neutron quota-delete --tenant-id ea6c9e9d64684449af1ac298e60d68f0w
    Deleted quota: ea6c9e9d64684449af1ac298e60d68f0
3. Quota default value defined in /etc/neutron.conf
    $ grep quota_network /etc/neutron/neutron.conf
    quota_network = 10
4. But after deletion, the quota is set to -1
    $ neutron quota-show --tenant-id ea6c9e9d64684449af1ac298e60d68f0 -c network -f json
    [{"Field": "network", "Value": -1}]

However, the valid result is [{"Field": "network", "Value": 10}].

Tags: neutronapi
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/14255
Submitter: Antoine Eiche (<email address hidden>)

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.