Add ability to change default quota
Bug #1668125 reported by
yong sheng gong
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Problem:
Currently, the default quota is defined in configure file of neutron server: neutron.conf.
admin isnot able to change it via API.
other service nova, cinder can do it by, for example 'nova quota-class-update --instances -1 --cores -1 default'
expectation:
implement an API to let admin change the default quota. By client, it maybe:
neutron quota-class-update --ports xx --networks yy --security-groups --zz default
To post a comment you must log in.
The way to change those values is thru the OSC,:
$ openstack project list ------- ------- ------- ------- +------ ------- ------- + ------- ------- ------- ------- +------ ------- ------- + 3a0abadcf1e35c9 f4 | demo | eaf365d7148f8f4 65 | invisible_to_admin | db6222eae1e1639 c0 | admin | 89c401d42345f75 b2 | service | 6845cd7919512ed 01 | alt_demo | ------- ------- ------- ------- +------ ------- ------- +
+------
| ID | Name |
+------
| 49f3e83f85354ee
| 5a46e724e04d41b
| 6ebf8c5aadea49f
| 82533c3679a7471
| a0c776bc0aa645a
+------
$ openstack quota set --secgroups 15 49f3e83f85354ee 3a0abadcf1e35c9 f4
$ openstack quota show 49f3e83f85354ee 3a0abadcf1e35c9 f4 ------- ------- ---+--- ------- ------- ------- ------- ---+ ------- ------- ---+--- ------- ------- ------- ------- ---+ lvmdriver- 1 | -1 | gigabytes | -1 | 3a0abadcf1e35c9 f4 | group-members | 10 | lvmdriver- 1 | -1 |
+------
| Field | Value |
+------
| backup-gigabytes | 1000 |
| backups | 10 |
| cores | 20 |
| fixed-ips | -1 |
| floating-ips | 50 |
| gigabytes | 1000 |
| gigabytes_
| health_monitors | None |
| injected-file-size | 10240 |
| injected-files | 5 |
| injected-path-size | 255 |
| instances | 10 |
| key-pairs | 100 |
| l7_policies | None |
| listeners | None |
| load_balancers | None |
| location | None |
| name | None |
| networks | 10 |
| per-volume-
| pools | None |
| ports | 50 |
| project | 49f3e83f85354ee
| project_id | None |
| properties | 128 |
| ram | 51200 |
| rbac_policies | 10 |
| routers | 10 |
| secgroup-rules | 100 |
| secgroups | 15 |
| server-
| server-groups | 10 |
| snapshots | 10 |
| snapshots_
| subnet_pools | -1 |
| subnets | 10 |
| volumes | 10 |
| volumes_lvmdriver-1 | -1 ...