2026-04-17 13:24:06,041 - INFO - Domain Default found not creating 2026-04-17 13:24:06,232 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-09849910 not found, creating it 2026-04-17 13:24:06,740 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-09849910, ID : 12ff5c47-5875-453d-9e00-12a5f3c4f280 2026-04-17 13:24:08,344 - INFO - ================================================================================ 2026-04-17 13:24:08,344 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-17 13:24:08,613 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-04-17 13:24:08,613 - INFO - Initial checks done. Running the testcase now 2026-04-17 13:24:08,613 - INFO - 2026-04-17 13:24:08,614 - INFO - ================================================================================ 2026-04-17 13:24:08,614 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-17 13:24:08,614 - 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-04-17 13:24:08,903 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-04-17 13:24:08,903 - INFO - Initial checks done. Running the testcase now 2026-04-17 13:24:08,903 - INFO - 2026-04-17 13:24:09,283 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09849910:ctest-vn4-79339844, 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-09849910:ctest-vn4-79339844, 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-09849910:ctest-vn4-79339844, 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-09849910:ctest-vn4-79339844, 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-17 13:24:09,827 - DEBUG - Response for create_network : {'network': {'id': '6391d156-acb4-4050-9b47-bfbb7efa3390', 'name': 'ctest-vn4-79339844', 'tenant_id': '12ff5c475875453d9e0012a5f3c4f280', 'project_id': '12ff5c475875453d9e0012a5f3c4f280', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09849910', 'ctest-vn4-79339844'], 'port_security_enabled': True, 'description': ''}} 2026-04-17 13:24:10,008 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f5bd28d4-be18-4d89-b92a-a6d2fb24742d', 'name': '', 'tenant_id': '12ff5c475875453d9e0012a5f3c4f280', 'network_id': '6391d156-acb4-4050-9b47-bfbb7efa3390', 'ip_version': 4, 'cidr': '4.76.36.64/26', 'allocation_pools': [{'start': '4.76.36.66', 'end': '4.76.36.126'}], 'gateway_ip': '4.76.36.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.76.36.66', 'tags': [], 'project_id': '12ff5c475875453d9e0012a5f3c4f280'}} 2026-04-17 13:24:10,217 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c1ad046-bd5b-4daf-8289-339d7de74b5e', 'name': '', 'tenant_id': '12ff5c475875453d9e0012a5f3c4f280', 'network_id': '6391d156-acb4-4050-9b47-bfbb7efa3390', 'ip_version': 6, 'cidr': '23f2:9ee2:1e12:f30d:c879:3f74::/96', 'allocation_pools': [{'start': '23f2:9ee2:1e12:f30d:c879:3f74:0:2', 'end': '23f2:9ee2:1e12:f30d:c879:3f74:ffff:fffe'}], 'gateway_ip': '23f2:9ee2:1e12:f30d:c879:3f74:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23f2:9ee2:1e12:f30d:c879:3f74:0:2', 'tags': [], 'project_id': '12ff5c475875453d9e0012a5f3c4f280'}} 2026-04-17 13:24:10,242 - INFO - Created VN ctest-vn4-79339844 2026-04-17 13:24:10,298 - DEBUG - VN ctest-vn4-79339844 UUID is 6391d156-acb4-4050-9b47-bfbb7efa3390 2026-04-17 13:24:10,556 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6391d156-acb4-4050-9b47-bfbb7efa3390', 'name': 'ctest-vn4-79339844', 'tenant_id': '12ff5c475875453d9e0012a5f3c4f280', 'project_id': '12ff5c475875453d9e0012a5f3c4f280', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f5bd28d4-be18-4d89-b92a-a6d2fb24742d', '8c1ad046-bd5b-4daf-8289-339d7de74b5e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09849910', 'ctest-vn4-79339844'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09849910', 'ctest-policy1-84329605']], 'subnet_ipam': [{'subnet_cidr': '4.76.36.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '23f2:9ee2:1e12:f30d:c879:3f74::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-17 13:24:10,722 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-17 13:24:11,032 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-17 13:24:11,067 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f25cce66-0aa5-4658-a604-241e725f223e 2026-04-17 13:24:11,083 - DEBUG - Requesting: http://10.0.0.50:8082/project/12ff5c47-5875-453d-9e00-12a5f3c4f280 2026-04-17 13:24:11,161 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6391d156-acb4-4050-9b47-bfbb7efa3390 2026-04-17 13:24:11,174 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6391d156-acb4-4050-9b47-bfbb7efa3390 2026-04-17 13:24:11,184 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2e007768-9264-4b26-9190-c8a00f606afb 2026-04-17 13:24:11,192 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2e007768-9264-4b26-9190-c8a00f606afb 2026-04-17 13:24:11,200 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b4c2dc63-7717-4846-921b-224723fe40df 2026-04-17 13:24:11,209 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-17 13:24:11,209 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6391d156-acb4-4050-9b47-bfbb7efa3390 2026-04-17 13:24:11,221 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2e007768-9264-4b26-9190-c8a00f606afb 2026-04-17 13:24:11,239 - INFO - Verified VN network id 12 for VN 6391d156-acb4-4050-9b47-bfbb7efa3390 2026-04-17 13:24:11,239 - INFO - Verifications in API Server for VN ctest-vn4-79339844 passed 2026-04-17 13:24:11,239 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6391d156-acb4-4050-9b47-bfbb7efa3390 2026-04-17 13:24:11,251 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2e007768-9264-4b26-9190-c8a00f606afb 2026-04-17 13:24:11,261 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2e007768-9264-4b26-9190-c8a00f606afb 2026-04-17 13:24:11,270 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b4c2dc63-7717-4846-921b-224723fe40df 2026-04-17 13:24:11,284 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09849910:ctest-vn4-79339844', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-09849910', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7174745851572797520', 'uuid-lslong': '11189122611235402640'}, 'enable': 'true', 'created': '2026-04-17T13:24:09', 'last-modified': '2026-04-17T13:24:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.771539'} 2026-04-17 13:24:11,292 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-17 13:24:11,292 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-79339844 passed 2026-04-17 13:24:11,292 - DEBUG - ====Verifying policy data for ctest-vn4-79339844 in API_Server ====== 2026-04-17 13:24:11,292 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-17 13:24:11,304 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f25cce66-0aa5-4658-a604-241e725f223e 2026-04-17 13:24:11,316 - DEBUG - Requesting: http://10.0.0.50:8082/project/12ff5c47-5875-453d-9e00-12a5f3c4f280 2026-04-17 13:24:11,393 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6391d156-acb4-4050-9b47-bfbb7efa3390 2026-04-17 13:24:11,403 - DEBUG - ==>Verifying data for policy with id: c5685f15-0b95-4f0d-9e83-b19cdd4bac24, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09849910', 'ctest-policy1-84329605'] 2026-04-17 13:24:11,404 - INFO - VN ctest-vn4-79339844 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-17 13:24:11,404 - DEBUG - Verifying the vn in opserver 2026-04-17 13:24:11,404 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09849910:ctest-vn4-79339844 virtual network link through opserver 10.0.0.50 2026-04-17 13:24:11,404 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-17 13:24:11,702 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-17 13:24:11,775 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09849910:ctest-vn4-79339844', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09849910:ctest-vn4-79339844?flat'} 2026-04-17 13:24:11,775 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09849910:ctest-vn4-79339844 is found in opserver 2026-04-17 13:24:11,784 - DEBUG - Do not have enough data to verify VN in agent 2026-04-17 13:24:11,790 - DEBUG - VRF ids for VN ctest-vn4-79339844: {} 2026-04-17 13:24:11,790 - DEBUG - ====Verifying data for ctest-policy1-84329605 in API_Server ====== 2026-04-17 13:24:11,791 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-17 13:24:11,797 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f25cce66-0aa5-4658-a604-241e725f223e 2026-04-17 13:24:11,809 - DEBUG - Requesting: http://10.0.0.50:8082/project/12ff5c47-5875-453d-9e00-12a5f3c4f280 2026-04-17 13:24:11,882 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/c5685f15-0b95-4f0d-9e83-b19cdd4bac24 2026-04-17 13:24:11,893 - INFO - Verified policy ctest-policy1-84329605 in API Server, Result: True 2026-04-17 13:24:11,893 - INFO - Done with setup and verification, moving onto test .. 2026-04-17 13:24:11,902 - INFO - Deleting VN ctest-vn4-79339844 2026-04-17 13:24:12,060 - DEBUG - Response for deleting network () 2026-04-17 13:24:12,061 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/2e007768-9264-4b26-9190-c8a00f606afb 2026-04-17 13:24:12,068 - DEBUG - Response Code: 404 2026-04-17 13:24:12,068 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-17 13:24:12,075 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f25cce66-0aa5-4658-a604-241e725f223e 2026-04-17 13:24:12,132 - DEBUG - Requesting: http://10.0.0.50:8082/project/12ff5c47-5875-453d-9e00-12a5f3c4f280 2026-04-17 13:24:12,206 - INFO - Validated that VN ctest-vn4-79339844 is not found in API Server 2026-04-17 13:24:12,217 - DEBUG - VN ctest-vn4-79339844 is not present in Agent 10.0.0.50 2026-04-17 13:24:12,218 - INFO - Validated that VN ctest-vn4-79339844 is not in any agent 2026-04-17 13:24:12,232 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-79339844 info 2026-04-17 13:24:12,259 - INFO - Deleted policy ctest-policy1-84329605 2026-04-17 13:24:12,425 - DEBUG - policy ctest-policy1-84329605 is not found in API Server 2026-04-17 13:24:12,683 - DEBUG - No XMPP flaps were noticed during the test 2026-04-17 13:24:12,684 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-04-17 13:24:12,684 - INFO - -------------------------------------------------------------------------------- 2026-04-17 13:24:12,971 - DEBUG - No XMPP flaps were noticed during the test 2026-04-17 13:24:12,971 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-04-17 13:24:12,971 - INFO - -------------------------------------------------------------------------------- 2026-04-17 13:24:13,690 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-09849910, ID : 12ff5c47-5875-453d-9e00-12a5f3c4f280