Backport of Horizon fix for updating disabled security groups quotas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Committed
|
High
|
Timur Sufiev | ||
5.0.x |
Fix Committed
|
High
|
Timur Sufiev | ||
5.1.x |
Fix Committed
|
High
|
Timur Sufiev |
Bug Description
[the following text is copy-pasted from https:/
Our neutron plugin doesn't support security group since it's an optional extension. But when I create project from horizon, i had the following error:
Request body: {u'quota': {u'subnet': 10, u'network': 10, u'floatingip': 50, u'securi\
ty_group_rule': None, u'security_group': None, u'router': 10, u'port': 50}} prepare_request_bo\
dy /opt/stack/
2014-06-11 01:24:30.105 12417 ERROR neutron.
857da17 None] update failed
2014-06-11 01:24:30.105 12417 TRACE neutron.
2014-06-11 01:24:30.105 12417 TRACE neutron.
/api/v2/
2014-06-11 01:24:30.105 12417 TRACE neutron.
t, **args)
2014-06-11 01:24:30.105 12417 TRACE neutron.
/extensions/
2014-06-11 01:24:30.105 12417 TRACE neutron.
CE_COLLECTION])
2014-06-11 01:24:30.105 12417 TRACE neutron.
/api/v2/base.py", line 577, in prepare_
2014-06-11 01:24:30.105 12417 TRACE neutron.
res_dict, attr_info)
2014-06-11 01:24:30.105 12417 TRACE neutron.
/api/v2/base.py", line 624, in _verify_attributes
2014-06-11 01:24:30.105 12417 TRACE neutron.
(msg)
2014-06-11 01:24:30.105 12417 TRACE neutron.
bute(s) 'security_
2014-06-11 01:24:30.105 12417 TRACE neutron.
I traced the code, in openstack_
class UpdateProjectQu
action_class = UpdateProjectQu
depends_on = ("project_id",)
contributes = quotas.QUOTA_FIELDS
it sends everything in quotas.QUOTA_FIELDS to neutron. The quotas.QUOTA_FIELDS has hard coded 'security_group' and 'security_
Please also refer:
https:/
Thanks,
Aaron
Changed in mos: | |
milestone: | 5.0.1 → 5.1 |
Changed in mos: | |
importance: | Undecided → High |
The related change is: https:/ /gerrit. mirantis. com/#/c/ 16815/