2026-03-19 06:16:12,037 - INFO - Domain Default found not creating 2026-03-19 06:16:12,259 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-23889495 not found, creating it 2026-03-19 06:16:12,896 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-23889495, ID : 2f5d84ee-83b6-488a-966c-f84ecbfd01a7 2026-03-19 06:16:14,763 - INFO - ================================================================================ 2026-03-19 06:16:14,763 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 06:16:16,070 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0', '10.20.0.254': '0'}, '10.0.0.22': {'10.20.0.254': '0', '10.20.0.17': '0'}} with 2026-03-19 06:16:16,070 - INFO - Initial checks done. Running the testcase now 2026-03-19 06:16:16,070 - INFO - 2026-03-19 06:16:16,070 - INFO - ================================================================================ 2026-03-19 06:16:16,070 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 06:16:16,070 - INFO - TEST DESCRIPTION : This tests the following scenarios. 1. Test to validate that policy removal will fail when it referenced with VN. 2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs. 3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs. 2026-03-19 06:16:17,363 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0', '10.20.0.254': '0'}, '10.0.0.22': {'10.20.0.254': '0', '10.20.0.17': '0'}} with 2026-03-19 06:16:17,363 - INFO - Initial checks done. Running the testcase now 2026-03-19 06:16:17,363 - INFO - 2026-03-19 06:16:17,760 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23889495:ctest-vn4-69452156, 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-TestBasicPolicyNegativeIpv4v6-23889495:ctest-vn4-69452156, 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, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23889495:ctest-vn4-69452156, 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-TestBasicPolicyNegativeIpv4v6-23889495:ctest-vn4-69452156, 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-03-19 06:16:18,474 - DEBUG - Response for create_network : {'network': {'id': 'cf7bd057-5f45-4a97-b762-d560a8f0813b', 'name': 'ctest-vn4-69452156', 'tenant_id': '2f5d84ee83b6488a966cf84ecbfd01a7', 'project_id': '2f5d84ee83b6488a966cf84ecbfd01a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23889495', 'ctest-vn4-69452156'], 'port_security_enabled': True, 'description': ''}} 2026-03-19 06:16:18,819 - DEBUG - Response for create_subnet : {'subnet': {'id': '927afcbd-fcc3-4e2f-9d36-dc487bff7664', 'name': '', 'tenant_id': '2f5d84ee83b6488a966cf84ecbfd01a7', 'network_id': 'cf7bd057-5f45-4a97-b762-d560a8f0813b', 'ip_version': 4, 'cidr': '143.254.135.128/26', 'allocation_pools': [{'start': '143.254.135.130', 'end': '143.254.135.190'}], 'gateway_ip': '143.254.135.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.254.135.130', 'tags': [], 'project_id': '2f5d84ee83b6488a966cf84ecbfd01a7'}} 2026-03-19 06:16:19,191 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fbc33b31-c767-4957-a7e7-b38662abc84b', 'name': '', 'tenant_id': '2f5d84ee83b6488a966cf84ecbfd01a7', 'network_id': 'cf7bd057-5f45-4a97-b762-d560a8f0813b', 'ip_version': 6, 'cidr': '2129:fb61:1abe:1896:244b:5574::/96', 'allocation_pools': [{'start': '2129:fb61:1abe:1896:244b:5574:0:2', 'end': '2129:fb61:1abe:1896:244b:5574:ffff:fffe'}], 'gateway_ip': '2129:fb61:1abe:1896:244b:5574:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2129:fb61:1abe:1896:244b:5574:0:2', 'tags': [], 'project_id': '2f5d84ee83b6488a966cf84ecbfd01a7'}} 2026-03-19 06:16:19,226 - INFO - Created VN ctest-vn4-69452156 2026-03-19 06:16:19,241 - DEBUG - VN ctest-vn4-69452156 UUID is cf7bd057-5f45-4a97-b762-d560a8f0813b 2026-03-19 06:16:19,537 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cf7bd057-5f45-4a97-b762-d560a8f0813b', 'name': 'ctest-vn4-69452156', 'tenant_id': '2f5d84ee83b6488a966cf84ecbfd01a7', 'project_id': '2f5d84ee83b6488a966cf84ecbfd01a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['927afcbd-fcc3-4e2f-9d36-dc487bff7664', 'fbc33b31-c767-4957-a7e7-b38662abc84b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23889495', 'ctest-vn4-69452156'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23889495', 'ctest-policy1-72675851']], 'subnet_ipam': [{'subnet_cidr': '143.254.135.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2129:fb61:1abe:1896:244b:5574::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-19 06:16:19,649 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-19 06:16:19,963 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-19 06:16:20,013 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2f64fd01-c025-4a27-8d93-5364b6aae213 2026-03-19 06:16:20,037 - DEBUG - Requesting: http://10.0.0.38:8082/project/2f5d84ee-83b6-488a-966c-f84ecbfd01a7 2026-03-19 06:16:20,159 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf7bd057-5f45-4a97-b762-d560a8f0813b 2026-03-19 06:16:20,186 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf7bd057-5f45-4a97-b762-d560a8f0813b 2026-03-19 06:16:20,199 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f104c0e3-1102-4b7a-ac01-de2d0cb3d7c9 2026-03-19 06:16:20,209 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f104c0e3-1102-4b7a-ac01-de2d0cb3d7c9 2026-03-19 06:16:20,221 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0abeb19c-a162-4ecc-b1b1-7182648e6d57 2026-03-19 06:16:20,232 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-19 06:16:20,232 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf7bd057-5f45-4a97-b762-d560a8f0813b 2026-03-19 06:16:20,247 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f104c0e3-1102-4b7a-ac01-de2d0cb3d7c9 2026-03-19 06:16:20,271 - INFO - Verified VN network id 11 for VN cf7bd057-5f45-4a97-b762-d560a8f0813b 2026-03-19 06:16:20,271 - INFO - Verifications in API Server for VN ctest-vn4-69452156 passed 2026-03-19 06:16:20,271 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf7bd057-5f45-4a97-b762-d560a8f0813b 2026-03-19 06:16:20,288 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f104c0e3-1102-4b7a-ac01-de2d0cb3d7c9 2026-03-19 06:16:20,300 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f104c0e3-1102-4b7a-ac01-de2d0cb3d7c9 2026-03-19 06:16:20,311 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0abeb19c-a162-4ecc-b1b1-7182648e6d57 2026-03-19 06:16:20,328 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23889495:ctest-vn4-69452156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-23889495', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14950772461665602199', 'uuid-lslong': '13214358867786367291'}, 'enable': 'true', 'created': '2026-03-19T06:16:18', 'last-modified': '2026-03-19T06:16:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.857020'} 2026-03-19 06:16:20,334 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-19 06:16:20,342 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23889495:ctest-vn4-69452156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-23889495', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14950772461665602199', 'uuid-lslong': '13214358867786367291'}, 'enable': 'true', 'created': '2026-03-19T06:16:18', 'last-modified': '2026-03-19T06:16:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.869446'} 2026-03-19 06:16:20,350 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-19 06:16:20,356 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23889495:ctest-vn4-69452156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-23889495', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14950772461665602199', 'uuid-lslong': '13214358867786367291'}, 'enable': 'true', 'created': '2026-03-19T06:16:18', 'last-modified': '2026-03-19T06:16:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.883712'} 2026-03-19 06:16:20,363 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-03-19 06:16:20,363 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-69452156 passed 2026-03-19 06:16:20,363 - DEBUG - ====Verifying policy data for ctest-vn4-69452156 in API_Server ====== 2026-03-19 06:16:20,363 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-19 06:16:20,370 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2f64fd01-c025-4a27-8d93-5364b6aae213 2026-03-19 06:16:20,383 - DEBUG - Requesting: http://10.0.0.38:8082/project/2f5d84ee-83b6-488a-966c-f84ecbfd01a7 2026-03-19 06:16:20,495 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cf7bd057-5f45-4a97-b762-d560a8f0813b 2026-03-19 06:16:20,511 - DEBUG - ==>Verifying data for policy with id: c74c7f49-89dc-48d1-8d25-69a79bd4735c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-23889495', 'ctest-policy1-72675851'] 2026-03-19 06:16:20,511 - INFO - VN ctest-vn4-69452156 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-19 06:16:20,511 - DEBUG - Verifying the vn in opserver 2026-03-19 06:16:20,511 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23889495:ctest-vn4-69452156 virtual network link through opserver 10.0.0.38 2026-03-19 06:16:20,511 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-19 06:16:20,837 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-19 06:16:20,914 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23889495:ctest-vn4-69452156', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23889495:ctest-vn4-69452156?flat'} 2026-03-19 06:16:20,914 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23889495:ctest-vn4-69452156 virtual network link through opserver 10.0.0.50 2026-03-19 06:16:20,914 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-19 06:16:21,219 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-19 06:16:21,318 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23889495:ctest-vn4-69452156', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23889495:ctest-vn4-69452156?flat'} 2026-03-19 06:16:21,318 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23889495:ctest-vn4-69452156 virtual network link through opserver 10.0.0.33 2026-03-19 06:16:21,318 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-19 06:16:21,653 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-19 06:16:21,729 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23889495:ctest-vn4-69452156', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23889495:ctest-vn4-69452156?flat'} 2026-03-19 06:16:21,730 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-23889495:ctest-vn4-69452156 is found in opserver 2026-03-19 06:16:21,754 - DEBUG - Do not have enough data to verify VN in agent 2026-03-19 06:16:21,766 - DEBUG - VRF ids for VN ctest-vn4-69452156: {} 2026-03-19 06:16:21,767 - DEBUG - ====Verifying data for ctest-policy1-72675851 in API_Server ====== 2026-03-19 06:16:21,767 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-19 06:16:21,777 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2f64fd01-c025-4a27-8d93-5364b6aae213 2026-03-19 06:16:21,796 - DEBUG - Requesting: http://10.0.0.38:8082/project/2f5d84ee-83b6-488a-966c-f84ecbfd01a7 2026-03-19 06:16:21,917 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/c74c7f49-89dc-48d1-8d25-69a79bd4735c 2026-03-19 06:16:21,934 - INFO - Verified policy ctest-policy1-72675851 in API Server, Result: True 2026-03-19 06:16:21,934 - INFO - Done with setup and verification, moving onto test .. 2026-03-19 06:16:21,950 - INFO - Deleting VN ctest-vn4-69452156 2026-03-19 06:16:22,211 - DEBUG - Response for deleting network () 2026-03-19 06:16:22,211 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f104c0e3-1102-4b7a-ac01-de2d0cb3d7c9 2026-03-19 06:16:22,218 - DEBUG - Response Code: 404 2026-03-19 06:16:22,219 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-19 06:16:22,234 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2f64fd01-c025-4a27-8d93-5364b6aae213 2026-03-19 06:16:22,252 - DEBUG - Requesting: http://10.0.0.38:8082/project/2f5d84ee-83b6-488a-966c-f84ecbfd01a7 2026-03-19 06:16:22,359 - INFO - Validated that VN ctest-vn4-69452156 is not found in API Server 2026-03-19 06:16:22,370 - DEBUG - VN ctest-vn4-69452156 is not present in Agent 10.0.0.249 2026-03-19 06:16:22,381 - DEBUG - VN ctest-vn4-69452156 is not present in Agent 10.0.0.22 2026-03-19 06:16:22,381 - INFO - Validated that VN ctest-vn4-69452156 is not in any agent 2026-03-19 06:16:22,421 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-69452156 info 2026-03-19 06:16:22,474 - INFO - Deleted policy ctest-policy1-72675851 2026-03-19 06:16:22,690 - DEBUG - policy ctest-policy1-72675851 is not found in API Server 2026-03-19 06:16:23,990 - DEBUG - No XMPP flaps were noticed during the test
2026-03-19 06:16:23,991 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-03-19 06:16:23,991 - INFO - -------------------------------------------------------------------------------- 2026-03-19 06:16:25,282 - DEBUG - No XMPP flaps were noticed during the test
2026-03-19 06:16:25,282 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:11]
2026-03-19 06:16:25,282 - INFO - -------------------------------------------------------------------------------- 2026-03-19 06:16:26,137 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-23889495, ID : 2f5d84ee-83b6-488a-966c-f84ecbfd01a7