2026-02-03 21:22:08,391 - INFO - Domain Default found not creating
2026-02-03 21:22:08,547 - INFO - Project ctest-TestBasicPolicy-60704395 not found, creating it
2026-02-03 21:22:09,031 - INFO - Created Project:ctest-TestBasicPolicy-60704395, ID : fc0062b9-0833-424d-8b53-cf135f6b4272
2026-02-03 21:22:10,502 - INFO - ================================================================================
2026-02-03 21:22:10,502 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-03 21:22:10,502 - 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-02-03 21:22:10,756 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.193': '0'}} with
2026-02-03 21:22:10,756 - INFO - Initial checks done. Running the testcase now
2026-02-03 21:22:10,756 - INFO -
2026-02-03 21:22:11,321 - DEBUG - Response for create_network : {'network': {'id': '838d6f38-fb32-438a-838d-293668e17e72', 'name': 'ctest-vn-83775817', 'tenant_id': 'fc0062b90833424d8b53cf135f6b4272', 'project_id': 'fc0062b90833424d8b53cf135f6b4272', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60704395', 'ctest-vn-83775817'], 'port_security_enabled': True, 'description': ''}}
2026-02-03 21:22:11,542 - DEBUG - Response for create_subnet : {'subnet': {'id': '11f46c65-8c3c-46ec-8eae-97bf204c76c5', 'name': '', 'tenant_id': 'fc0062b90833424d8b53cf135f6b4272', 'network_id': '838d6f38-fb32-438a-838d-293668e17e72', 'ip_version': 4, 'cidr': '9.44.97.128/26', 'allocation_pools': [{'start': '9.44.97.130', 'end': '9.44.97.190'}], 'gateway_ip': '9.44.97.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.44.97.130', 'tags': [], 'project_id': 'fc0062b90833424d8b53cf135f6b4272'}}
2026-02-03 21:22:11,558 - INFO - Created VN ctest-vn-83775817
2026-02-03 21:22:11,611 - DEBUG - VN ctest-vn-83775817 UUID is 838d6f38-fb32-438a-838d-293668e17e72
2026-02-03 21:22:11,928 - DEBUG - Response for create_network : {'network': {'id': '19d138be-9ac5-4344-b43b-988fd2e52963', 'name': 'ctest-vn-19510827', 'tenant_id': 'fc0062b90833424d8b53cf135f6b4272', 'project_id': 'fc0062b90833424d8b53cf135f6b4272', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60704395', 'ctest-vn-19510827'], 'port_security_enabled': True, 'description': ''}}
2026-02-03 21:22:12,093 - DEBUG - Response for create_subnet : {'subnet': {'id': '1269362c-f572-4aa4-8d3c-89a1099de5c4', 'name': '', 'tenant_id': 'fc0062b90833424d8b53cf135f6b4272', 'network_id': '19d138be-9ac5-4344-b43b-988fd2e52963', 'ip_version': 4, 'cidr': '61.145.216.64/26', 'allocation_pools': [{'start': '61.145.216.66', 'end': '61.145.216.126'}], 'gateway_ip': '61.145.216.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.145.216.66', 'tags': [], 'project_id': 'fc0062b90833424d8b53cf135f6b4272'}}
2026-02-03 21:22:12,108 - INFO - Created VN ctest-vn-19510827
2026-02-03 21:22:12,158 - DEBUG - VN ctest-vn-19510827 UUID is 19d138be-9ac5-4344-b43b-988fd2e52963
2026-02-03 21:22:12,298 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60704395:ctest-vn-83775817, 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-60704395:ctest-vn-19510827, 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-02-03 21:22:12,581 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '838d6f38-fb32-438a-838d-293668e17e72', 'name': 'ctest-vn-83775817', 'tenant_id': 'fc0062b90833424d8b53cf135f6b4272', 'project_id': 'fc0062b90833424d8b53cf135f6b4272', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['11f46c65-8c3c-46ec-8eae-97bf204c76c5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60704395', 'ctest-vn-83775817'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60704395', 'ctest-policy-allow-all-93950172']], 'subnet_ipam': [{'subnet_cidr': '9.44.97.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-03 21:22:12,799 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '19d138be-9ac5-4344-b43b-988fd2e52963', 'name': 'ctest-vn-19510827', 'tenant_id': 'fc0062b90833424d8b53cf135f6b4272', 'project_id': 'fc0062b90833424d8b53cf135f6b4272', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1269362c-f572-4aa4-8d3c-89a1099de5c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60704395', 'ctest-vn-19510827'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60704395', 'ctest-policy-allow-all-93950172']], 'subnet_ipam': [{'subnet_cidr': '61.145.216.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-03 21:22:12,947 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-03 21:22:13,238 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-03 21:22:13,266 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a165745d-cff5-44b6-8482-90b1e869727a
2026-02-03 21:22:13,277 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc0062b9-0833-424d-8b53-cf135f6b4272
2026-02-03 21:22:13,344 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/838d6f38-fb32-438a-838d-293668e17e72
2026-02-03 21:22:13,355 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/838d6f38-fb32-438a-838d-293668e17e72
2026-02-03 21:22:13,362 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2a1e27b2-eeb4-4335-9e57-2d96fecd605a
2026-02-03 21:22:13,368 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2a1e27b2-eeb4-4335-9e57-2d96fecd605a
2026-02-03 21:22:13,376 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/98608e38-1902-4b22-854c-bb669775b20d
2026-02-03 21:22:13,382 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-03 21:22:13,382 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/838d6f38-fb32-438a-838d-293668e17e72
2026-02-03 21:22:13,389 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2a1e27b2-eeb4-4335-9e57-2d96fecd605a
2026-02-03 21:22:13,402 - INFO - Verified VN network id 11 for VN 838d6f38-fb32-438a-838d-293668e17e72
2026-02-03 21:22:13,402 - INFO - Verifications in API Server for VN ctest-vn-83775817 passed
2026-02-03 21:22:13,402 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/838d6f38-fb32-438a-838d-293668e17e72
2026-02-03 21:22:13,410 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2a1e27b2-eeb4-4335-9e57-2d96fecd605a
2026-02-03 21:22:13,415 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2a1e27b2-eeb4-4335-9e57-2d96fecd605a
2026-02-03 21:22:13,420 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/98608e38-1902-4b22-854c-bb669775b20d
2026-02-03 21:22:13,429 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60704395:ctest-vn-83775817', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60704395', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9479355081207989130', 'uuid-lslong': '9479278104349343346'}, 'enable': 'true', 'created': '2026-02-03T21:22:11', 'last-modified': '2026-02-03T21:22:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.867880'}
2026-02-03 21:22:13,434 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-03 21:22:13,434 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83775817 passed
2026-02-03 21:22:13,435 - DEBUG - ====Verifying policy data for ctest-vn-83775817 in API_Server ======
2026-02-03 21:22:13,435 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-03 21:22:13,439 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a165745d-cff5-44b6-8482-90b1e869727a
2026-02-03 21:22:13,448 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc0062b9-0833-424d-8b53-cf135f6b4272
2026-02-03 21:22:13,517 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/838d6f38-fb32-438a-838d-293668e17e72
2026-02-03 21:22:13,526 - DEBUG - ==>Verifying data for policy with id: ad4e0435-fb9e-45f8-9e54-8f1fa28f4135, fqn: ['default-domain', 'ctest-TestBasicPolicy-60704395', 'ctest-policy-allow-all-93950172']
2026-02-03 21:22:13,526 - INFO - VN ctest-vn-83775817 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-03 21:22:13,526 - DEBUG - Verifying the vn in opserver
2026-02-03 21:22:13,526 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60704395:ctest-vn-83775817 virtual network link through opserver 10.0.0.50
2026-02-03 21:22:13,526 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-03 21:22:13,817 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-03 21:22:13,870 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60704395:ctest-vn-83775817', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60704395:ctest-vn-83775817?flat'}
2026-02-03 21:22:13,870 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60704395:ctest-vn-83775817 is found in opserver
2026-02-03 21:22:13,880 - DEBUG - Do not have enough data to verify VN in agent
2026-02-03 21:22:13,884 - DEBUG - VRF ids for VN ctest-vn-83775817: {}
2026-02-03 21:22:13,884 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-03 21:22:13,889 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a165745d-cff5-44b6-8482-90b1e869727a
2026-02-03 21:22:13,899 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc0062b9-0833-424d-8b53-cf135f6b4272
2026-02-03 21:22:13,968 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/19d138be-9ac5-4344-b43b-988fd2e52963
2026-02-03 21:22:13,980 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/19d138be-9ac5-4344-b43b-988fd2e52963
2026-02-03 21:22:13,988 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/670c4c60-fc23-4596-8735-af98c7ccbe90
2026-02-03 21:22:13,994 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/670c4c60-fc23-4596-8735-af98c7ccbe90
2026-02-03 21:22:13,999 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8ba5365e-5b1f-4f50-a2a4-ff6e68466a7a
2026-02-03 21:22:14,004 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-03 21:22:14,004 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/19d138be-9ac5-4344-b43b-988fd2e52963
2026-02-03 21:22:14,012 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/670c4c60-fc23-4596-8735-af98c7ccbe90
2026-02-03 21:22:14,025 - INFO - Verified VN network id 12 for VN 19d138be-9ac5-4344-b43b-988fd2e52963
2026-02-03 21:22:14,025 - INFO - Verifications in API Server for VN ctest-vn-19510827 passed
2026-02-03 21:22:14,025 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/19d138be-9ac5-4344-b43b-988fd2e52963
2026-02-03 21:22:14,032 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/670c4c60-fc23-4596-8735-af98c7ccbe90
2026-02-03 21:22:14,038 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/670c4c60-fc23-4596-8735-af98c7ccbe90
2026-02-03 21:22:14,046 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8ba5365e-5b1f-4f50-a2a4-ff6e68466a7a
2026-02-03 21:22:14,058 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60704395:ctest-vn-19510827', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60704395', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1860330512372286276', 'uuid-lslong': '12987141693938936163'}, 'enable': 'true', 'created': '2026-02-03T21:22:11', 'last-modified': '2026-02-03T21:22:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.281689'}
2026-02-03 21:22:14,065 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-03 21:22:14,065 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19510827 passed
2026-02-03 21:22:14,065 - DEBUG - ====Verifying policy data for ctest-vn-19510827 in API_Server ======
2026-02-03 21:22:14,065 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-02-03 21:22:14,071 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a165745d-cff5-44b6-8482-90b1e869727a
2026-02-03 21:22:14,082 - DEBUG - Requesting: http://10.0.0.50:8082/project/fc0062b9-0833-424d-8b53-cf135f6b4272
2026-02-03 21:22:14,149 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/19d138be-9ac5-4344-b43b-988fd2e52963
2026-02-03 21:22:14,158 - DEBUG - ==>Verifying data for policy with id: ad4e0435-fb9e-45f8-9e54-8f1fa28f4135, fqn: ['default-domain', 'ctest-TestBasicPolicy-60704395', 'ctest-policy-allow-all-93950172']
2026-02-03 21:22:14,158 - INFO - VN ctest-vn-19510827 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-03 21:22:14,158 - DEBUG - Verifying the vn in opserver
2026-02-03 21:22:14,159 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60704395:ctest-vn-19510827 virtual network link through opserver 10.0.0.50
2026-02-03 21:22:14,159 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-02-03 21:22:14,168 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60704395:ctest-vn-19510827', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60704395:ctest-vn-19510827?flat'}
2026-02-03 21:22:14,168 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60704395:ctest-vn-19510827 is found in opserver
2026-02-03 21:22:14,177 - DEBUG - Do not have enough data to verify VN in agent
2026-02-03 21:22:14,181 - DEBUG - VRF ids for VN ctest-vn-19510827: {}
2026-02-03 21:22:14,238 - DEBUG - Services list from nova: [