2025-09-24 21:54:57,092 - INFO - Domain Default found not creating
2025-09-24 21:54:57,266 - INFO - Project ctest-TestBasicPolicy-72438343 not found, creating it
2025-09-24 21:54:57,754 - INFO - Created Project:ctest-TestBasicPolicy-72438343, ID : c7e73f49-a8f2-4ecd-b562-26c238076503
2025-09-24 21:54:59,253 - INFO - ================================================================================
2025-09-24 21:54:59,253 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-24 21:54:59,253 - 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-09-24 21:54:59,512 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0'}} with
2025-09-24 21:54:59,512 - INFO - Initial checks done. Running the testcase now
2025-09-24 21:54:59,512 - INFO -
2025-09-24 21:55:00,112 - DEBUG - Response for create_network : {'network': {'id': 'b8739ea7-a778-46ce-ad53-7de8d90e342f', 'name': 'ctest-vn-77913007', 'tenant_id': 'c7e73f49a8f24ecdb56226c238076503', 'project_id': 'c7e73f49a8f24ecdb56226c238076503', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72438343', 'ctest-vn-77913007'], 'port_security_enabled': True, 'description': ''}}
2025-09-24 21:55:00,305 - DEBUG - Response for create_subnet : {'subnet': {'id': '942e3f84-2988-4586-a1ad-31c8b6fddf7c', 'name': '', 'tenant_id': 'c7e73f49a8f24ecdb56226c238076503', 'network_id': 'b8739ea7-a778-46ce-ad53-7de8d90e342f', 'ip_version': 4, 'cidr': '86.38.169.192/26', 'allocation_pools': [{'start': '86.38.169.194', 'end': '86.38.169.254'}], 'gateway_ip': '86.38.169.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.38.169.194', 'tags': [], 'project_id': 'c7e73f49a8f24ecdb56226c238076503'}}
2025-09-24 21:55:00,327 - INFO - Created VN ctest-vn-77913007
2025-09-24 21:55:00,382 - DEBUG - VN ctest-vn-77913007 UUID is b8739ea7-a778-46ce-ad53-7de8d90e342f
2025-09-24 21:55:00,710 - DEBUG - Response for create_network : {'network': {'id': '9e937d28-f225-4418-9619-639a389efe3c', 'name': 'ctest-vn-44735312', 'tenant_id': 'c7e73f49a8f24ecdb56226c238076503', 'project_id': 'c7e73f49a8f24ecdb56226c238076503', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72438343', 'ctest-vn-44735312'], 'port_security_enabled': True, 'description': ''}}
2025-09-24 21:55:00,908 - DEBUG - Response for create_subnet : {'subnet': {'id': '8fdaf516-7eb8-4cfc-b373-a89c03c26a64', 'name': '', 'tenant_id': 'c7e73f49a8f24ecdb56226c238076503', 'network_id': '9e937d28-f225-4418-9619-639a389efe3c', 'ip_version': 4, 'cidr': '60.110.252.64/26', 'allocation_pools': [{'start': '60.110.252.66', 'end': '60.110.252.126'}], 'gateway_ip': '60.110.252.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.110.252.66', 'tags': [], 'project_id': 'c7e73f49a8f24ecdb56226c238076503'}}
2025-09-24 21:55:00,928 - INFO - Created VN ctest-vn-44735312
2025-09-24 21:55:00,990 - DEBUG - VN ctest-vn-44735312 UUID is 9e937d28-f225-4418-9619-639a389efe3c
2025-09-24 21:55:01,128 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72438343:ctest-vn-77913007, 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-72438343:ctest-vn-44735312, 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-09-24 21:55:01,443 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8739ea7-a778-46ce-ad53-7de8d90e342f', 'name': 'ctest-vn-77913007', 'tenant_id': 'c7e73f49a8f24ecdb56226c238076503', 'project_id': 'c7e73f49a8f24ecdb56226c238076503', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['942e3f84-2988-4586-a1ad-31c8b6fddf7c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72438343', 'ctest-vn-77913007'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72438343', 'ctest-policy-allow-all-06713734']], 'subnet_ipam': [{'subnet_cidr': '86.38.169.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-24 21:55:01,700 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9e937d28-f225-4418-9619-639a389efe3c', 'name': 'ctest-vn-44735312', 'tenant_id': 'c7e73f49a8f24ecdb56226c238076503', 'project_id': 'c7e73f49a8f24ecdb56226c238076503', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8fdaf516-7eb8-4cfc-b373-a89c03c26a64'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72438343', 'ctest-vn-44735312'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72438343', 'ctest-policy-allow-all-06713734']], 'subnet_ipam': [{'subnet_cidr': '60.110.252.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-24 21:55:01,874 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 21:55:02,183 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 21:55:02,214 - DEBUG - Requesting: http://10.0.0.57:8082/domain/3059085e-2a69-4d13-9a6b-ece82704879e
2025-09-24 21:55:02,229 - DEBUG - Requesting: http://10.0.0.57:8082/project/c7e73f49-a8f2-4ecd-b562-26c238076503
2025-09-24 21:55:02,304 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b8739ea7-a778-46ce-ad53-7de8d90e342f
2025-09-24 21:55:02,316 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b8739ea7-a778-46ce-ad53-7de8d90e342f
2025-09-24 21:55:02,326 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/18bbbb56-e6c0-4a87-85cb-5e00742f3020
2025-09-24 21:55:02,333 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/18bbbb56-e6c0-4a87-85cb-5e00742f3020
2025-09-24 21:55:02,340 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/fbf9c714-2667-4756-b87e-75c4c7b52b3c
2025-09-24 21:55:02,347 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-24 21:55:02,348 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b8739ea7-a778-46ce-ad53-7de8d90e342f
2025-09-24 21:55:02,358 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/18bbbb56-e6c0-4a87-85cb-5e00742f3020
2025-09-24 21:55:02,375 - INFO - Verified VN network id 11 for VN b8739ea7-a778-46ce-ad53-7de8d90e342f
2025-09-24 21:55:02,376 - INFO - Verifications in API Server for VN ctest-vn-77913007 passed
2025-09-24 21:55:02,376 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b8739ea7-a778-46ce-ad53-7de8d90e342f
2025-09-24 21:55:02,401 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/18bbbb56-e6c0-4a87-85cb-5e00742f3020
2025-09-24 21:55:02,420 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/18bbbb56-e6c0-4a87-85cb-5e00742f3020
2025-09-24 21:55:02,428 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/fbf9c714-2667-4756-b87e-75c4c7b52b3c
2025-09-24 21:55:02,443 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72438343:ctest-vn-77913007', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72438343', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13291141368206870222', 'uuid-lslong': '12489464630655988783'}, 'enable': 'true', 'created': '2025-09-24T21:55:00', 'last-modified': '2025-09-24T21:55:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.021408'}
2025-09-24 21:55:02,452 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-24 21:55:02,452 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77913007 passed
2025-09-24 21:55:02,453 - DEBUG - ====Verifying policy data for ctest-vn-77913007 in API_Server ======
2025-09-24 21:55:02,453 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 21:55:02,461 - DEBUG - Requesting: http://10.0.0.57:8082/domain/3059085e-2a69-4d13-9a6b-ece82704879e
2025-09-24 21:55:02,475 - DEBUG - Requesting: http://10.0.0.57:8082/project/c7e73f49-a8f2-4ecd-b562-26c238076503
2025-09-24 21:55:02,546 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/b8739ea7-a778-46ce-ad53-7de8d90e342f
2025-09-24 21:55:02,557 - DEBUG - ==>Verifying data for policy with id: 067831fe-ff03-47c7-9ba7-beb6bda9f4e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-72438343', 'ctest-policy-allow-all-06713734']
2025-09-24 21:55:02,557 - INFO - VN ctest-vn-77913007 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-24 21:55:02,557 - DEBUG - Verifying the vn in opserver
2025-09-24 21:55:02,557 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72438343:ctest-vn-77913007 virtual network link through opserver 10.0.0.57
2025-09-24 21:55:02,557 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-24 21:55:02,867 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-24 21:55:02,925 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72438343:ctest-vn-77913007', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72438343:ctest-vn-77913007?flat'}
2025-09-24 21:55:02,925 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72438343:ctest-vn-77913007 is found in opserver
2025-09-24 21:55:02,936 - DEBUG - Do not have enough data to verify VN in agent
2025-09-24 21:55:02,941 - DEBUG - VRF ids for VN ctest-vn-77913007: {}
2025-09-24 21:55:02,941 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 21:55:02,947 - DEBUG - Requesting: http://10.0.0.57:8082/domain/3059085e-2a69-4d13-9a6b-ece82704879e
2025-09-24 21:55:02,959 - DEBUG - Requesting: http://10.0.0.57:8082/project/c7e73f49-a8f2-4ecd-b562-26c238076503
2025-09-24 21:55:03,028 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/9e937d28-f225-4418-9619-639a389efe3c
2025-09-24 21:55:03,041 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/9e937d28-f225-4418-9619-639a389efe3c
2025-09-24 21:55:03,051 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/60ec427c-89c6-40e7-9c30-612a506f153f
2025-09-24 21:55:03,059 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/60ec427c-89c6-40e7-9c30-612a506f153f
2025-09-24 21:55:03,066 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/15ee8dca-b0e2-42dd-a50d-6a67c50c186e
2025-09-24 21:55:03,075 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-24 21:55:03,075 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/9e937d28-f225-4418-9619-639a389efe3c
2025-09-24 21:55:03,084 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/60ec427c-89c6-40e7-9c30-612a506f153f
2025-09-24 21:55:03,099 - INFO - Verified VN network id 12 for VN 9e937d28-f225-4418-9619-639a389efe3c
2025-09-24 21:55:03,100 - INFO - Verifications in API Server for VN ctest-vn-44735312 passed
2025-09-24 21:55:03,100 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/9e937d28-f225-4418-9619-639a389efe3c
2025-09-24 21:55:03,109 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/60ec427c-89c6-40e7-9c30-612a506f153f
2025-09-24 21:55:03,116 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/60ec427c-89c6-40e7-9c30-612a506f153f
2025-09-24 21:55:03,122 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/15ee8dca-b0e2-42dd-a50d-6a67c50c186e
2025-09-24 21:55:03,136 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72438343:ctest-vn-44735312', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72438343', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11426614294383772696', 'uuid-lslong': '10815785494133014076'}, 'enable': 'true', 'created': '2025-09-24T21:55:00', 'last-modified': '2025-09-24T21:55:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.456982'}
2025-09-24 21:55:03,141 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-24 21:55:03,141 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44735312 passed
2025-09-24 21:55:03,142 - DEBUG - ====Verifying policy data for ctest-vn-44735312 in API_Server ======
2025-09-24 21:55:03,142 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-09-24 21:55:03,148 - DEBUG - Requesting: http://10.0.0.57:8082/domain/3059085e-2a69-4d13-9a6b-ece82704879e
2025-09-24 21:55:03,162 - DEBUG - Requesting: http://10.0.0.57:8082/project/c7e73f49-a8f2-4ecd-b562-26c238076503
2025-09-24 21:55:03,234 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/9e937d28-f225-4418-9619-639a389efe3c
2025-09-24 21:55:03,245 - DEBUG - ==>Verifying data for policy with id: 067831fe-ff03-47c7-9ba7-beb6bda9f4e2, fqn: ['default-domain', 'ctest-TestBasicPolicy-72438343', 'ctest-policy-allow-all-06713734']
2025-09-24 21:55:03,246 - INFO - VN ctest-vn-44735312 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-24 21:55:03,246 - DEBUG - Verifying the vn in opserver
2025-09-24 21:55:03,246 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72438343:ctest-vn-44735312 virtual network link through opserver 10.0.0.57
2025-09-24 21:55:03,246 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-09-24 21:55:03,258 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72438343:ctest-vn-44735312', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72438343:ctest-vn-44735312?flat'}
2025-09-24 21:55:03,258 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72438343:ctest-vn-44735312 is found in opserver
2025-09-24 21:55:03,268 - DEBUG - Do not have enough data to verify VN in agent
2025-09-24 21:55:03,273 - DEBUG - VRF ids for VN ctest-vn-44735312: {}
2025-09-24 21:55:03,334 - DEBUG - Services list from nova: [