2025-10-31 00:48:39,416 - INFO - Domain Default found not creating
2025-10-31 00:48:39,568 - INFO - Project ctest-TestBasicPolicy-92719791 not found, creating it
2025-10-31 00:48:40,004 - INFO - Created Project:ctest-TestBasicPolicy-92719791, ID : 4bf8d24c-d925-4c0a-a44d-e09355daf5f0
2025-10-31 00:48:41,375 - INFO - ================================================================================
2025-10-31 00:48:41,376 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-31 00:48:41,376 - 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-31 00:48:41,630 - DEBUG - Nothing to compare xmpp stats {'10.0.0.246': {'10.20.0.5': '0'}} with
2025-10-31 00:48:41,630 - INFO - Initial checks done. Running the testcase now
2025-10-31 00:48:41,630 - INFO -
2025-10-31 00:48:42,206 - DEBUG - Response for create_network : {'network': {'id': 'bb65ffe7-e333-4096-b3b1-5889ed1a4538', 'name': 'ctest-vn-88476205', 'tenant_id': '4bf8d24cd9254c0aa44de09355daf5f0', 'project_id': '4bf8d24cd9254c0aa44de09355daf5f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92719791', 'ctest-vn-88476205'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 00:48:42,376 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da8e4c50-a619-4042-947d-b65b280796a9', 'name': '', 'tenant_id': '4bf8d24cd9254c0aa44de09355daf5f0', 'network_id': 'bb65ffe7-e333-4096-b3b1-5889ed1a4538', 'ip_version': 4, 'cidr': '168.65.218.128/26', 'allocation_pools': [{'start': '168.65.218.130', 'end': '168.65.218.190'}], 'gateway_ip': '168.65.218.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.65.218.130', 'tags': [], 'project_id': '4bf8d24cd9254c0aa44de09355daf5f0'}}
2025-10-31 00:48:42,391 - INFO - Created VN ctest-vn-88476205
2025-10-31 00:48:42,441 - DEBUG - VN ctest-vn-88476205 UUID is bb65ffe7-e333-4096-b3b1-5889ed1a4538
2025-10-31 00:48:42,724 - DEBUG - Response for create_network : {'network': {'id': '6b18b321-3875-47ef-8423-e7627dff71e7', 'name': 'ctest-vn-77409950', 'tenant_id': '4bf8d24cd9254c0aa44de09355daf5f0', 'project_id': '4bf8d24cd9254c0aa44de09355daf5f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92719791', 'ctest-vn-77409950'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 00:48:42,873 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2b59624-9c4e-4b22-a3b0-d7da185e76d1', 'name': '', 'tenant_id': '4bf8d24cd9254c0aa44de09355daf5f0', 'network_id': '6b18b321-3875-47ef-8423-e7627dff71e7', 'ip_version': 4, 'cidr': '179.172.23.192/26', 'allocation_pools': [{'start': '179.172.23.194', 'end': '179.172.23.254'}], 'gateway_ip': '179.172.23.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.172.23.194', 'tags': [], 'project_id': '4bf8d24cd9254c0aa44de09355daf5f0'}}
2025-10-31 00:48:42,902 - INFO - Created VN ctest-vn-77409950
2025-10-31 00:48:42,953 - DEBUG - VN ctest-vn-77409950 UUID is 6b18b321-3875-47ef-8423-e7627dff71e7
2025-10-31 00:48:43,097 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92719791:ctest-vn-88476205, 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-92719791:ctest-vn-77409950, 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-31 00:48:43,376 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bb65ffe7-e333-4096-b3b1-5889ed1a4538', 'name': 'ctest-vn-88476205', 'tenant_id': '4bf8d24cd9254c0aa44de09355daf5f0', 'project_id': '4bf8d24cd9254c0aa44de09355daf5f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['da8e4c50-a619-4042-947d-b65b280796a9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92719791', 'ctest-vn-88476205'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92719791', 'ctest-policy-allow-all-68213588']], 'subnet_ipam': [{'subnet_cidr': '168.65.218.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 00:48:43,598 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6b18b321-3875-47ef-8423-e7627dff71e7', 'name': 'ctest-vn-77409950', 'tenant_id': '4bf8d24cd9254c0aa44de09355daf5f0', 'project_id': '4bf8d24cd9254c0aa44de09355daf5f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a2b59624-9c4e-4b22-a3b0-d7da185e76d1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92719791', 'ctest-vn-77409950'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92719791', 'ctest-policy-allow-all-68213588']], 'subnet_ipam': [{'subnet_cidr': '179.172.23.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 00:48:43,797 - DEBUG - Requesting: http://10.0.0.246:8082/domains
2025-10-31 00:48:44,089 - DEBUG - Requesting: http://10.0.0.246:8082/domains
2025-10-31 00:48:44,117 - DEBUG - Requesting: http://10.0.0.246:8082/domain/94c7244d-f282-4de2-a322-d4c9b0e15240
2025-10-31 00:48:44,130 - DEBUG - Requesting: http://10.0.0.246:8082/project/4bf8d24c-d925-4c0a-a44d-e09355daf5f0
2025-10-31 00:48:44,199 - DEBUG - Requesting: http://10.0.0.246:8082/virtual-network/bb65ffe7-e333-4096-b3b1-5889ed1a4538
2025-10-31 00:48:44,209 - DEBUG - Requesting: http://10.0.0.246:8082/virtual-network/bb65ffe7-e333-4096-b3b1-5889ed1a4538
2025-10-31 00:48:44,217 - DEBUG - Requesting: http://10.0.0.246:8082/routing-instance/28cf81ef-6d01-492f-b1fa-b7f09dc2b719
2025-10-31 00:48:44,223 - DEBUG - Requesting: http://10.0.0.246:8082/routing-instance/28cf81ef-6d01-492f-b1fa-b7f09dc2b719
2025-10-31 00:48:44,229 - DEBUG - Requesting: http://10.0.0.246:8082/route-target/9f98aa6f-2a63-4bde-a13e-a360fd38164a
2025-10-31 00:48:44,234 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 00:48:44,234 - DEBUG - Requesting: http://10.0.0.246:8082/virtual-network/bb65ffe7-e333-4096-b3b1-5889ed1a4538
2025-10-31 00:48:44,242 - DEBUG - Requesting: http://10.0.0.246:8082/routing-instance/28cf81ef-6d01-492f-b1fa-b7f09dc2b719
2025-10-31 00:48:44,254 - INFO - Verified VN network id 12 for VN bb65ffe7-e333-4096-b3b1-5889ed1a4538
2025-10-31 00:48:44,254 - INFO - Verifications in API Server for VN ctest-vn-88476205 passed
2025-10-31 00:48:44,254 - DEBUG - Requesting: http://10.0.0.246:8082/virtual-network/bb65ffe7-e333-4096-b3b1-5889ed1a4538
2025-10-31 00:48:44,261 - DEBUG - Requesting: http://10.0.0.246:8082/routing-instance/28cf81ef-6d01-492f-b1fa-b7f09dc2b719
2025-10-31 00:48:44,267 - DEBUG - Requesting: http://10.0.0.246:8082/routing-instance/28cf81ef-6d01-492f-b1fa-b7f09dc2b719
2025-10-31 00:48:44,273 - DEBUG - Requesting: http://10.0.0.246:8082/route-target/9f98aa6f-2a63-4bde-a13e-a360fd38164a
2025-10-31 00:48:44,284 - DEBUG - Control-node 10.0.0.246 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92719791:ctest-vn-88476205', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92719791', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13503480429154615446', 'uuid-lslong': '12948227753078572344'}, 'enable': 'true', 'created': '2025-10-31T00:48:42', 'last-modified': '2025-10-31T00:48:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.930532'}
2025-10-31 00:48:44,290 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 00:48:44,290 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88476205 passed
2025-10-31 00:48:44,290 - DEBUG - ====Verifying policy data for ctest-vn-88476205 in API_Server ======
2025-10-31 00:48:44,290 - DEBUG - Requesting: http://10.0.0.246:8082/domains
2025-10-31 00:48:44,294 - DEBUG - Requesting: http://10.0.0.246:8082/domain/94c7244d-f282-4de2-a322-d4c9b0e15240
2025-10-31 00:48:44,303 - DEBUG - Requesting: http://10.0.0.246:8082/project/4bf8d24c-d925-4c0a-a44d-e09355daf5f0
2025-10-31 00:48:44,372 - DEBUG - Requesting: http://10.0.0.246:8082/virtual-network/bb65ffe7-e333-4096-b3b1-5889ed1a4538
2025-10-31 00:48:44,380 - DEBUG - ==>Verifying data for policy with id: 9b412de8-a2db-4ec4-8541-7d0eb7fe7f43, fqn: ['default-domain', 'ctest-TestBasicPolicy-92719791', 'ctest-policy-allow-all-68213588']
2025-10-31 00:48:44,380 - INFO - VN ctest-vn-88476205 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 00:48:44,380 - DEBUG - Verifying the vn in opserver
2025-10-31 00:48:44,380 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92719791:ctest-vn-88476205 virtual network link through opserver 10.0.0.246
2025-10-31 00:48:44,380 - DEBUG - Requesting: http://10.0.0.246:8081/analytics/uves/virtual-networks
2025-10-31 00:48:44,671 - DEBUG - Requesting: http://10.0.0.246:8081/analytics/uves/virtual-networks
2025-10-31 00:48:44,723 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92719791:ctest-vn-88476205', 'href': 'http://10.0.0.246:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92719791:ctest-vn-88476205?flat'}
2025-10-31 00:48:44,723 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92719791:ctest-vn-88476205 is found in opserver
2025-10-31 00:48:44,732 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 00:48:44,736 - DEBUG - VRF ids for VN ctest-vn-88476205: {}
2025-10-31 00:48:44,736 - DEBUG - Requesting: http://10.0.0.246:8082/domains
2025-10-31 00:48:44,741 - DEBUG - Requesting: http://10.0.0.246:8082/domain/94c7244d-f282-4de2-a322-d4c9b0e15240
2025-10-31 00:48:44,751 - DEBUG - Requesting: http://10.0.0.246:8082/project/4bf8d24c-d925-4c0a-a44d-e09355daf5f0
2025-10-31 00:48:44,822 - DEBUG - Requesting: http://10.0.0.246:8082/virtual-network/6b18b321-3875-47ef-8423-e7627dff71e7
2025-10-31 00:48:44,832 - DEBUG - Requesting: http://10.0.0.246:8082/virtual-network/6b18b321-3875-47ef-8423-e7627dff71e7
2025-10-31 00:48:44,839 - DEBUG - Requesting: http://10.0.0.246:8082/routing-instance/bc7072ff-c8f7-408e-9b50-3129481a9ff3
2025-10-31 00:48:44,846 - DEBUG - Requesting: http://10.0.0.246:8082/routing-instance/bc7072ff-c8f7-408e-9b50-3129481a9ff3
2025-10-31 00:48:44,851 - DEBUG - Requesting: http://10.0.0.246:8082/route-target/01090c0f-d2c9-44b7-ab8e-b5f5182746ad
2025-10-31 00:48:44,857 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 00:48:44,857 - DEBUG - Requesting: http://10.0.0.246:8082/virtual-network/6b18b321-3875-47ef-8423-e7627dff71e7
2025-10-31 00:48:44,864 - DEBUG - Requesting: http://10.0.0.246:8082/routing-instance/bc7072ff-c8f7-408e-9b50-3129481a9ff3
2025-10-31 00:48:44,876 - INFO - Verified VN network id 13 for VN 6b18b321-3875-47ef-8423-e7627dff71e7
2025-10-31 00:48:44,876 - INFO - Verifications in API Server for VN ctest-vn-77409950 passed
2025-10-31 00:48:44,877 - DEBUG - Requesting: http://10.0.0.246:8082/virtual-network/6b18b321-3875-47ef-8423-e7627dff71e7
2025-10-31 00:48:44,884 - DEBUG - Requesting: http://10.0.0.246:8082/routing-instance/bc7072ff-c8f7-408e-9b50-3129481a9ff3
2025-10-31 00:48:44,890 - DEBUG - Requesting: http://10.0.0.246:8082/routing-instance/bc7072ff-c8f7-408e-9b50-3129481a9ff3
2025-10-31 00:48:44,895 - DEBUG - Requesting: http://10.0.0.246:8082/route-target/01090c0f-d2c9-44b7-ab8e-b5f5182746ad
2025-10-31 00:48:44,904 - DEBUG - Control-node 10.0.0.246 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92719791:ctest-vn-77409950', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92719791', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7717114916761847791', 'uuid-lslong': '9521708447398064615'}, 'enable': 'true', 'created': '2025-10-31T00:48:42', 'last-modified': '2025-10-31T00:48:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.325391'}
2025-10-31 00:48:44,908 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 00:48:44,909 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77409950 passed
2025-10-31 00:48:44,909 - DEBUG - ====Verifying policy data for ctest-vn-77409950 in API_Server ======
2025-10-31 00:48:44,909 - DEBUG - Requesting: http://10.0.0.246:8082/domains
2025-10-31 00:48:44,913 - DEBUG - Requesting: http://10.0.0.246:8082/domain/94c7244d-f282-4de2-a322-d4c9b0e15240
2025-10-31 00:48:44,924 - DEBUG - Requesting: http://10.0.0.246:8082/project/4bf8d24c-d925-4c0a-a44d-e09355daf5f0
2025-10-31 00:48:44,990 - DEBUG - Requesting: http://10.0.0.246:8082/virtual-network/6b18b321-3875-47ef-8423-e7627dff71e7
2025-10-31 00:48:45,000 - DEBUG - ==>Verifying data for policy with id: 9b412de8-a2db-4ec4-8541-7d0eb7fe7f43, fqn: ['default-domain', 'ctest-TestBasicPolicy-92719791', 'ctest-policy-allow-all-68213588']
2025-10-31 00:48:45,000 - INFO - VN ctest-vn-77409950 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 00:48:45,000 - DEBUG - Verifying the vn in opserver
2025-10-31 00:48:45,000 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92719791:ctest-vn-77409950 virtual network link through opserver 10.0.0.246
2025-10-31 00:48:45,000 - DEBUG - Requesting: http://10.0.0.246:8081/analytics/uves/virtual-networks
2025-10-31 00:48:45,010 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92719791:ctest-vn-77409950', 'href': 'http://10.0.0.246:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92719791:ctest-vn-77409950?flat'}
2025-10-31 00:48:45,010 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92719791:ctest-vn-77409950 is found in opserver
2025-10-31 00:48:45,019 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 00:48:45,024 - DEBUG - VRF ids for VN ctest-vn-77409950: {}
2025-10-31 00:48:45,085 - DEBUG - Services list from nova: [