2026-09-18 13:40:54,878 - INFO - Domain Default found not creating
2026-09-18 13:40:55,068 - INFO - Project ctest-TestBasicPolicy-27988473 not found, creating it
2026-09-18 13:40:55,588 - INFO - Created Project:ctest-TestBasicPolicy-27988473, ID : 8aeff59c-c4ae-4181-ad21-2a0499bbfdb5
2026-09-18 13:40:57,276 - INFO - ================================================================================
2026-09-18 13:40:57,276 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-09-18 13:40:57,276 - 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-09-18 13:40:57,546 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.17': '0'}} with
2026-09-18 13:40:57,546 - INFO - Initial checks done. Running the testcase now
2026-09-18 13:40:57,546 - INFO -
2026-09-18 13:40:58,155 - DEBUG - Response for create_network : {'network': {'id': '62af9663-7ead-4306-aa61-9a0c21a4c01d', 'name': 'ctest-vn-32903285', 'tenant_id': '8aeff59cc4ae4181ad212a0499bbfdb5', 'project_id': '8aeff59cc4ae4181ad212a0499bbfdb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27988473', 'ctest-vn-32903285'], 'port_security_enabled': True, 'description': ''}}
2026-09-18 13:40:58,368 - DEBUG - Response for create_subnet : {'subnet': {'id': '17c0c9ec-25ea-4fd7-831d-599a87b2b99f', 'name': '', 'tenant_id': '8aeff59cc4ae4181ad212a0499bbfdb5', 'network_id': '62af9663-7ead-4306-aa61-9a0c21a4c01d', 'ip_version': 4, 'cidr': '85.11.190.64/26', 'allocation_pools': [{'start': '85.11.190.66', 'end': '85.11.190.126'}], 'gateway_ip': '85.11.190.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.11.190.66', 'tags': [], 'project_id': '8aeff59cc4ae4181ad212a0499bbfdb5'}}
2026-09-18 13:40:58,389 - INFO - Created VN ctest-vn-32903285
2026-09-18 13:40:58,442 - DEBUG - VN ctest-vn-32903285 UUID is 62af9663-7ead-4306-aa61-9a0c21a4c01d
2026-09-18 13:40:58,758 - DEBUG - Response for create_network : {'network': {'id': '44044764-8655-40a4-b4d9-a1b57fb2dc55', 'name': 'ctest-vn-92844821', 'tenant_id': '8aeff59cc4ae4181ad212a0499bbfdb5', 'project_id': '8aeff59cc4ae4181ad212a0499bbfdb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27988473', 'ctest-vn-92844821'], 'port_security_enabled': True, 'description': ''}}
2026-09-18 13:40:58,927 - DEBUG - Response for create_subnet : {'subnet': {'id': '0991449a-7694-4df4-99f0-99e11c7936f8', 'name': '', 'tenant_id': '8aeff59cc4ae4181ad212a0499bbfdb5', 'network_id': '44044764-8655-40a4-b4d9-a1b57fb2dc55', 'ip_version': 4, 'cidr': '68.51.76.0/26', 'allocation_pools': [{'start': '68.51.76.2', 'end': '68.51.76.62'}], 'gateway_ip': '68.51.76.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.51.76.2', 'tags': [], 'project_id': '8aeff59cc4ae4181ad212a0499bbfdb5'}}
2026-09-18 13:40:58,945 - INFO - Created VN ctest-vn-92844821
2026-09-18 13:40:58,998 - DEBUG - VN ctest-vn-92844821 UUID is 44044764-8655-40a4-b4d9-a1b57fb2dc55
2026-09-18 13:40:59,111 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27988473:ctest-vn-32903285, 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-27988473:ctest-vn-92844821, 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-09-18 13:40:59,443 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '62af9663-7ead-4306-aa61-9a0c21a4c01d', 'name': 'ctest-vn-32903285', 'tenant_id': '8aeff59cc4ae4181ad212a0499bbfdb5', 'project_id': '8aeff59cc4ae4181ad212a0499bbfdb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['17c0c9ec-25ea-4fd7-831d-599a87b2b99f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27988473', 'ctest-vn-32903285'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27988473', 'ctest-policy-allow-all-26700865']], 'subnet_ipam': [{'subnet_cidr': '85.11.190.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-18 13:40:59,692 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '44044764-8655-40a4-b4d9-a1b57fb2dc55', 'name': 'ctest-vn-92844821', 'tenant_id': '8aeff59cc4ae4181ad212a0499bbfdb5', 'project_id': '8aeff59cc4ae4181ad212a0499bbfdb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['0991449a-7694-4df4-99f0-99e11c7936f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27988473', 'ctest-vn-92844821'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27988473', 'ctest-policy-allow-all-26700865']], 'subnet_ipam': [{'subnet_cidr': '68.51.76.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-09-18 13:40:59,858 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-09-18 13:41:00,178 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-09-18 13:41:00,209 - DEBUG - Requesting: http://10.0.0.189:8082/domain/43b9ffac-29b0-4ad0-99d7-cf034868a7c4
2026-09-18 13:41:00,225 - DEBUG - Requesting: http://10.0.0.189:8082/project/8aeff59c-c4ae-4181-ad21-2a0499bbfdb5
2026-09-18 13:41:00,317 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/62af9663-7ead-4306-aa61-9a0c21a4c01d
2026-09-18 13:41:00,333 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/62af9663-7ead-4306-aa61-9a0c21a4c01d
2026-09-18 13:41:00,345 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/dc092e74-6409-457d-a005-b0332a23a5dd
2026-09-18 13:41:00,353 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/dc092e74-6409-457d-a005-b0332a23a5dd
2026-09-18 13:41:00,362 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/8665078b-4850-4a1d-b389-32dc7d771958
2026-09-18 13:41:00,370 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-18 13:41:00,370 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/62af9663-7ead-4306-aa61-9a0c21a4c01d
2026-09-18 13:41:00,381 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/dc092e74-6409-457d-a005-b0332a23a5dd
2026-09-18 13:41:00,399 - INFO - Verified VN network id 12 for VN 62af9663-7ead-4306-aa61-9a0c21a4c01d
2026-09-18 13:41:00,399 - INFO - Verifications in API Server for VN ctest-vn-32903285 passed
2026-09-18 13:41:00,399 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/62af9663-7ead-4306-aa61-9a0c21a4c01d
2026-09-18 13:41:00,413 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/dc092e74-6409-457d-a005-b0332a23a5dd
2026-09-18 13:41:00,421 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/dc092e74-6409-457d-a005-b0332a23a5dd
2026-09-18 13:41:00,431 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/8665078b-4850-4a1d-b389-32dc7d771958
2026-09-18 13:41:00,447 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27988473:ctest-vn-32903285', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27988473', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7111067690712515334', 'uuid-lslong': '12277263436083413021'}, 'enable': 'true', 'created': '2026-09-18T13:40:58', 'last-modified': '2026-09-18T13:40:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.035218'}
2026-09-18 13:41:00,455 - DEBUG - Route Targets: ['target:64512:8000005']
2026-09-18 13:41:00,455 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32903285 passed
2026-09-18 13:41:00,455 - DEBUG - ====Verifying policy data for ctest-vn-32903285 in API_Server ======
2026-09-18 13:41:00,456 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-09-18 13:41:00,463 - DEBUG - Requesting: http://10.0.0.189:8082/domain/43b9ffac-29b0-4ad0-99d7-cf034868a7c4
2026-09-18 13:41:00,476 - DEBUG - Requesting: http://10.0.0.189:8082/project/8aeff59c-c4ae-4181-ad21-2a0499bbfdb5
2026-09-18 13:41:00,557 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/62af9663-7ead-4306-aa61-9a0c21a4c01d
2026-09-18 13:41:00,570 - DEBUG - ==>Verifying data for policy with id: bb56a459-764a-4160-918d-788337489fda, fqn: ['default-domain', 'ctest-TestBasicPolicy-27988473', 'ctest-policy-allow-all-26700865']
2026-09-18 13:41:00,570 - INFO - VN ctest-vn-32903285 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-18 13:41:00,570 - DEBUG - Verifying the vn in opserver
2026-09-18 13:41:00,570 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27988473:ctest-vn-32903285 virtual network link through opserver 10.0.0.189
2026-09-18 13:41:00,570 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-09-18 13:41:00,898 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-09-18 13:41:00,962 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27988473:ctest-vn-32903285', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27988473:ctest-vn-32903285?flat'}
2026-09-18 13:41:00,962 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27988473:ctest-vn-32903285 is found in opserver
2026-09-18 13:41:00,976 - DEBUG - Do not have enough data to verify VN in agent
2026-09-18 13:41:00,982 - DEBUG - VRF ids for VN ctest-vn-32903285: {}
2026-09-18 13:41:00,982 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-09-18 13:41:00,990 - DEBUG - Requesting: http://10.0.0.189:8082/domain/43b9ffac-29b0-4ad0-99d7-cf034868a7c4
2026-09-18 13:41:01,004 - DEBUG - Requesting: http://10.0.0.189:8082/project/8aeff59c-c4ae-4181-ad21-2a0499bbfdb5
2026-09-18 13:41:01,085 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/44044764-8655-40a4-b4d9-a1b57fb2dc55
2026-09-18 13:41:01,098 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/44044764-8655-40a4-b4d9-a1b57fb2dc55
2026-09-18 13:41:01,109 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/782d9943-4d6e-4b8e-aab3-34572aec0214
2026-09-18 13:41:01,118 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/782d9943-4d6e-4b8e-aab3-34572aec0214
2026-09-18 13:41:01,126 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/a7707ee3-ef63-4be8-ae22-c22ccf6919db
2026-09-18 13:41:01,134 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-18 13:41:01,134 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/44044764-8655-40a4-b4d9-a1b57fb2dc55
2026-09-18 13:41:01,143 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/782d9943-4d6e-4b8e-aab3-34572aec0214
2026-09-18 13:41:01,159 - INFO - Verified VN network id 13 for VN 44044764-8655-40a4-b4d9-a1b57fb2dc55
2026-09-18 13:41:01,159 - INFO - Verifications in API Server for VN ctest-vn-92844821 passed
2026-09-18 13:41:01,159 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/44044764-8655-40a4-b4d9-a1b57fb2dc55
2026-09-18 13:41:01,171 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/782d9943-4d6e-4b8e-aab3-34572aec0214
2026-09-18 13:41:01,180 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/782d9943-4d6e-4b8e-aab3-34572aec0214
2026-09-18 13:41:01,191 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/a7707ee3-ef63-4be8-ae22-c22ccf6919db
2026-09-18 13:41:01,207 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27988473:ctest-vn-92844821', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27988473', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4901120791561978020', 'uuid-lslong': '13031624797676821589'}, 'enable': 'true', 'created': '2026-09-18T13:40:58', 'last-modified': '2026-09-18T13:40:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.537981'}
2026-09-18 13:41:01,215 - DEBUG - Route Targets: ['target:64512:8000006']
2026-09-18 13:41:01,215 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-92844821 passed
2026-09-18 13:41:01,216 - DEBUG - ====Verifying policy data for ctest-vn-92844821 in API_Server ======
2026-09-18 13:41:01,216 - DEBUG - Requesting: http://10.0.0.189:8082/domains
2026-09-18 13:41:01,223 - DEBUG - Requesting: http://10.0.0.189:8082/domain/43b9ffac-29b0-4ad0-99d7-cf034868a7c4
2026-09-18 13:41:01,235 - DEBUG - Requesting: http://10.0.0.189:8082/project/8aeff59c-c4ae-4181-ad21-2a0499bbfdb5
2026-09-18 13:41:01,319 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/44044764-8655-40a4-b4d9-a1b57fb2dc55
2026-09-18 13:41:01,331 - DEBUG - ==>Verifying data for policy with id: bb56a459-764a-4160-918d-788337489fda, fqn: ['default-domain', 'ctest-TestBasicPolicy-27988473', 'ctest-policy-allow-all-26700865']
2026-09-18 13:41:01,331 - INFO - VN ctest-vn-92844821 Policy verification: verify_vn_policy_in_api_server, status: True
2026-09-18 13:41:01,331 - DEBUG - Verifying the vn in opserver
2026-09-18 13:41:01,331 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27988473:ctest-vn-92844821 virtual network link through opserver 10.0.0.189
2026-09-18 13:41:01,331 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks
2026-09-18 13:41:01,342 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27988473:ctest-vn-92844821', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27988473:ctest-vn-92844821?flat'}
2026-09-18 13:41:01,342 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27988473:ctest-vn-92844821 is found in opserver
2026-09-18 13:41:01,353 - DEBUG - Do not have enough data to verify VN in agent
2026-09-18 13:41:01,358 - DEBUG - VRF ids for VN ctest-vn-92844821: {}
2026-09-18 13:41:01,430 - DEBUG - Services list from nova: [