While trying to create secutiy group rule beyond quota limit appropriate error message is not seen

Bug #1381634 reported by Kumar Harsh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R1.1
Won't Fix
Medium
Sachin Bansal
R3.0
Fix Committed
Medium
Sachin Bansal
Trunk
Fix Committed
Medium
Sachin Bansal

Bug Description

Build 52 Ubuntu havana

While trying to create security group rule beyond quota limit appropriate error message is not seen :

It just results in internal server error :

2014-10-15 22:05:35,319 - ERROR - Quantum Exception while creating SG Rule {'direction': 'ingress', 'protocol': 'tcp', 'security_group_id': u'c9961518-ece7-4b50-a16e-11003679908e'}
Traceback (most recent call last):
  File "/root/home/hkumar/contrail-test/fixtures/quantum_test.py", line 218, in create_security_group_rule
    {'security_group_rule': sg_rule_dict})
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 108, in with_params
    ret = self.function(instance, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 628, in create_security_group_rule
    return self.post(self.security_group_rules_path, body=body)
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1334, in post
    headers=headers, params=params)
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1257, in do_request
    self._handle_fault_response(status_code, replybody)
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1227, in _handle_fault_response
    exception_handler_v20(status_code, des_error_body)
  File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 81, in exception_handler_v20
    message=error_dict)
NeutronClientException: Request Failed: internal server error while processing your request.

tags: added: releasenote
tags: removed: releasenote
Revision history for this message
Sachin Bansal (sbansal) wrote :

Just tried on the latest code and proper error message is displayed:
root@b4s9:/usr/lib/python2.7/dist-packages/device_manager# neutron security-group-create sg1
Bad security_group request: ['default-domain', 'admin', 'sg1'] : quota limit (1) exceeded for resource security-group (HTTP 400) (Request-ID: req-8ab040db-6647-45c2-a0d1-c8f330835c58)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.