2026-03-12 02:34:35,016 - INFO - Domain Default found not creating 2026-03-12 02:34:35,192 - INFO - Project ctest-TestBasicPolicy-99944408 not found, creating it 2026-03-12 02:34:35,688 - INFO - Created Project:ctest-TestBasicPolicy-99944408, ID : e0bd0160-e314-475d-8598-005c0ff0a96e 2026-03-12 02:34:37,161 - INFO - ================================================================================ 2026-03-12 02:34:37,161 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-03-12 02:34:37,161 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2026-03-12 02:34:38,441 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.17': '0', '10.20.0.129': '0'}, '10.0.0.133': {'10.20.0.17': '0', '10.20.0.129': '0'}} with 2026-03-12 02:34:38,442 - INFO - Initial checks done. Running the testcase now 2026-03-12 02:34:38,442 - INFO - 2026-03-12 02:34:39,089 - DEBUG - Response for create_network : {'network': {'id': '6aa3fbf3-2a7c-4ffb-93c6-9a6ece961cdd', 'name': 'ctest-vn-97867994', 'tenant_id': 'e0bd0160e314475d8598005c0ff0a96e', 'project_id': 'e0bd0160e314475d8598005c0ff0a96e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99944408', 'ctest-vn-97867994'], 'port_security_enabled': True, 'description': ''}} 2026-03-12 02:34:39,428 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2385267-a8e6-48c0-aa8a-a9176265bdeb', 'name': '', 'tenant_id': 'e0bd0160e314475d8598005c0ff0a96e', 'network_id': '6aa3fbf3-2a7c-4ffb-93c6-9a6ece961cdd', 'ip_version': 4, 'cidr': '28.12.187.0/26', 'allocation_pools': [{'start': '28.12.187.2', 'end': '28.12.187.62'}], 'gateway_ip': '28.12.187.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.12.187.2', 'tags': [], 'project_id': 'e0bd0160e314475d8598005c0ff0a96e'}} 2026-03-12 02:34:39,450 - INFO - Created VN ctest-vn-97867994 2026-03-12 02:34:39,467 - DEBUG - VN ctest-vn-97867994 UUID is 6aa3fbf3-2a7c-4ffb-93c6-9a6ece961cdd 2026-03-12 02:34:39,801 - DEBUG - Response for create_network : {'network': {'id': 'b7a99b5b-925e-4d56-ab9a-fd64a5eeffc1', 'name': 'ctest-vn-40154528', 'tenant_id': 'e0bd0160e314475d8598005c0ff0a96e', 'project_id': 'e0bd0160e314475d8598005c0ff0a96e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99944408', 'ctest-vn-40154528'], 'port_security_enabled': True, 'description': ''}} 2026-03-12 02:34:40,024 - DEBUG - Response for create_subnet : {'subnet': {'id': '5ead5615-2b93-46fc-a107-28c7b3c6b40e', 'name': '', 'tenant_id': 'e0bd0160e314475d8598005c0ff0a96e', 'network_id': 'b7a99b5b-925e-4d56-ab9a-fd64a5eeffc1', 'ip_version': 4, 'cidr': '143.46.197.128/26', 'allocation_pools': [{'start': '143.46.197.130', 'end': '143.46.197.190'}], 'gateway_ip': '143.46.197.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.46.197.130', 'tags': [], 'project_id': 'e0bd0160e314475d8598005c0ff0a96e'}} 2026-03-12 02:34:40,053 - INFO - Created VN ctest-vn-40154528 2026-03-12 02:34:40,064 - DEBUG - VN ctest-vn-40154528 UUID is b7a99b5b-925e-4d56-ab9a-fd64a5eeffc1 2026-03-12 02:34:40,141 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-40154528, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2026-03-12 02:34:40,467 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6aa3fbf3-2a7c-4ffb-93c6-9a6ece961cdd', 'name': 'ctest-vn-97867994', 'tenant_id': 'e0bd0160e314475d8598005c0ff0a96e', 'project_id': 'e0bd0160e314475d8598005c0ff0a96e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d2385267-a8e6-48c0-aa8a-a9176265bdeb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99944408', 'ctest-vn-97867994'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99944408', 'ctest-policy-allow-all-86114252']], 'subnet_ipam': [{'subnet_cidr': '28.12.187.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-12 02:34:40,652 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b7a99b5b-925e-4d56-ab9a-fd64a5eeffc1', 'name': 'ctest-vn-40154528', 'tenant_id': 'e0bd0160e314475d8598005c0ff0a96e', 'project_id': 'e0bd0160e314475d8598005c0ff0a96e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5ead5615-2b93-46fc-a107-28c7b3c6b40e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99944408', 'ctest-vn-40154528'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99944408', 'ctest-policy-allow-all-86114252']], 'subnet_ipam': [{'subnet_cidr': '143.46.197.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-12 02:34:40,745 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-12 02:34:41,087 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-12 02:34:41,121 - DEBUG - Requesting: http://10.0.0.27:8082/domain/816a5ced-493e-44a0-a931-7e59b7e8c6c2 2026-03-12 02:34:41,133 - DEBUG - Requesting: http://10.0.0.27:8082/project/e0bd0160-e314-475d-8598-005c0ff0a96e 2026-03-12 02:34:41,220 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6aa3fbf3-2a7c-4ffb-93c6-9a6ece961cdd 2026-03-12 02:34:41,236 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6aa3fbf3-2a7c-4ffb-93c6-9a6ece961cdd 2026-03-12 02:34:41,246 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e3c88965-5334-4b11-9cef-cfd15f4fe1ba 2026-03-12 02:34:41,255 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e3c88965-5334-4b11-9cef-cfd15f4fe1ba 2026-03-12 02:34:41,263 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/796a8821-ff7d-4fcd-a6a0-ade4c9864941 2026-03-12 02:34:41,269 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-12 02:34:41,269 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6aa3fbf3-2a7c-4ffb-93c6-9a6ece961cdd 2026-03-12 02:34:41,276 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e3c88965-5334-4b11-9cef-cfd15f4fe1ba 2026-03-12 02:34:41,290 - INFO - Verified VN network id 11 for VN 6aa3fbf3-2a7c-4ffb-93c6-9a6ece961cdd 2026-03-12 02:34:41,290 - INFO - Verifications in API Server for VN ctest-vn-97867994 passed 2026-03-12 02:34:41,290 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6aa3fbf3-2a7c-4ffb-93c6-9a6ece961cdd 2026-03-12 02:34:41,299 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e3c88965-5334-4b11-9cef-cfd15f4fe1ba 2026-03-12 02:34:41,306 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e3c88965-5334-4b11-9cef-cfd15f4fe1ba 2026-03-12 02:34:41,313 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/796a8821-ff7d-4fcd-a6a0-ade4c9864941 2026-03-12 02:34:41,324 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99944408', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7684262411032612859', 'uuid-lslong': '10648368169667140829'}, 'enable': 'true', 'created': '2026-03-12T02:34:39', 'last-modified': '2026-03-12T02:34:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.894967'} 2026-03-12 02:34:41,329 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-12 02:34:41,334 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99944408', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7684262411032612859', 'uuid-lslong': '10648368169667140829'}, 'enable': 'true', 'created': '2026-03-12T02:34:39', 'last-modified': '2026-03-12T02:34:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.918347'} 2026-03-12 02:34:41,339 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-12 02:34:41,344 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99944408', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7684262411032612859', 'uuid-lslong': '10648368169667140829'}, 'enable': 'true', 'created': '2026-03-12T02:34:39', 'last-modified': '2026-03-12T02:34:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.928987'} 2026-03-12 02:34:41,349 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-12 02:34:41,349 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97867994 passed 2026-03-12 02:34:41,349 - DEBUG - ====Verifying policy data for ctest-vn-97867994 in API_Server ====== 2026-03-12 02:34:41,349 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-12 02:34:41,354 - DEBUG - Requesting: http://10.0.0.27:8082/domain/816a5ced-493e-44a0-a931-7e59b7e8c6c2 2026-03-12 02:34:41,363 - DEBUG - Requesting: http://10.0.0.27:8082/project/e0bd0160-e314-475d-8598-005c0ff0a96e 2026-03-12 02:34:41,456 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/6aa3fbf3-2a7c-4ffb-93c6-9a6ece961cdd 2026-03-12 02:34:41,466 - DEBUG - ==>Verifying data for policy with id: 04514ffc-418f-404e-a594-425e2fc4bc7a, fqn: ['default-domain', 'ctest-TestBasicPolicy-99944408', 'ctest-policy-allow-all-86114252'] 2026-03-12 02:34:41,466 - INFO - VN ctest-vn-97867994 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-12 02:34:41,466 - DEBUG - Verifying the vn in opserver 2026-03-12 02:34:41,466 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994 virtual network link through opserver 10.0.0.27 2026-03-12 02:34:41,466 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-12 02:34:41,757 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-12 02:34:41,815 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994?flat'} 2026-03-12 02:34:41,815 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994 virtual network link through opserver 10.0.0.73 2026-03-12 02:34:41,815 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-03-12 02:34:42,122 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-03-12 02:34:42,188 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994?flat'} 2026-03-12 02:34:42,188 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994 virtual network link through opserver 10.0.0.131 2026-03-12 02:34:42,188 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2026-03-12 02:34:42,480 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2026-03-12 02:34:42,541 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994?flat'} 2026-03-12 02:34:42,541 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994 is found in opserver 2026-03-12 02:34:42,561 - DEBUG - Do not have enough data to verify VN in agent 2026-03-12 02:34:42,570 - DEBUG - VRF ids for VN ctest-vn-97867994: {} 2026-03-12 02:34:42,570 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-12 02:34:42,576 - DEBUG - Requesting: http://10.0.0.27:8082/domain/816a5ced-493e-44a0-a931-7e59b7e8c6c2 2026-03-12 02:34:42,587 - DEBUG - Requesting: http://10.0.0.27:8082/project/e0bd0160-e314-475d-8598-005c0ff0a96e 2026-03-12 02:34:42,696 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b7a99b5b-925e-4d56-ab9a-fd64a5eeffc1 2026-03-12 02:34:42,712 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b7a99b5b-925e-4d56-ab9a-fd64a5eeffc1 2026-03-12 02:34:42,722 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ed26505e-a5f0-4fff-9099-92ae4c2eecaf 2026-03-12 02:34:42,732 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ed26505e-a5f0-4fff-9099-92ae4c2eecaf 2026-03-12 02:34:42,741 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5c1a30eb-3f51-4c05-8d2c-38cdcdb21074 2026-03-12 02:34:42,751 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-12 02:34:42,751 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b7a99b5b-925e-4d56-ab9a-fd64a5eeffc1 2026-03-12 02:34:42,762 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ed26505e-a5f0-4fff-9099-92ae4c2eecaf 2026-03-12 02:34:42,781 - INFO - Verified VN network id 12 for VN b7a99b5b-925e-4d56-ab9a-fd64a5eeffc1 2026-03-12 02:34:42,781 - INFO - Verifications in API Server for VN ctest-vn-40154528 passed 2026-03-12 02:34:42,782 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b7a99b5b-925e-4d56-ab9a-fd64a5eeffc1 2026-03-12 02:34:42,791 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ed26505e-a5f0-4fff-9099-92ae4c2eecaf 2026-03-12 02:34:42,800 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ed26505e-a5f0-4fff-9099-92ae4c2eecaf 2026-03-12 02:34:42,807 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5c1a30eb-3f51-4c05-8d2c-38cdcdb21074 2026-03-12 02:34:42,818 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-40154528', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99944408', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13234279797604896086', 'uuid-lslong': '12365474335621578689'}, 'enable': 'true', 'created': '2026-03-12T02:34:39', 'last-modified': '2026-03-12T02:34:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.203700'} 2026-03-12 02:34:42,823 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-12 02:34:42,828 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-40154528', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99944408', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13234279797604896086', 'uuid-lslong': '12365474335621578689'}, 'enable': 'true', 'created': '2026-03-12T02:34:39', 'last-modified': '2026-03-12T02:34:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.216066'} 2026-03-12 02:34:42,833 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-12 02:34:42,838 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-40154528', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99944408', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13234279797604896086', 'uuid-lslong': '12365474335621578689'}, 'enable': 'true', 'created': '2026-03-12T02:34:39', 'last-modified': '2026-03-12T02:34:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.226164'} 2026-03-12 02:34:42,844 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-12 02:34:42,844 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40154528 passed 2026-03-12 02:34:42,844 - DEBUG - ====Verifying policy data for ctest-vn-40154528 in API_Server ====== 2026-03-12 02:34:42,844 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-12 02:34:42,850 - DEBUG - Requesting: http://10.0.0.27:8082/domain/816a5ced-493e-44a0-a931-7e59b7e8c6c2 2026-03-12 02:34:42,860 - DEBUG - Requesting: http://10.0.0.27:8082/project/e0bd0160-e314-475d-8598-005c0ff0a96e 2026-03-12 02:34:42,955 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b7a99b5b-925e-4d56-ab9a-fd64a5eeffc1 2026-03-12 02:34:42,964 - DEBUG - ==>Verifying data for policy with id: 04514ffc-418f-404e-a594-425e2fc4bc7a, fqn: ['default-domain', 'ctest-TestBasicPolicy-99944408', 'ctest-policy-allow-all-86114252'] 2026-03-12 02:34:42,964 - INFO - VN ctest-vn-40154528 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-12 02:34:42,964 - DEBUG - Verifying the vn in opserver 2026-03-12 02:34:42,964 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-40154528 virtual network link through opserver 10.0.0.27 2026-03-12 02:34:42,964 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-03-12 02:34:43,025 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-40154528', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-40154528?flat'} 2026-03-12 02:34:43,025 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-40154528 virtual network link through opserver 10.0.0.73 2026-03-12 02:34:43,025 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-03-12 02:34:43,092 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-40154528', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-40154528?flat'} 2026-03-12 02:34:43,092 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-40154528 virtual network link through opserver 10.0.0.131 2026-03-12 02:34:43,092 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2026-03-12 02:34:43,157 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-40154528', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-40154528?flat'} 2026-03-12 02:34:43,157 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-40154528 is found in opserver 2026-03-12 02:34:43,179 - DEBUG - Do not have enough data to verify VN in agent 2026-03-12 02:34:43,189 - DEBUG - VRF ids for VN ctest-vn-40154528: {} 2026-03-12 02:34:43,252 - DEBUG - Services list from nova: [, , , ] 2026-03-12 02:34:44,272 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5460-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5460-2) 2026-03-12 02:34:45,490 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5460-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5460-1) 2026-03-12 02:34:45,490 - INFO - Waiting for VM ctest-TestBasicPolicy-99944408-93298831 to be up.. 2026-03-12 02:34:45,571 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-03-12 02:34:50,678 - DEBUG - VM is in ACTIVE state now 2026-03-12 02:34:50,678 - INFO - VM name : ctest-TestBasicPolicy-99944408-93298831 2026-03-12 02:34:50,785 - DEBUG - VM ctest-TestBasicPolicy-99944408-93298831 ID is 27c96ec9-269d-4035-9f1f-945dac035ca4 2026-03-12 02:34:50,827 - DEBUG - VM ctest-TestBasicPolicy-99944408-93298831 launched on Node an-jenkins-deploy-platform-ansible-os-5460-2 2026-03-12 02:34:50,956 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/27c96ec9-269d-4035-9f1f-945dac035ca4 2026-03-12 02:34:51,253 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/27c96ec9-269d-4035-9f1f-945dac035ca4 2026-03-12 02:34:51,300 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine-interface/76814326-3083-4ac7-b765-a121f1405aef 2026-03-12 02:34:54,479 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1011ms') 2026-03-12 02:34:54,479 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99944408-93298831 failed! 2026-03-12 02:34:54,497 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994 is 28.12.187.1 and allocation pool is NOT set 2026-03-12 02:34:58,578 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1013ms') 2026-03-12 02:34:58,578 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99944408-93298831 failed! 2026-03-12 02:34:58,591 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994 is 28.12.187.1 and allocation pool is NOT set 2026-03-12 02:35:02,672 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2026-03-12 02:35:02,672 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99944408-93298831 failed! 2026-03-12 02:35:02,691 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994 is 28.12.187.1 and allocation pool is NOT set 2026-03-12 02:35:06,761 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1011ms') 2026-03-12 02:35:06,762 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99944408-93298831 failed! 2026-03-12 02:35:06,775 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994 is 28.12.187.1 and allocation pool is NOT set 2026-03-12 02:35:10,864 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1027ms') 2026-03-12 02:35:10,864 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99944408-93298831 failed! 2026-03-12 02:35:10,878 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994 is 28.12.187.1 and allocation pool is NOT set 2026-03-12 02:35:14,958 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1017ms') 2026-03-12 02:35:14,958 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99944408-93298831 failed! 2026-03-12 02:35:14,975 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994 is 28.12.187.1 and allocation pool is NOT set 2026-03-12 02:35:19,056 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1019ms') 2026-03-12 02:35:19,056 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99944408-93298831 failed! 2026-03-12 02:35:19,069 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994 is 28.12.187.1 and allocation pool is NOT set 2026-03-12 02:35:23,147 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1016ms') 2026-03-12 02:35:23,147 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99944408-93298831 failed! 2026-03-12 02:35:23,162 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-99944408:ctest-vn-97867994 is 28.12.187.1 and allocation pool is NOT set 2026-03-12 02:35:25,232 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=10.7 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=4.47 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 4.465/7.585/10.705/3.120 ms') 2026-03-12 02:35:25,232 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99944408-93298831 passed 2026-03-12 02:35:25,302 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-12 02:35:25,303 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99944408-93298831, IP 28.12.187.3, Port 22 2026-03-12 02:35:25,370 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-03-12 02:35:25,460 - DEBUG - VM ctest-TestBasicPolicy-99944408-93298831 is NOT ready for SSH connections, VM status: ACTIVE 2026-03-12 02:35:30,461 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-12 02:35:30,461 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99944408-93298831, IP 28.12.187.3, Port 22 2026-03-12 02:35:30,519 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-03-12 02:35:30,589 - DEBUG - VM ctest-TestBasicPolicy-99944408-93298831 is NOT ready for SSH connections, VM status: ACTIVE 2026-03-12 02:35:35,590 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-12 02:35:35,590 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99944408-93298831, IP 28.12.187.3, Port 22 2026-03-12 02:35:35,657 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-03-12 02:35:35,748 - DEBUG - VM ctest-TestBasicPolicy-99944408-93298831 is NOT ready for SSH connections, VM status: ACTIVE 2026-03-12 02:35:40,748 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-12 02:35:40,749 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99944408-93298831, IP 28.12.187.3, Port 22 2026-03-12 02:35:40,813 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2026-03-12 02:35:40,887 - DEBUG - VM ctest-TestBasicPolicy-99944408-93298831 is NOT ready for SSH connections, VM status: ACTIVE 2026-03-12 02:35:45,888 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-12 02:35:45,888 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99944408-93298831, IP 28.12.187.3, Port 22 2026-03-12 02:35:46,057 - DEBUG - VM ctest-TestBasicPolicy-99944408-93298831 is ready for SSH connections 2026-03-12 02:35:46,057 - INFO - Waiting for VM ctest-TestBasicPolicy-99944408-53891255 to be up.. 2026-03-12 02:35:46,149 - DEBUG - VM is in ACTIVE state now 2026-03-12 02:35:46,149 - INFO - VM name : ctest-TestBasicPolicy-99944408-53891255 2026-03-12 02:35:46,227 - DEBUG - VM ctest-TestBasicPolicy-99944408-53891255 ID is d24572f9-8cc4-4aba-a634-77cc2fc778d9 2026-03-12 02:35:46,227 - DEBUG - VM ctest-TestBasicPolicy-99944408-53891255 launched on Node an-jenkins-deploy-platform-ansible-os-5460-1 2026-03-12 02:35:46,303 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine/d24572f9-8cc4-4aba-a634-77cc2fc778d9 2026-03-12 02:35:46,313 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-machine-interface/f066132a-1b4b-48c5-a8e4-ff97673409e3 2026-03-12 02:35:47,489 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=3.05 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.559 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.559/1.803/3.048/1.244 ms') 2026-03-12 02:35:47,489 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-99944408-53891255 passed 2026-03-12 02:35:47,561 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-12 02:35:47,561 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-99944408-53891255, IP 143.46.197.131, Port 22 2026-03-12 02:35:47,733 - DEBUG - VM ctest-TestBasicPolicy-99944408-53891255 is ready for SSH connections 2026-03-12 02:35:47,733 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-12 02:35:47,733 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 143.46.197.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.133, gateway password: c0ntrail123 2026-03-12 02:35:47,733 - DEBUG - ping -s 56 -c 3 -W 1 143.46.197.131 2026-03-12 02:36:41,266 - DEBUG - PING 143.46.197.131 (143.46.197.131) 56(84) bytes of data. 64 bytes from 143.46.197.131: icmp_req=1 ttl=63 time=11.8 ms 64 bytes from 143.46.197.131: icmp_req=2 ttl=63 time=1.58 ms 64 bytes from 143.46.197.131: icmp_req=3 ttl=63 time=1.12 ms --- 143.46.197.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.126/4.867/11.886/4.966 ms 2026-03-12 02:36:41,266 - INFO - Ping to IP 143.46.197.131 from VM ctest-TestBasicPolicy-99944408-93298831 passed 2026-03-12 02:36:41,472 - DEBUG - Policy Update Response {"network-policy": {"uuid": "04514ffc-418f-404e-a594-425e2fc4bc7a", "href": "http://10.0.0.131:8082/network-policy/04514ffc-418f-404e-a594-425e2fc4bc7a"}} 2026-03-12 02:36:41,472 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-03-12 02:36:41,472 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 143.46.197.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.133, gateway password: c0ntrail123 2026-03-12 02:36:41,472 - DEBUG - ping -s 56 -c 3 -W 1 143.46.197.131 2026-03-12 02:36:44,928 - DEBUG - PING 143.46.197.131 (143.46.197.131) 56(84) bytes of data. 64 bytes from 143.46.197.131: icmp_req=1 ttl=63 time=2.76 ms --- 143.46.197.131 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2002ms rtt min/avg/max/mdev = 2.760/2.760/2.760/0.000 ms 2026-03-12 02:36:44,928 - WARNING - Ping to IP 143.46.197.131 from VM ctest-TestBasicPolicy-99944408-93298831 failed 2026-03-12 02:36:44,928 - INFO - Deleting VM ctest-TestBasicPolicy-99944408-53891255 2026-03-12 02:36:44,994 - INFO - Deleting VM ctest-TestBasicPolicy-99944408-93298831 2026-03-12 02:36:45,401 - INFO - Deleted policy ctest-policy-allow-all-86114252 2026-03-12 02:36:45,401 - INFO - Deleting VN ctest-vn-40154528 2026-03-12 02:36:45,456 - DEBUG - VN b7a99b5b-925e-4d56-ab9a-fd64a5eeffc1 still in use: Unable to complete operation on network b7a99b5b-925e-4d56-ab9a-fd64a5eeffc1. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-fe255a10-c9f6-4403-b584-1aa4fe1e0ce4'] 2026-03-12 02:36:45,456 - WARNING - Deleting VN ctest-vn-40154528 failed..Will retry 2026-03-12 02:36:47,699 - DEBUG - Response for deleting network () 2026-03-12 02:36:47,699 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ed26505e-a5f0-4fff-9099-92ae4c2eecaf 2026-03-12 02:36:47,705 - DEBUG - Response Code: 404 2026-03-12 02:36:47,705 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-12 02:36:47,710 - DEBUG - Requesting: http://10.0.0.27:8082/domain/816a5ced-493e-44a0-a931-7e59b7e8c6c2 2026-03-12 02:36:47,764 - DEBUG - Requesting: http://10.0.0.27:8082/project/e0bd0160-e314-475d-8598-005c0ff0a96e 2026-03-12 02:36:47,863 - INFO - Validated that VN ctest-vn-40154528 is not found in API Server 2026-03-12 02:36:47,874 - DEBUG - VN ctest-vn-40154528 is not present in Agent 10.0.0.23 2026-03-12 02:36:47,884 - DEBUG - VN ctest-vn-40154528 is not present in Agent 10.0.0.133 2026-03-12 02:36:47,884 - INFO - Validated that VN ctest-vn-40154528 is not in any agent 2026-03-12 02:36:47,912 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-40154528 info 2026-03-12 02:36:47,913 - INFO - Deleting VN ctest-vn-97867994 2026-03-12 02:36:48,086 - DEBUG - Response for deleting network () 2026-03-12 02:36:48,086 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/e3c88965-5334-4b11-9cef-cfd15f4fe1ba 2026-03-12 02:36:48,110 - DEBUG - Response Code: 404 2026-03-12 02:36:48,110 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-03-12 02:36:48,120 - DEBUG - Requesting: http://10.0.0.27:8082/domain/816a5ced-493e-44a0-a931-7e59b7e8c6c2 2026-03-12 02:36:48,130 - DEBUG - Requesting: http://10.0.0.27:8082/project/e0bd0160-e314-475d-8598-005c0ff0a96e 2026-03-12 02:36:48,217 - INFO - Validated that VN ctest-vn-97867994 is not found in API Server 2026-03-12 02:36:48,227 - DEBUG - VN ctest-vn-97867994 is not present in Agent 10.0.0.23 2026-03-12 02:36:48,237 - DEBUG - VN ctest-vn-97867994 is not present in Agent 10.0.0.133 2026-03-12 02:36:48,237 - INFO - Validated that VN ctest-vn-97867994 is not in any agent 2026-03-12 02:36:48,272 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-97867994 info 2026-03-12 02:36:49,545 - DEBUG - No XMPP flaps were noticed during the test 2026-03-12 02:36:49,545 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:12] 2026-03-12 02:36:49,545 - INFO - -------------------------------------------------------------------------------- 2026-03-12 02:36:50,362 - INFO - Deleted project: ctest-TestBasicPolicy-99944408, ID : e0bd0160-e314-475d-8598-005c0ff0a96e