2025-10-08 16:48:48,240 - INFO - Domain Default found not creating
2025-10-08 16:48:48,406 - INFO - Project ctest-TestBasicPolicy-89384783 not found, creating it
2025-10-08 16:48:48,882 - INFO - Created Project:ctest-TestBasicPolicy-89384783, ID : fb581e02-ea26-4e13-aeff-7fcd53e386b6
2025-10-08 16:48:50,391 - INFO - ================================================================================
2025-10-08 16:48:50,391 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-08 16:48:50,392 - 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-10-08 16:48:50,663 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.209': '0'}} with
2025-10-08 16:48:50,663 - INFO - Initial checks done. Running the testcase now
2025-10-08 16:48:50,663 - INFO -
2025-10-08 16:48:51,222 - DEBUG - Response for create_network : {'network': {'id': '36462b86-4f52-4bfc-a9ef-793db6f32309', 'name': 'ctest-vn-00423073', 'tenant_id': 'fb581e02ea264e13aeff7fcd53e386b6', 'project_id': 'fb581e02ea264e13aeff7fcd53e386b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89384783', 'ctest-vn-00423073'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 16:48:51,376 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9660bf7-8565-4df8-bcaf-7fdb43e43a6d', 'name': '', 'tenant_id': 'fb581e02ea264e13aeff7fcd53e386b6', 'network_id': '36462b86-4f52-4bfc-a9ef-793db6f32309', 'ip_version': 4, 'cidr': '35.120.101.64/26', 'allocation_pools': [{'start': '35.120.101.66', 'end': '35.120.101.126'}], 'gateway_ip': '35.120.101.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.120.101.66', 'tags': [], 'project_id': 'fb581e02ea264e13aeff7fcd53e386b6'}}
2025-10-08 16:48:51,395 - INFO - Created VN ctest-vn-00423073
2025-10-08 16:48:51,446 - DEBUG - VN ctest-vn-00423073 UUID is 36462b86-4f52-4bfc-a9ef-793db6f32309
2025-10-08 16:48:51,743 - DEBUG - Response for create_network : {'network': {'id': '456bca41-0e71-4a61-b17b-f3068f8563c7', 'name': 'ctest-vn-59599161', 'tenant_id': 'fb581e02ea264e13aeff7fcd53e386b6', 'project_id': 'fb581e02ea264e13aeff7fcd53e386b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89384783', 'ctest-vn-59599161'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 16:48:51,912 - DEBUG - Response for create_subnet : {'subnet': {'id': '10760251-21c6-4277-bfa0-e826563d524a', 'name': '', 'tenant_id': 'fb581e02ea264e13aeff7fcd53e386b6', 'network_id': '456bca41-0e71-4a61-b17b-f3068f8563c7', 'ip_version': 4, 'cidr': '147.97.239.0/26', 'allocation_pools': [{'start': '147.97.239.2', 'end': '147.97.239.62'}], 'gateway_ip': '147.97.239.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.97.239.2', 'tags': [], 'project_id': 'fb581e02ea264e13aeff7fcd53e386b6'}}
2025-10-08 16:48:51,931 - INFO - Created VN ctest-vn-59599161
2025-10-08 16:48:51,982 - DEBUG - VN ctest-vn-59599161 UUID is 456bca41-0e71-4a61-b17b-f3068f8563c7
2025-10-08 16:48:52,106 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-89384783:ctest-vn-00423073, 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-89384783:ctest-vn-59599161, 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-10-08 16:48:52,415 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '36462b86-4f52-4bfc-a9ef-793db6f32309', 'name': 'ctest-vn-00423073', 'tenant_id': 'fb581e02ea264e13aeff7fcd53e386b6', 'project_id': 'fb581e02ea264e13aeff7fcd53e386b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f9660bf7-8565-4df8-bcaf-7fdb43e43a6d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89384783', 'ctest-vn-00423073'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89384783', 'ctest-policy-allow-all-94224650']], 'subnet_ipam': [{'subnet_cidr': '35.120.101.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 16:48:52,652 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '456bca41-0e71-4a61-b17b-f3068f8563c7', 'name': 'ctest-vn-59599161', 'tenant_id': 'fb581e02ea264e13aeff7fcd53e386b6', 'project_id': 'fb581e02ea264e13aeff7fcd53e386b6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['10760251-21c6-4277-bfa0-e826563d524a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-89384783', 'ctest-vn-59599161'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-89384783', 'ctest-policy-allow-all-94224650']], 'subnet_ipam': [{'subnet_cidr': '147.97.239.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 16:48:52,814 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-08 16:48:53,110 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-08 16:48:53,139 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a5b04897-686f-489f-9bee-43a751ea5f97
2025-10-08 16:48:53,153 - DEBUG - Requesting: http://10.0.0.22:8082/project/fb581e02-ea26-4e13-aeff-7fcd53e386b6
2025-10-08 16:48:53,232 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/36462b86-4f52-4bfc-a9ef-793db6f32309
2025-10-08 16:48:53,245 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/36462b86-4f52-4bfc-a9ef-793db6f32309
2025-10-08 16:48:53,256 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6046f585-1a14-41dc-ac6b-5222608cbbd3
2025-10-08 16:48:53,263 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6046f585-1a14-41dc-ac6b-5222608cbbd3
2025-10-08 16:48:53,270 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c347c69a-2de8-46a9-a2f2-2fce709d8551
2025-10-08 16:48:53,277 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 16:48:53,277 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/36462b86-4f52-4bfc-a9ef-793db6f32309
2025-10-08 16:48:53,286 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6046f585-1a14-41dc-ac6b-5222608cbbd3
2025-10-08 16:48:53,300 - INFO - Verified VN network id 11 for VN 36462b86-4f52-4bfc-a9ef-793db6f32309
2025-10-08 16:48:53,301 - INFO - Verifications in API Server for VN ctest-vn-00423073 passed
2025-10-08 16:48:53,301 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/36462b86-4f52-4bfc-a9ef-793db6f32309
2025-10-08 16:48:53,312 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6046f585-1a14-41dc-ac6b-5222608cbbd3
2025-10-08 16:48:53,320 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/6046f585-1a14-41dc-ac6b-5222608cbbd3
2025-10-08 16:48:53,329 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c347c69a-2de8-46a9-a2f2-2fce709d8551
2025-10-08 16:48:53,342 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89384783:ctest-vn-00423073', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89384783', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3910861182274259964', 'uuid-lslong': '12245139217813021449'}, 'enable': 'true', 'created': '2025-10-08T16:48:51', 'last-modified': '2025-10-08T16:48:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.954395'}
2025-10-08 16:48:53,348 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 16:48:53,348 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-00423073 passed
2025-10-08 16:48:53,348 - DEBUG - ====Verifying policy data for ctest-vn-00423073 in API_Server ======
2025-10-08 16:48:53,348 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-08 16:48:53,354 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a5b04897-686f-489f-9bee-43a751ea5f97
2025-10-08 16:48:53,364 - DEBUG - Requesting: http://10.0.0.22:8082/project/fb581e02-ea26-4e13-aeff-7fcd53e386b6
2025-10-08 16:48:53,433 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/36462b86-4f52-4bfc-a9ef-793db6f32309
2025-10-08 16:48:53,442 - DEBUG - ==>Verifying data for policy with id: cc137f42-bf08-4fa1-a7ee-47e7da81ad4a, fqn: ['default-domain', 'ctest-TestBasicPolicy-89384783', 'ctest-policy-allow-all-94224650']
2025-10-08 16:48:53,442 - INFO - VN ctest-vn-00423073 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 16:48:53,442 - DEBUG - Verifying the vn in opserver
2025-10-08 16:48:53,443 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89384783:ctest-vn-00423073 virtual network link through opserver 10.0.0.22
2025-10-08 16:48:53,443 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-08 16:48:53,739 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-08 16:48:53,798 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89384783:ctest-vn-00423073', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89384783:ctest-vn-00423073?flat'}
2025-10-08 16:48:53,798 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89384783:ctest-vn-00423073 is found in opserver
2025-10-08 16:48:53,809 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 16:48:53,814 - DEBUG - VRF ids for VN ctest-vn-00423073: {}
2025-10-08 16:48:53,814 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-08 16:48:53,819 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a5b04897-686f-489f-9bee-43a751ea5f97
2025-10-08 16:48:53,832 - DEBUG - Requesting: http://10.0.0.22:8082/project/fb581e02-ea26-4e13-aeff-7fcd53e386b6
2025-10-08 16:48:53,913 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/456bca41-0e71-4a61-b17b-f3068f8563c7
2025-10-08 16:48:53,924 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/456bca41-0e71-4a61-b17b-f3068f8563c7
2025-10-08 16:48:53,934 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f6963596-8c58-402e-b551-5337244999d3
2025-10-08 16:48:53,941 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f6963596-8c58-402e-b551-5337244999d3
2025-10-08 16:48:53,948 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/75a0a39b-5fab-4a60-9f15-5c634616746b
2025-10-08 16:48:53,955 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 16:48:53,955 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/456bca41-0e71-4a61-b17b-f3068f8563c7
2025-10-08 16:48:53,965 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f6963596-8c58-402e-b551-5337244999d3
2025-10-08 16:48:53,979 - INFO - Verified VN network id 12 for VN 456bca41-0e71-4a61-b17b-f3068f8563c7
2025-10-08 16:48:53,979 - INFO - Verifications in API Server for VN ctest-vn-59599161 passed
2025-10-08 16:48:53,979 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/456bca41-0e71-4a61-b17b-f3068f8563c7
2025-10-08 16:48:53,988 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f6963596-8c58-402e-b551-5337244999d3
2025-10-08 16:48:53,995 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f6963596-8c58-402e-b551-5337244999d3
2025-10-08 16:48:54,001 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/75a0a39b-5fab-4a60-9f15-5c634616746b
2025-10-08 16:48:54,013 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-89384783:ctest-vn-59599161', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-89384783', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5002314191889058401', 'uuid-lslong': '12789082776351892423'}, 'enable': 'true', 'created': '2025-10-08T16:48:51', 'last-modified': '2025-10-08T16:48:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.382561'}
2025-10-08 16:48:54,018 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 16:48:54,018 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59599161 passed
2025-10-08 16:48:54,018 - DEBUG - ====Verifying policy data for ctest-vn-59599161 in API_Server ======
2025-10-08 16:48:54,018 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-10-08 16:48:54,024 - DEBUG - Requesting: http://10.0.0.22:8082/domain/a5b04897-686f-489f-9bee-43a751ea5f97
2025-10-08 16:48:54,035 - DEBUG - Requesting: http://10.0.0.22:8082/project/fb581e02-ea26-4e13-aeff-7fcd53e386b6
2025-10-08 16:48:54,106 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/456bca41-0e71-4a61-b17b-f3068f8563c7
2025-10-08 16:48:54,118 - DEBUG - ==>Verifying data for policy with id: cc137f42-bf08-4fa1-a7ee-47e7da81ad4a, fqn: ['default-domain', 'ctest-TestBasicPolicy-89384783', 'ctest-policy-allow-all-94224650']
2025-10-08 16:48:54,118 - INFO - VN ctest-vn-59599161 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 16:48:54,118 - DEBUG - Verifying the vn in opserver
2025-10-08 16:48:54,118 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-89384783:ctest-vn-59599161 virtual network link through opserver 10.0.0.22
2025-10-08 16:48:54,118 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-10-08 16:48:54,132 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-89384783:ctest-vn-59599161', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-89384783:ctest-vn-59599161?flat'}
2025-10-08 16:48:54,132 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-89384783:ctest-vn-59599161 is found in opserver
2025-10-08 16:48:54,143 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 16:48:54,148 - DEBUG - VRF ids for VN ctest-vn-59599161: {}
2025-10-08 16:48:54,210 - DEBUG - Services list from nova: [