2026-06-08 11:07:51,837 - INFO - Domain Default found not creating 2026-06-08 11:07:51,986 - INFO - Project ctest-TestBasicPolicy-14393435 not found, creating it 2026-06-08 11:07:52,629 - INFO - Created Project:ctest-TestBasicPolicy-14393435, ID : 6447623a-22b4-4030-900d-c454b37b1b3e 2026-06-08 11:07:54,182 - INFO - ================================================================================ 2026-06-08 11:07:54,182 - INFO - STARTING TEST : test_basic_policy_allow_deny 2026-06-08 11:07:54,182 - 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-06-08 11:07:55,504 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0', '10.20.0.25': '0'}, '10.0.0.19': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2026-06-08 11:07:55,504 - INFO - Initial checks done. Running the testcase now 2026-06-08 11:07:55,505 - INFO - 2026-06-08 11:07:56,233 - DEBUG - Response for create_network : {'network': {'id': 'd443b495-e6de-4698-8e75-bb4bf9f57def', 'name': 'ctest-vn-23572376', 'tenant_id': '6447623a22b44030900dc454b37b1b3e', 'project_id': '6447623a22b44030900dc454b37b1b3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14393435', 'ctest-vn-23572376'], 'port_security_enabled': True, 'description': ''}} 2026-06-08 11:07:56,617 - DEBUG - Response for create_subnet : {'subnet': {'id': '235a36f5-ea58-4c1e-8cf8-b54a5c292ba5', 'name': '', 'tenant_id': '6447623a22b44030900dc454b37b1b3e', 'network_id': 'd443b495-e6de-4698-8e75-bb4bf9f57def', 'ip_version': 4, 'cidr': '18.5.25.64/26', 'allocation_pools': [{'start': '18.5.25.66', 'end': '18.5.25.126'}], 'gateway_ip': '18.5.25.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.5.25.66', 'tags': [], 'project_id': '6447623a22b44030900dc454b37b1b3e'}} 2026-06-08 11:07:56,643 - INFO - Created VN ctest-vn-23572376 2026-06-08 11:07:56,656 - DEBUG - VN ctest-vn-23572376 UUID is d443b495-e6de-4698-8e75-bb4bf9f57def 2026-06-08 11:07:57,001 - DEBUG - Response for create_network : {'network': {'id': '3697c3b1-5d76-46a6-9665-a0899438c7be', 'name': 'ctest-vn-57013682', 'tenant_id': '6447623a22b44030900dc454b37b1b3e', 'project_id': '6447623a22b44030900dc454b37b1b3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14393435', 'ctest-vn-57013682'], 'port_security_enabled': True, 'description': ''}} 2026-06-08 11:07:57,239 - DEBUG - Response for create_subnet : {'subnet': {'id': '97f79dd3-47e8-42e1-a683-f29dca615302', 'name': '', 'tenant_id': '6447623a22b44030900dc454b37b1b3e', 'network_id': '3697c3b1-5d76-46a6-9665-a0899438c7be', 'ip_version': 4, 'cidr': '77.97.97.64/26', 'allocation_pools': [{'start': '77.97.97.66', 'end': '77.97.97.126'}], 'gateway_ip': '77.97.97.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.97.97.66', 'tags': [], 'project_id': '6447623a22b44030900dc454b37b1b3e'}} 2026-06-08 11:07:57,267 - INFO - Created VN ctest-vn-57013682 2026-06-08 11:07:57,281 - DEBUG - VN ctest-vn-57013682 UUID is 3697c3b1-5d76-46a6-9665-a0899438c7be 2026-06-08 11:07:57,380 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376, 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-14393435:ctest-vn-57013682, 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-06-08 11:07:57,692 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd443b495-e6de-4698-8e75-bb4bf9f57def', 'name': 'ctest-vn-23572376', 'tenant_id': '6447623a22b44030900dc454b37b1b3e', 'project_id': '6447623a22b44030900dc454b37b1b3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['235a36f5-ea58-4c1e-8cf8-b54a5c292ba5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14393435', 'ctest-vn-23572376'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14393435', 'ctest-policy-allow-all-36402389']], 'subnet_ipam': [{'subnet_cidr': '18.5.25.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-08 11:07:57,932 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3697c3b1-5d76-46a6-9665-a0899438c7be', 'name': 'ctest-vn-57013682', 'tenant_id': '6447623a22b44030900dc454b37b1b3e', 'project_id': '6447623a22b44030900dc454b37b1b3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['97f79dd3-47e8-42e1-a683-f29dca615302'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14393435', 'ctest-vn-57013682'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14393435', 'ctest-policy-allow-all-36402389']], 'subnet_ipam': [{'subnet_cidr': '77.97.97.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-08 11:07:58,044 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 11:07:58,375 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 11:07:58,415 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3787ca8a-a083-410b-a8ff-2f021111eb93 2026-06-08 11:07:58,432 - DEBUG - Requesting: http://10.0.0.38:8082/project/6447623a-22b4-4030-900d-c454b37b1b3e 2026-06-08 11:07:58,539 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d443b495-e6de-4698-8e75-bb4bf9f57def 2026-06-08 11:07:58,554 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d443b495-e6de-4698-8e75-bb4bf9f57def 2026-06-08 11:07:58,564 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5a55b996-c7e1-42f0-971d-03316da14c87 2026-06-08 11:07:58,573 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5a55b996-c7e1-42f0-971d-03316da14c87 2026-06-08 11:07:58,579 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4f6b8028-1b1f-4c47-afea-da6a3a32c369 2026-06-08 11:07:58,588 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 11:07:58,588 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d443b495-e6de-4698-8e75-bb4bf9f57def 2026-06-08 11:07:58,600 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5a55b996-c7e1-42f0-971d-03316da14c87 2026-06-08 11:07:58,614 - INFO - Verified VN network id 14 for VN d443b495-e6de-4698-8e75-bb4bf9f57def 2026-06-08 11:07:58,614 - INFO - Verifications in API Server for VN ctest-vn-23572376 passed 2026-06-08 11:07:58,614 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d443b495-e6de-4698-8e75-bb4bf9f57def 2026-06-08 11:07:58,622 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5a55b996-c7e1-42f0-971d-03316da14c87 2026-06-08 11:07:58,632 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5a55b996-c7e1-42f0-971d-03316da14c87 2026-06-08 11:07:58,639 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4f6b8028-1b1f-4c47-afea-da6a3a32c369 2026-06-08 11:07:58,656 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14393435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15295267315396789912', 'uuid-lslong': '10265316860651470319'}, 'enable': 'true', 'created': '2026-06-08T11:07:56', 'last-modified': '2026-06-08T11:07:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.001221'} 2026-06-08 11:07:58,660 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 11:07:58,667 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14393435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15295267315396789912', 'uuid-lslong': '10265316860651470319'}, 'enable': 'true', 'created': '2026-06-08T11:07:56', 'last-modified': '2026-06-08T11:07:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.011505'} 2026-06-08 11:07:58,675 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 11:07:58,682 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14393435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15295267315396789912', 'uuid-lslong': '10265316860651470319'}, 'enable': 'true', 'created': '2026-06-08T11:07:56', 'last-modified': '2026-06-08T11:07:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.025526'} 2026-06-08 11:07:58,688 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 11:07:58,688 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-23572376 passed 2026-06-08 11:07:58,688 - DEBUG - ====Verifying policy data for ctest-vn-23572376 in API_Server ====== 2026-06-08 11:07:58,688 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 11:07:58,695 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3787ca8a-a083-410b-a8ff-2f021111eb93 2026-06-08 11:07:58,705 - DEBUG - Requesting: http://10.0.0.38:8082/project/6447623a-22b4-4030-900d-c454b37b1b3e 2026-06-08 11:07:58,793 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d443b495-e6de-4698-8e75-bb4bf9f57def 2026-06-08 11:07:58,805 - DEBUG - ==>Verifying data for policy with id: 13ea81d8-2c79-4f1c-bacf-d20319289eee, fqn: ['default-domain', 'ctest-TestBasicPolicy-14393435', 'ctest-policy-allow-all-36402389'] 2026-06-08 11:07:58,805 - INFO - VN ctest-vn-23572376 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-08 11:07:58,805 - DEBUG - Verifying the vn in opserver 2026-06-08 11:07:58,805 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376 virtual network link through opserver 10.0.0.38 2026-06-08 11:07:58,805 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-08 11:07:59,106 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-08 11:07:59,180 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376?flat'} 2026-06-08 11:07:59,180 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376 virtual network link through opserver 10.0.0.50 2026-06-08 11:07:59,180 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-08 11:07:59,485 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-08 11:07:59,547 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376?flat'} 2026-06-08 11:07:59,547 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376 virtual network link through opserver 10.0.0.249 2026-06-08 11:07:59,547 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-08 11:07:59,854 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-08 11:07:59,922 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376?flat'} 2026-06-08 11:07:59,922 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376 is found in opserver 2026-06-08 11:07:59,941 - DEBUG - Do not have enough data to verify VN in agent 2026-06-08 11:07:59,950 - DEBUG - VRF ids for VN ctest-vn-23572376: {} 2026-06-08 11:07:59,950 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 11:07:59,957 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3787ca8a-a083-410b-a8ff-2f021111eb93 2026-06-08 11:07:59,967 - DEBUG - Requesting: http://10.0.0.38:8082/project/6447623a-22b4-4030-900d-c454b37b1b3e 2026-06-08 11:08:00,074 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3697c3b1-5d76-46a6-9665-a0899438c7be 2026-06-08 11:08:00,090 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3697c3b1-5d76-46a6-9665-a0899438c7be 2026-06-08 11:08:00,098 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/58952939-f7e2-45a7-843f-7b66d43e0ff6 2026-06-08 11:08:00,105 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/58952939-f7e2-45a7-843f-7b66d43e0ff6 2026-06-08 11:08:00,112 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ff5e2edb-8b22-48f7-8e23-ec0541e354b9 2026-06-08 11:08:00,120 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-06-08 11:08:00,120 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3697c3b1-5d76-46a6-9665-a0899438c7be 2026-06-08 11:08:00,128 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/58952939-f7e2-45a7-843f-7b66d43e0ff6 2026-06-08 11:08:00,145 - INFO - Verified VN network id 15 for VN 3697c3b1-5d76-46a6-9665-a0899438c7be 2026-06-08 11:08:00,145 - INFO - Verifications in API Server for VN ctest-vn-57013682 passed 2026-06-08 11:08:00,145 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3697c3b1-5d76-46a6-9665-a0899438c7be 2026-06-08 11:08:00,154 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/58952939-f7e2-45a7-843f-7b66d43e0ff6 2026-06-08 11:08:00,160 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/58952939-f7e2-45a7-843f-7b66d43e0ff6 2026-06-08 11:08:00,168 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ff5e2edb-8b22-48f7-8e23-ec0541e354b9 2026-06-08 11:08:00,183 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-57013682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14393435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3933827966076077734', 'uuid-lslong': '10837244591094679486'}, 'enable': 'true', 'created': '2026-06-08T11:07:56', 'last-modified': '2026-06-08T11:07:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.283849'} 2026-06-08 11:08:00,188 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-06-08 11:08:00,194 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-57013682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14393435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3933827966076077734', 'uuid-lslong': '10837244591094679486'}, 'enable': 'true', 'created': '2026-06-08T11:07:56', 'last-modified': '2026-06-08T11:07:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.301483'} 2026-06-08 11:08:00,202 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-06-08 11:08:00,209 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-57013682', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14393435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3933827966076077734', 'uuid-lslong': '10837244591094679486'}, 'enable': 'true', 'created': '2026-06-08T11:07:56', 'last-modified': '2026-06-08T11:07:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.309033'} 2026-06-08 11:08:00,214 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-06-08 11:08:00,214 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57013682 passed 2026-06-08 11:08:00,214 - DEBUG - ====Verifying policy data for ctest-vn-57013682 in API_Server ====== 2026-06-08 11:08:00,214 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 11:08:00,220 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3787ca8a-a083-410b-a8ff-2f021111eb93 2026-06-08 11:08:00,232 - DEBUG - Requesting: http://10.0.0.38:8082/project/6447623a-22b4-4030-900d-c454b37b1b3e 2026-06-08 11:08:00,342 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3697c3b1-5d76-46a6-9665-a0899438c7be 2026-06-08 11:08:00,355 - DEBUG - ==>Verifying data for policy with id: 13ea81d8-2c79-4f1c-bacf-d20319289eee, fqn: ['default-domain', 'ctest-TestBasicPolicy-14393435', 'ctest-policy-allow-all-36402389'] 2026-06-08 11:08:00,355 - INFO - VN ctest-vn-57013682 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-08 11:08:00,355 - DEBUG - Verifying the vn in opserver 2026-06-08 11:08:00,356 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-57013682 virtual network link through opserver 10.0.0.38 2026-06-08 11:08:00,356 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-08 11:08:00,524 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-57013682', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-57013682?flat'} 2026-06-08 11:08:00,524 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-57013682 virtual network link through opserver 10.0.0.50 2026-06-08 11:08:00,524 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-08 11:08:00,588 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-57013682', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-57013682?flat'} 2026-06-08 11:08:00,588 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-57013682 virtual network link through opserver 10.0.0.249 2026-06-08 11:08:00,588 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-08 11:08:00,654 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-57013682', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-57013682?flat'} 2026-06-08 11:08:00,654 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-57013682 is found in opserver 2026-06-08 11:08:00,676 - DEBUG - Do not have enough data to verify VN in agent 2026-06-08 11:08:00,687 - DEBUG - VRF ids for VN ctest-vn-57013682: {} 2026-06-08 11:08:00,751 - DEBUG - Services list from nova: [, , , ] 2026-06-08 11:08:01,781 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5904-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5904-2) 2026-06-08 11:08:03,097 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-5904-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-5904-1) 2026-06-08 11:08:03,097 - INFO - Waiting for VM ctest-TestBasicPolicy-14393435-75245126 to be up.. 2026-06-08 11:08:03,182 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2026-06-08 11:08:08,276 - DEBUG - VM is in ACTIVE state now 2026-06-08 11:08:08,276 - INFO - VM name : ctest-TestBasicPolicy-14393435-75245126 2026-06-08 11:08:08,363 - DEBUG - VM ctest-TestBasicPolicy-14393435-75245126 ID is f17256d8-1687-45e8-b72b-8291d436bfa6 2026-06-08 11:08:08,385 - DEBUG - VM ctest-TestBasicPolicy-14393435-75245126 launched on Node an-jenkins-deploy-platform-ansible-os-5904-2 2026-06-08 11:08:08,464 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/f17256d8-1687-45e8-b72b-8291d436bfa6 2026-06-08 11:08:08,757 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/f17256d8-1687-45e8-b72b-8291d436bfa6 2026-06-08 11:08:08,790 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/2f026a3b-d7e7-408f-94a4-1aa259a77bc2 2026-06-08 11:08:11,965 - 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-06-08 11:08:11,965 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14393435-75245126 failed! 2026-06-08 11:08:11,979 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376 is 18.5.25.65 and allocation pool is NOT set 2026-06-08 11:08:16,064 - 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-06-08 11:08:16,064 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14393435-75245126 failed! 2026-06-08 11:08:16,079 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376 is 18.5.25.65 and allocation pool is NOT set 2026-06-08 11:08:20,163 - 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 1023ms') 2026-06-08 11:08:20,163 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14393435-75245126 failed! 2026-06-08 11:08:20,191 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376 is 18.5.25.65 and allocation pool is NOT set 2026-06-08 11:08:24,287 - 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 1033ms') 2026-06-08 11:08:24,287 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14393435-75245126 failed! 2026-06-08 11:08:24,304 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376 is 18.5.25.65 and allocation pool is NOT set 2026-06-08 11:08:28,378 - 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-06-08 11:08:28,378 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14393435-75245126 failed! 2026-06-08 11:08:28,392 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376 is 18.5.25.65 and allocation pool is NOT set 2026-06-08 11:08:32,482 - 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 1023ms') 2026-06-08 11:08:32,482 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14393435-75245126 failed! 2026-06-08 11:08:32,495 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376 is 18.5.25.65 and allocation pool is NOT set 2026-06-08 11:08:36,570 - 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-06-08 11:08:36,570 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14393435-75245126 failed! 2026-06-08 11:08:36,584 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376 is 18.5.25.65 and allocation pool is NOT set 2026-06-08 11:08:40,674 - 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-06-08 11:08:40,675 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14393435-75245126 failed! 2026-06-08 11:08:40,689 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-14393435:ctest-vn-23572376 is 18.5.25.65 and allocation pool is NOT set 2026-06-08 11:08:42,758 - 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=6.43 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=3.53 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 = 3.528/4.977/6.426/1.449 ms') 2026-06-08 11:08:42,758 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14393435-75245126 passed 2026-06-08 11:08:42,828 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-06-08 11:08:42,828 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14393435-75245126, IP 18.5.25.67, Port 22 2026-06-08 11:08:42,894 - 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-06-08 11:08:42,995 - DEBUG - VM ctest-TestBasicPolicy-14393435-75245126 is NOT ready for SSH connections, VM status: ACTIVE 2026-06-08 11:08:47,996 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-06-08 11:08:47,996 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14393435-75245126, IP 18.5.25.67, Port 22 2026-06-08 11:08:48,062 - 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-06-08 11:08:48,147 - DEBUG - VM ctest-TestBasicPolicy-14393435-75245126 is NOT ready for SSH connections, VM status: ACTIVE 2026-06-08 11:08:53,147 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-06-08 11:08:53,148 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14393435-75245126, IP 18.5.25.67, Port 22 2026-06-08 11:08:53,214 - 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-06-08 11:08:53,310 - DEBUG - VM ctest-TestBasicPolicy-14393435-75245126 is NOT ready for SSH connections, VM status: ACTIVE 2026-06-08 11:08:58,310 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-06-08 11:08:58,310 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14393435-75245126, IP 18.5.25.67, Port 22 2026-06-08 11:08:58,369 - 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-06-08 11:08:58,457 - DEBUG - VM ctest-TestBasicPolicy-14393435-75245126 is NOT ready for SSH connections, VM status: ACTIVE 2026-06-08 11:09:03,458 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-06-08 11:09:03,458 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14393435-75245126, IP 18.5.25.67, Port 22 2026-06-08 11:09:03,634 - DEBUG - VM ctest-TestBasicPolicy-14393435-75245126 is ready for SSH connections 2026-06-08 11:09:03,634 - INFO - Waiting for VM ctest-TestBasicPolicy-14393435-83163502 to be up.. 2026-06-08 11:09:03,712 - DEBUG - VM is in ACTIVE state now 2026-06-08 11:09:03,712 - INFO - VM name : ctest-TestBasicPolicy-14393435-83163502 2026-06-08 11:09:03,790 - DEBUG - VM ctest-TestBasicPolicy-14393435-83163502 ID is 278f6d32-89d4-456b-bbb8-64efe0ec030b 2026-06-08 11:09:03,790 - DEBUG - VM ctest-TestBasicPolicy-14393435-83163502 launched on Node an-jenkins-deploy-platform-ansible-os-5904-1 2026-06-08 11:09:03,869 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine/278f6d32-89d4-456b-bbb8-64efe0ec030b 2026-06-08 11:09:03,878 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-machine-interface/4fb1068a-6998-440b-a298-05ae62c48527 2026-06-08 11:09:05,037 - 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=2.35 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.75 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 = 1.747/2.048/2.350/0.301 ms') 2026-06-08 11:09:05,037 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-14393435-83163502 passed 2026-06-08 11:09:05,108 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-06-08 11:09:05,108 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-14393435-83163502, IP 77.97.97.67, Port 22 2026-06-08 11:09:05,268 - DEBUG - VM ctest-TestBasicPolicy-14393435-83163502 is ready for SSH connections 2026-06-08 11:09:05,268 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-06-08 11:09:05,268 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 77.97.97.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2026-06-08 11:09:05,268 - DEBUG - ping -s 56 -c 3 -W 1 77.97.97.67 2026-06-08 11:09:24,947 - DEBUG - PING 77.97.97.67 (77.97.97.67) 56(84) bytes of data. 64 bytes from 77.97.97.67: icmp_req=1 ttl=63 time=9.90 ms 64 bytes from 77.97.97.67: icmp_req=2 ttl=63 time=1.57 ms 64 bytes from 77.97.97.67: icmp_req=3 ttl=63 time=1.26 ms --- 77.97.97.67 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 1.263/4.250/9.909/4.003 ms 2026-06-08 11:09:24,947 - INFO - Ping to IP 77.97.97.67 from VM ctest-TestBasicPolicy-14393435-75245126 passed 2026-06-08 11:09:25,151 - DEBUG - Policy Update Response {"network-policy": {"uuid": "13ea81d8-2c79-4f1c-bacf-d20319289eee", "href": "http://10.0.0.249:8082/network-policy/13ea81d8-2c79-4f1c-bacf-d20319289eee"}} 2026-06-08 11:09:25,151 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2026-06-08 11:09:25,151 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 77.97.97.67, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.19, gateway password: c0ntrail123 2026-06-08 11:09:25,151 - DEBUG - ping -s 56 -c 3 -W 1 77.97.97.67 2026-06-08 11:09:28,643 - DEBUG - PING 77.97.97.67 (77.97.97.67) 56(84) bytes of data. 64 bytes from 77.97.97.67: icmp_req=1 ttl=63 time=6.19 ms --- 77.97.97.67 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2002ms rtt min/avg/max/mdev = 6.196/6.196/6.196/0.000 ms 2026-06-08 11:09:28,643 - WARNING - Ping to IP 77.97.97.67 from VM ctest-TestBasicPolicy-14393435-75245126 failed 2026-06-08 11:09:28,643 - INFO - Deleting VM ctest-TestBasicPolicy-14393435-83163502 2026-06-08 11:09:28,728 - INFO - Deleting VM ctest-TestBasicPolicy-14393435-75245126 2026-06-08 11:09:29,166 - INFO - Deleted policy ctest-policy-allow-all-36402389 2026-06-08 11:09:29,166 - INFO - Deleting VN ctest-vn-57013682 2026-06-08 11:09:29,205 - DEBUG - VN 3697c3b1-5d76-46a6-9665-a0899438c7be still in use: Unable to complete operation on network 3697c3b1-5d76-46a6-9665-a0899438c7be. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-35c2c18c-745b-473c-8c5f-3f865131376f'] 2026-06-08 11:09:29,205 - WARNING - Deleting VN ctest-vn-57013682 failed..Will retry 2026-06-08 11:09:31,352 - DEBUG - Response for deleting network () 2026-06-08 11:09:31,352 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/58952939-f7e2-45a7-843f-7b66d43e0ff6 2026-06-08 11:09:31,359 - DEBUG - Response Code: 404 2026-06-08 11:09:31,360 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 11:09:31,365 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3787ca8a-a083-410b-a8ff-2f021111eb93 2026-06-08 11:09:31,376 - DEBUG - Requesting: http://10.0.0.38:8082/project/6447623a-22b4-4030-900d-c454b37b1b3e 2026-06-08 11:09:31,460 - INFO - Validated that VN ctest-vn-57013682 is not found in API Server 2026-06-08 11:09:31,470 - DEBUG - VN ctest-vn-57013682 is not present in Agent 10.0.0.22 2026-06-08 11:09:31,480 - DEBUG - VN ctest-vn-57013682 is not present in Agent 10.0.0.19 2026-06-08 11:09:31,480 - INFO - Validated that VN ctest-vn-57013682 is not in any agent 2026-06-08 11:09:31,504 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-57013682 info 2026-06-08 11:09:31,505 - INFO - Deleting VN ctest-vn-23572376 2026-06-08 11:09:31,669 - DEBUG - Response for deleting network () 2026-06-08 11:09:31,669 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5a55b996-c7e1-42f0-971d-03316da14c87 2026-06-08 11:09:31,674 - DEBUG - Response Code: 404 2026-06-08 11:09:31,674 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-08 11:09:31,688 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3787ca8a-a083-410b-a8ff-2f021111eb93 2026-06-08 11:09:31,705 - DEBUG - Requesting: http://10.0.0.38:8082/project/6447623a-22b4-4030-900d-c454b37b1b3e 2026-06-08 11:09:31,795 - INFO - Validated that VN ctest-vn-23572376 is not found in API Server 2026-06-08 11:09:31,804 - DEBUG - VN ctest-vn-23572376 is not present in Agent 10.0.0.22 2026-06-08 11:09:31,813 - DEBUG - VN ctest-vn-23572376 is not present in Agent 10.0.0.19 2026-06-08 11:09:31,813 - INFO - Validated that VN ctest-vn-23572376 is not in any agent 2026-06-08 11:09:31,841 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-23572376 info 2026-06-08 11:09:33,121 - DEBUG - No XMPP flaps were noticed during the test
2026-06-08 11:09:33,121 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:01:39]
2026-06-08 11:09:33,121 - INFO - -------------------------------------------------------------------------------- 2026-06-08 11:09:33,835 - INFO - Deleted project: ctest-TestBasicPolicy-14393435, ID : 6447623a-22b4-4030-900d-c454b37b1b3e