2026-04-25 02:33:15,907 - INFO - Domain Default found not creating
2026-04-25 02:33:16,093 - INFO - Project ctest-TestBasicPolicy-56481663 not found, creating it
2026-04-25 02:33:16,613 - INFO - Created Project:ctest-TestBasicPolicy-56481663, ID : 1a41cd81-d23e-42e9-b19f-e91c13b0f923
2026-04-25 02:33:18,129 - INFO - ================================================================================
2026-04-25 02:33:18,129 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-25 02:33:18,129 - 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-04-25 02:33:18,389 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-04-25 02:33:18,389 - INFO - Initial checks done. Running the testcase now
2026-04-25 02:33:18,389 - INFO -
2026-04-25 02:33:18,979 - DEBUG - Response for create_network : {'network': {'id': 'f92ffaba-6597-4652-9a9c-eb72c0d8d5cb', 'name': 'ctest-vn-77093075', 'tenant_id': '1a41cd81d23e42e9b19fe91c13b0f923', 'project_id': '1a41cd81d23e42e9b19fe91c13b0f923', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56481663', 'ctest-vn-77093075'], 'port_security_enabled': True, 'description': ''}}
2026-04-25 02:33:19,154 - DEBUG - Response for create_subnet : {'subnet': {'id': '57f4afcf-40aa-4615-8100-420c35d061a8', 'name': '', 'tenant_id': '1a41cd81d23e42e9b19fe91c13b0f923', 'network_id': 'f92ffaba-6597-4652-9a9c-eb72c0d8d5cb', 'ip_version': 4, 'cidr': '55.138.5.128/26', 'allocation_pools': [{'start': '55.138.5.130', 'end': '55.138.5.190'}], 'gateway_ip': '55.138.5.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.138.5.130', 'tags': [], 'project_id': '1a41cd81d23e42e9b19fe91c13b0f923'}}
2026-04-25 02:33:19,176 - INFO - Created VN ctest-vn-77093075
2026-04-25 02:33:19,232 - DEBUG - VN ctest-vn-77093075 UUID is f92ffaba-6597-4652-9a9c-eb72c0d8d5cb
2026-04-25 02:33:19,540 - DEBUG - Response for create_network : {'network': {'id': '6013efeb-e038-4103-9472-5c13570a13e7', 'name': 'ctest-vn-67232188', 'tenant_id': '1a41cd81d23e42e9b19fe91c13b0f923', 'project_id': '1a41cd81d23e42e9b19fe91c13b0f923', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56481663', 'ctest-vn-67232188'], 'port_security_enabled': True, 'description': ''}}
2026-04-25 02:33:19,753 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c8d3034-6b07-4ff3-bac6-f84bfc86f01f', 'name': '', 'tenant_id': '1a41cd81d23e42e9b19fe91c13b0f923', 'network_id': '6013efeb-e038-4103-9472-5c13570a13e7', 'ip_version': 4, 'cidr': '60.20.168.64/26', 'allocation_pools': [{'start': '60.20.168.66', 'end': '60.20.168.126'}], 'gateway_ip': '60.20.168.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.20.168.66', 'tags': [], 'project_id': '1a41cd81d23e42e9b19fe91c13b0f923'}}
2026-04-25 02:33:19,775 - INFO - Created VN ctest-vn-67232188
2026-04-25 02:33:19,828 - DEBUG - VN ctest-vn-67232188 UUID is 6013efeb-e038-4103-9472-5c13570a13e7
2026-04-25 02:33:19,941 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56481663:ctest-vn-77093075, 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-56481663:ctest-vn-67232188, 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-04-25 02:33:20,264 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f92ffaba-6597-4652-9a9c-eb72c0d8d5cb', 'name': 'ctest-vn-77093075', 'tenant_id': '1a41cd81d23e42e9b19fe91c13b0f923', 'project_id': '1a41cd81d23e42e9b19fe91c13b0f923', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['57f4afcf-40aa-4615-8100-420c35d061a8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56481663', 'ctest-vn-77093075'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56481663', 'ctest-policy-allow-all-67019970']], 'subnet_ipam': [{'subnet_cidr': '55.138.5.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-25 02:33:20,500 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6013efeb-e038-4103-9472-5c13570a13e7', 'name': 'ctest-vn-67232188', 'tenant_id': '1a41cd81d23e42e9b19fe91c13b0f923', 'project_id': '1a41cd81d23e42e9b19fe91c13b0f923', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1c8d3034-6b07-4ff3-bac6-f84bfc86f01f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56481663', 'ctest-vn-67232188'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56481663', 'ctest-policy-allow-all-67019970']], 'subnet_ipam': [{'subnet_cidr': '60.20.168.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-25 02:33:20,668 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-25 02:33:20,962 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-25 02:33:20,992 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ab743141-afcb-418c-b12a-f6b984c1e7d7
2026-04-25 02:33:21,004 - DEBUG - Requesting: http://10.0.0.50:8082/project/1a41cd81-d23e-42e9-b19f-e91c13b0f923
2026-04-25 02:33:21,073 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f92ffaba-6597-4652-9a9c-eb72c0d8d5cb
2026-04-25 02:33:21,085 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f92ffaba-6597-4652-9a9c-eb72c0d8d5cb
2026-04-25 02:33:21,093 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7d345ad4-b992-4624-ab1d-370819cd1129
2026-04-25 02:33:21,100 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7d345ad4-b992-4624-ab1d-370819cd1129
2026-04-25 02:33:21,106 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/943d6a2b-575d-4f47-97c3-a94c401c0c17
2026-04-25 02:33:21,112 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-25 02:33:21,112 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f92ffaba-6597-4652-9a9c-eb72c0d8d5cb
2026-04-25 02:33:21,121 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7d345ad4-b992-4624-ab1d-370819cd1129
2026-04-25 02:33:21,134 - INFO - Verified VN network id 11 for VN f92ffaba-6597-4652-9a9c-eb72c0d8d5cb
2026-04-25 02:33:21,134 - INFO - Verifications in API Server for VN ctest-vn-77093075 passed
2026-04-25 02:33:21,134 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f92ffaba-6597-4652-9a9c-eb72c0d8d5cb
2026-04-25 02:33:21,143 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7d345ad4-b992-4624-ab1d-370819cd1129
2026-04-25 02:33:21,151 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7d345ad4-b992-4624-ab1d-370819cd1129
2026-04-25 02:33:21,158 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/943d6a2b-575d-4f47-97c3-a94c401c0c17
2026-04-25 02:33:21,171 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56481663:ctest-vn-77093075', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56481663', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17955845917824730706', 'uuid-lslong': '11141038456301999563'}, 'enable': 'true', 'created': '2026-04-25T02:33:18', 'last-modified': '2026-04-25T02:33:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.934643'}
2026-04-25 02:33:21,179 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-25 02:33:21,179 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77093075 passed
2026-04-25 02:33:21,180 - DEBUG - ====Verifying policy data for ctest-vn-77093075 in API_Server ======
2026-04-25 02:33:21,180 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-25 02:33:21,186 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ab743141-afcb-418c-b12a-f6b984c1e7d7
2026-04-25 02:33:21,197 - DEBUG - Requesting: http://10.0.0.50:8082/project/1a41cd81-d23e-42e9-b19f-e91c13b0f923
2026-04-25 02:33:21,268 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f92ffaba-6597-4652-9a9c-eb72c0d8d5cb
2026-04-25 02:33:21,277 - DEBUG - ==>Verifying data for policy with id: b5828982-2f32-4677-b9f9-a8d19416f057, fqn: ['default-domain', 'ctest-TestBasicPolicy-56481663', 'ctest-policy-allow-all-67019970']
2026-04-25 02:33:21,277 - INFO - VN ctest-vn-77093075 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-25 02:33:21,278 - DEBUG - Verifying the vn in opserver
2026-04-25 02:33:21,278 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56481663:ctest-vn-77093075 virtual network link through opserver 10.0.0.50
2026-04-25 02:33:21,278 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-25 02:33:21,569 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-25 02:33:21,629 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56481663:ctest-vn-77093075', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56481663:ctest-vn-77093075?flat'}
2026-04-25 02:33:21,629 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56481663:ctest-vn-77093075 is found in opserver
2026-04-25 02:33:21,639 - DEBUG - Do not have enough data to verify VN in agent
2026-04-25 02:33:21,643 - DEBUG - VRF ids for VN ctest-vn-77093075: {}
2026-04-25 02:33:21,643 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-25 02:33:21,648 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ab743141-afcb-418c-b12a-f6b984c1e7d7
2026-04-25 02:33:21,660 - DEBUG - Requesting: http://10.0.0.50:8082/project/1a41cd81-d23e-42e9-b19f-e91c13b0f923
2026-04-25 02:33:21,728 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6013efeb-e038-4103-9472-5c13570a13e7
2026-04-25 02:33:21,739 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6013efeb-e038-4103-9472-5c13570a13e7
2026-04-25 02:33:21,748 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/98349fac-8f05-47bc-91ea-af7eae62c605
2026-04-25 02:33:21,755 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/98349fac-8f05-47bc-91ea-af7eae62c605
2026-04-25 02:33:21,761 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/924628dd-daaa-438c-b6fa-347286d4dd34
2026-04-25 02:33:21,768 - DEBUG - Route Targets: ['target:64512:8000006']
2026-04-25 02:33:21,769 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6013efeb-e038-4103-9472-5c13570a13e7
2026-04-25 02:33:21,778 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/98349fac-8f05-47bc-91ea-af7eae62c605
2026-04-25 02:33:21,793 - INFO - Verified VN network id 13 for VN 6013efeb-e038-4103-9472-5c13570a13e7
2026-04-25 02:33:21,793 - INFO - Verifications in API Server for VN ctest-vn-67232188 passed
2026-04-25 02:33:21,793 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6013efeb-e038-4103-9472-5c13570a13e7
2026-04-25 02:33:21,803 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/98349fac-8f05-47bc-91ea-af7eae62c605
2026-04-25 02:33:21,811 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/98349fac-8f05-47bc-91ea-af7eae62c605
2026-04-25 02:33:21,818 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/924628dd-daaa-438c-b6fa-347286d4dd34
2026-04-25 02:33:21,832 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56481663:ctest-vn-67232188', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56481663', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6923140848556720387', 'uuid-lslong': '10696713303092761575'}, 'enable': 'true', 'created': '2026-04-25T02:33:19', 'last-modified': '2026-04-25T02:33:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.360163'}
2026-04-25 02:33:21,839 - DEBUG - Route Targets: ['target:64512:8000006']
2026-04-25 02:33:21,839 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-67232188 passed
2026-04-25 02:33:21,839 - DEBUG - ====Verifying policy data for ctest-vn-67232188 in API_Server ======
2026-04-25 02:33:21,839 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-25 02:33:21,846 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ab743141-afcb-418c-b12a-f6b984c1e7d7
2026-04-25 02:33:21,857 - DEBUG - Requesting: http://10.0.0.50:8082/project/1a41cd81-d23e-42e9-b19f-e91c13b0f923
2026-04-25 02:33:21,927 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6013efeb-e038-4103-9472-5c13570a13e7
2026-04-25 02:33:21,937 - DEBUG - ==>Verifying data for policy with id: b5828982-2f32-4677-b9f9-a8d19416f057, fqn: ['default-domain', 'ctest-TestBasicPolicy-56481663', 'ctest-policy-allow-all-67019970']
2026-04-25 02:33:21,937 - INFO - VN ctest-vn-67232188 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-25 02:33:21,938 - DEBUG - Verifying the vn in opserver
2026-04-25 02:33:21,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56481663:ctest-vn-67232188 virtual network link through opserver 10.0.0.50
2026-04-25 02:33:21,938 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-25 02:33:21,948 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56481663:ctest-vn-67232188', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56481663:ctest-vn-67232188?flat'}
2026-04-25 02:33:21,948 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56481663:ctest-vn-67232188 is found in opserver
2026-04-25 02:33:21,957 - DEBUG - Do not have enough data to verify VN in agent
2026-04-25 02:33:21,962 - DEBUG - VRF ids for VN ctest-vn-67232188: {}
2026-04-25 02:33:22,023 - DEBUG - Services list from nova: [