2026-04-29 22:28:58,551 - INFO - Domain Default found not creating
2026-04-29 22:28:58,709 - INFO - Project ctest-TestBasicPolicy-13765166 not found, creating it
2026-04-29 22:28:59,174 - INFO - Created Project:ctest-TestBasicPolicy-13765166, ID : eea16cca-e1ee-401f-81dc-f47ce24d5186
2026-04-29 22:29:00,864 - INFO - ================================================================================
2026-04-29 22:29:00,864 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-29 22:29:00,864 - 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-29 22:29:01,135 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with
2026-04-29 22:29:01,135 - INFO - Initial checks done. Running the testcase now
2026-04-29 22:29:01,135 - INFO -
2026-04-29 22:29:01,795 - DEBUG - Response for create_network : {'network': {'id': '0ee04ac6-eae0-4c41-a643-67ee59f0e306', 'name': 'ctest-vn-81158289', 'tenant_id': 'eea16ccae1ee401f81dcf47ce24d5186', 'project_id': 'eea16ccae1ee401f81dcf47ce24d5186', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13765166', 'ctest-vn-81158289'], 'port_security_enabled': True, 'description': ''}}
2026-04-29 22:29:01,990 - DEBUG - Response for create_subnet : {'subnet': {'id': '79e72e1f-89e1-4194-804d-410f9a34d9e5', 'name': '', 'tenant_id': 'eea16ccae1ee401f81dcf47ce24d5186', 'network_id': '0ee04ac6-eae0-4c41-a643-67ee59f0e306', 'ip_version': 4, 'cidr': '184.141.14.128/26', 'allocation_pools': [{'start': '184.141.14.130', 'end': '184.141.14.190'}], 'gateway_ip': '184.141.14.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '184.141.14.130', 'tags': [], 'project_id': 'eea16ccae1ee401f81dcf47ce24d5186'}}
2026-04-29 22:29:02,010 - INFO - Created VN ctest-vn-81158289
2026-04-29 22:29:02,060 - DEBUG - VN ctest-vn-81158289 UUID is 0ee04ac6-eae0-4c41-a643-67ee59f0e306
2026-04-29 22:29:02,353 - DEBUG - Response for create_network : {'network': {'id': '9bf7434b-a6c9-4534-adc3-dff656677168', 'name': 'ctest-vn-50329660', 'tenant_id': 'eea16ccae1ee401f81dcf47ce24d5186', 'project_id': 'eea16ccae1ee401f81dcf47ce24d5186', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13765166', 'ctest-vn-50329660'], 'port_security_enabled': True, 'description': ''}}
2026-04-29 22:29:02,511 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e707da14-0fd6-4f1f-93f8-acffdde9ce5c', 'name': '', 'tenant_id': 'eea16ccae1ee401f81dcf47ce24d5186', 'network_id': '9bf7434b-a6c9-4534-adc3-dff656677168', 'ip_version': 4, 'cidr': '146.180.38.192/26', 'allocation_pools': [{'start': '146.180.38.194', 'end': '146.180.38.254'}], 'gateway_ip': '146.180.38.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.180.38.194', 'tags': [], 'project_id': 'eea16ccae1ee401f81dcf47ce24d5186'}}
2026-04-29 22:29:02,530 - INFO - Created VN ctest-vn-50329660
2026-04-29 22:29:02,580 - DEBUG - VN ctest-vn-50329660 UUID is 9bf7434b-a6c9-4534-adc3-dff656677168
2026-04-29 22:29:02,697 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-13765166:ctest-vn-81158289, 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-13765166:ctest-vn-50329660, 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-29 22:29:02,989 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0ee04ac6-eae0-4c41-a643-67ee59f0e306', 'name': 'ctest-vn-81158289', 'tenant_id': 'eea16ccae1ee401f81dcf47ce24d5186', 'project_id': 'eea16ccae1ee401f81dcf47ce24d5186', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['79e72e1f-89e1-4194-804d-410f9a34d9e5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13765166', 'ctest-vn-81158289'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13765166', 'ctest-policy-allow-all-27542482']], 'subnet_ipam': [{'subnet_cidr': '184.141.14.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-29 22:29:03,217 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9bf7434b-a6c9-4534-adc3-dff656677168', 'name': 'ctest-vn-50329660', 'tenant_id': 'eea16ccae1ee401f81dcf47ce24d5186', 'project_id': 'eea16ccae1ee401f81dcf47ce24d5186', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e707da14-0fd6-4f1f-93f8-acffdde9ce5c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-13765166', 'ctest-vn-50329660'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-13765166', 'ctest-policy-allow-all-27542482']], 'subnet_ipam': [{'subnet_cidr': '146.180.38.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-29 22:29:03,380 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-04-29 22:29:03,713 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-04-29 22:29:03,755 - DEBUG - Requesting: http://10.0.0.141:8082/domain/0d40519a-d52e-4801-b811-5e8ab1dcf333
2026-04-29 22:29:03,769 - DEBUG - Requesting: http://10.0.0.141:8082/project/eea16cca-e1ee-401f-81dc-f47ce24d5186
2026-04-29 22:29:03,849 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0ee04ac6-eae0-4c41-a643-67ee59f0e306
2026-04-29 22:29:03,863 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0ee04ac6-eae0-4c41-a643-67ee59f0e306
2026-04-29 22:29:03,879 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c9256ddc-2ece-475a-a14f-1924e942143c
2026-04-29 22:29:03,889 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c9256ddc-2ece-475a-a14f-1924e942143c
2026-04-29 22:29:03,898 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/9f6fc397-365b-42c1-9b9d-4978b2f181f2
2026-04-29 22:29:03,906 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-29 22:29:03,906 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0ee04ac6-eae0-4c41-a643-67ee59f0e306
2026-04-29 22:29:03,916 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c9256ddc-2ece-475a-a14f-1924e942143c
2026-04-29 22:29:03,930 - INFO - Verified VN network id 11 for VN 0ee04ac6-eae0-4c41-a643-67ee59f0e306
2026-04-29 22:29:03,930 - INFO - Verifications in API Server for VN ctest-vn-81158289 passed
2026-04-29 22:29:03,931 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0ee04ac6-eae0-4c41-a643-67ee59f0e306
2026-04-29 22:29:03,941 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c9256ddc-2ece-475a-a14f-1924e942143c
2026-04-29 22:29:03,948 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/c9256ddc-2ece-475a-a14f-1924e942143c
2026-04-29 22:29:03,955 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/9f6fc397-365b-42c1-9b9d-4978b2f181f2
2026-04-29 22:29:03,967 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13765166:ctest-vn-81158289', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13765166', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1071938929518726209', 'uuid-lslong': '11980533707144487686'}, 'enable': 'true', 'created': '2026-04-29T22:29:01', 'last-modified': '2026-04-29T22:29:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.002454'}
2026-04-29 22:29:03,973 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-29 22:29:03,973 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81158289 passed
2026-04-29 22:29:03,973 - DEBUG - ====Verifying policy data for ctest-vn-81158289 in API_Server ======
2026-04-29 22:29:03,973 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-04-29 22:29:03,979 - DEBUG - Requesting: http://10.0.0.141:8082/domain/0d40519a-d52e-4801-b811-5e8ab1dcf333
2026-04-29 22:29:03,990 - DEBUG - Requesting: http://10.0.0.141:8082/project/eea16cca-e1ee-401f-81dc-f47ce24d5186
2026-04-29 22:29:04,062 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/0ee04ac6-eae0-4c41-a643-67ee59f0e306
2026-04-29 22:29:04,075 - DEBUG - ==>Verifying data for policy with id: 38b50ae8-6e55-4205-bd35-ffca58a7f818, fqn: ['default-domain', 'ctest-TestBasicPolicy-13765166', 'ctest-policy-allow-all-27542482']
2026-04-29 22:29:04,075 - INFO - VN ctest-vn-81158289 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-29 22:29:04,075 - DEBUG - Verifying the vn in opserver
2026-04-29 22:29:04,075 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13765166:ctest-vn-81158289 virtual network link through opserver 10.0.0.141
2026-04-29 22:29:04,075 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-04-29 22:29:04,411 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-04-29 22:29:04,481 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13765166:ctest-vn-81158289', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13765166:ctest-vn-81158289?flat'}
2026-04-29 22:29:04,481 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13765166:ctest-vn-81158289 is found in opserver
2026-04-29 22:29:04,492 - DEBUG - Do not have enough data to verify VN in agent
2026-04-29 22:29:04,498 - DEBUG - VRF ids for VN ctest-vn-81158289: {}
2026-04-29 22:29:04,498 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-04-29 22:29:04,504 - DEBUG - Requesting: http://10.0.0.141:8082/domain/0d40519a-d52e-4801-b811-5e8ab1dcf333
2026-04-29 22:29:04,516 - DEBUG - Requesting: http://10.0.0.141:8082/project/eea16cca-e1ee-401f-81dc-f47ce24d5186
2026-04-29 22:29:04,586 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9bf7434b-a6c9-4534-adc3-dff656677168
2026-04-29 22:29:04,598 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9bf7434b-a6c9-4534-adc3-dff656677168
2026-04-29 22:29:04,607 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/3f0c5ef5-8223-440c-8824-7c0d05c42039
2026-04-29 22:29:04,615 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/3f0c5ef5-8223-440c-8824-7c0d05c42039
2026-04-29 22:29:04,622 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/fdac08a3-66aa-42fb-afcf-876994d2d69b
2026-04-29 22:29:04,628 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-29 22:29:04,628 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9bf7434b-a6c9-4534-adc3-dff656677168
2026-04-29 22:29:04,639 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/3f0c5ef5-8223-440c-8824-7c0d05c42039
2026-04-29 22:29:04,656 - INFO - Verified VN network id 12 for VN 9bf7434b-a6c9-4534-adc3-dff656677168
2026-04-29 22:29:04,656 - INFO - Verifications in API Server for VN ctest-vn-50329660 passed
2026-04-29 22:29:04,656 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9bf7434b-a6c9-4534-adc3-dff656677168
2026-04-29 22:29:04,666 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/3f0c5ef5-8223-440c-8824-7c0d05c42039
2026-04-29 22:29:04,674 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/3f0c5ef5-8223-440c-8824-7c0d05c42039
2026-04-29 22:29:04,681 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/fdac08a3-66aa-42fb-afcf-876994d2d69b
2026-04-29 22:29:04,694 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-13765166:ctest-vn-50329660', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-13765166', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11238525387326178612', 'uuid-lslong': '12521097638124679528'}, 'enable': 'true', 'created': '2026-04-29T22:29:02', 'last-modified': '2026-04-29T22:29:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.497282'}
2026-04-29 22:29:04,699 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-29 22:29:04,700 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50329660 passed
2026-04-29 22:29:04,700 - DEBUG - ====Verifying policy data for ctest-vn-50329660 in API_Server ======
2026-04-29 22:29:04,700 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-04-29 22:29:04,705 - DEBUG - Requesting: http://10.0.0.141:8082/domain/0d40519a-d52e-4801-b811-5e8ab1dcf333
2026-04-29 22:29:04,716 - DEBUG - Requesting: http://10.0.0.141:8082/project/eea16cca-e1ee-401f-81dc-f47ce24d5186
2026-04-29 22:29:04,787 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/9bf7434b-a6c9-4534-adc3-dff656677168
2026-04-29 22:29:04,797 - DEBUG - ==>Verifying data for policy with id: 38b50ae8-6e55-4205-bd35-ffca58a7f818, fqn: ['default-domain', 'ctest-TestBasicPolicy-13765166', 'ctest-policy-allow-all-27542482']
2026-04-29 22:29:04,797 - INFO - VN ctest-vn-50329660 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-29 22:29:04,797 - DEBUG - Verifying the vn in opserver
2026-04-29 22:29:04,797 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-13765166:ctest-vn-50329660 virtual network link through opserver 10.0.0.141
2026-04-29 22:29:04,797 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-04-29 22:29:04,807 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-13765166:ctest-vn-50329660', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-13765166:ctest-vn-50329660?flat'}
2026-04-29 22:29:04,807 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-13765166:ctest-vn-50329660 is found in opserver
2026-04-29 22:29:04,819 - DEBUG - Do not have enough data to verify VN in agent
2026-04-29 22:29:04,824 - DEBUG - VRF ids for VN ctest-vn-50329660: {}
2026-04-29 22:29:04,894 - DEBUG - Services list from nova: [