2026-03-04 21:21:42,740 - INFO - Domain Default found not creating
2026-03-04 21:21:42,901 - INFO - Project ctest-TestBasicPolicy-11333775 not found, creating it
2026-03-04 21:21:43,367 - INFO - Created Project:ctest-TestBasicPolicy-11333775, ID : 2b78ca52-6508-48e7-9c27-f3fb6cb00a93
2026-03-04 21:21:44,777 - INFO - ================================================================================
2026-03-04 21:21:44,777 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-04 21:21:44,777 - 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-03-04 21:21:45,032 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-03-04 21:21:45,032 - INFO - Initial checks done. Running the testcase now
2026-03-04 21:21:45,032 - INFO -
2026-03-04 21:21:45,574 - DEBUG - Response for create_network : {'network': {'id': 'ffe12bfa-6fac-4df5-9be4-5a0972fb9c45', 'name': 'ctest-vn-82846779', 'tenant_id': '2b78ca52650848e79c27f3fb6cb00a93', 'project_id': '2b78ca52650848e79c27f3fb6cb00a93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11333775', 'ctest-vn-82846779'], 'port_security_enabled': True, 'description': ''}}
2026-03-04 21:21:45,750 - DEBUG - Response for create_subnet : {'subnet': {'id': '58ff5ba2-cedf-4f7b-84ec-d540cbe629d3', 'name': '', 'tenant_id': '2b78ca52650848e79c27f3fb6cb00a93', 'network_id': 'ffe12bfa-6fac-4df5-9be4-5a0972fb9c45', 'ip_version': 4, 'cidr': '211.64.135.64/26', 'allocation_pools': [{'start': '211.64.135.66', 'end': '211.64.135.126'}], 'gateway_ip': '211.64.135.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.64.135.66', 'tags': [], 'project_id': '2b78ca52650848e79c27f3fb6cb00a93'}}
2026-03-04 21:21:45,766 - INFO - Created VN ctest-vn-82846779
2026-03-04 21:21:45,814 - DEBUG - VN ctest-vn-82846779 UUID is ffe12bfa-6fac-4df5-9be4-5a0972fb9c45
2026-03-04 21:21:46,145 - DEBUG - Response for create_network : {'network': {'id': '327db340-ecc1-4b98-869e-0581f2fc7602', 'name': 'ctest-vn-09655452', 'tenant_id': '2b78ca52650848e79c27f3fb6cb00a93', 'project_id': '2b78ca52650848e79c27f3fb6cb00a93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11333775', 'ctest-vn-09655452'], 'port_security_enabled': True, 'description': ''}}
2026-03-04 21:21:46,313 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf942ce9-5847-4fc4-9042-9ebbae8d4c58', 'name': '', 'tenant_id': '2b78ca52650848e79c27f3fb6cb00a93', 'network_id': '327db340-ecc1-4b98-869e-0581f2fc7602', 'ip_version': 4, 'cidr': '220.248.2.64/26', 'allocation_pools': [{'start': '220.248.2.66', 'end': '220.248.2.126'}], 'gateway_ip': '220.248.2.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.248.2.66', 'tags': [], 'project_id': '2b78ca52650848e79c27f3fb6cb00a93'}}
2026-03-04 21:21:46,328 - INFO - Created VN ctest-vn-09655452
2026-03-04 21:21:46,385 - DEBUG - VN ctest-vn-09655452 UUID is 327db340-ecc1-4b98-869e-0581f2fc7602
2026-03-04 21:21:46,534 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11333775:ctest-vn-82846779, 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-11333775:ctest-vn-09655452, 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-03-04 21:21:46,824 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffe12bfa-6fac-4df5-9be4-5a0972fb9c45', 'name': 'ctest-vn-82846779', 'tenant_id': '2b78ca52650848e79c27f3fb6cb00a93', 'project_id': '2b78ca52650848e79c27f3fb6cb00a93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['58ff5ba2-cedf-4f7b-84ec-d540cbe629d3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11333775', 'ctest-vn-82846779'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11333775', 'ctest-policy-allow-all-60920038']], 'subnet_ipam': [{'subnet_cidr': '211.64.135.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-04 21:21:47,046 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '327db340-ecc1-4b98-869e-0581f2fc7602', 'name': 'ctest-vn-09655452', 'tenant_id': '2b78ca52650848e79c27f3fb6cb00a93', 'project_id': '2b78ca52650848e79c27f3fb6cb00a93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf942ce9-5847-4fc4-9042-9ebbae8d4c58'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11333775', 'ctest-vn-09655452'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11333775', 'ctest-policy-allow-all-60920038']], 'subnet_ipam': [{'subnet_cidr': '220.248.2.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-04 21:21:47,210 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-04 21:21:47,500 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-04 21:21:47,529 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0ff4e210-8f81-4f0b-91f4-986f4aaa1905
2026-03-04 21:21:47,540 - DEBUG - Requesting: http://10.0.0.38:8082/project/2b78ca52-6508-48e7-9c27-f3fb6cb00a93
2026-03-04 21:21:47,609 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ffe12bfa-6fac-4df5-9be4-5a0972fb9c45
2026-03-04 21:21:47,617 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ffe12bfa-6fac-4df5-9be4-5a0972fb9c45
2026-03-04 21:21:47,625 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e81567fb-4eea-4489-98e9-6f2a54101982
2026-03-04 21:21:47,631 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e81567fb-4eea-4489-98e9-6f2a54101982
2026-03-04 21:21:47,636 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/93ea16fe-0bc2-4c65-bab9-e645b63f30cc
2026-03-04 21:21:47,641 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-04 21:21:47,641 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ffe12bfa-6fac-4df5-9be4-5a0972fb9c45
2026-03-04 21:21:47,648 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e81567fb-4eea-4489-98e9-6f2a54101982
2026-03-04 21:21:47,658 - INFO - Verified VN network id 11 for VN ffe12bfa-6fac-4df5-9be4-5a0972fb9c45
2026-03-04 21:21:47,658 - INFO - Verifications in API Server for VN ctest-vn-82846779 passed
2026-03-04 21:21:47,658 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ffe12bfa-6fac-4df5-9be4-5a0972fb9c45
2026-03-04 21:21:47,666 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e81567fb-4eea-4489-98e9-6f2a54101982
2026-03-04 21:21:47,672 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/e81567fb-4eea-4489-98e9-6f2a54101982
2026-03-04 21:21:47,678 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/93ea16fe-0bc2-4c65-bab9-e645b63f30cc
2026-03-04 21:21:47,687 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11333775:ctest-vn-82846779', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11333775', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18438066704046902773', 'uuid-lslong': '11233202367199157317'}, 'enable': 'true', 'created': '2026-03-04T21:21:45', 'last-modified': '2026-03-04T21:21:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.883997'}
2026-03-04 21:21:47,692 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-04 21:21:47,692 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82846779 passed
2026-03-04 21:21:47,692 - DEBUG - ====Verifying policy data for ctest-vn-82846779 in API_Server ======
2026-03-04 21:21:47,692 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-04 21:21:47,697 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0ff4e210-8f81-4f0b-91f4-986f4aaa1905
2026-03-04 21:21:47,705 - DEBUG - Requesting: http://10.0.0.38:8082/project/2b78ca52-6508-48e7-9c27-f3fb6cb00a93
2026-03-04 21:21:47,769 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ffe12bfa-6fac-4df5-9be4-5a0972fb9c45
2026-03-04 21:21:47,782 - DEBUG - ==>Verifying data for policy with id: a6df8b4a-465a-4809-8415-5e82232de410, fqn: ['default-domain', 'ctest-TestBasicPolicy-11333775', 'ctest-policy-allow-all-60920038']
2026-03-04 21:21:47,783 - INFO - VN ctest-vn-82846779 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-04 21:21:47,783 - DEBUG - Verifying the vn in opserver
2026-03-04 21:21:47,783 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11333775:ctest-vn-82846779 virtual network link through opserver 10.0.0.38
2026-03-04 21:21:47,783 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-04 21:21:48,073 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-04 21:21:48,129 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11333775:ctest-vn-82846779', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11333775:ctest-vn-82846779?flat'}
2026-03-04 21:21:48,129 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11333775:ctest-vn-82846779 is found in opserver
2026-03-04 21:21:48,137 - DEBUG - Do not have enough data to verify VN in agent
2026-03-04 21:21:48,141 - DEBUG - VRF ids for VN ctest-vn-82846779: {}
2026-03-04 21:21:48,142 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-04 21:21:48,146 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0ff4e210-8f81-4f0b-91f4-986f4aaa1905
2026-03-04 21:21:48,155 - DEBUG - Requesting: http://10.0.0.38:8082/project/2b78ca52-6508-48e7-9c27-f3fb6cb00a93
2026-03-04 21:21:48,223 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/327db340-ecc1-4b98-869e-0581f2fc7602
2026-03-04 21:21:48,233 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/327db340-ecc1-4b98-869e-0581f2fc7602
2026-03-04 21:21:48,241 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7289a2d5-a8d8-4b0b-9e26-fa75358ed81e
2026-03-04 21:21:48,246 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7289a2d5-a8d8-4b0b-9e26-fa75358ed81e
2026-03-04 21:21:48,252 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/938133ca-bf86-42fb-9ccb-9a706a8d0a09
2026-03-04 21:21:48,257 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-04 21:21:48,257 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/327db340-ecc1-4b98-869e-0581f2fc7602
2026-03-04 21:21:48,263 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7289a2d5-a8d8-4b0b-9e26-fa75358ed81e
2026-03-04 21:21:48,274 - INFO - Verified VN network id 12 for VN 327db340-ecc1-4b98-869e-0581f2fc7602
2026-03-04 21:21:48,274 - INFO - Verifications in API Server for VN ctest-vn-09655452 passed
2026-03-04 21:21:48,274 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/327db340-ecc1-4b98-869e-0581f2fc7602
2026-03-04 21:21:48,281 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7289a2d5-a8d8-4b0b-9e26-fa75358ed81e
2026-03-04 21:21:48,286 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7289a2d5-a8d8-4b0b-9e26-fa75358ed81e
2026-03-04 21:21:48,291 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/938133ca-bf86-42fb-9ccb-9a706a8d0a09
2026-03-04 21:21:48,300 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11333775:ctest-vn-09655452', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11333775', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3638261165416598424', 'uuid-lslong': '9700196703088178690'}, 'enable': 'true', 'created': '2026-03-04T21:21:46', 'last-modified': '2026-03-04T21:21:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.274686'}
2026-03-04 21:21:48,305 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-04 21:21:48,305 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09655452 passed
2026-03-04 21:21:48,305 - DEBUG - ====Verifying policy data for ctest-vn-09655452 in API_Server ======
2026-03-04 21:21:48,305 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-03-04 21:21:48,309 - DEBUG - Requesting: http://10.0.0.38:8082/domain/0ff4e210-8f81-4f0b-91f4-986f4aaa1905
2026-03-04 21:21:48,317 - DEBUG - Requesting: http://10.0.0.38:8082/project/2b78ca52-6508-48e7-9c27-f3fb6cb00a93
2026-03-04 21:21:48,385 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/327db340-ecc1-4b98-869e-0581f2fc7602
2026-03-04 21:21:48,393 - DEBUG - ==>Verifying data for policy with id: a6df8b4a-465a-4809-8415-5e82232de410, fqn: ['default-domain', 'ctest-TestBasicPolicy-11333775', 'ctest-policy-allow-all-60920038']
2026-03-04 21:21:48,393 - INFO - VN ctest-vn-09655452 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-04 21:21:48,393 - DEBUG - Verifying the vn in opserver
2026-03-04 21:21:48,393 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11333775:ctest-vn-09655452 virtual network link through opserver 10.0.0.38
2026-03-04 21:21:48,394 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-03-04 21:21:48,402 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11333775:ctest-vn-09655452', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11333775:ctest-vn-09655452?flat'}
2026-03-04 21:21:48,402 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11333775:ctest-vn-09655452 is found in opserver
2026-03-04 21:21:48,410 - DEBUG - Do not have enough data to verify VN in agent
2026-03-04 21:21:48,414 - DEBUG - VRF ids for VN ctest-vn-09655452: {}
2026-03-04 21:21:48,463 - DEBUG - Services list from nova: [