← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1286099] [NEW] UpdateProjectQuotas doesn't pay attention on disabled_quotas

 

Public bug reported:

Environment:
- OpenStack Havana release (2013.2.1)
- Neutron

Steps to reproduce:
- Go to admin -> projects
- Try to update project quotas
- Update fails with "Error: Modified project information and members, but unable to modify project quotas."

Workaround:
Comment out "security_group", "security_group_rule" in NEUTRON_QUOTA_FIELDS (openstack_dashboard/usage/quotas.py)

In neutron/server.log:

2014-02-28 11:45:03.145 34093 ERROR neutron.api.v2.resource [-] update failed
2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource Traceback (most recent call last):
2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource   File "/usr/lib/python2.6/site-packages/neutron/api/v2/resource.py", line 84, in resource
2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource     result = method(request=request, **args)
2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource   File "/usr/lib/python2.6/site-packages/neutron/extensions/quotasv2.py", line 107, in update
2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource     EXTENDED_ATTRIBUTES_2_0[RESOURCE_COLLECTION])
2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource   File "/usr/lib/python2.6/site-packages/neutron/api/v2/base.py", line 555, in prepare_request_body
2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource     Controller._verify_attributes(res_dict, attr_info)
2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource   File "/usr/lib/python2.6/site-packages/neutron/api/v2/base.py", line 602, in _verify_attributes
2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource     raise webob.exc.HTTPBadRequest(msg)
2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource HTTPBadRequest: Unrecognized attribute(s) 'security_group_rule, security_group'
2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1286099

Title:
  UpdateProjectQuotas doesn't pay attention on disabled_quotas

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Environment:
  - OpenStack Havana release (2013.2.1)
  - Neutron

  Steps to reproduce:
  - Go to admin -> projects
  - Try to update project quotas
  - Update fails with "Error: Modified project information and members, but unable to modify project quotas."

  Workaround:
  Comment out "security_group", "security_group_rule" in NEUTRON_QUOTA_FIELDS (openstack_dashboard/usage/quotas.py)

  In neutron/server.log:

  2014-02-28 11:45:03.145 34093 ERROR neutron.api.v2.resource [-] update failed
  2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource Traceback (most recent call last):
  2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource   File "/usr/lib/python2.6/site-packages/neutron/api/v2/resource.py", line 84, in resource
  2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource     result = method(request=request, **args)
  2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource   File "/usr/lib/python2.6/site-packages/neutron/extensions/quotasv2.py", line 107, in update
  2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource     EXTENDED_ATTRIBUTES_2_0[RESOURCE_COLLECTION])
  2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource   File "/usr/lib/python2.6/site-packages/neutron/api/v2/base.py", line 555, in prepare_request_body
  2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource     Controller._verify_attributes(res_dict, attr_info)
  2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource   File "/usr/lib/python2.6/site-packages/neutron/api/v2/base.py", line 602, in _verify_attributes
  2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource     raise webob.exc.HTTPBadRequest(msg)
  2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource HTTPBadRequest: Unrecognized attribute(s) 'security_group_rule, security_group'
  2014-02-28 11:45:03.145 34093 TRACE neutron.api.v2.resource

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1286099/+subscriptions


Follow ups

References