[Description]
The request rate is too high when running test_security_group_rules.py, which leads the request failure and test error.
[Error Log]
======================================================================
ERROR: Positive test: Creation of Security Group rule
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/april/latest/latest/tempest/tests/compute/security_groups/test_security_group_rules.py", line 97, in test_security_group_rules_create_with_optional_arguments
group_rule_id = rule['id']
UnboundLocalError: local variable 'rule' referenced before assignment
-------------------- >> begin captured stdout << ---------------------
base_urlhttp://10.239.80.138:8774/v2/e66a888570dd4842a84c537a19cf1623
--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
tempest.common.rest_client: ERROR: Request URL: http://10.239.80.138:8774/v2/e66a888570dd4842a84c537a19cf1623/os-security-groups
tempest.common.rest_client: ERROR: Request Body: <?xml version="1.0" encoding="UTF-8"?>
<security_group name="securitygroup-292691"><description >description-67789</description></security_group>
tempest.common.rest_client: ERROR: Response Headers: {'retry-after': '4', 'date': 'Thu, 06 Dec 2012 15:11:54 GMT', 'content-length': '217', 'status': '413', 'content-type': 'text/html; charset=UTF-8'}
tempest.common.rest_client: ERROR: Response Body: {'message': 'This request was rate-limited.', 'code': '413', 'details': 'Only 10 POST request(s) can be made to * every minute.'}
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 16 tests in 3.089s
[Steps to Duplicate]
Run under the /tempest/tests/compute/security_groups folder:
nosetests -v test_security_group_rules
Runing test_security_ groups. py also got this failure.