2026-01-30 13:40:39,018 - INFO - Domain Default found not creating
2026-01-30 13:40:39,181 - INFO - Project ctest-TestBasicPolicy-71030602 not found, creating it
2026-01-30 13:40:39,639 - INFO - Created Project:ctest-TestBasicPolicy-71030602, ID : 317044f7-5cca-4b88-b191-4bb855d4775a
2026-01-30 13:40:41,084 - INFO - ================================================================================
2026-01-30 13:40:41,084 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-30 13:40:41,084 - 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-01-30 13:40:41,346 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-01-30 13:40:41,346 - INFO - Initial checks done. Running the testcase now
2026-01-30 13:40:41,346 - INFO -
2026-01-30 13:40:41,895 - DEBUG - Response for create_network : {'network': {'id': '63dc2bfd-388c-4299-a4e3-eab2f19525c2', 'name': 'ctest-vn-09533703', 'tenant_id': '317044f75cca4b88b1914bb855d4775a', 'project_id': '317044f75cca4b88b1914bb855d4775a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71030602', 'ctest-vn-09533703'], 'port_security_enabled': True, 'description': ''}}
2026-01-30 13:40:42,179 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e8deef7-ae2f-4790-a50d-28cd1bd4ad2a', 'name': '', 'tenant_id': '317044f75cca4b88b1914bb855d4775a', 'network_id': '63dc2bfd-388c-4299-a4e3-eab2f19525c2', 'ip_version': 4, 'cidr': '195.165.177.0/26', 'allocation_pools': [{'start': '195.165.177.2', 'end': '195.165.177.62'}], 'gateway_ip': '195.165.177.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.165.177.2', 'tags': [], 'project_id': '317044f75cca4b88b1914bb855d4775a'}}
2026-01-30 13:40:42,219 - INFO - Created VN ctest-vn-09533703
2026-01-30 13:40:42,277 - DEBUG - VN ctest-vn-09533703 UUID is 63dc2bfd-388c-4299-a4e3-eab2f19525c2
2026-01-30 13:40:42,679 - DEBUG - Response for create_network : {'network': {'id': '0659070b-ef65-4af4-a392-9f2cffd73fca', 'name': 'ctest-vn-27062067', 'tenant_id': '317044f75cca4b88b1914bb855d4775a', 'project_id': '317044f75cca4b88b1914bb855d4775a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71030602', 'ctest-vn-27062067'], 'port_security_enabled': True, 'description': ''}}
2026-01-30 13:40:42,897 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f4f06795-8760-40df-955a-12fcac5cce73', 'name': '', 'tenant_id': '317044f75cca4b88b1914bb855d4775a', 'network_id': '0659070b-ef65-4af4-a392-9f2cffd73fca', 'ip_version': 4, 'cidr': '203.215.19.0/26', 'allocation_pools': [{'start': '203.215.19.2', 'end': '203.215.19.62'}], 'gateway_ip': '203.215.19.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.215.19.2', 'tags': [], 'project_id': '317044f75cca4b88b1914bb855d4775a'}}
2026-01-30 13:40:42,913 - INFO - Created VN ctest-vn-27062067
2026-01-30 13:40:42,965 - DEBUG - VN ctest-vn-27062067 UUID is 0659070b-ef65-4af4-a392-9f2cffd73fca
2026-01-30 13:40:43,112 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-71030602:ctest-vn-09533703, 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-71030602:ctest-vn-27062067, 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-01-30 13:40:43,394 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '63dc2bfd-388c-4299-a4e3-eab2f19525c2', 'name': 'ctest-vn-09533703', 'tenant_id': '317044f75cca4b88b1914bb855d4775a', 'project_id': '317044f75cca4b88b1914bb855d4775a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2e8deef7-ae2f-4790-a50d-28cd1bd4ad2a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71030602', 'ctest-vn-09533703'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71030602', 'ctest-policy-allow-all-62647666']], 'subnet_ipam': [{'subnet_cidr': '195.165.177.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-30 13:40:43,611 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0659070b-ef65-4af4-a392-9f2cffd73fca', 'name': 'ctest-vn-27062067', 'tenant_id': '317044f75cca4b88b1914bb855d4775a', 'project_id': '317044f75cca4b88b1914bb855d4775a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f4f06795-8760-40df-955a-12fcac5cce73'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-71030602', 'ctest-vn-27062067'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-71030602', 'ctest-policy-allow-all-62647666']], 'subnet_ipam': [{'subnet_cidr': '203.215.19.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-30 13:40:43,773 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-30 13:40:44,077 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-30 13:40:44,108 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2f092540-2be0-41f0-a91f-c975c7de479c
2026-01-30 13:40:44,119 - DEBUG - Requesting: http://10.0.0.38:8082/project/317044f7-5cca-4b88-b191-4bb855d4775a
2026-01-30 13:40:44,218 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/63dc2bfd-388c-4299-a4e3-eab2f19525c2
2026-01-30 13:40:44,228 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/63dc2bfd-388c-4299-a4e3-eab2f19525c2
2026-01-30 13:40:44,237 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b4a1f349-e864-4309-900d-99597007aaf3
2026-01-30 13:40:44,243 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b4a1f349-e864-4309-900d-99597007aaf3
2026-01-30 13:40:44,249 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/809a5703-3dd4-4b78-9ec6-bb1fe4b4b2a8
2026-01-30 13:40:44,255 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-30 13:40:44,255 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/63dc2bfd-388c-4299-a4e3-eab2f19525c2
2026-01-30 13:40:44,264 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b4a1f349-e864-4309-900d-99597007aaf3
2026-01-30 13:40:44,277 - INFO - Verified VN network id 12 for VN 63dc2bfd-388c-4299-a4e3-eab2f19525c2
2026-01-30 13:40:44,277 - INFO - Verifications in API Server for VN ctest-vn-09533703 passed
2026-01-30 13:40:44,277 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/63dc2bfd-388c-4299-a4e3-eab2f19525c2
2026-01-30 13:40:44,285 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b4a1f349-e864-4309-900d-99597007aaf3
2026-01-30 13:40:44,292 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b4a1f349-e864-4309-900d-99597007aaf3
2026-01-30 13:40:44,298 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/809a5703-3dd4-4b78-9ec6-bb1fe4b4b2a8
2026-01-30 13:40:44,307 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71030602:ctest-vn-09533703', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71030602', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7195674671206646425', 'uuid-lslong': '11881598296211662274'}, 'enable': 'true', 'created': '2026-01-30T13:40:41', 'last-modified': '2026-01-30T13:40:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934317'}
2026-01-30 13:40:44,313 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-30 13:40:44,313 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09533703 passed
2026-01-30 13:40:44,313 - DEBUG - ====Verifying policy data for ctest-vn-09533703 in API_Server ======
2026-01-30 13:40:44,313 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-30 13:40:44,318 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2f092540-2be0-41f0-a91f-c975c7de479c
2026-01-30 13:40:44,328 - DEBUG - Requesting: http://10.0.0.38:8082/project/317044f7-5cca-4b88-b191-4bb855d4775a
2026-01-30 13:40:44,398 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/63dc2bfd-388c-4299-a4e3-eab2f19525c2
2026-01-30 13:40:44,407 - DEBUG - ==>Verifying data for policy with id: b4a1e036-90c5-4790-b577-6c06ccad9203, fqn: ['default-domain', 'ctest-TestBasicPolicy-71030602', 'ctest-policy-allow-all-62647666']
2026-01-30 13:40:44,407 - INFO - VN ctest-vn-09533703 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-30 13:40:44,407 - DEBUG - Verifying the vn in opserver
2026-01-30 13:40:44,407 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71030602:ctest-vn-09533703 virtual network link through opserver 10.0.0.38
2026-01-30 13:40:44,407 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-30 13:40:44,709 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-30 13:40:44,769 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71030602:ctest-vn-09533703', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71030602:ctest-vn-09533703?flat'}
2026-01-30 13:40:44,769 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71030602:ctest-vn-09533703 is found in opserver
2026-01-30 13:40:44,778 - DEBUG - Do not have enough data to verify VN in agent
2026-01-30 13:40:44,783 - DEBUG - VRF ids for VN ctest-vn-09533703: {}
2026-01-30 13:40:44,783 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-30 13:40:44,787 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2f092540-2be0-41f0-a91f-c975c7de479c
2026-01-30 13:40:44,797 - DEBUG - Requesting: http://10.0.0.38:8082/project/317044f7-5cca-4b88-b191-4bb855d4775a
2026-01-30 13:40:44,865 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0659070b-ef65-4af4-a392-9f2cffd73fca
2026-01-30 13:40:44,875 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0659070b-ef65-4af4-a392-9f2cffd73fca
2026-01-30 13:40:44,883 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8a105422-0c88-4ff6-849c-4ddfaca77627
2026-01-30 13:40:44,889 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8a105422-0c88-4ff6-849c-4ddfaca77627
2026-01-30 13:40:44,895 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/65de4eb9-af02-43e5-b0d6-2c6a3fbdf028
2026-01-30 13:40:44,901 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-30 13:40:44,901 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0659070b-ef65-4af4-a392-9f2cffd73fca
2026-01-30 13:40:44,909 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8a105422-0c88-4ff6-849c-4ddfaca77627
2026-01-30 13:40:44,923 - INFO - Verified VN network id 13 for VN 0659070b-ef65-4af4-a392-9f2cffd73fca
2026-01-30 13:40:44,923 - INFO - Verifications in API Server for VN ctest-vn-27062067 passed
2026-01-30 13:40:44,923 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0659070b-ef65-4af4-a392-9f2cffd73fca
2026-01-30 13:40:44,933 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8a105422-0c88-4ff6-849c-4ddfaca77627
2026-01-30 13:40:44,941 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8a105422-0c88-4ff6-849c-4ddfaca77627
2026-01-30 13:40:44,948 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/65de4eb9-af02-43e5-b0d6-2c6a3fbdf028
2026-01-30 13:40:44,960 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-71030602:ctest-vn-27062067', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-71030602', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '457404584997243636', 'uuid-lslong': '11786658190401683402'}, 'enable': 'true', 'created': '2026-01-30T13:40:42', 'last-modified': '2026-01-30T13:40:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.375675'}
2026-01-30 13:40:44,966 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-30 13:40:44,966 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27062067 passed
2026-01-30 13:40:44,967 - DEBUG - ====Verifying policy data for ctest-vn-27062067 in API_Server ======
2026-01-30 13:40:44,967 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-01-30 13:40:44,972 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2f092540-2be0-41f0-a91f-c975c7de479c
2026-01-30 13:40:44,982 - DEBUG - Requesting: http://10.0.0.38:8082/project/317044f7-5cca-4b88-b191-4bb855d4775a
2026-01-30 13:40:45,051 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0659070b-ef65-4af4-a392-9f2cffd73fca
2026-01-30 13:40:45,059 - DEBUG - ==>Verifying data for policy with id: b4a1e036-90c5-4790-b577-6c06ccad9203, fqn: ['default-domain', 'ctest-TestBasicPolicy-71030602', 'ctest-policy-allow-all-62647666']
2026-01-30 13:40:45,060 - INFO - VN ctest-vn-27062067 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-30 13:40:45,060 - DEBUG - Verifying the vn in opserver
2026-01-30 13:40:45,060 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-71030602:ctest-vn-27062067 virtual network link through opserver 10.0.0.38
2026-01-30 13:40:45,060 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-01-30 13:40:45,069 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-71030602:ctest-vn-27062067', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-71030602:ctest-vn-27062067?flat'}
2026-01-30 13:40:45,069 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-71030602:ctest-vn-27062067 is found in opserver
2026-01-30 13:40:45,078 - DEBUG - Do not have enough data to verify VN in agent
2026-01-30 13:40:45,082 - DEBUG - VRF ids for VN ctest-vn-27062067: {}
2026-01-30 13:40:45,135 - DEBUG - Services list from nova: [