2025-08-25 20:23:18,147 - INFO - Domain Default found not creating
2025-08-25 20:23:18,274 - INFO - Project ctest-TestPorts-59397990 not found, creating it
2025-08-25 20:23:18,734 - INFO - Created Project:ctest-TestPorts-59397990, ID : aa74e74a-89d0-4591-9f88-d7315ad36747
2025-08-25 20:23:20,115 - INFO - ================================================================================
2025-08-25 20:23:20,115 - INFO - STARTING TEST : test_ports_bindings
2025-08-25 20:23:20,115 - INFO - TEST DESCRIPTION :
Verify that we are able to create a port with custom port bindings
Steps:
1) Create Port with Port bindings profile set to {'foo': 'bar'}
2) Retrieve and verify the same is set
2025-08-25 20:23:20,239 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2025-08-25 20:23:20,239 - INFO - Initial checks done. Running the testcase now
2025-08-25 20:23:20,239 - INFO -
2025-08-25 20:23:20,820 - DEBUG - Response for create_network : {'network': {'id': 'b5c93ca3-6667-419a-8779-516696bc82d6', 'name': 'ctest-vn-97507924', 'tenant_id': 'aa74e74a89d045919f88d7315ad36747', 'project_id': 'aa74e74a89d045919f88d7315ad36747', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestPorts-59397990', 'ctest-vn-97507924'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 20:23:20,985 - ERROR - Neutron Exception while creating subnet for vn with id b5c93ca3-6667-419a-8779-516696bc82d6
Traceback (most recent call last):
File "/contrail-test/fixtures/quantum_test.py", line 128, in create_subnet
subnet_rsp = self.obj.create_subnet({'subnet': subnet_req})
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 848, in create_subnet
return self.post(self.subnets_path, body=body)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 359, in post
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 294, in do_request
self._handle_fault_response(status_code, replybody, resp)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 269, in _handle_fault_response
exception_handler_v20(status_code, error_body)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 93, in exception_handler_v20
request_ids=request_ids)
neutronclient.common.exceptions.InternalServerError: The server has either erred or is incapable of performing the requested operation.
Neutron server returns request_ids: ['req-b97e232e-14c9-43d5-913e-1f9ecbe26beb']
2025-08-25 20:23:21,002 - INFO - Created VN ctest-vn-97507924
2025-08-25 20:23:21,060 - DEBUG - VN ctest-vn-97507924 UUID is b5c93ca3-6667-419a-8779-516696bc82d6
2025-08-25 20:23:21,149 - DEBUG - Read virtual machine interface {'fq_name': ['default-domain', 'ctest-TestPorts-59397990', 'ctest-vmi-96534582']}
2025-08-25 20:23:21,399 - DEBUG - Response for create_port : {'port': {'name': 'ctest-vmi-96534582', 'id': 'aee8f22a-56e3-48d2-b49b-6148508e8641', 'tenant_id': 'aa74e74a89d045919f88d7315ad36747', 'network_id': 'b5c93ca3-6667-419a-8779-516696bc82d6', 'mac_address': '02:ae:e8:f2:2a:56', 'binding:profile': {'foo': 'bar'}, 'binding:vnic_type': 'normal', 'binding:vif_details': {'port_filter': True}, 'binding:vif_type': 'unbound', 'binding:host_id': None, 'allowed_address_pairs': [], 'fixed_ips': [], 'security_groups': ['e53b0ab7-a9ab-47ec-8351-a45363033197'], 'admin_state_up': True, 'device_id': '', 'device_owner': '', 'status': 'DOWN', 'port_security_enabled': True, 'description': '', 'project_id': 'aa74e74a89d045919f88d7315ad36747'}}
2025-08-25 20:23:21,399 - DEBUG - Created port aee8f22a-56e3-48d2-b49b-6148508e8641
2025-08-25 20:23:21,460 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/aee8f22a-56e3-48d2-b49b-6148508e8641
2025-08-25 20:23:21,770 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-machine-interface/aee8f22a-56e3-48d2-b49b-6148508e8641
2025-08-25 20:23:21,803 - INFO - VMI aee8f22a-56e3-48d2-b49b-6148508e8641 verification in API Server passed
2025-08-25 20:23:21,876 - DEBUG - Response for delete_port : ()
2025-08-25 20:23:21,876 - INFO - Deleted port aee8f22a-56e3-48d2-b49b-6148508e8641
2025-08-25 20:23:21,876 - INFO - Deleting VN ctest-vn-97507924
2025-08-25 20:23:21,986 - DEBUG - Response for deleting network ()
2025-08-25 20:23:22,116 - DEBUG - No XMPP flaps were noticed during the test
2025-08-25 20:23:22,116 - INFO - END TEST : test_ports_bindings : PASSED[0:00:02]
2025-08-25 20:23:22,116 - INFO - --------------------------------------------------------------------------------
2025-08-25 20:23:22,119 - INFO - ================================================================================
2025-08-25 20:23:22,119 - INFO - STARTING TEST : test_ports_specific_subnet_ip
2025-08-25 20:23:22,119 - INFO - TEST DESCRIPTION : Create ports with specific Subnet and IP
Create two ports in a VN with 2 subnets and specific IPs
Attach to two VMs
Ping between them should pass
2025-08-25 20:23:22,283 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with
2025-08-25 20:23:22,283 - INFO - Initial checks done. Running the testcase now
2025-08-25 20:23:22,283 - INFO -
2025-08-25 20:23:22,496 - DEBUG - Response for create_network : {'network': {'id': 'a88e23b9-53b6-40cb-8d30-eabad511454c', 'name': 'ctest-vn1-30611600', 'tenant_id': 'aa74e74a89d045919f88d7315ad36747', 'project_id': 'aa74e74a89d045919f88d7315ad36747', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestPorts-59397990', 'ctest-vn1-30611600'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 20:23:22,696 - ERROR - Neutron Exception while creating subnet for vn with id a88e23b9-53b6-40cb-8d30-eabad511454c
Traceback (most recent call last):
File "/contrail-test/fixtures/quantum_test.py", line 128, in create_subnet
subnet_rsp = self.obj.create_subnet({'subnet': subnet_req})
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 848, in create_subnet
return self.post(self.subnets_path, body=body)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 359, in post
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 294, in do_request
self._handle_fault_response(status_code, replybody, resp)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 269, in _handle_fault_response
exception_handler_v20(status_code, error_body)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 93, in exception_handler_v20
request_ids=request_ids)
neutronclient.common.exceptions.InternalServerError: The server has either erred or is incapable of performing the requested operation.
Neutron server returns request_ids: ['req-b306dfda-8e60-498c-b25e-a94ba95078f7']
2025-08-25 20:23:22,822 - ERROR - Neutron Exception while creating subnet for vn with id a88e23b9-53b6-40cb-8d30-eabad511454c
Traceback (most recent call last):
File "/contrail-test/fixtures/quantum_test.py", line 128, in create_subnet
subnet_rsp = self.obj.create_subnet({'subnet': subnet_req})
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 848, in create_subnet
return self.post(self.subnets_path, body=body)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 359, in post
headers=headers, params=params)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 294, in do_request
self._handle_fault_response(status_code, replybody, resp)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 269, in _handle_fault_response
exception_handler_v20(status_code, error_body)
File "/usr/local/lib/python3.6/site-packages/neutronclient/v2_0/client.py", line 93, in exception_handler_v20
request_ids=request_ids)
neutronclient.common.exceptions.InternalServerError: The server has either erred or is incapable of performing the requested operation.
Neutron server returns request_ids: ['req-b3e88588-5fe3-467c-91cd-0c03088a1d56']
2025-08-25 20:23:22,839 - INFO - Created VN ctest-vn1-30611600
2025-08-25 20:23:22,892 - DEBUG - VN ctest-vn1-30611600 UUID is a88e23b9-53b6-40cb-8d30-eabad511454c
2025-08-25 20:23:22,980 - INFO - Deleting VN ctest-vn1-30611600
2025-08-25 20:23:23,071 - DEBUG - Response for deleting network ()
2025-08-25 20:23:23,197 - ERROR - IndexError
Python 3.6.8: /usr/bin/python3
Mon Aug 25 20:23:22 2025
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/contrail-test/tcutils/wrappers.py in wrapper(self=, *args=(), **kwargs={})
78 log.info('Initial checks done. Running the testcase now')
79 log.info('')
80 result = function(self, *args, **kwargs)
81 if self.inputs.upgrade:
82 pid = os.getpid()
result = None
function =
self =
args = ()
kwargs = {}
/contrail-test/scripts/neutron/test_ports.py in test_ports_specific_subnet_ip(self=)
157 vn1_vm2_name = get_random_name('vn1-vm2')
158 vn1_fixture = self.create_vn(vn1_name, [vn1_subnet_1, vn1_subnet_2])
159 vn1_subnet1_id = vn1_fixture.vn_subnet_objs[0]['id']
160 vn1_subnet2_id = vn1_fixture.vn_subnet_objs[1]['id']
161 vn1_subnet1_ip = get_an_ip(vn1_fixture.vn_subnet_objs[0]['cidr'], 5)
vn1_subnet1_id undefined
vn1_fixture =
vn1_fixture.vn_subnet_objs = []
IndexError: list index out of range
__cause__ = None
__class__ =
__context__ = None
__delattr__ =
__dict__ = {}
__dir__ =
__doc__ = 'Sequence index out of range.'
__eq__ =
__format__ =
__ge__ =
__getattribute__ =
__gt__ =
__hash__ =
__init__ =
__init_subclass__ =
__le__ =
__lt__ =
__ne__ =
__new__ =
__reduce__ =
__reduce_ex__ =
__repr__ =
__setattr__ =
__setstate__ =
__sizeof__ =
__str__ =
__subclasshook__ =
__suppress_context__ = False
__traceback__ =
args = ('list index out of range',)
with_traceback =
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/contrail-test/tcutils/wrappers.py", line 80, in wrapper
result = function(self, *args, **kwargs)
File "/contrail-test/scripts/neutron/test_ports.py", line 159, in test_ports_specific_subnet_ip
vn1_subnet1_id = vn1_fixture.vn_subnet_objs[0]['id']
IndexError: list index out of range
2025-08-25 20:23:23,203 - DEBUG - No XMPP flaps were noticed during the test
2025-08-25 20:23:23,203 - INFO -
2025-08-25 20:23:23,203 - INFO - END TEST : test_ports_specific_subnet_ip : FAILED[0:00:01]
2025-08-25 20:23:23,203 - INFO - --------------------------------------------------------------------------------
2025-08-25 20:23:23,893 - INFO - Deleted project: ctest-TestPorts-59397990, ID : aa74e74a-89d0-4591-9f88-d7315ad36747