2025-12-29 17:04:16,815 - INFO - Domain Default found not creating
2025-12-29 17:04:17,047 - INFO - Project ctest-TestBasicPolicy-39340664 not found, creating it
2025-12-29 17:04:17,567 - INFO - Created Project:ctest-TestBasicPolicy-39340664, ID : 28c32c10-fcfd-46c6-98b3-6e01d2da41cc
2025-12-29 17:04:19,232 - INFO - ================================================================================
2025-12-29 17:04:19,232 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-29 17:04:19,232 - 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
2025-12-29 17:04:19,497 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with
2025-12-29 17:04:19,498 - INFO - Initial checks done. Running the testcase now
2025-12-29 17:04:19,498 - INFO -
2025-12-29 17:04:20,100 - DEBUG - Response for create_network : {'network': {'id': '2ebc2381-c27d-4803-8f0a-60bd7afd8d42', 'name': 'ctest-vn-25383225', 'tenant_id': '28c32c10fcfd46c698b36e01d2da41cc', 'project_id': '28c32c10fcfd46c698b36e01d2da41cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39340664', 'ctest-vn-25383225'], 'port_security_enabled': True, 'description': ''}}
2025-12-29 17:04:20,339 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eaca4ac7-5ba5-4c59-93d4-ebd6aedbe580', 'name': '', 'tenant_id': '28c32c10fcfd46c698b36e01d2da41cc', 'network_id': '2ebc2381-c27d-4803-8f0a-60bd7afd8d42', 'ip_version': 4, 'cidr': '220.192.125.0/26', 'allocation_pools': [{'start': '220.192.125.2', 'end': '220.192.125.62'}], 'gateway_ip': '220.192.125.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.192.125.2', 'tags': [], 'project_id': '28c32c10fcfd46c698b36e01d2da41cc'}}
2025-12-29 17:04:20,368 - INFO - Created VN ctest-vn-25383225
2025-12-29 17:04:20,421 - DEBUG - VN ctest-vn-25383225 UUID is 2ebc2381-c27d-4803-8f0a-60bd7afd8d42
2025-12-29 17:04:20,760 - DEBUG - Response for create_network : {'network': {'id': '6a4f3404-b3ad-47e8-b1c5-6843be3cc870', 'name': 'ctest-vn-38317434', 'tenant_id': '28c32c10fcfd46c698b36e01d2da41cc', 'project_id': '28c32c10fcfd46c698b36e01d2da41cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39340664', 'ctest-vn-38317434'], 'port_security_enabled': True, 'description': ''}}
2025-12-29 17:04:20,964 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0b7351b-7859-4e27-a33a-b5fd6cb9fa51', 'name': '', 'tenant_id': '28c32c10fcfd46c698b36e01d2da41cc', 'network_id': '6a4f3404-b3ad-47e8-b1c5-6843be3cc870', 'ip_version': 4, 'cidr': '160.252.131.128/26', 'allocation_pools': [{'start': '160.252.131.130', 'end': '160.252.131.190'}], 'gateway_ip': '160.252.131.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '160.252.131.130', 'tags': [], 'project_id': '28c32c10fcfd46c698b36e01d2da41cc'}}
2025-12-29 17:04:20,986 - INFO - Created VN ctest-vn-38317434
2025-12-29 17:04:21,041 - DEBUG - VN ctest-vn-38317434 UUID is 6a4f3404-b3ad-47e8-b1c5-6843be3cc870
2025-12-29 17:04:21,165 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-39340664:ctest-vn-25383225, 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-39340664:ctest-vn-38317434, 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]
2025-12-29 17:04:21,510 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ebc2381-c27d-4803-8f0a-60bd7afd8d42', 'name': 'ctest-vn-25383225', 'tenant_id': '28c32c10fcfd46c698b36e01d2da41cc', 'project_id': '28c32c10fcfd46c698b36e01d2da41cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eaca4ac7-5ba5-4c59-93d4-ebd6aedbe580'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39340664', 'ctest-vn-25383225'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39340664', 'ctest-policy-allow-all-62722247']], 'subnet_ipam': [{'subnet_cidr': '220.192.125.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-29 17:04:21,756 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a4f3404-b3ad-47e8-b1c5-6843be3cc870', 'name': 'ctest-vn-38317434', 'tenant_id': '28c32c10fcfd46c698b36e01d2da41cc', 'project_id': '28c32c10fcfd46c698b36e01d2da41cc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c0b7351b-7859-4e27-a33a-b5fd6cb9fa51'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-39340664', 'ctest-vn-38317434'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-39340664', 'ctest-policy-allow-all-62722247']], 'subnet_ipam': [{'subnet_cidr': '160.252.131.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-29 17:04:21,929 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-12-29 17:04:22,233 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-12-29 17:04:22,276 - DEBUG - Requesting: http://10.0.0.249:8082/domain/aec8dca6-0af3-4484-afb2-8e13fa5e1371
2025-12-29 17:04:22,290 - DEBUG - Requesting: http://10.0.0.249:8082/project/28c32c10-fcfd-46c6-98b3-6e01d2da41cc
2025-12-29 17:04:22,365 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2ebc2381-c27d-4803-8f0a-60bd7afd8d42
2025-12-29 17:04:22,377 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2ebc2381-c27d-4803-8f0a-60bd7afd8d42
2025-12-29 17:04:22,390 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/aecf2494-78de-4564-be5f-b2fb2b8240d2
2025-12-29 17:04:22,400 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/aecf2494-78de-4564-be5f-b2fb2b8240d2
2025-12-29 17:04:22,408 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/24d9b138-a7ab-48a0-ad2a-b193dcc61944
2025-12-29 17:04:22,416 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-29 17:04:22,416 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2ebc2381-c27d-4803-8f0a-60bd7afd8d42
2025-12-29 17:04:22,426 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/aecf2494-78de-4564-be5f-b2fb2b8240d2
2025-12-29 17:04:22,443 - INFO - Verified VN network id 11 for VN 2ebc2381-c27d-4803-8f0a-60bd7afd8d42
2025-12-29 17:04:22,443 - INFO - Verifications in API Server for VN ctest-vn-25383225 passed
2025-12-29 17:04:22,443 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2ebc2381-c27d-4803-8f0a-60bd7afd8d42
2025-12-29 17:04:22,453 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/aecf2494-78de-4564-be5f-b2fb2b8240d2
2025-12-29 17:04:22,463 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/aecf2494-78de-4564-be5f-b2fb2b8240d2
2025-12-29 17:04:22,474 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/24d9b138-a7ab-48a0-ad2a-b193dcc61944
2025-12-29 17:04:22,488 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39340664:ctest-vn-25383225', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39340664', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3367605661587032067', 'uuid-lslong': '10307157064119323970'}, 'enable': 'true', 'created': '2025-12-29T17:04:20', 'last-modified': '2025-12-29T17:04:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.005195'}
2025-12-29 17:04:22,497 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-29 17:04:22,497 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25383225 passed
2025-12-29 17:04:22,497 - DEBUG - ====Verifying policy data for ctest-vn-25383225 in API_Server ======
2025-12-29 17:04:22,498 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-12-29 17:04:22,506 - DEBUG - Requesting: http://10.0.0.249:8082/domain/aec8dca6-0af3-4484-afb2-8e13fa5e1371
2025-12-29 17:04:22,521 - DEBUG - Requesting: http://10.0.0.249:8082/project/28c32c10-fcfd-46c6-98b3-6e01d2da41cc
2025-12-29 17:04:22,600 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/2ebc2381-c27d-4803-8f0a-60bd7afd8d42
2025-12-29 17:04:22,610 - DEBUG - ==>Verifying data for policy with id: fb15034e-0e03-4ae2-97b8-62b965b3046d, fqn: ['default-domain', 'ctest-TestBasicPolicy-39340664', 'ctest-policy-allow-all-62722247']
2025-12-29 17:04:22,610 - INFO - VN ctest-vn-25383225 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-29 17:04:22,610 - DEBUG - Verifying the vn in opserver
2025-12-29 17:04:22,610 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39340664:ctest-vn-25383225 virtual network link through opserver 10.0.0.249
2025-12-29 17:04:22,610 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-12-29 17:04:22,928 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-12-29 17:04:23,010 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39340664:ctest-vn-25383225', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39340664:ctest-vn-25383225?flat'}
2025-12-29 17:04:23,010 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39340664:ctest-vn-25383225 is found in opserver
2025-12-29 17:04:23,021 - DEBUG - Do not have enough data to verify VN in agent
2025-12-29 17:04:23,027 - DEBUG - VRF ids for VN ctest-vn-25383225: {}
2025-12-29 17:04:23,027 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-12-29 17:04:23,034 - DEBUG - Requesting: http://10.0.0.249:8082/domain/aec8dca6-0af3-4484-afb2-8e13fa5e1371
2025-12-29 17:04:23,046 - DEBUG - Requesting: http://10.0.0.249:8082/project/28c32c10-fcfd-46c6-98b3-6e01d2da41cc
2025-12-29 17:04:23,125 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6a4f3404-b3ad-47e8-b1c5-6843be3cc870
2025-12-29 17:04:23,138 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6a4f3404-b3ad-47e8-b1c5-6843be3cc870
2025-12-29 17:04:23,148 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/540b8aa8-a4c8-4c6e-8f14-a878684d553b
2025-12-29 17:04:23,156 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/540b8aa8-a4c8-4c6e-8f14-a878684d553b
2025-12-29 17:04:23,165 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/39557abb-b0a5-440e-9487-1beab7c212d9
2025-12-29 17:04:23,173 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-29 17:04:23,173 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6a4f3404-b3ad-47e8-b1c5-6843be3cc870
2025-12-29 17:04:23,185 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/540b8aa8-a4c8-4c6e-8f14-a878684d553b
2025-12-29 17:04:23,201 - INFO - Verified VN network id 12 for VN 6a4f3404-b3ad-47e8-b1c5-6843be3cc870
2025-12-29 17:04:23,202 - INFO - Verifications in API Server for VN ctest-vn-38317434 passed
2025-12-29 17:04:23,202 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6a4f3404-b3ad-47e8-b1c5-6843be3cc870
2025-12-29 17:04:23,212 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/540b8aa8-a4c8-4c6e-8f14-a878684d553b
2025-12-29 17:04:23,221 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/540b8aa8-a4c8-4c6e-8f14-a878684d553b
2025-12-29 17:04:23,230 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/39557abb-b0a5-440e-9487-1beab7c212d9
2025-12-29 17:04:23,247 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-39340664:ctest-vn-38317434', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-39340664', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7660398685979494376', 'uuid-lslong': '12809759355288995952'}, 'enable': 'true', 'created': '2025-12-29T17:04:20', 'last-modified': '2025-12-29T17:04:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.517254'}
2025-12-29 17:04:23,256 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-29 17:04:23,256 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38317434 passed
2025-12-29 17:04:23,256 - DEBUG - ====Verifying policy data for ctest-vn-38317434 in API_Server ======
2025-12-29 17:04:23,256 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-12-29 17:04:23,264 - DEBUG - Requesting: http://10.0.0.249:8082/domain/aec8dca6-0af3-4484-afb2-8e13fa5e1371
2025-12-29 17:04:23,275 - DEBUG - Requesting: http://10.0.0.249:8082/project/28c32c10-fcfd-46c6-98b3-6e01d2da41cc
2025-12-29 17:04:23,349 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6a4f3404-b3ad-47e8-b1c5-6843be3cc870
2025-12-29 17:04:23,360 - DEBUG - ==>Verifying data for policy with id: fb15034e-0e03-4ae2-97b8-62b965b3046d, fqn: ['default-domain', 'ctest-TestBasicPolicy-39340664', 'ctest-policy-allow-all-62722247']
2025-12-29 17:04:23,360 - INFO - VN ctest-vn-38317434 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-29 17:04:23,360 - DEBUG - Verifying the vn in opserver
2025-12-29 17:04:23,360 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-39340664:ctest-vn-38317434 virtual network link through opserver 10.0.0.249
2025-12-29 17:04:23,360 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-12-29 17:04:23,371 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-39340664:ctest-vn-38317434', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-39340664:ctest-vn-38317434?flat'}
2025-12-29 17:04:23,371 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-39340664:ctest-vn-38317434 is found in opserver
2025-12-29 17:04:23,382 - DEBUG - Do not have enough data to verify VN in agent
2025-12-29 17:04:23,388 - DEBUG - VRF ids for VN ctest-vn-38317434: {}
2025-12-29 17:04:23,455 - DEBUG - Services list from nova: [