2025-11-10 16:13:11,370 - INFO - Domain Default found not creating
2025-11-10 16:13:11,648 - INFO - Project ctest-TestBasicPolicy-30824854 not found, creating it
2025-11-10 16:13:12,361 - INFO - Created Project:ctest-TestBasicPolicy-30824854, ID : d9354fa9-ca18-46be-a2e5-dfd150fe1b9f
2025-11-10 16:13:14,490 - INFO - ================================================================================
2025-11-10 16:13:14,490 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-10 16:13:14,491 - 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-11-10 16:13:14,795 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with
2025-11-10 16:13:14,796 - INFO - Initial checks done. Running the testcase now
2025-11-10 16:13:14,796 - INFO -
2025-11-10 16:13:15,556 - DEBUG - Response for create_network : {'network': {'id': 'bd369597-944c-4c7e-8d53-36c57e3cc008', 'name': 'ctest-vn-93788310', 'tenant_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'project_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30824854', 'ctest-vn-93788310'], 'port_security_enabled': True, 'description': ''}}
2025-11-10 16:13:15,777 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cb0e1304-16b6-4907-b8f1-811931647d3c', 'name': '', 'tenant_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'network_id': 'bd369597-944c-4c7e-8d53-36c57e3cc008', 'ip_version': 4, 'cidr': '5.218.246.128/26', 'allocation_pools': [{'start': '5.218.246.130', 'end': '5.218.246.190'}], 'gateway_ip': '5.218.246.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.218.246.130', 'tags': [], 'project_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f'}}
2025-11-10 16:13:15,798 - INFO - Created VN ctest-vn-93788310
2025-11-10 16:13:15,850 - DEBUG - VN ctest-vn-93788310 UUID is bd369597-944c-4c7e-8d53-36c57e3cc008
2025-11-10 16:13:16,299 - DEBUG - Response for create_network : {'network': {'id': 'f8396c3f-7e41-4181-8cf2-6cf9148df1de', 'name': 'ctest-vn-81399785', 'tenant_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'project_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30824854', 'ctest-vn-81399785'], 'port_security_enabled': True, 'description': ''}}
2025-11-10 16:13:16,536 - DEBUG - Response for create_subnet : {'subnet': {'id': '7785d257-da8c-4b84-8364-8018fa246baa', 'name': '', 'tenant_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'network_id': 'f8396c3f-7e41-4181-8cf2-6cf9148df1de', 'ip_version': 4, 'cidr': '120.107.13.0/26', 'allocation_pools': [{'start': '120.107.13.2', 'end': '120.107.13.62'}], 'gateway_ip': '120.107.13.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.107.13.2', 'tags': [], 'project_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f'}}
2025-11-10 16:13:16,564 - INFO - Created VN ctest-vn-81399785
2025-11-10 16:13:16,618 - DEBUG - VN ctest-vn-81399785 UUID is f8396c3f-7e41-4181-8cf2-6cf9148df1de
2025-11-10 16:13:16,742 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-93788310, 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-30824854:ctest-vn-81399785, 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-11-10 16:13:17,112 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd369597-944c-4c7e-8d53-36c57e3cc008', 'name': 'ctest-vn-93788310', 'tenant_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'project_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cb0e1304-16b6-4907-b8f1-811931647d3c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30824854', 'ctest-vn-93788310'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30824854', 'ctest-policy-allow-all-39428122']], 'subnet_ipam': [{'subnet_cidr': '5.218.246.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-10 16:13:17,385 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f8396c3f-7e41-4181-8cf2-6cf9148df1de', 'name': 'ctest-vn-81399785', 'tenant_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'project_id': 'd9354fa9ca1846bea2e5dfd150fe1b9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7785d257-da8c-4b84-8364-8018fa246baa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-30824854', 'ctest-vn-81399785'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-30824854', 'ctest-policy-allow-all-39428122']], 'subnet_ipam': [{'subnet_cidr': '120.107.13.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-10 16:13:17,574 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-10 16:13:17,875 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-10 16:13:17,944 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1dbc2da7-f6b7-4e72-a5de-730a43c64aa6
2025-11-10 16:13:17,977 - DEBUG - Requesting: http://10.0.0.27:8082/project/d9354fa9-ca18-46be-a2e5-dfd150fe1b9f
2025-11-10 16:13:18,106 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bd369597-944c-4c7e-8d53-36c57e3cc008
2025-11-10 16:13:18,123 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bd369597-944c-4c7e-8d53-36c57e3cc008
2025-11-10 16:13:18,140 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0b5e6717-ec1e-45a9-b74c-122d144448b0
2025-11-10 16:13:18,154 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0b5e6717-ec1e-45a9-b74c-122d144448b0
2025-11-10 16:13:18,166 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a9d99534-a994-4945-87a8-16d544e9224b
2025-11-10 16:13:18,177 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 16:13:18,177 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bd369597-944c-4c7e-8d53-36c57e3cc008
2025-11-10 16:13:18,194 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0b5e6717-ec1e-45a9-b74c-122d144448b0
2025-11-10 16:13:18,218 - INFO - Verified VN network id 11 for VN bd369597-944c-4c7e-8d53-36c57e3cc008
2025-11-10 16:13:18,219 - INFO - Verifications in API Server for VN ctest-vn-93788310 passed
2025-11-10 16:13:18,219 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bd369597-944c-4c7e-8d53-36c57e3cc008
2025-11-10 16:13:18,234 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0b5e6717-ec1e-45a9-b74c-122d144448b0
2025-11-10 16:13:18,246 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0b5e6717-ec1e-45a9-b74c-122d144448b0
2025-11-10 16:13:18,260 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/a9d99534-a994-4945-87a8-16d544e9224b
2025-11-10 16:13:18,282 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-93788310', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30824854', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13634249400171383934', 'uuid-lslong': '10183543404269191176'}, 'enable': 'true', 'created': '2025-11-10T16:13:15', 'last-modified': '2025-11-10T16:13:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.207231'}
2025-11-10 16:13:18,295 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-10 16:13:18,295 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93788310 passed
2025-11-10 16:13:18,296 - DEBUG - ====Verifying policy data for ctest-vn-93788310 in API_Server ======
2025-11-10 16:13:18,296 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-10 16:13:18,306 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1dbc2da7-f6b7-4e72-a5de-730a43c64aa6
2025-11-10 16:13:18,328 - DEBUG - Requesting: http://10.0.0.27:8082/project/d9354fa9-ca18-46be-a2e5-dfd150fe1b9f
2025-11-10 16:13:18,430 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/bd369597-944c-4c7e-8d53-36c57e3cc008
2025-11-10 16:13:18,454 - DEBUG - ==>Verifying data for policy with id: acf6f537-2b55-479f-a4ac-cfe153985a17, fqn: ['default-domain', 'ctest-TestBasicPolicy-30824854', 'ctest-policy-allow-all-39428122']
2025-11-10 16:13:18,454 - INFO - VN ctest-vn-93788310 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 16:13:18,454 - DEBUG - Verifying the vn in opserver
2025-11-10 16:13:18,454 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-93788310 virtual network link through opserver 10.0.0.27
2025-11-10 16:13:18,455 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-11-10 16:13:18,759 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-11-10 16:13:18,856 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-93788310', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-93788310?flat'}
2025-11-10 16:13:18,856 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-93788310 is found in opserver
2025-11-10 16:13:18,875 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 16:13:18,884 - DEBUG - VRF ids for VN ctest-vn-93788310: {}
2025-11-10 16:13:18,884 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-10 16:13:18,895 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1dbc2da7-f6b7-4e72-a5de-730a43c64aa6
2025-11-10 16:13:18,920 - DEBUG - Requesting: http://10.0.0.27:8082/project/d9354fa9-ca18-46be-a2e5-dfd150fe1b9f
2025-11-10 16:13:19,007 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f8396c3f-7e41-4181-8cf2-6cf9148df1de
2025-11-10 16:13:19,024 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f8396c3f-7e41-4181-8cf2-6cf9148df1de
2025-11-10 16:13:19,042 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4adfaa7b-7597-4928-ab84-560c191ab630
2025-11-10 16:13:19,059 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4adfaa7b-7597-4928-ab84-560c191ab630
2025-11-10 16:13:19,071 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5cb687a0-0119-4227-abdb-ee9b7167d124
2025-11-10 16:13:19,082 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 16:13:19,083 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f8396c3f-7e41-4181-8cf2-6cf9148df1de
2025-11-10 16:13:19,100 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4adfaa7b-7597-4928-ab84-560c191ab630
2025-11-10 16:13:19,137 - INFO - Verified VN network id 12 for VN f8396c3f-7e41-4181-8cf2-6cf9148df1de
2025-11-10 16:13:19,137 - INFO - Verifications in API Server for VN ctest-vn-81399785 passed
2025-11-10 16:13:19,137 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f8396c3f-7e41-4181-8cf2-6cf9148df1de
2025-11-10 16:13:19,159 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4adfaa7b-7597-4928-ab84-560c191ab630
2025-11-10 16:13:19,172 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/4adfaa7b-7597-4928-ab84-560c191ab630
2025-11-10 16:13:19,190 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/5cb687a0-0119-4227-abdb-ee9b7167d124
2025-11-10 16:13:19,218 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-81399785', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-30824854', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17886446415035580801', 'uuid-lslong': '10156299926721393118'}, 'enable': 'true', 'created': '2025-11-10T16:13:16', 'last-modified': '2025-11-10T16:13:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.863234'}
2025-11-10 16:13:19,231 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-10 16:13:19,231 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81399785 passed
2025-11-10 16:13:19,232 - DEBUG - ====Verifying policy data for ctest-vn-81399785 in API_Server ======
2025-11-10 16:13:19,232 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-11-10 16:13:19,246 - DEBUG - Requesting: http://10.0.0.27:8082/domain/1dbc2da7-f6b7-4e72-a5de-730a43c64aa6
2025-11-10 16:13:19,263 - DEBUG - Requesting: http://10.0.0.27:8082/project/d9354fa9-ca18-46be-a2e5-dfd150fe1b9f
2025-11-10 16:13:19,351 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/f8396c3f-7e41-4181-8cf2-6cf9148df1de
2025-11-10 16:13:19,369 - DEBUG - ==>Verifying data for policy with id: acf6f537-2b55-479f-a4ac-cfe153985a17, fqn: ['default-domain', 'ctest-TestBasicPolicy-30824854', 'ctest-policy-allow-all-39428122']
2025-11-10 16:13:19,370 - INFO - VN ctest-vn-81399785 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-10 16:13:19,370 - DEBUG - Verifying the vn in opserver
2025-11-10 16:13:19,370 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-81399785 virtual network link through opserver 10.0.0.27
2025-11-10 16:13:19,370 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-11-10 16:13:19,387 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-81399785', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-81399785?flat'}
2025-11-10 16:13:19,387 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-30824854:ctest-vn-81399785 is found in opserver
2025-11-10 16:13:19,402 - DEBUG - Do not have enough data to verify VN in agent
2025-11-10 16:13:19,407 - DEBUG - VRF ids for VN ctest-vn-81399785: {}
2025-11-10 16:13:19,495 - DEBUG - Services list from nova: [