Cluster Details :
Contrail image : contrail-install-packages_3.2.9.0-67~kilo_all.deb / Ubuntu 14.0.4
3 Control Nodes
2 Compute Nodes
Issue observed : Able to create a virtual network when Quota limit is already reached.
########
#Step 1
########
2018-03-02 23:06:08,337 - INFO - Created Project:ctest-TestQuotaUpdate-54944764, ID : 516881b0-990c-4bd3-98e8-9141d636a37f
########
#Step 2
########
Delete the quota for the project and show the default quota
2018-03-02 23:06:55,581 - DEBUG - Response for deleting quota
2018-03-02 23:06:56,409 - INFO - Defalult quota set for tenant ctest-TestQuotaUpdate-54944764 is :
{u'quota': {u'subnet': -1, u'network': -1, u'floatingip': -1, u'health_monitor': -1, u'security_group_rule': -1, u'vip': -1, u'member': -1, u'route_table': -1, u'security_group': -1, u'router': -1, u'port': -1, u'pool': -1, u'nat_instance': -1}}
########
#Step 3
########
Update the quota for the project to 10
2018-03-02 23:06:57,434 - INFO - Updated quota for tenant ctest-TestQuotaUpdate-54944764 is :
{u'quota': {u'subnet': 10, u'network': 10, u'floatingip': -1, u'health_monitor': -1, u'security_group_rule': 10, u'vip': -1, u'member': -1, u'route_table': -1, u'security_group': -1, u'router': -1, u'port': -1, u'pool': -1, u'nat_instance': -1}}
########
#Step 4
########
Check the quota usage from api server
2018-03-02 23:06:58,158 - INFO - Resource : subnets -- Quota Consumed : 0
2018-03-02 23:06:58,159 - INFO - Resource : virtual-networks -- Quota Consumed : 0
2018-03-02 23:06:58,159 - INFO - Resource : security-groups -- Quota Consumed : 1
2018-03-02 23:06:58,159 - INFO - Resource : security-group-rules -- Quota Consumed : 4
2018-03-02 23:06:58,159 - INFO - Resource : loadbalancer-pools -- Quota Consumed : 0
2018-03-02 23:06:58,159 - INFO - Resource : service-instances -- Quota Consumed : 0
2018-03-02 23:06:58,159 - INFO - Resource : virtual-DNSs -- Quota Consumed : 0
2018-03-02 23:06:58,159 - INFO - Resource : floating-ip-pools -- Quota Consumed : 0
2018-03-02 23:06:58,159 - INFO - Resource : network-ipams -- Quota Consumed : 0
2018-03-02 23:06:58,159 - INFO - Resource : logical-routers -- Quota Consumed : 0
2018-03-02 23:06:58,160 - INFO - Resource : virtual-machine-interfaces -- Quota Consumed : 0
2018-03-02 23:06:58,160 - INFO - Resource : virtual-ips -- Quota Consumed : 0
2018-03-02 23:06:58,160 - INFO - Resource : network-policys -- Quota Consumed : 0
2018-03-02 23:06:58,160 - INFO - Resource : loadbalancer-members -- Quota Consumed : 0
2018-03-02 23:06:58,160 - INFO - Resource : loadbalancer-healthmonitors -- Quota Consumed : 0
2018-03-02 23:06:58,160 - INFO - Resource : instance-ips -- Quota Consumed : 0
2018-03-02 23:06:58,160 - INFO - Resource : virtual-DNS-records -- Quota Consumed : 0
2018-03-02 23:06:58,160 - INFO - Resource : service-templates -- Quota Consumed : 0
########
#Step 5
########
Create 10 VNs, 3*2 + 4 = 10 sg rules and reach the quota limit
2018-03-02 23:06:59,369 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn0-63031598', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'ea896a40-9779-42e0-9e19-b46e8946454b', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn0-63031598']}}
2018-03-02 23:07:00,129 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'ea896a40-9779-42e0-9e19-b46e8946454b', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.0.1', u'contrail:dns_server_address': u'11.1.0.2', u'allocation_pools': [{u'start': u'11.1.0.2', u'end': u'11.1.0.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.0.0/24', u'id': u'ea7e766a-350d-451b-83f3-db4b1e3a5a87'}}
2018-03-02 23:07:00,421 - INFO - Created VN ctest-test_sec_vn0-63031598
2018-03-02 23:07:06,997 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn1-35476855', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'9e058381-300e-49e5-beda-be33a3310ad7', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn1-35476855']}}
2018-03-02 23:07:08,614 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'9e058381-300e-49e5-beda-be33a3310ad7', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.1.1', u'contrail:dns_server_address': u'11.1.1.2', u'allocation_pools': [{u'start': u'11.1.1.2', u'end': u'11.1.1.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.1.0/24', u'id': u'196cbf6e-93e6-48ac-b6fe-9f207314237b'}}
2018-03-02 23:07:08,653 - INFO - Created VN ctest-test_sec_vn1-35476855
2018-03-02 23:07:13,124 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn2-52812856', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'90783a64-40c5-4166-83ac-fb0bd6500b4c', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn2-52812856']}}
2018-03-02 23:07:14,382 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'90783a64-40c5-4166-83ac-fb0bd6500b4c', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.2.1', u'contrail:dns_server_address': u'11.1.2.2', u'allocation_pools': [{u'start': u'11.1.2.2', u'end': u'11.1.2.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.2.0/24', u'id': u'128d03df-25b8-412a-a39e-438732cb2e68'}}
2018-03-02 23:07:14,447 - INFO - Created VN ctest-test_sec_vn2-52812856
2018-03-02 23:07:19,768 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn3-63991868', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'b6a14191-81ac-444e-9758-3d696e2f56dd', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn3-63991868']}}
2018-03-02 23:07:20,500 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'b6a14191-81ac-444e-9758-3d696e2f56dd', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.3.1', u'contrail:dns_server_address': u'11.1.3.2', u'allocation_pools': [{u'start': u'11.1.3.2', u'end': u'11.1.3.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.3.0/24', u'id': u'2f2072e1-9ff9-44f3-8350-20734acaf351'}}
2018-03-02 23:07:21,003 - INFO - Created VN ctest-test_sec_vn3-63991868
2018-03-02 23:07:24,330 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn4-70607770', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'5c1f1e19-f73d-4e11-8885-67644a89fcb2', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn4-70607770']}}
2018-03-02 23:07:24,978 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'5c1f1e19-f73d-4e11-8885-67644a89fcb2', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.4.1', u'contrail:dns_server_address': u'11.1.4.2', u'allocation_pools': [{u'start': u'11.1.4.2', u'end': u'11.1.4.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.4.0/24', u'id': u'b3386bcf-3302-49c8-9378-91f0b75c6e6d'}}
2018-03-02 23:07:25,045 - INFO - Created VN ctest-test_sec_vn4-70607770
2018-03-02 23:07:29,865 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn5-72269789', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'870eada9-9237-47d8-a083-c7eef5f0a010', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn5-72269789']}}
2018-03-02 23:07:30,779 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'870eada9-9237-47d8-a083-c7eef5f0a010', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.5.1', u'contrail:dns_server_address': u'11.1.5.2', u'allocation_pools': [{u'start': u'11.1.5.2', u'end': u'11.1.5.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.5.0/24', u'id': u'f1d1d4fe-1855-4c73-a813-ec0dc6a01732'}}
2018-03-02 23:07:30,813 - INFO - Created VN ctest-test_sec_vn5-72269789
2018-03-02 23:07:34,636 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn6-77678894', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'736710f8-7d38-4528-ae13-c0af838ca36c', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn6-77678894']}}
2018-03-02 23:07:35,793 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'736710f8-7d38-4528-ae13-c0af838ca36c', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.6.1', u'contrail:dns_server_address': u'11.1.6.2', u'allocation_pools': [{u'start': u'11.1.6.2', u'end': u'11.1.6.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.6.0/24', u'id': u'e3688586-c88c-40fc-b077-f4871ca251c1'}}
2018-03-02 23:07:35,823 - INFO - Created VN ctest-test_sec_vn6-77678894
2018-03-02 23:07:40,256 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn7-46271248', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'bf76fb0d-8700-40ec-ae9d-b335300f9051', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn7-46271248']}}
2018-03-02 23:07:40,738 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'bf76fb0d-8700-40ec-ae9d-b335300f9051', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.7.1', u'contrail:dns_server_address': u'11.1.7.2', u'allocation_pools': [{u'start': u'11.1.7.2', u'end': u'11.1.7.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.7.0/24', u'id': u'911d1fdd-505f-4111-9201-b474a1a1fcca'}}
2018-03-02 23:07:41,070 - INFO - Created VN ctest-test_sec_vn7-46271248
2018-03-02 23:07:45,021 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn8-67096196', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'5aad6169-e3a8-483a-9c90-54b3b1b60aaf', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn8-67096196']}}
2018-03-02 23:07:46,072 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'5aad6169-e3a8-483a-9c90-54b3b1b60aaf', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.8.1', u'contrail:dns_server_address': u'11.1.8.2', u'allocation_pools': [{u'start': u'11.1.8.2', u'end': u'11.1.8.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.8.0/24', u'id': u'3fcb2da7-4efd-4f90-9565-1f5ee5526436'}}
2018-03-02 23:07:46,101 - INFO - Created VN ctest-test_sec_vn8-67096196
2018-03-02 23:07:49,573 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn9-64882036', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'232d48f9-d3e9-466e-9a54-f9e1afe27954', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn9-64882036']}}
2018-03-02 23:07:50,078 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'232d48f9-d3e9-466e-9a54-f9e1afe27954', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.9.1', u'contrail:dns_server_address': u'11.1.9.2', u'allocation_pools': [{u'start': u'11.1.9.2', u'end': u'11.1.9.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.9.0/24', u'id': u'e29e85b8-62e9-47c5-9277-2f366e79e144'}}
2018-03-02 23:07:50,162 - INFO - Created VN ctest-test_sec_vn9-64882036
2018-03-02 23:07:53,191 - INFO - Creating Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp0-32642132']
2018-03-02 23:07:55,494 - DEBUG - Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp0-32642132'] created succesfully
2018-03-02 23:07:55,895 - INFO - Creating Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp1-95039383']
2018-03-02 23:07:58,310 - DEBUG - Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp1-95039383'] created succesfully
2018-03-02 23:07:58,674 - INFO - Creating Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp2-17187833']
2018-03-02 23:08:00,191 - DEBUG - Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp2-17187833'] created succesfully
########
#Step 6
########
Update the quota limit to 5
2018-03-02 23:08:01,492 - INFO - Updated quota for tenant ctest-TestQuotaUpdate-54944764 is :
{u'quota': {u'subnet': 5, u'network': 5, u'floatingip': -1, u'health_monitor': -1, u'security_group_rule': 5, u'vip': -1, u'member': -1, u'route_table': -1, u'security_group': -1, u'router': -1, u'port': -1, u'pool': -1, u'nat_instance': -1}}
########
#Step 7
########
Try to create a subnet,vn and add one more sg rule to an existing sg and all 3 operations fail as expected.
2018-03-02 23:08:02,640 - ERROR - Neutron Exception while creating subnet for vn with id ea896a40-9779-42e0-9e19-b46e8946454b
Traceback (most recent call last):
File "/contrail-test/fixtures/quantum_test.py", line 119, in create_subnet
subnet_rsp = self.obj.create_subnet({'subnet': subnet_req})
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params
ret = self.function(instance, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 568, in create_subnet
return self.post(self.subnets_path, body=body)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 295, in post
headers=headers, params=params)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 208, in do_request
self._handle_fault_response(status_code, replybody)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 182, 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 67, in exception_handler_v20
status_code=status_code)
OverQuotaClient: Quota exceeded for resources: ['subnet']
2018-03-02 23:08:02,646 - INFO - Subnet creation failed as expected with Quota exception : Quota exceeded for resources: ['subnet']
2018-03-02 23:08:03,381 - ERROR - Neutron Exception while creating network ctest-test_sec_vn10-52876919
Traceback (most recent call last):
File "/contrail-test/fixtures/quantum_test.py", line 93, in create_network
net_rsp = self.obj.create_network({'network': net_req})
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params
ret = self.function(instance, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 542, in create_network
return self.post(self.networks_path, body=body)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 295, in post
headers=headers, params=params)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 208, in do_request
self._handle_fault_response(status_code, replybody)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 182, 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 67, in exception_handler_v20
status_code=status_code)
OverQuotaClient: Quota exceeded for resources: ['virtual_network']
2018-03-02 23:08:03,382 - INFO - VN creation failed as expected with Quota exception : Quota exceeded for resources: ['virtual_network']
2018-03-02 23:08:04,260 - ERROR - Neutron Exception while creating SG Rule {'remote_ip_prefix': '0.0.0.0/0', 'direction': 'egress', 'protocol': 'udp', 'ethertype': 'IPv4', 'security_group_id': u'8daead1c-63b0-47cc-9534-f1d1db460304'}
Traceback (most recent call last):
File "/contrail-test/fixtures/quantum_test.py", line 219, in create_security_group_rule
{'security_group_rule': sg_rule_dict})
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params
ret = self.function(instance, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 828, 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 295, in post
headers=headers, params=params)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 208, in do_request
self._handle_fault_response(status_code, replybody)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 182, 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 67, in exception_handler_v20
status_code=status_code)
OverQuotaClient: Quota exceeded for resources: ['security_group_rule']
2018-03-02 23:08:04,260 - ERROR - error while creating sg rule through quantum
2018-03-02 23:08:04,261 - INFO - SG Rule creation failed as expected with Quota exception : Quota exceeded for resources: ['security_group_rule']
########
#Step 8
########
Delete all the VN,SG,SGRs
2018-03-02 23:08:04,261 - INFO - Deleting Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp2-17187833']
2018-03-02 23:08:04,505 - INFO - Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp2-17187833'] deleted successfully.
2018-03-02 23:08:04,816 - INFO - Deleting Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp1-95039383']
2018-03-02 23:08:04,981 - INFO - Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp1-95039383'] deleted successfully.
2018-03-02 23:08:05,285 - INFO - Deleting Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp0-32642132']
2018-03-02 23:08:05,545 - INFO - Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp0-32642132'] deleted successfully.
2018-03-02 23:08:05,885 - INFO - Deleting VN ctest-test_sec_vn9-64882036
2018-03-02 23:08:06,442 - INFO - Deleting VN ctest-test_sec_vn8-67096196
2018-03-02 23:08:06,918 - INFO - Deleting VN ctest-test_sec_vn7-46271248
2018-03-02 23:08:07,333 - INFO - Deleting VN ctest-test_sec_vn6-77678894
2018-03-02 23:08:07,843 - INFO - Deleting VN ctest-test_sec_vn5-72269789
2018-03-02 23:08:08,240 - INFO - Deleting VN ctest-test_sec_vn4-70607770
2018-03-02 23:08:08,668 - INFO - Deleting VN ctest-test_sec_vn3-63991868
2018-03-02 23:08:09,070 - INFO - Deleting VN ctest-test_sec_vn2-52812856
2018-03-02 23:08:09,474 - INFO - Deleting VN ctest-test_sec_vn1-35476855
2018-03-02 23:08:09,933 - INFO - Deleting VN ctest-test_sec_vn0-63031598
########
#Step 9
########
Delete the quota for the tenant
########
#Step 10
########
Delete the quota for the tenant and show the default quota values.
2018-03-02 23:08:58,323 - DEBUG - Response for deleting quota
2018-03-02 23:08:58,428 - INFO - Defalult quota set for tenant ctest-TestQuotaUpdate-54944764 is :
{u'quota': {u'subnet': -1, u'network': -1, u'floatingip': -1, u'health_monitor': -1, u'security_group_rule': -1, u'vip': -1, u'member': -1, u'route_table': -1, u'security_group': -1, u'router': -1, u'port': -1, u'pool': -1, u'nat_instance': -1}}
########
#Step 11
########
Check resource usage from api server.
2018-03-02 23:08:58,787 - INFO - Resource : subnets -- Quota Consumed : 0
2018-03-02 23:08:58,787 - INFO - Resource : virtual-networks -- Quota Consumed : 0
2018-03-02 23:08:58,787 - INFO - Resource : security-groups -- Quota Consumed : 1
2018-03-02 23:08:58,787 - INFO - Resource : security-group-rules -- Quota Consumed : 4
2018-03-02 23:08:58,787 - INFO - Resource : loadbalancer-pools -- Quota Consumed : 0
2018-03-02 23:08:58,787 - INFO - Resource : service-instances -- Quota Consumed : 0
2018-03-02 23:08:58,787 - INFO - Resource : virtual-DNSs -- Quota Consumed : 0
2018-03-02 23:08:58,787 - INFO - Resource : floating-ip-pools -- Quota Consumed : 0
2018-03-02 23:08:58,788 - INFO - Resource : network-ipams -- Quota Consumed : 0
2018-03-02 23:08:58,788 - INFO - Resource : logical-routers -- Quota Consumed : 0
2018-03-02 23:08:58,788 - INFO - Resource : virtual-machine-interfaces -- Quota Consumed : 0
2018-03-02 23:08:58,788 - INFO - Resource : virtual-ips -- Quota Consumed : 0
2018-03-02 23:08:58,788 - INFO - Resource : network-policys -- Quota Consumed : 0
2018-03-02 23:08:58,788 - INFO - Resource : loadbalancer-members -- Quota Consumed : 0
2018-03-02 23:08:58,788 - INFO - Resource : loadbalancer-healthmonitors -- Quota Consumed : 0
2018-03-02 23:08:58,788 - INFO - Resource : instance-ips -- Quota Consumed : 0
2018-03-02 23:08:58,788 - INFO - Resource : virtual-DNS-records -- Quota Consumed : 0
2018-03-02 23:08:58,788 - INFO - Resource : service-templates -- Quota Consumed : 0
########
#Step 12
########
Create 11 VN, 8+4 = 12 sgrules
2018-03-02 23:08:59,568 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn0-44711933', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'103e575d-b11c-4145-9f87-de7b008e9525', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn0-44711933']}}
2018-03-02 23:09:00,227 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'103e575d-b11c-4145-9f87-de7b008e9525', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.0.1', u'contrail:dns_server_address': u'11.1.0.2', u'allocation_pools': [{u'start': u'11.1.0.2', u'end': u'11.1.0.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.0.0/24', u'id': u'470862c9-a0f1-474f-8c7e-0161629d788b'}}
2018-03-02 23:09:00,263 - INFO - Created VN ctest-test_sec_vn0-44711933
2018-03-02 23:09:04,112 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn1-53003128', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'fd3dba28-ad2d-48fc-a417-ffe48faff48f', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn1-53003128']}}
2018-03-02 23:09:04,868 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'fd3dba28-ad2d-48fc-a417-ffe48faff48f', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.1.1', u'contrail:dns_server_address': u'11.1.1.2', u'allocation_pools': [{u'start': u'11.1.1.2', u'end': u'11.1.1.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.1.0/24', u'id': u'75dc06e4-0dc4-4a09-a856-05846105b916'}}
2018-03-02 23:09:04,904 - INFO - Created VN ctest-test_sec_vn1-53003128
2018-03-02 23:09:08,588 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn2-90307836', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'e2f5217d-bf42-4991-a5e9-f4edc80ad349', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn2-90307836']}}
2018-03-02 23:09:09,578 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'e2f5217d-bf42-4991-a5e9-f4edc80ad349', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.2.1', u'contrail:dns_server_address': u'11.1.2.2', u'allocation_pools': [{u'start': u'11.1.2.2', u'end': u'11.1.2.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.2.0/24', u'id': u'1e77fad2-de6d-4531-954e-d9ecea222c04'}}
2018-03-02 23:09:09,660 - INFO - Created VN ctest-test_sec_vn2-90307836
2018-03-02 23:09:13,081 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn3-13636232', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'574d6231-cd17-4813-a46b-8fac8eab5d4f', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn3-13636232']}}
2018-03-02 23:09:14,018 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'574d6231-cd17-4813-a46b-8fac8eab5d4f', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.3.1', u'contrail:dns_server_address': u'11.1.3.2', u'allocation_pools': [{u'start': u'11.1.3.2', u'end': u'11.1.3.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.3.0/24', u'id': u'0a51738d-c3a8-4c16-b241-324544dd01c3'}}
2018-03-02 23:09:14,049 - INFO - Created VN ctest-test_sec_vn3-13636232
2018-03-02 23:09:17,511 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn4-03879794', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'0b8839b3-af4e-4bdd-b3bd-5733eb90ac5f', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn4-03879794']}}
2018-03-02 23:09:18,003 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'0b8839b3-af4e-4bdd-b3bd-5733eb90ac5f', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.4.1', u'contrail:dns_server_address': u'11.1.4.2', u'allocation_pools': [{u'start': u'11.1.4.2', u'end': u'11.1.4.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.4.0/24', u'id': u'68381dd6-551d-4a64-8f7a-b0954def25d6'}}
2018-03-02 23:09:18,113 - INFO - Created VN ctest-test_sec_vn4-03879794
2018-03-02 23:09:21,415 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn5-04221880', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'0e4ce6d2-74d5-4d57-bd46-6027010cd85e', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn5-04221880']}}
2018-03-02 23:09:21,895 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'0e4ce6d2-74d5-4d57-bd46-6027010cd85e', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.5.1', u'contrail:dns_server_address': u'11.1.5.2', u'allocation_pools': [{u'start': u'11.1.5.2', u'end': u'11.1.5.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.5.0/24', u'id': u'32475711-c13f-48b1-9cbb-4e293224db76'}}
2018-03-02 23:09:21,943 - INFO - Created VN ctest-test_sec_vn5-04221880
2018-03-02 23:09:25,202 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn6-13912927', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'25eb51f2-da4a-4315-9e1d-1116def70fdf', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn6-13912927']}}
2018-03-02 23:09:25,693 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'25eb51f2-da4a-4315-9e1d-1116def70fdf', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.6.1', u'contrail:dns_server_address': u'11.1.6.2', u'allocation_pools': [{u'start': u'11.1.6.2', u'end': u'11.1.6.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.6.0/24', u'id': u'fc03161d-df12-4310-8989-3b50fb8d15ce'}}
2018-03-02 23:09:25,739 - INFO - Created VN ctest-test_sec_vn6-13912927
2018-03-02 23:09:29,662 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn7-10563841', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'7878fbe5-8426-4b5a-be2c-894f0253cf12', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn7-10563841']}}
2018-03-02 23:09:30,187 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'7878fbe5-8426-4b5a-be2c-894f0253cf12', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.7.1', u'contrail:dns_server_address': u'11.1.7.2', u'allocation_pools': [{u'start': u'11.1.7.2', u'end': u'11.1.7.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.7.0/24', u'id': u'df48b7ab-9538-4c61-ba43-dcb675d595dc'}}
2018-03-02 23:09:30,223 - INFO - Created VN ctest-test_sec_vn7-10563841
2018-03-02 23:09:34,001 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn8-21831201', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'09d6262b-8f83-467d-b2f9-308a39cb7886', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn8-21831201']}}
2018-03-02 23:09:34,481 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'09d6262b-8f83-467d-b2f9-308a39cb7886', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.8.1', u'contrail:dns_server_address': u'11.1.8.2', u'allocation_pools': [{u'start': u'11.1.8.2', u'end': u'11.1.8.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.8.0/24', u'id': u'83a9389c-6a34-4182-aabb-60518290b856'}}
2018-03-02 23:09:34,513 - INFO - Created VN ctest-test_sec_vn8-21831201
2018-03-02 23:09:38,203 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn9-00776137', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'a56ce93d-360b-4388-92e4-27cbf85cce9e', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn9-00776137']}}
2018-03-02 23:09:38,729 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'a56ce93d-360b-4388-92e4-27cbf85cce9e', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.9.1', u'contrail:dns_server_address': u'11.1.9.2', u'allocation_pools': [{u'start': u'11.1.9.2', u'end': u'11.1.9.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.9.0/24', u'id': u'ca9c8dbc-86f4-46c4-b44e-ca06f8d58a5a'}}
2018-03-02 23:09:38,761 - INFO - Created VN ctest-test_sec_vn9-00776137
2018-03-02 23:09:42,052 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn10-31431202', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'126273d0-31a2-464b-a690-83bdd568ca68', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn10-31431202']}}
2018-03-02 23:09:42,535 - DEBUG - Response for create_subnet : {u'subnet': {u'name': u'', u'enable_dhcp': True, u'ipv6_ra_mode': None, u'network_id': u'126273d0-31a2-464b-a690-83bdd568ca68', u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'dns_nameservers': [], u'gateway_ip': u'11.1.10.1', u'contrail:dns_server_address': u'11.1.10.2', u'allocation_pools': [{u'start': u'11.1.10.2', u'end': u'11.1.10.254'}], u'host_routes': [], u'ip_version': 4, u'ipv6_address_mode': None, u'cidr': u'11.1.10.0/24', u'id': u'b09f5c32-15fe-494d-bc3f-b9d4dedf29b2'}}
2018-03-02 23:09:42,575 - INFO - Created VN ctest-test_sec_vn10-31431202
2018-03-02 23:09:45,228 - INFO - Creating Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp0-13437423']
2018-03-02 23:09:46,563 - DEBUG - Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp0-13437423'] created succesfully
2018-03-02 23:09:46,916 - INFO - Creating Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp1-44912536']
2018-03-02 23:09:48,456 - DEBUG - Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp1-44912536'] created succesfully
2018-03-02 23:09:48,826 - INFO - Creating Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp2-20907551']
2018-03-02 23:09:49,895 - DEBUG - Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp2-20907551'] created succesfully
2018-03-02 23:09:50,279 - INFO - Creating Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp3-09144244']
2018-03-02 23:09:51,610 - DEBUG - Security group: ['default-domain', 'ctest-TestQuotaUpdate-54944764', 'ctest-test_sec_grp3-09144244'] created succesfully
########
#Step 13
########
Update the quota limit to 10
2018-03-02 23:09:52,301 - INFO - Updated quota for tenant ctest-TestQuotaUpdate-54944764 is :
{u'quota': {u'subnet': 10, u'network': 10, u'floatingip': -1, u'health_monitor': -1, u'security_group_rule': 10, u'vip': -1, u'member': -1, u'route_table': -1, u'security_group': -1, u'router': -1, u'port': -1, u'pool': -1, u'nat_instance': -1}}
########
#Step 14
########
Update the quota limit to 5
2018-03-02 23:09:52,661 - INFO - Updated quota for tenant ctest-TestQuotaUpdate-54944764 is :
{u'quota': {u'subnet': 5, u'network': 5, u'floatingip': -1, u'health_monitor': -1, u'security_group_rule': 5, u'vip': -1, u'member': -1, u'route_table': -1, u'security_group': -1, u'router': -1, u'port': -1, u'pool': -1, u'nat_instance': -1}}
########
#Step 15
########
Try to
create a subnet - Fails as expected as quota limit is 5 and we already have 11.
create a network - Does not fail as expected , Virtual network is created here . >>> ISSUE
add a dg rule - Does not fail as expected , SG Rule addition is allowed here. >>> ISSUE
2018-03-02 23:09:52,975 - ERROR - Neutron Exception while creating subnet for vn with id 103e575d-b11c-4145-9f87-de7b008e9525
Traceback (most recent call last):
File "/contrail-test/fixtures/quantum_test.py", line 119, in create_subnet
subnet_rsp = self.obj.create_subnet({'subnet': subnet_req})
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params
ret = self.function(instance, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 568, in create_subnet
return self.post(self.subnets_path, body=body)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 295, in post
headers=headers, params=params)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 208, in do_request
self._handle_fault_response(status_code, replybody)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 182, 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 67, in exception_handler_v20
status_code=status_code)
OverQuotaClient: Quota exceeded for resources: ['subnet']
2018-03-02 23:09:52,976 - INFO - Subnet creation failed as expected with Quota exception : Quota exceeded for resources: ['subnet']
2018-03-02 23:09:54,079 - DEBUG - Response for create_network : {u'network': {u'status': u'ACTIVE', u'router:external': False, u'subnets': [], u'name': u'ctest-test_sec_vn10-44776317', u'admin_state_up': True, u'tenant_id': u'516881b0990c4bd398e89141d636a37f', u'shared': False, u'port_security_enabled': True, u'contrail:instance_count': 0, u'id': u'18a4db57-97c7-449b-8b4b-ee9521d40e95', u'contrail:fq_name': [u'default-domain', u'ctest-TestQuotaUpdate-54944764', u'ctest-test_sec_vn10-44776317']}}
2018-03-02 23:09:54,400 - ERROR - Neutron Exception while creating subnet for vn with id 18a4db57-97c7-449b-8b4b-ee9521d40e95
Traceback (most recent call last):
File "/contrail-test/fixtures/quantum_test.py", line 119, in create_subnet
subnet_rsp = self.obj.create_subnet({'subnet': subnet_req})
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params
ret = self.function(instance, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 568, in create_subnet
return self.post(self.subnets_path, body=body)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 295, in post
headers=headers, params=params)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 208, in do_request
self._handle_fault_response(status_code, replybody)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 182, 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 67, in exception_handler_v20
status_code=status_code)
OverQuotaClient: Quota exceeded for resources: ['subnet']
2018-03-02 23:09:54,400 - ERROR - Neutron Exception while creating network ctest-test_sec_vn10-44776317
Traceback (most recent call last):
File "/contrail-test/fixtures/quantum_test.py", line 101, in create_network
subnet, net_id, ipam_fq_name, enable_dhcp, disable_gateway)
File "/contrail-test/fixtures/quantum_test.py", line 119, in create_subnet
subnet_rsp = self.obj.create_subnet({'subnet': subnet_req})
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 99, in with_params
ret = self.function(instance, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 568, in create_subnet
return self.post(self.subnets_path, body=body)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 295, in post
headers=headers, params=params)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 208, in do_request
self._handle_fault_response(status_code, replybody)
File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 182, 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 67, in exception_handler_v20
status_code=status_code)
OverQuotaClient: Quota exceeded for resources: ['subnet']
2018-03-02 23:09:54,401 - ERROR - VN creation failed with un-expected exception : Quota exceeded for resources: ['subnet']
OverQuotaClient: Quota exceeded for resources: ['subnet']
2018-03-02 23:09:55,373 - ERROR - Security group rule addition should not be successfull
VN - ctest-test_sec_vn10-44776317 should not be created.
Review in progress for https:/ /review. opencontrail. org/41709
Submitter: <email address hidden> (<email address hidden>)