2026-11-09 02:43:20,152 - INFO - Domain Default found not creating
2026-11-09 02:43:20,368 - INFO - Project ctest-TestPorts-30097440 not found, creating it
2026-11-09 02:43:21,040 - INFO - Created Project:ctest-TestPorts-30097440, ID : 7aa44952-be8b-4a05-84cc-f74cf216f1e2
2026-11-09 02:43:22,942 - INFO - ================================================================================
2026-11-09 02:43:22,942 - INFO - STARTING TEST : test_ports_bindings
2026-11-09 02:43:22,942 - 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
2026-11-09 02:43:24,254 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.38': {'10.20.0.254': '0', '10.20.0.25': '0'}} with
2026-11-09 02:43:24,254 - INFO - Initial checks done. Running the testcase now
2026-11-09 02:43:24,254 - INFO -
2026-11-09 02:43:25,019 - DEBUG - Response for create_network : {'network': {'id': 'd456ced7-af98-43c4-ada8-f3acb6149f39', 'name': 'ctest-vn-84210601', 'tenant_id': '7aa44952be8b4a0584ccf74cf216f1e2', 'project_id': '7aa44952be8b4a0584ccf74cf216f1e2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestPorts-30097440', 'ctest-vn-84210601'], 'port_security_enabled': True, 'description': ''}}
2026-11-09 02:43:25,343 - DEBUG - Response for create_subnet : {'subnet': {'id': '8ed6cab8-8201-4524-9cca-4ca2b4a4706f', 'name': '', 'tenant_id': '7aa44952be8b4a0584ccf74cf216f1e2', 'network_id': 'd456ced7-af98-43c4-ada8-f3acb6149f39', 'ip_version': 4, 'cidr': '88.240.65.192/26', 'allocation_pools': [{'start': '88.240.65.194', 'end': '88.240.65.254'}], 'gateway_ip': '88.240.65.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.240.65.194', 'tags': [], 'project_id': '7aa44952be8b4a0584ccf74cf216f1e2'}}
2026-11-09 02:43:25,367 - INFO - Created VN ctest-vn-84210601
2026-11-09 02:43:25,381 - DEBUG - VN ctest-vn-84210601 UUID is d456ced7-af98-43c4-ada8-f3acb6149f39
2026-11-09 02:43:25,462 - DEBUG - Read virtual machine interface {'fq_name': ['default-domain', 'ctest-TestPorts-30097440', 'ctest-vmi-08530518']}
2026-11-09 02:43:25,489 - ERROR - Neutron Exception while creating port in vn with id d456ced7-af98-43c4-ada8-f3acb6149f39
Traceback (most recent call last):
File "/contrail-test/fixtures/port_fixture.py", line 85, in setUp
obj = self.vnc_h.read_virtual_machine_interface(fq_name=self.fq_name)
File "/contrail-test/fixtures/contrailapi.py", line 3169, in read_virtual_machine_interface
return self._vnc.virtual_machine_interface_read(**kwargs)
File "/usr/local/lib/python3.9/site-packages/vnc_api/vnc_api.py", line 52, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/vnc_api/vnc_api.py", line 700, in _object_read
(args_ok, result) = self._read_args_to_id(
File "/usr/local/lib/python3.9/site-packages/vnc_api/vnc_api.py", line 1114, in _read_args_to_id
return (True, self.fq_name_to_id(res_type, fq_name))
File "/usr/local/lib/python3.9/site-packages/vnc_api/vnc_api.py", line 52, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/vnc_api/vnc_api.py", line 1395, in fq_name_to_id
content = self._request_server(OP_POST, uri, data=json_body)
File "/usr/local/lib/python3.9/site-packages/vnc_api/vnc_api.py", line 1126, in _request_server
return self._request(
File "/usr/local/lib/python3.9/site-packages/vnc_api/vnc_api.py", line 1180, in _request
raise NoIdError('Error: oper %s url %s body %s response %s'
vnc_api.exceptions.NoIdError: Unknown id: Error: oper 1 url /fqname-to-id body {"type": "virtual-machine-interface", "fq_name": ["default-domain", "ctest-TestPorts-30097440", "ctest-vmi-08530518"]} response Name ['default-domain', 'ctest-TestPorts-30097440', 'ctest-vmi-08530518'] not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/contrail-test/fixtures/quantum_test.py", line 167, in create_port
port_rsp = self.obj.create_port({'port': port_req_dict})
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 803, in create_port
return self.post(self.ports_path, body=body)
File "/usr/local/lib/python3.9/site-packages/neutronclient/v2_0/client.py", line 358, in post
return self.do_request("POST", action, body=body,
File "/usr/local/lib/python3.9/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.9/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.9/site-packages/neutronclient/v2_0/client.py", line 91, in exception_handler_v20
raise client_exc(message=error_message,
neutronclient.common.exceptions.Forbidden: (rule:create_port and rule:create_port:binding:profile) is disallowed by policy
Neutron server returns request_ids: ['req-319b06d2-e286-4dc6-ba2d-081b4e94cd70']
2026-11-09 02:43:25,501 - INFO - Deleting VN ctest-vn-84210601
2026-11-09 02:43:25,668 - DEBUG - Response for deleting network ()
2026-11-09 02:43:26,979 - ERROR - TypeError
Python 3.9.25: /usr/bin/python3
Mon Nov 9 02:43:25 2026
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_bindings(self=)
1202 bind_dict = {'foo': 'bar'}
1203 vn = self.create_vn()
1204 port = self.useFixture(PortFixture(vn.uuid, connections=self.connections,
1205 binding_profile=bind_dict))
1206 assert port.verify_on_setup(), 'VMI %s verification has failed'%port.uuid
port undefined
self =
self.useFixture = >
global PortFixture =
vn =
vn.uuid = 'd456ced7-af98-43c4-ada8-f3acb6149f39'
connections undefined
self.connections =
binding_profile undefined
bind_dict = {'foo': 'bar'}
/usr/local/lib/python3.9/site-packages/testtools/testcase.py in useFixture(self=, fixture=)
754 # Gather_details worked, so raise the exception setUp
755 # encountered.
756 reraise(*exc_info)
757 else:
758 self.addCleanup(fixture.cleanUp)
global reraise =
exc_info = (, TypeError("'NoneType' object is not subscriptable"), )
/usr/local/lib/python3.9/site-packages/testtools/_compat3x.py in reraise(exc_class=, exc_obj=TypeError("'NoneType' object is not subscriptable"), exc_tb=, _marker=