2026-07-17 11:20:33,849 - INFO - Domain Default found not creating
2026-07-17 11:20:34,036 - INFO - Project ctest-TestBasicPolicy-93844166 not found, creating it
2026-07-17 11:20:34,551 - INFO - Created Project:ctest-TestBasicPolicy-93844166, ID : d3011954-9ff9-424d-b8a8-e959c65be5c7
2026-07-17 11:20:36,236 - INFO - ================================================================================
2026-07-17 11:20:36,237 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-07-17 11:20:36,237 - 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-07-17 11:20:36,508 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-07-17 11:20:36,509 - INFO - Initial checks done. Running the testcase now
2026-07-17 11:20:36,509 - INFO -
2026-07-17 11:20:37,146 - DEBUG - Response for create_network : {'network': {'id': '902a940b-4409-4fc4-a9cf-cf7aaecaa9f8', 'name': 'ctest-vn-51469726', 'tenant_id': 'd30119549ff9424db8a8e959c65be5c7', 'project_id': 'd30119549ff9424db8a8e959c65be5c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93844166', 'ctest-vn-51469726'], 'port_security_enabled': True, 'description': ''}}
2026-07-17 11:20:37,334 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a15752cb-3699-421a-819a-c2e6266c825b', 'name': '', 'tenant_id': 'd30119549ff9424db8a8e959c65be5c7', 'network_id': '902a940b-4409-4fc4-a9cf-cf7aaecaa9f8', 'ip_version': 4, 'cidr': '132.4.13.192/26', 'allocation_pools': [{'start': '132.4.13.194', 'end': '132.4.13.254'}], 'gateway_ip': '132.4.13.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.4.13.194', 'tags': [], 'project_id': 'd30119549ff9424db8a8e959c65be5c7'}}
2026-07-17 11:20:37,355 - INFO - Created VN ctest-vn-51469726
2026-07-17 11:20:37,410 - DEBUG - VN ctest-vn-51469726 UUID is 902a940b-4409-4fc4-a9cf-cf7aaecaa9f8
2026-07-17 11:20:37,729 - DEBUG - Response for create_network : {'network': {'id': 'f5a22f5d-97ef-46b0-ab77-047ea96782ad', 'name': 'ctest-vn-53929300', 'tenant_id': 'd30119549ff9424db8a8e959c65be5c7', 'project_id': 'd30119549ff9424db8a8e959c65be5c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93844166', 'ctest-vn-53929300'], 'port_security_enabled': True, 'description': ''}}
2026-07-17 11:20:37,934 - DEBUG - Response for create_subnet : {'subnet': {'id': '0312a5c7-26c0-4432-91d4-8b7b06c79109', 'name': '', 'tenant_id': 'd30119549ff9424db8a8e959c65be5c7', 'network_id': 'f5a22f5d-97ef-46b0-ab77-047ea96782ad', 'ip_version': 4, 'cidr': '12.64.230.64/26', 'allocation_pools': [{'start': '12.64.230.66', 'end': '12.64.230.126'}], 'gateway_ip': '12.64.230.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.64.230.66', 'tags': [], 'project_id': 'd30119549ff9424db8a8e959c65be5c7'}}
2026-07-17 11:20:37,954 - INFO - Created VN ctest-vn-53929300
2026-07-17 11:20:38,011 - DEBUG - VN ctest-vn-53929300 UUID is f5a22f5d-97ef-46b0-ab77-047ea96782ad
2026-07-17 11:20:38,129 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93844166:ctest-vn-51469726, 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-93844166:ctest-vn-53929300, 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-07-17 11:20:38,440 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '902a940b-4409-4fc4-a9cf-cf7aaecaa9f8', 'name': 'ctest-vn-51469726', 'tenant_id': 'd30119549ff9424db8a8e959c65be5c7', 'project_id': 'd30119549ff9424db8a8e959c65be5c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a15752cb-3699-421a-819a-c2e6266c825b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93844166', 'ctest-vn-51469726'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93844166', 'ctest-policy-allow-all-95265527']], 'subnet_ipam': [{'subnet_cidr': '132.4.13.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-17 11:20:38,694 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f5a22f5d-97ef-46b0-ab77-047ea96782ad', 'name': 'ctest-vn-53929300', 'tenant_id': 'd30119549ff9424db8a8e959c65be5c7', 'project_id': 'd30119549ff9424db8a8e959c65be5c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0312a5c7-26c0-4432-91d4-8b7b06c79109'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93844166', 'ctest-vn-53929300'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93844166', 'ctest-policy-allow-all-95265527']], 'subnet_ipam': [{'subnet_cidr': '12.64.230.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-07-17 11:20:38,862 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-17 11:20:39,193 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-17 11:20:39,226 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e36e2493-2fb4-41a7-b75c-88e531ee4232
2026-07-17 11:20:39,240 - DEBUG - Requesting: http://10.0.0.50:8082/project/d3011954-9ff9-424d-b8a8-e959c65be5c7
2026-07-17 11:20:39,326 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/902a940b-4409-4fc4-a9cf-cf7aaecaa9f8
2026-07-17 11:20:39,340 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/902a940b-4409-4fc4-a9cf-cf7aaecaa9f8
2026-07-17 11:20:39,351 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12dd51e9-9721-43e8-a223-344726969881
2026-07-17 11:20:39,360 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12dd51e9-9721-43e8-a223-344726969881
2026-07-17 11:20:39,369 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dd400fc9-f929-4d96-87ba-d479ddd106d9
2026-07-17 11:20:39,377 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-17 11:20:39,377 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/902a940b-4409-4fc4-a9cf-cf7aaecaa9f8
2026-07-17 11:20:39,386 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12dd51e9-9721-43e8-a223-344726969881
2026-07-17 11:20:39,402 - INFO - Verified VN network id 11 for VN 902a940b-4409-4fc4-a9cf-cf7aaecaa9f8
2026-07-17 11:20:39,402 - INFO - Verifications in API Server for VN ctest-vn-51469726 passed
2026-07-17 11:20:39,402 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/902a940b-4409-4fc4-a9cf-cf7aaecaa9f8
2026-07-17 11:20:39,413 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12dd51e9-9721-43e8-a223-344726969881
2026-07-17 11:20:39,422 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12dd51e9-9721-43e8-a223-344726969881
2026-07-17 11:20:39,431 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dd400fc9-f929-4d96-87ba-d479ddd106d9
2026-07-17 11:20:39,445 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93844166:ctest-vn-51469726', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93844166', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10388278266590482372', 'uuid-lslong': '12236226838414404088'}, 'enable': 'true', 'created': '2026-07-17T11:20:37', 'last-modified': '2026-07-17T11:20:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.031038'}
2026-07-17 11:20:39,453 - DEBUG - Route Targets: ['target:64512:8000004']
2026-07-17 11:20:39,453 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51469726 passed
2026-07-17 11:20:39,453 - DEBUG - ====Verifying policy data for ctest-vn-51469726 in API_Server ======
2026-07-17 11:20:39,453 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-17 11:20:39,460 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e36e2493-2fb4-41a7-b75c-88e531ee4232
2026-07-17 11:20:39,473 - DEBUG - Requesting: http://10.0.0.50:8082/project/d3011954-9ff9-424d-b8a8-e959c65be5c7
2026-07-17 11:20:39,557 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/902a940b-4409-4fc4-a9cf-cf7aaecaa9f8
2026-07-17 11:20:39,569 - DEBUG - ==>Verifying data for policy with id: be1169ad-d113-48e8-a556-f58e7361f545, fqn: ['default-domain', 'ctest-TestBasicPolicy-93844166', 'ctest-policy-allow-all-95265527']
2026-07-17 11:20:39,569 - INFO - VN ctest-vn-51469726 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-17 11:20:39,569 - DEBUG - Verifying the vn in opserver
2026-07-17 11:20:39,569 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93844166:ctest-vn-51469726 virtual network link through opserver 10.0.0.50
2026-07-17 11:20:39,569 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-17 11:20:39,898 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-17 11:20:39,965 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93844166:ctest-vn-51469726', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93844166:ctest-vn-51469726?flat'}
2026-07-17 11:20:39,965 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93844166:ctest-vn-51469726 is found in opserver
2026-07-17 11:20:39,977 - DEBUG - Do not have enough data to verify VN in agent
2026-07-17 11:20:39,982 - DEBUG - VRF ids for VN ctest-vn-51469726: {}
2026-07-17 11:20:39,982 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-17 11:20:39,989 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e36e2493-2fb4-41a7-b75c-88e531ee4232
2026-07-17 11:20:40,002 - DEBUG - Requesting: http://10.0.0.50:8082/project/d3011954-9ff9-424d-b8a8-e959c65be5c7
2026-07-17 11:20:40,080 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f5a22f5d-97ef-46b0-ab77-047ea96782ad
2026-07-17 11:20:40,095 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f5a22f5d-97ef-46b0-ab77-047ea96782ad
2026-07-17 11:20:40,107 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6106fb0e-1710-4899-bb75-8f2a22d4a54a
2026-07-17 11:20:40,116 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6106fb0e-1710-4899-bb75-8f2a22d4a54a
2026-07-17 11:20:40,124 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/da94444a-26c8-4a26-8098-ad2502de54a4
2026-07-17 11:20:40,133 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-17 11:20:40,133 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f5a22f5d-97ef-46b0-ab77-047ea96782ad
2026-07-17 11:20:40,143 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6106fb0e-1710-4899-bb75-8f2a22d4a54a
2026-07-17 11:20:40,160 - INFO - Verified VN network id 12 for VN f5a22f5d-97ef-46b0-ab77-047ea96782ad
2026-07-17 11:20:40,160 - INFO - Verifications in API Server for VN ctest-vn-53929300 passed
2026-07-17 11:20:40,160 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f5a22f5d-97ef-46b0-ab77-047ea96782ad
2026-07-17 11:20:40,172 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6106fb0e-1710-4899-bb75-8f2a22d4a54a
2026-07-17 11:20:40,180 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/6106fb0e-1710-4899-bb75-8f2a22d4a54a
2026-07-17 11:20:40,190 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/da94444a-26c8-4a26-8098-ad2502de54a4
2026-07-17 11:20:40,204 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93844166:ctest-vn-53929300', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93844166', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17699761564546975408', 'uuid-lslong': '12355349044768768685'}, 'enable': 'true', 'created': '2026-07-17T11:20:37', 'last-modified': '2026-07-17T11:20:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.541516'}
2026-07-17 11:20:40,210 - DEBUG - Route Targets: ['target:64512:8000005']
2026-07-17 11:20:40,210 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53929300 passed
2026-07-17 11:20:40,210 - DEBUG - ====Verifying policy data for ctest-vn-53929300 in API_Server ======
2026-07-17 11:20:40,211 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-07-17 11:20:40,217 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e36e2493-2fb4-41a7-b75c-88e531ee4232
2026-07-17 11:20:40,228 - DEBUG - Requesting: http://10.0.0.50:8082/project/d3011954-9ff9-424d-b8a8-e959c65be5c7
2026-07-17 11:20:40,309 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f5a22f5d-97ef-46b0-ab77-047ea96782ad
2026-07-17 11:20:40,320 - DEBUG - ==>Verifying data for policy with id: be1169ad-d113-48e8-a556-f58e7361f545, fqn: ['default-domain', 'ctest-TestBasicPolicy-93844166', 'ctest-policy-allow-all-95265527']
2026-07-17 11:20:40,320 - INFO - VN ctest-vn-53929300 Policy verification: verify_vn_policy_in_api_server, status: True
2026-07-17 11:20:40,320 - DEBUG - Verifying the vn in opserver
2026-07-17 11:20:40,320 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93844166:ctest-vn-53929300 virtual network link through opserver 10.0.0.50
2026-07-17 11:20:40,321 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-07-17 11:20:40,331 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93844166:ctest-vn-53929300', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93844166:ctest-vn-53929300?flat'}
2026-07-17 11:20:40,332 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93844166:ctest-vn-53929300 is found in opserver
2026-07-17 11:20:40,343 - DEBUG - Do not have enough data to verify VN in agent
2026-07-17 11:20:40,348 - DEBUG - VRF ids for VN ctest-vn-53929300: {}
2026-07-17 11:20:40,420 - DEBUG - Services list from nova: [