Quota delete command doesn't reset quota to default values
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://
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 ea6c9e9d6468444
[{"Field": "network", "Value": 42}]
2. We delete quotas associated to tenant ea6c9e9d6468444
$ neutron quota-delete --tenant-id ea6c9e9d6468444
Deleted quota: ea6c9e9d6468444
3. Quota default value defined in /etc/neutron.conf
$ grep quota_network /etc/neutron/
quota_network = 10
4. But after deletion, the quota is set to -1
$ neutron quota-show --tenant-id ea6c9e9d6468444
[{"Field": "network", "Value": -1}]
However, the valid result is [{"Field": "network", "Value": 10}].
Review in progress for https:/ /review. opencontrail. org/14255
Submitter: Antoine Eiche (<email address hidden>)