2025-10-09 10:17:04,780 - INFO - Domain Default found not creating
2025-10-09 10:17:04,912 - INFO - Project ctest-TestBasicPolicy-12310156 not found, creating it
2025-10-09 10:17:05,341 - INFO - Created Project:ctest-TestBasicPolicy-12310156, ID : b92e9395-2da7-4da5-9829-89913d947024
2025-10-09 10:17:06,694 - INFO - ================================================================================
2025-10-09 10:17:06,694 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 10:17:06,694 - 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-10-09 10:17:06,952 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-10-09 10:17:06,952 - INFO - Initial checks done. Running the testcase now
2025-10-09 10:17:06,952 - INFO -
2025-10-09 10:17:07,459 - DEBUG - Response for create_network : {'network': {'id': 'be447291-4c83-4a6e-8d98-938da3387f55', 'name': 'ctest-vn-47956521', 'tenant_id': 'b92e93952da74da5982989913d947024', 'project_id': 'b92e93952da74da5982989913d947024', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12310156', 'ctest-vn-47956521'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 10:17:07,666 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e205d18-02fc-45cd-8e08-44c02fd4f8dd', 'name': '', 'tenant_id': 'b92e93952da74da5982989913d947024', 'network_id': 'be447291-4c83-4a6e-8d98-938da3387f55', 'ip_version': 4, 'cidr': '110.147.159.64/26', 'allocation_pools': [{'start': '110.147.159.66', 'end': '110.147.159.126'}], 'gateway_ip': '110.147.159.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '110.147.159.66', 'tags': [], 'project_id': 'b92e93952da74da5982989913d947024'}}
2025-10-09 10:17:07,684 - INFO - Created VN ctest-vn-47956521
2025-10-09 10:17:07,736 - DEBUG - VN ctest-vn-47956521 UUID is be447291-4c83-4a6e-8d98-938da3387f55
2025-10-09 10:17:08,038 - DEBUG - Response for create_network : {'network': {'id': '92020100-6af9-41e1-8249-e4f5f9484888', 'name': 'ctest-vn-79858790', 'tenant_id': 'b92e93952da74da5982989913d947024', 'project_id': 'b92e93952da74da5982989913d947024', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12310156', 'ctest-vn-79858790'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 10:17:08,252 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd2a3e1d4-5e18-414c-bdaf-d2b38a093bac', 'name': '', 'tenant_id': 'b92e93952da74da5982989913d947024', 'network_id': '92020100-6af9-41e1-8249-e4f5f9484888', 'ip_version': 4, 'cidr': '15.173.47.192/26', 'allocation_pools': [{'start': '15.173.47.194', 'end': '15.173.47.254'}], 'gateway_ip': '15.173.47.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.173.47.194', 'tags': [], 'project_id': 'b92e93952da74da5982989913d947024'}}
2025-10-09 10:17:08,268 - INFO - Created VN ctest-vn-79858790
2025-10-09 10:17:08,319 - DEBUG - VN ctest-vn-79858790 UUID is 92020100-6af9-41e1-8249-e4f5f9484888
2025-10-09 10:17:08,467 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-12310156:ctest-vn-47956521, 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-12310156:ctest-vn-79858790, 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-10-09 10:17:08,755 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'be447291-4c83-4a6e-8d98-938da3387f55', 'name': 'ctest-vn-47956521', 'tenant_id': 'b92e93952da74da5982989913d947024', 'project_id': 'b92e93952da74da5982989913d947024', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7e205d18-02fc-45cd-8e08-44c02fd4f8dd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12310156', 'ctest-vn-47956521'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12310156', 'ctest-policy-allow-all-47611518']], 'subnet_ipam': [{'subnet_cidr': '110.147.159.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 10:17:09,025 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '92020100-6af9-41e1-8249-e4f5f9484888', 'name': 'ctest-vn-79858790', 'tenant_id': 'b92e93952da74da5982989913d947024', 'project_id': 'b92e93952da74da5982989913d947024', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d2a3e1d4-5e18-414c-bdaf-d2b38a093bac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-12310156', 'ctest-vn-79858790'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-12310156', 'ctest-policy-allow-all-47611518']], 'subnet_ipam': [{'subnet_cidr': '15.173.47.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 10:17:09,163 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 10:17:09,453 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 10:17:09,477 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b5735784-5c9e-40e3-941b-afdf134fe1dd
2025-10-09 10:17:09,487 - DEBUG - Requesting: http://10.0.0.254:8082/project/b92e9395-2da7-4da5-9829-89913d947024
2025-10-09 10:17:09,558 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/be447291-4c83-4a6e-8d98-938da3387f55
2025-10-09 10:17:09,567 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/be447291-4c83-4a6e-8d98-938da3387f55
2025-10-09 10:17:09,575 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/efe810fe-d0e7-46fa-aed0-b148b4a89a4a
2025-10-09 10:17:09,581 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/efe810fe-d0e7-46fa-aed0-b148b4a89a4a
2025-10-09 10:17:09,587 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3d24e262-1290-41a1-94f2-3eb08b680a4b
2025-10-09 10:17:09,592 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 10:17:09,592 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/be447291-4c83-4a6e-8d98-938da3387f55
2025-10-09 10:17:09,599 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/efe810fe-d0e7-46fa-aed0-b148b4a89a4a
2025-10-09 10:17:09,611 - INFO - Verified VN network id 12 for VN be447291-4c83-4a6e-8d98-938da3387f55
2025-10-09 10:17:09,611 - INFO - Verifications in API Server for VN ctest-vn-47956521 passed
2025-10-09 10:17:09,611 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/be447291-4c83-4a6e-8d98-938da3387f55
2025-10-09 10:17:09,619 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/efe810fe-d0e7-46fa-aed0-b148b4a89a4a
2025-10-09 10:17:09,625 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/efe810fe-d0e7-46fa-aed0-b148b4a89a4a
2025-10-09 10:17:09,631 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3d24e262-1290-41a1-94f2-3eb08b680a4b
2025-10-09 10:17:09,640 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12310156:ctest-vn-47956521', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12310156', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13710209134002129518', 'uuid-lslong': '10203067192345919317'}, 'enable': 'true', 'created': '2025-10-09T10:17:07', 'last-modified': '2025-10-09T10:17:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.899503'}
2025-10-09 10:17:09,645 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 10:17:09,645 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47956521 passed
2025-10-09 10:17:09,645 - DEBUG - ====Verifying policy data for ctest-vn-47956521 in API_Server ======
2025-10-09 10:17:09,645 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 10:17:09,650 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b5735784-5c9e-40e3-941b-afdf134fe1dd
2025-10-09 10:17:09,659 - DEBUG - Requesting: http://10.0.0.254:8082/project/b92e9395-2da7-4da5-9829-89913d947024
2025-10-09 10:17:09,728 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/be447291-4c83-4a6e-8d98-938da3387f55
2025-10-09 10:17:09,736 - DEBUG - ==>Verifying data for policy with id: 0ca564fd-a485-44cc-82a2-405f579a69bc, fqn: ['default-domain', 'ctest-TestBasicPolicy-12310156', 'ctest-policy-allow-all-47611518']
2025-10-09 10:17:09,736 - INFO - VN ctest-vn-47956521 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 10:17:09,736 - DEBUG - Verifying the vn in opserver
2025-10-09 10:17:09,736 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12310156:ctest-vn-47956521 virtual network link through opserver 10.0.0.254
2025-10-09 10:17:09,736 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-09 10:17:10,023 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-09 10:17:10,072 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12310156:ctest-vn-47956521', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12310156:ctest-vn-47956521?flat'}
2025-10-09 10:17:10,072 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12310156:ctest-vn-47956521 is found in opserver
2025-10-09 10:17:10,080 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 10:17:10,084 - DEBUG - VRF ids for VN ctest-vn-47956521: {}
2025-10-09 10:17:10,084 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 10:17:10,088 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b5735784-5c9e-40e3-941b-afdf134fe1dd
2025-10-09 10:17:10,099 - DEBUG - Requesting: http://10.0.0.254:8082/project/b92e9395-2da7-4da5-9829-89913d947024
2025-10-09 10:17:10,170 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/92020100-6af9-41e1-8249-e4f5f9484888
2025-10-09 10:17:10,183 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/92020100-6af9-41e1-8249-e4f5f9484888
2025-10-09 10:17:10,194 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/14c826f7-4802-4e65-9150-e661a700b52b
2025-10-09 10:17:10,201 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/14c826f7-4802-4e65-9150-e661a700b52b
2025-10-09 10:17:10,209 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e178e24d-08a1-481c-80d0-0cc2f3c13a49
2025-10-09 10:17:10,216 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 10:17:10,216 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/92020100-6af9-41e1-8249-e4f5f9484888
2025-10-09 10:17:10,228 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/14c826f7-4802-4e65-9150-e661a700b52b
2025-10-09 10:17:10,245 - INFO - Verified VN network id 13 for VN 92020100-6af9-41e1-8249-e4f5f9484888
2025-10-09 10:17:10,245 - INFO - Verifications in API Server for VN ctest-vn-79858790 passed
2025-10-09 10:17:10,245 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/92020100-6af9-41e1-8249-e4f5f9484888
2025-10-09 10:17:10,255 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/14c826f7-4802-4e65-9150-e661a700b52b
2025-10-09 10:17:10,261 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/14c826f7-4802-4e65-9150-e661a700b52b
2025-10-09 10:17:10,268 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e178e24d-08a1-481c-80d0-0cc2f3c13a49
2025-10-09 10:17:10,278 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-12310156:ctest-vn-79858790', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-12310156', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10520972780797247969', 'uuid-lslong': '9388286643330893960'}, 'enable': 'true', 'created': '2025-10-09T10:17:08', 'last-modified': '2025-10-09T10:17:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.321382'}
2025-10-09 10:17:10,284 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 10:17:10,284 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79858790 passed
2025-10-09 10:17:10,284 - DEBUG - ====Verifying policy data for ctest-vn-79858790 in API_Server ======
2025-10-09 10:17:10,284 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-09 10:17:10,289 - DEBUG - Requesting: http://10.0.0.254:8082/domain/b5735784-5c9e-40e3-941b-afdf134fe1dd
2025-10-09 10:17:10,300 - DEBUG - Requesting: http://10.0.0.254:8082/project/b92e9395-2da7-4da5-9829-89913d947024
2025-10-09 10:17:10,366 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/92020100-6af9-41e1-8249-e4f5f9484888
2025-10-09 10:17:10,375 - DEBUG - ==>Verifying data for policy with id: 0ca564fd-a485-44cc-82a2-405f579a69bc, fqn: ['default-domain', 'ctest-TestBasicPolicy-12310156', 'ctest-policy-allow-all-47611518']
2025-10-09 10:17:10,375 - INFO - VN ctest-vn-79858790 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 10:17:10,375 - DEBUG - Verifying the vn in opserver
2025-10-09 10:17:10,375 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-12310156:ctest-vn-79858790 virtual network link through opserver 10.0.0.254
2025-10-09 10:17:10,375 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-09 10:17:10,384 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-12310156:ctest-vn-79858790', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-12310156:ctest-vn-79858790?flat'}
2025-10-09 10:17:10,384 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-12310156:ctest-vn-79858790 is found in opserver
2025-10-09 10:17:10,392 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 10:17:10,396 - DEBUG - VRF ids for VN ctest-vn-79858790: {}
2025-10-09 10:17:10,446 - DEBUG - Services list from nova: [