2026-01-29 13:32:45,954 - INFO - Domain Default found not creating
2026-01-29 13:32:46,200 - INFO - Project ctest-TestBasicPolicy-08909095 not found, creating it
2026-01-29 13:32:46,692 - INFO - Created Project:ctest-TestBasicPolicy-08909095, ID : 0225696d-d318-4a14-a9d6-d59f98b50502
2026-01-29 13:32:48,356 - INFO - ================================================================================
2026-01-29 13:32:48,356 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-01-29 13:32:48,356 - 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-01-29 13:32:48,621 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.193': '0'}} with
2026-01-29 13:32:48,621 - INFO - Initial checks done. Running the testcase now
2026-01-29 13:32:48,622 - INFO -
2026-01-29 13:32:49,268 - DEBUG - Response for create_network : {'network': {'id': 'decbc910-ffa7-46ee-ac8a-920c01fc6825', 'name': 'ctest-vn-07924794', 'tenant_id': '0225696dd3184a14a9d6d59f98b50502', 'project_id': '0225696dd3184a14a9d6d59f98b50502', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08909095', 'ctest-vn-07924794'], 'port_security_enabled': True, 'description': ''}}
2026-01-29 13:32:49,477 - DEBUG - Response for create_subnet : {'subnet': {'id': '8afdba34-ae87-4b71-89a7-ab1116c9b0c9', 'name': '', 'tenant_id': '0225696dd3184a14a9d6d59f98b50502', 'network_id': 'decbc910-ffa7-46ee-ac8a-920c01fc6825', 'ip_version': 4, 'cidr': '13.10.195.0/26', 'allocation_pools': [{'start': '13.10.195.2', 'end': '13.10.195.62'}], 'gateway_ip': '13.10.195.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.10.195.2', 'tags': [], 'project_id': '0225696dd3184a14a9d6d59f98b50502'}}
2026-01-29 13:32:49,501 - INFO - Created VN ctest-vn-07924794
2026-01-29 13:32:49,555 - DEBUG - VN ctest-vn-07924794 UUID is decbc910-ffa7-46ee-ac8a-920c01fc6825
2026-01-29 13:32:49,906 - DEBUG - Response for create_network : {'network': {'id': '00ecc70b-ad99-4e34-a556-d7e85be6fd08', 'name': 'ctest-vn-83457891', 'tenant_id': '0225696dd3184a14a9d6d59f98b50502', 'project_id': '0225696dd3184a14a9d6d59f98b50502', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08909095', 'ctest-vn-83457891'], 'port_security_enabled': True, 'description': ''}}
2026-01-29 13:32:50,094 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d5f0504-bcde-4713-b3c1-a7bfd771eb4c', 'name': '', 'tenant_id': '0225696dd3184a14a9d6d59f98b50502', 'network_id': '00ecc70b-ad99-4e34-a556-d7e85be6fd08', 'ip_version': 4, 'cidr': '132.29.245.128/26', 'allocation_pools': [{'start': '132.29.245.130', 'end': '132.29.245.190'}], 'gateway_ip': '132.29.245.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.29.245.130', 'tags': [], 'project_id': '0225696dd3184a14a9d6d59f98b50502'}}
2026-01-29 13:32:50,118 - INFO - Created VN ctest-vn-83457891
2026-01-29 13:32:50,175 - DEBUG - VN ctest-vn-83457891 UUID is 00ecc70b-ad99-4e34-a556-d7e85be6fd08
2026-01-29 13:32:50,306 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-08909095:ctest-vn-07924794, 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-08909095:ctest-vn-83457891, 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-01-29 13:32:50,636 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'decbc910-ffa7-46ee-ac8a-920c01fc6825', 'name': 'ctest-vn-07924794', 'tenant_id': '0225696dd3184a14a9d6d59f98b50502', 'project_id': '0225696dd3184a14a9d6d59f98b50502', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8afdba34-ae87-4b71-89a7-ab1116c9b0c9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08909095', 'ctest-vn-07924794'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08909095', 'ctest-policy-allow-all-12822784']], 'subnet_ipam': [{'subnet_cidr': '13.10.195.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-29 13:32:50,908 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '00ecc70b-ad99-4e34-a556-d7e85be6fd08', 'name': 'ctest-vn-83457891', 'tenant_id': '0225696dd3184a14a9d6d59f98b50502', 'project_id': '0225696dd3184a14a9d6d59f98b50502', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6d5f0504-bcde-4713-b3c1-a7bfd771eb4c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-08909095', 'ctest-vn-83457891'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-08909095', 'ctest-policy-allow-all-12822784']], 'subnet_ipam': [{'subnet_cidr': '132.29.245.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-01-29 13:32:51,119 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-01-29 13:32:51,467 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-01-29 13:32:51,529 - DEBUG - Requesting: http://10.0.0.141:8082/domain/e8c2807c-b0c0-4a18-a3ec-19ebd412a883
2026-01-29 13:32:51,568 - DEBUG - Requesting: http://10.0.0.141:8082/project/0225696d-d318-4a14-a9d6-d59f98b50502
2026-01-29 13:32:51,709 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/decbc910-ffa7-46ee-ac8a-920c01fc6825
2026-01-29 13:32:51,736 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/decbc910-ffa7-46ee-ac8a-920c01fc6825
2026-01-29 13:32:51,749 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/807df820-8f99-47b8-96fb-5c7fda084057
2026-01-29 13:32:51,769 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/807df820-8f99-47b8-96fb-5c7fda084057
2026-01-29 13:32:51,785 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/3df689ee-8398-479a-a94a-dffd67ea037f
2026-01-29 13:32:51,794 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-29 13:32:51,794 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/decbc910-ffa7-46ee-ac8a-920c01fc6825
2026-01-29 13:32:51,810 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/807df820-8f99-47b8-96fb-5c7fda084057
2026-01-29 13:32:51,831 - INFO - Verified VN network id 11 for VN decbc910-ffa7-46ee-ac8a-920c01fc6825
2026-01-29 13:32:51,832 - INFO - Verifications in API Server for VN ctest-vn-07924794 passed
2026-01-29 13:32:51,832 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/decbc910-ffa7-46ee-ac8a-920c01fc6825
2026-01-29 13:32:51,849 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/807df820-8f99-47b8-96fb-5c7fda084057
2026-01-29 13:32:51,857 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/807df820-8f99-47b8-96fb-5c7fda084057
2026-01-29 13:32:51,878 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/3df689ee-8398-479a-a94a-dffd67ea037f
2026-01-29 13:32:51,894 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08909095:ctest-vn-07924794', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08909095', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16054146371538077422', 'uuid-lslong': '12432910301580257317'}, 'enable': 'true', 'created': '2026-01-29T13:32:49', 'last-modified': '2026-01-29T13:32:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.287833'}
2026-01-29 13:32:51,902 - DEBUG - Route Targets: ['target:64512:8000004']
2026-01-29 13:32:51,902 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07924794 passed
2026-01-29 13:32:51,902 - DEBUG - ====Verifying policy data for ctest-vn-07924794 in API_Server ======
2026-01-29 13:32:51,902 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-01-29 13:32:51,910 - DEBUG - Requesting: http://10.0.0.141:8082/domain/e8c2807c-b0c0-4a18-a3ec-19ebd412a883
2026-01-29 13:32:51,931 - DEBUG - Requesting: http://10.0.0.141:8082/project/0225696d-d318-4a14-a9d6-d59f98b50502
2026-01-29 13:32:52,003 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/decbc910-ffa7-46ee-ac8a-920c01fc6825
2026-01-29 13:32:52,016 - DEBUG - ==>Verifying data for policy with id: bff368e9-370d-4aaf-be4c-901f77bd2cf3, fqn: ['default-domain', 'ctest-TestBasicPolicy-08909095', 'ctest-policy-allow-all-12822784']
2026-01-29 13:32:52,016 - INFO - VN ctest-vn-07924794 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-29 13:32:52,016 - DEBUG - Verifying the vn in opserver
2026-01-29 13:32:52,016 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08909095:ctest-vn-07924794 virtual network link through opserver 10.0.0.141
2026-01-29 13:32:52,016 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-01-29 13:32:52,313 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-01-29 13:32:52,389 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08909095:ctest-vn-07924794', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08909095:ctest-vn-07924794?flat'}
2026-01-29 13:32:52,389 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08909095:ctest-vn-07924794 is found in opserver
2026-01-29 13:32:52,401 - DEBUG - Do not have enough data to verify VN in agent
2026-01-29 13:32:52,406 - DEBUG - VRF ids for VN ctest-vn-07924794: {}
2026-01-29 13:32:52,407 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-01-29 13:32:52,415 - DEBUG - Requesting: http://10.0.0.141:8082/domain/e8c2807c-b0c0-4a18-a3ec-19ebd412a883
2026-01-29 13:32:52,430 - DEBUG - Requesting: http://10.0.0.141:8082/project/0225696d-d318-4a14-a9d6-d59f98b50502
2026-01-29 13:32:52,515 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/00ecc70b-ad99-4e34-a556-d7e85be6fd08
2026-01-29 13:32:52,536 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/00ecc70b-ad99-4e34-a556-d7e85be6fd08
2026-01-29 13:32:52,551 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2b6f0c9d-feae-45e1-bd0a-57d2ac8a40fe
2026-01-29 13:32:52,562 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2b6f0c9d-feae-45e1-bd0a-57d2ac8a40fe
2026-01-29 13:32:52,572 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/69503102-7179-4136-8bb3-7101f6651f2f
2026-01-29 13:32:52,583 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-29 13:32:52,583 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/00ecc70b-ad99-4e34-a556-d7e85be6fd08
2026-01-29 13:32:52,596 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2b6f0c9d-feae-45e1-bd0a-57d2ac8a40fe
2026-01-29 13:32:52,615 - INFO - Verified VN network id 12 for VN 00ecc70b-ad99-4e34-a556-d7e85be6fd08
2026-01-29 13:32:52,616 - INFO - Verifications in API Server for VN ctest-vn-83457891 passed
2026-01-29 13:32:52,616 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/00ecc70b-ad99-4e34-a556-d7e85be6fd08
2026-01-29 13:32:52,631 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2b6f0c9d-feae-45e1-bd0a-57d2ac8a40fe
2026-01-29 13:32:52,642 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/2b6f0c9d-feae-45e1-bd0a-57d2ac8a40fe
2026-01-29 13:32:52,654 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/69503102-7179-4136-8bb3-7101f6651f2f
2026-01-29 13:32:52,669 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-08909095:ctest-vn-83457891', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-08909095', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '66646947474787892', 'uuid-lslong': '11913947257229475080'}, 'enable': 'true', 'created': '2026-01-29T13:32:49', 'last-modified': '2026-01-29T13:32:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.805643'}
2026-01-29 13:32:52,677 - DEBUG - Route Targets: ['target:64512:8000005']
2026-01-29 13:32:52,677 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83457891 passed
2026-01-29 13:32:52,678 - DEBUG - ====Verifying policy data for ctest-vn-83457891 in API_Server ======
2026-01-29 13:32:52,678 - DEBUG - Requesting: http://10.0.0.141:8082/domains
2026-01-29 13:32:52,686 - DEBUG - Requesting: http://10.0.0.141:8082/domain/e8c2807c-b0c0-4a18-a3ec-19ebd412a883
2026-01-29 13:32:52,699 - DEBUG - Requesting: http://10.0.0.141:8082/project/0225696d-d318-4a14-a9d6-d59f98b50502
2026-01-29 13:32:52,775 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/00ecc70b-ad99-4e34-a556-d7e85be6fd08
2026-01-29 13:32:52,789 - DEBUG - ==>Verifying data for policy with id: bff368e9-370d-4aaf-be4c-901f77bd2cf3, fqn: ['default-domain', 'ctest-TestBasicPolicy-08909095', 'ctest-policy-allow-all-12822784']
2026-01-29 13:32:52,789 - INFO - VN ctest-vn-83457891 Policy verification: verify_vn_policy_in_api_server, status: True
2026-01-29 13:32:52,789 - DEBUG - Verifying the vn in opserver
2026-01-29 13:32:52,789 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-08909095:ctest-vn-83457891 virtual network link through opserver 10.0.0.141
2026-01-29 13:32:52,789 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks
2026-01-29 13:32:52,801 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-08909095:ctest-vn-83457891', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-08909095:ctest-vn-83457891?flat'}
2026-01-29 13:32:52,801 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-08909095:ctest-vn-83457891 is found in opserver
2026-01-29 13:32:52,813 - DEBUG - Do not have enough data to verify VN in agent
2026-01-29 13:32:52,819 - DEBUG - VRF ids for VN ctest-vn-83457891: {}
2026-01-29 13:32:52,902 - DEBUG - Services list from nova: [