mandatory security group quota even it's an optional extension
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Undecided
|
Liyingjun | ||
Icehouse |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
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
tags: | added: quotas |
tags: | added: neutron |
Changed in horizon: | |
assignee: | nobody → Liyingjun (liyingjun) |
status: | New → Confirmed |
Changed in horizon: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | juno-2 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/101813
Review: https:/