2026-02-20 15:43:13,206 - INFO - Domain Default found not creating
2026-02-20 15:43:13,365 - INFO - Project ctest-TestBasicPolicy-43003872 not found, creating it
2026-02-20 15:43:13,810 - INFO - Created Project:ctest-TestBasicPolicy-43003872, ID : c0a8ddc1-d7cd-4fe2-9697-6e44bcb1bd1c
2026-02-20 15:43:15,217 - INFO - ================================================================================
2026-02-20 15:43:15,217 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-20 15:43:15,217 - 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-20 15:43:15,471 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-02-20 15:43:15,471 - INFO - Initial checks done. Running the testcase now
2026-02-20 15:43:15,471 - INFO -
2026-02-20 15:43:16,003 - DEBUG - Response for create_network : {'network': {'id': '2d4f1597-f862-440d-8029-a8b5db774763', 'name': 'ctest-vn-60735913', 'tenant_id': 'c0a8ddc1d7cd4fe296976e44bcb1bd1c', 'project_id': 'c0a8ddc1d7cd4fe296976e44bcb1bd1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43003872', 'ctest-vn-60735913'], 'port_security_enabled': True, 'description': ''}}
2026-02-20 15:43:16,149 - DEBUG - Response for create_subnet : {'subnet': {'id': '89610fee-10bf-4bf1-9ad2-9ab1faf4d14d', 'name': '', 'tenant_id': 'c0a8ddc1d7cd4fe296976e44bcb1bd1c', 'network_id': '2d4f1597-f862-440d-8029-a8b5db774763', 'ip_version': 4, 'cidr': '118.116.92.128/26', 'allocation_pools': [{'start': '118.116.92.130', 'end': '118.116.92.190'}], 'gateway_ip': '118.116.92.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.116.92.130', 'tags': [], 'project_id': 'c0a8ddc1d7cd4fe296976e44bcb1bd1c'}}
2026-02-20 15:43:16,166 - INFO - Created VN ctest-vn-60735913
2026-02-20 15:43:16,218 - DEBUG - VN ctest-vn-60735913 UUID is 2d4f1597-f862-440d-8029-a8b5db774763
2026-02-20 15:43:16,475 - DEBUG - Response for create_network : {'network': {'id': '30000a1c-381e-4f0b-ab38-b7287f9d7578', 'name': 'ctest-vn-81406677', 'tenant_id': 'c0a8ddc1d7cd4fe296976e44bcb1bd1c', 'project_id': 'c0a8ddc1d7cd4fe296976e44bcb1bd1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43003872', 'ctest-vn-81406677'], 'port_security_enabled': True, 'description': ''}}
2026-02-20 15:43:16,669 - DEBUG - Response for create_subnet : {'subnet': {'id': '6aaefebd-2571-420b-8e4f-9f1d826e9a3a', 'name': '', 'tenant_id': 'c0a8ddc1d7cd4fe296976e44bcb1bd1c', 'network_id': '30000a1c-381e-4f0b-ab38-b7287f9d7578', 'ip_version': 4, 'cidr': '117.123.164.192/26', 'allocation_pools': [{'start': '117.123.164.194', 'end': '117.123.164.254'}], 'gateway_ip': '117.123.164.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.123.164.194', 'tags': [], 'project_id': 'c0a8ddc1d7cd4fe296976e44bcb1bd1c'}}
2026-02-20 15:43:16,685 - INFO - Created VN ctest-vn-81406677
2026-02-20 15:43:16,734 - DEBUG - VN ctest-vn-81406677 UUID is 30000a1c-381e-4f0b-ab38-b7287f9d7578
2026-02-20 15:43:16,882 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-43003872:ctest-vn-60735913, 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-43003872:ctest-vn-81406677, 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-20 15:43:17,165 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2d4f1597-f862-440d-8029-a8b5db774763', 'name': 'ctest-vn-60735913', 'tenant_id': 'c0a8ddc1d7cd4fe296976e44bcb1bd1c', 'project_id': 'c0a8ddc1d7cd4fe296976e44bcb1bd1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['89610fee-10bf-4bf1-9ad2-9ab1faf4d14d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43003872', 'ctest-vn-60735913'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43003872', 'ctest-policy-allow-all-36039411']], 'subnet_ipam': [{'subnet_cidr': '118.116.92.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-20 15:43:17,377 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '30000a1c-381e-4f0b-ab38-b7287f9d7578', 'name': 'ctest-vn-81406677', 'tenant_id': 'c0a8ddc1d7cd4fe296976e44bcb1bd1c', 'project_id': 'c0a8ddc1d7cd4fe296976e44bcb1bd1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6aaefebd-2571-420b-8e4f-9f1d826e9a3a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-43003872', 'ctest-vn-81406677'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-43003872', 'ctest-policy-allow-all-36039411']], 'subnet_ipam': [{'subnet_cidr': '117.123.164.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-20 15:43:17,538 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-20 15:43:17,831 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-20 15:43:17,860 - DEBUG - Requesting: http://10.0.0.33:8082/domain/47d15c28-0efb-47b3-9a09-cde1233ca22b
2026-02-20 15:43:17,873 - DEBUG - Requesting: http://10.0.0.33:8082/project/c0a8ddc1-d7cd-4fe2-9697-6e44bcb1bd1c
2026-02-20 15:43:17,943 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2d4f1597-f862-440d-8029-a8b5db774763
2026-02-20 15:43:17,954 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2d4f1597-f862-440d-8029-a8b5db774763
2026-02-20 15:43:17,964 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ee3ce597-2d6e-42fa-a006-47b25922affe
2026-02-20 15:43:17,970 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ee3ce597-2d6e-42fa-a006-47b25922affe
2026-02-20 15:43:17,976 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7de5aafa-b7f7-40e5-b674-eeec545745c4
2026-02-20 15:43:17,982 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-20 15:43:17,982 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2d4f1597-f862-440d-8029-a8b5db774763
2026-02-20 15:43:17,991 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ee3ce597-2d6e-42fa-a006-47b25922affe
2026-02-20 15:43:18,004 - INFO - Verified VN network id 11 for VN 2d4f1597-f862-440d-8029-a8b5db774763
2026-02-20 15:43:18,004 - INFO - Verifications in API Server for VN ctest-vn-60735913 passed
2026-02-20 15:43:18,004 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2d4f1597-f862-440d-8029-a8b5db774763
2026-02-20 15:43:18,013 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ee3ce597-2d6e-42fa-a006-47b25922affe
2026-02-20 15:43:18,019 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ee3ce597-2d6e-42fa-a006-47b25922affe
2026-02-20 15:43:18,025 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/7de5aafa-b7f7-40e5-b674-eeec545745c4
2026-02-20 15:43:18,035 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43003872:ctest-vn-60735913', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43003872', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3264851997318333453', 'uuid-lslong': '9235098009924487011'}, 'enable': 'true', 'created': '2026-02-20T15:43:15', 'last-modified': '2026-02-20T15:43:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.889029'}
2026-02-20 15:43:18,040 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-20 15:43:18,041 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60735913 passed
2026-02-20 15:43:18,041 - DEBUG - ====Verifying policy data for ctest-vn-60735913 in API_Server ======
2026-02-20 15:43:18,041 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-20 15:43:18,045 - DEBUG - Requesting: http://10.0.0.33:8082/domain/47d15c28-0efb-47b3-9a09-cde1233ca22b
2026-02-20 15:43:18,055 - DEBUG - Requesting: http://10.0.0.33:8082/project/c0a8ddc1-d7cd-4fe2-9697-6e44bcb1bd1c
2026-02-20 15:43:18,122 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2d4f1597-f862-440d-8029-a8b5db774763
2026-02-20 15:43:18,130 - DEBUG - ==>Verifying data for policy with id: 55ebda1d-9741-4470-aef4-8ff847424c3d, fqn: ['default-domain', 'ctest-TestBasicPolicy-43003872', 'ctest-policy-allow-all-36039411']
2026-02-20 15:43:18,130 - INFO - VN ctest-vn-60735913 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-20 15:43:18,130 - DEBUG - Verifying the vn in opserver
2026-02-20 15:43:18,130 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43003872:ctest-vn-60735913 virtual network link through opserver 10.0.0.33
2026-02-20 15:43:18,131 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-02-20 15:43:18,421 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-02-20 15:43:18,477 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43003872:ctest-vn-60735913', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43003872:ctest-vn-60735913?flat'}
2026-02-20 15:43:18,477 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43003872:ctest-vn-60735913 is found in opserver
2026-02-20 15:43:18,486 - DEBUG - Do not have enough data to verify VN in agent
2026-02-20 15:43:18,491 - DEBUG - VRF ids for VN ctest-vn-60735913: {}
2026-02-20 15:43:18,491 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-20 15:43:18,496 - DEBUG - Requesting: http://10.0.0.33:8082/domain/47d15c28-0efb-47b3-9a09-cde1233ca22b
2026-02-20 15:43:18,507 - DEBUG - Requesting: http://10.0.0.33:8082/project/c0a8ddc1-d7cd-4fe2-9697-6e44bcb1bd1c
2026-02-20 15:43:18,573 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/30000a1c-381e-4f0b-ab38-b7287f9d7578
2026-02-20 15:43:18,583 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/30000a1c-381e-4f0b-ab38-b7287f9d7578
2026-02-20 15:43:18,592 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/90b64cff-28e5-4c8a-9a84-34f4af11425c
2026-02-20 15:43:18,599 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/90b64cff-28e5-4c8a-9a84-34f4af11425c
2026-02-20 15:43:18,606 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d699fed8-28ed-4a58-b06f-431770ebb002
2026-02-20 15:43:18,613 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-20 15:43:18,613 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/30000a1c-381e-4f0b-ab38-b7287f9d7578
2026-02-20 15:43:18,623 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/90b64cff-28e5-4c8a-9a84-34f4af11425c
2026-02-20 15:43:18,636 - INFO - Verified VN network id 12 for VN 30000a1c-381e-4f0b-ab38-b7287f9d7578
2026-02-20 15:43:18,636 - INFO - Verifications in API Server for VN ctest-vn-81406677 passed
2026-02-20 15:43:18,636 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/30000a1c-381e-4f0b-ab38-b7287f9d7578
2026-02-20 15:43:18,644 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/90b64cff-28e5-4c8a-9a84-34f4af11425c
2026-02-20 15:43:18,651 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/90b64cff-28e5-4c8a-9a84-34f4af11425c
2026-02-20 15:43:18,658 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/d699fed8-28ed-4a58-b06f-431770ebb002
2026-02-20 15:43:18,673 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-43003872:ctest-vn-81406677', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-43003872', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3458775630137413387', 'uuid-lslong': '12337812563749074296'}, 'enable': 'true', 'created': '2026-02-20T15:43:16', 'last-modified': '2026-02-20T15:43:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.312618'}
2026-02-20 15:43:18,681 - DEBUG - Route Targets: ['target:64512:8000005']
2026-02-20 15:43:18,681 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81406677 passed
2026-02-20 15:43:18,681 - DEBUG - ====Verifying policy data for ctest-vn-81406677 in API_Server ======
2026-02-20 15:43:18,681 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-02-20 15:43:18,687 - DEBUG - Requesting: http://10.0.0.33:8082/domain/47d15c28-0efb-47b3-9a09-cde1233ca22b
2026-02-20 15:43:18,697 - DEBUG - Requesting: http://10.0.0.33:8082/project/c0a8ddc1-d7cd-4fe2-9697-6e44bcb1bd1c
2026-02-20 15:43:18,772 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/30000a1c-381e-4f0b-ab38-b7287f9d7578
2026-02-20 15:43:18,783 - DEBUG - ==>Verifying data for policy with id: 55ebda1d-9741-4470-aef4-8ff847424c3d, fqn: ['default-domain', 'ctest-TestBasicPolicy-43003872', 'ctest-policy-allow-all-36039411']
2026-02-20 15:43:18,783 - INFO - VN ctest-vn-81406677 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-20 15:43:18,783 - DEBUG - Verifying the vn in opserver
2026-02-20 15:43:18,783 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-43003872:ctest-vn-81406677 virtual network link through opserver 10.0.0.33
2026-02-20 15:43:18,783 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-02-20 15:43:18,795 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-43003872:ctest-vn-81406677', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-43003872:ctest-vn-81406677?flat'}
2026-02-20 15:43:18,795 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-43003872:ctest-vn-81406677 is found in opserver
2026-02-20 15:43:18,806 - DEBUG - Do not have enough data to verify VN in agent
2026-02-20 15:43:18,811 - DEBUG - VRF ids for VN ctest-vn-81406677: {}
2026-02-20 15:43:18,870 - DEBUG - Services list from nova: [