2026-04-22 14:44:14,067 - INFO - Domain Default found not creating
2026-04-22 14:44:14,316 - INFO - Project ctest-TestBasicPolicy-17695470 not found, creating it
2026-04-22 14:44:14,811 - INFO - Created Project:ctest-TestBasicPolicy-17695470, ID : 77f32c81-616e-4894-b408-5235e16d9732
2026-04-22 14:44:16,565 - INFO - ================================================================================
2026-04-22 14:44:16,565 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-22 14:44:16,565 - 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-22 14:44:16,846 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-04-22 14:44:16,847 - INFO - Initial checks done. Running the testcase now
2026-04-22 14:44:16,847 - INFO -
2026-04-22 14:44:17,496 - DEBUG - Response for create_network : {'network': {'id': '4c1c673c-cb49-4444-8754-1742e55444ae', 'name': 'ctest-vn-77215098', 'tenant_id': '77f32c81616e4894b4085235e16d9732', 'project_id': '77f32c81616e4894b4085235e16d9732', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17695470', 'ctest-vn-77215098'], 'port_security_enabled': True, 'description': ''}}
2026-04-22 14:44:17,702 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c364d264-a38a-4f14-9a22-c10d8c60f3fd', 'name': '', 'tenant_id': '77f32c81616e4894b4085235e16d9732', 'network_id': '4c1c673c-cb49-4444-8754-1742e55444ae', 'ip_version': 4, 'cidr': '128.173.6.192/26', 'allocation_pools': [{'start': '128.173.6.194', 'end': '128.173.6.254'}], 'gateway_ip': '128.173.6.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.173.6.194', 'tags': [], 'project_id': '77f32c81616e4894b4085235e16d9732'}}
2026-04-22 14:44:17,726 - INFO - Created VN ctest-vn-77215098
2026-04-22 14:44:17,781 - DEBUG - VN ctest-vn-77215098 UUID is 4c1c673c-cb49-4444-8754-1742e55444ae
2026-04-22 14:44:18,128 - DEBUG - Response for create_network : {'network': {'id': '9f9bd662-2050-4861-af7b-4c23bff41109', 'name': 'ctest-vn-50824463', 'tenant_id': '77f32c81616e4894b4085235e16d9732', 'project_id': '77f32c81616e4894b4085235e16d9732', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17695470', 'ctest-vn-50824463'], 'port_security_enabled': True, 'description': ''}}
2026-04-22 14:44:18,300 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b858ebb-d7e8-4c53-a393-9d753835f609', 'name': '', 'tenant_id': '77f32c81616e4894b4085235e16d9732', 'network_id': '9f9bd662-2050-4861-af7b-4c23bff41109', 'ip_version': 4, 'cidr': '125.161.122.128/26', 'allocation_pools': [{'start': '125.161.122.130', 'end': '125.161.122.190'}], 'gateway_ip': '125.161.122.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.161.122.130', 'tags': [], 'project_id': '77f32c81616e4894b4085235e16d9732'}}
2026-04-22 14:44:18,328 - INFO - Created VN ctest-vn-50824463
2026-04-22 14:44:18,385 - DEBUG - VN ctest-vn-50824463 UUID is 9f9bd662-2050-4861-af7b-4c23bff41109
2026-04-22 14:44:18,515 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17695470:ctest-vn-77215098, 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-17695470:ctest-vn-50824463, 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-22 14:44:18,857 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4c1c673c-cb49-4444-8754-1742e55444ae', 'name': 'ctest-vn-77215098', 'tenant_id': '77f32c81616e4894b4085235e16d9732', 'project_id': '77f32c81616e4894b4085235e16d9732', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c364d264-a38a-4f14-9a22-c10d8c60f3fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17695470', 'ctest-vn-77215098'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17695470', 'ctest-policy-allow-all-49608263']], 'subnet_ipam': [{'subnet_cidr': '128.173.6.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-22 14:44:19,130 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9f9bd662-2050-4861-af7b-4c23bff41109', 'name': 'ctest-vn-50824463', 'tenant_id': '77f32c81616e4894b4085235e16d9732', 'project_id': '77f32c81616e4894b4085235e16d9732', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b858ebb-d7e8-4c53-a393-9d753835f609'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17695470', 'ctest-vn-50824463'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17695470', 'ctest-policy-allow-all-49608263']], 'subnet_ipam': [{'subnet_cidr': '125.161.122.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-22 14:44:19,305 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-22 14:44:19,652 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-22 14:44:19,691 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0a99ea53-9b50-4020-aae0-beacab2a64cd
2026-04-22 14:44:19,709 - DEBUG - Requesting: http://10.0.0.50:8082/project/77f32c81-616e-4894-b408-5235e16d9732
2026-04-22 14:44:19,789 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4c1c673c-cb49-4444-8754-1742e55444ae
2026-04-22 14:44:19,805 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4c1c673c-cb49-4444-8754-1742e55444ae
2026-04-22 14:44:19,819 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/945bfa8f-f999-451a-853e-f2bad192ac7a
2026-04-22 14:44:19,834 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/945bfa8f-f999-451a-853e-f2bad192ac7a
2026-04-22 14:44:19,845 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4a6158d2-acc8-4153-899c-4b49dae95dfe
2026-04-22 14:44:19,854 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-22 14:44:19,854 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4c1c673c-cb49-4444-8754-1742e55444ae
2026-04-22 14:44:19,867 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/945bfa8f-f999-451a-853e-f2bad192ac7a
2026-04-22 14:44:19,888 - INFO - Verified VN network id 11 for VN 4c1c673c-cb49-4444-8754-1742e55444ae
2026-04-22 14:44:19,888 - INFO - Verifications in API Server for VN ctest-vn-77215098 passed
2026-04-22 14:44:19,888 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4c1c673c-cb49-4444-8754-1742e55444ae
2026-04-22 14:44:19,901 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/945bfa8f-f999-451a-853e-f2bad192ac7a
2026-04-22 14:44:19,912 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/945bfa8f-f999-451a-853e-f2bad192ac7a
2026-04-22 14:44:19,921 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4a6158d2-acc8-4153-899c-4b49dae95dfe
2026-04-22 14:44:19,938 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17695470:ctest-vn-77215098', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17695470', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5484371957036696644', 'uuid-lslong': '9751444669246751918'}, 'enable': 'true', 'created': '2026-04-22T14:44:17', 'last-modified': '2026-04-22T14:44:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.109309'}
2026-04-22 14:44:19,945 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-22 14:44:19,945 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77215098 passed
2026-04-22 14:44:19,946 - DEBUG - ====Verifying policy data for ctest-vn-77215098 in API_Server ======
2026-04-22 14:44:19,946 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-22 14:44:19,952 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0a99ea53-9b50-4020-aae0-beacab2a64cd
2026-04-22 14:44:19,966 - DEBUG - Requesting: http://10.0.0.50:8082/project/77f32c81-616e-4894-b408-5235e16d9732
2026-04-22 14:44:20,046 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4c1c673c-cb49-4444-8754-1742e55444ae
2026-04-22 14:44:20,055 - DEBUG - ==>Verifying data for policy with id: 010206d4-8d3a-42d5-9949-a4f549109a0c, fqn: ['default-domain', 'ctest-TestBasicPolicy-17695470', 'ctest-policy-allow-all-49608263']
2026-04-22 14:44:20,056 - INFO - VN ctest-vn-77215098 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-22 14:44:20,056 - DEBUG - Verifying the vn in opserver
2026-04-22 14:44:20,056 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17695470:ctest-vn-77215098 virtual network link through opserver 10.0.0.50
2026-04-22 14:44:20,056 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-22 14:44:20,405 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-22 14:44:20,494 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17695470:ctest-vn-77215098', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17695470:ctest-vn-77215098?flat'}
2026-04-22 14:44:20,494 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17695470:ctest-vn-77215098 is found in opserver
2026-04-22 14:44:20,507 - DEBUG - Do not have enough data to verify VN in agent
2026-04-22 14:44:20,514 - DEBUG - VRF ids for VN ctest-vn-77215098: {}
2026-04-22 14:44:20,514 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-22 14:44:20,522 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0a99ea53-9b50-4020-aae0-beacab2a64cd
2026-04-22 14:44:20,543 - DEBUG - Requesting: http://10.0.0.50:8082/project/77f32c81-616e-4894-b408-5235e16d9732
2026-04-22 14:44:20,627 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9f9bd662-2050-4861-af7b-4c23bff41109
2026-04-22 14:44:20,644 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9f9bd662-2050-4861-af7b-4c23bff41109
2026-04-22 14:44:20,655 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e8d2ce35-2250-4b1d-8c3d-e84129a29cac
2026-04-22 14:44:20,663 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e8d2ce35-2250-4b1d-8c3d-e84129a29cac
2026-04-22 14:44:20,670 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dda53da0-5cba-4403-87b4-a9090ced2e62
2026-04-22 14:44:20,677 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-22 14:44:20,677 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9f9bd662-2050-4861-af7b-4c23bff41109
2026-04-22 14:44:20,686 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e8d2ce35-2250-4b1d-8c3d-e84129a29cac
2026-04-22 14:44:20,706 - INFO - Verified VN network id 12 for VN 9f9bd662-2050-4861-af7b-4c23bff41109
2026-04-22 14:44:20,706 - INFO - Verifications in API Server for VN ctest-vn-50824463 passed
2026-04-22 14:44:20,706 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9f9bd662-2050-4861-af7b-4c23bff41109
2026-04-22 14:44:20,722 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e8d2ce35-2250-4b1d-8c3d-e84129a29cac
2026-04-22 14:44:20,733 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e8d2ce35-2250-4b1d-8c3d-e84129a29cac
2026-04-22 14:44:20,742 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/dda53da0-5cba-4403-87b4-a9090ced2e62
2026-04-22 14:44:20,757 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17695470:ctest-vn-50824463', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17695470', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11501021790357964897', 'uuid-lslong': '12644784095200809225'}, 'enable': 'true', 'created': '2026-04-22T14:44:18', 'last-modified': '2026-04-22T14:44:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.670711'}
2026-04-22 14:44:20,765 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-22 14:44:20,765 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50824463 passed
2026-04-22 14:44:20,765 - DEBUG - ====Verifying policy data for ctest-vn-50824463 in API_Server ======
2026-04-22 14:44:20,765 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-04-22 14:44:20,772 - DEBUG - Requesting: http://10.0.0.50:8082/domain/0a99ea53-9b50-4020-aae0-beacab2a64cd
2026-04-22 14:44:20,788 - DEBUG - Requesting: http://10.0.0.50:8082/project/77f32c81-616e-4894-b408-5235e16d9732
2026-04-22 14:44:20,867 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9f9bd662-2050-4861-af7b-4c23bff41109
2026-04-22 14:44:20,877 - DEBUG - ==>Verifying data for policy with id: 010206d4-8d3a-42d5-9949-a4f549109a0c, fqn: ['default-domain', 'ctest-TestBasicPolicy-17695470', 'ctest-policy-allow-all-49608263']
2026-04-22 14:44:20,877 - INFO - VN ctest-vn-50824463 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-22 14:44:20,877 - DEBUG - Verifying the vn in opserver
2026-04-22 14:44:20,877 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17695470:ctest-vn-50824463 virtual network link through opserver 10.0.0.50
2026-04-22 14:44:20,877 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-04-22 14:44:20,887 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17695470:ctest-vn-50824463', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17695470:ctest-vn-50824463?flat'}
2026-04-22 14:44:20,887 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17695470:ctest-vn-50824463 is found in opserver
2026-04-22 14:44:20,901 - DEBUG - Do not have enough data to verify VN in agent
2026-04-22 14:44:20,907 - DEBUG - VRF ids for VN ctest-vn-50824463: {}
2026-04-22 14:44:20,993 - DEBUG - Services list from nova: [