2026-03-11 13:25:41,197 - INFO - Domain Default found not creating 2026-03-11 13:25:41,454 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-45601287 not found, creating it 2026-03-11 13:25:42,023 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-45601287, ID : 87d30154-8051-4121-a479-2a555acba243 2026-03-11 13:25:43,885 - INFO - ================================================================================ 2026-03-11 13:25:43,885 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-11 13:25:44,163 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-03-11 13:25:44,163 - INFO - Initial checks done. Running the testcase now 2026-03-11 13:25:44,164 - INFO - 2026-03-11 13:25:44,164 - INFO - ================================================================================ 2026-03-11 13:25:44,164 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-11 13:25:44,164 - 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-11 13:25:44,457 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-03-11 13:25:44,457 - INFO - Initial checks done. Running the testcase now 2026-03-11 13:25:44,457 - INFO - 2026-03-11 13:25:44,858 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45601287:ctest-vn4-16919497, 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-45601287:ctest-vn4-16919497, 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-45601287:ctest-vn4-16919497, 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-45601287:ctest-vn4-16919497, 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-11 13:25:45,458 - DEBUG - Response for create_network : {'network': {'id': 'fb8ba261-f3f6-42a8-b76f-89bb23087fa9', 'name': 'ctest-vn4-16919497', 'tenant_id': '87d3015480514121a4792a555acba243', 'project_id': '87d3015480514121a4792a555acba243', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45601287', 'ctest-vn4-16919497'], 'port_security_enabled': True, 'description': ''}} 2026-03-11 13:25:45,671 - DEBUG - Response for create_subnet : {'subnet': {'id': '5da7020f-0164-4320-b896-ff68b6b1af62', 'name': '', 'tenant_id': '87d3015480514121a4792a555acba243', 'network_id': 'fb8ba261-f3f6-42a8-b76f-89bb23087fa9', 'ip_version': 4, 'cidr': '17.172.128.128/26', 'allocation_pools': [{'start': '17.172.128.130', 'end': '17.172.128.190'}], 'gateway_ip': '17.172.128.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.172.128.130', 'tags': [], 'project_id': '87d3015480514121a4792a555acba243'}} 2026-03-11 13:25:45,859 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e321f653-553c-4c05-8c63-4ca2ad81f622', 'name': '', 'tenant_id': '87d3015480514121a4792a555acba243', 'network_id': 'fb8ba261-f3f6-42a8-b76f-89bb23087fa9', 'ip_version': 6, 'cidr': '3639:5112:de75:136e:8061:4fa5::/96', 'allocation_pools': [{'start': '3639:5112:de75:136e:8061:4fa5:0:2', 'end': '3639:5112:de75:136e:8061:4fa5:ffff:fffe'}], 'gateway_ip': '3639:5112:de75:136e:8061:4fa5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3639:5112:de75:136e:8061:4fa5:0:2', 'tags': [], 'project_id': '87d3015480514121a4792a555acba243'}} 2026-03-11 13:25:45,890 - INFO - Created VN ctest-vn4-16919497 2026-03-11 13:25:45,946 - DEBUG - VN ctest-vn4-16919497 UUID is fb8ba261-f3f6-42a8-b76f-89bb23087fa9 2026-03-11 13:25:46,195 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fb8ba261-f3f6-42a8-b76f-89bb23087fa9', 'name': 'ctest-vn4-16919497', 'tenant_id': '87d3015480514121a4792a555acba243', 'project_id': '87d3015480514121a4792a555acba243', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5da7020f-0164-4320-b896-ff68b6b1af62', 'e321f653-553c-4c05-8c63-4ca2ad81f622'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45601287', 'ctest-vn4-16919497'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45601287', 'ctest-policy1-71308904']], 'subnet_ipam': [{'subnet_cidr': '17.172.128.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3639:5112:de75:136e:8061:4fa5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-11 13:25:46,370 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-11 13:25:46,678 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-11 13:25:46,721 - DEBUG - Requesting: http://10.0.0.141:8082/domain/23281e85-2983-4f5a-9c1a-6e5a3f55be79 2026-03-11 13:25:46,735 - DEBUG - Requesting: http://10.0.0.141:8082/project/87d30154-8051-4121-a479-2a555acba243 2026-03-11 13:25:46,814 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/fb8ba261-f3f6-42a8-b76f-89bb23087fa9 2026-03-11 13:25:46,827 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/fb8ba261-f3f6-42a8-b76f-89bb23087fa9 2026-03-11 13:25:46,842 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/caa1cc94-7f65-4b16-b1d1-3d21a688db2e 2026-03-11 13:25:46,850 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/caa1cc94-7f65-4b16-b1d1-3d21a688db2e 2026-03-11 13:25:46,862 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/9d0c5d44-ed1b-4b8c-891d-826ed70bba47 2026-03-11 13:25:46,872 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-11 13:25:46,873 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/fb8ba261-f3f6-42a8-b76f-89bb23087fa9 2026-03-11 13:25:46,887 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/caa1cc94-7f65-4b16-b1d1-3d21a688db2e 2026-03-11 13:25:46,910 - INFO - Verified VN network id 12 for VN fb8ba261-f3f6-42a8-b76f-89bb23087fa9 2026-03-11 13:25:46,910 - INFO - Verifications in API Server for VN ctest-vn4-16919497 passed 2026-03-11 13:25:46,910 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/fb8ba261-f3f6-42a8-b76f-89bb23087fa9 2026-03-11 13:25:46,924 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/caa1cc94-7f65-4b16-b1d1-3d21a688db2e 2026-03-11 13:25:46,933 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/caa1cc94-7f65-4b16-b1d1-3d21a688db2e 2026-03-11 13:25:46,942 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/9d0c5d44-ed1b-4b8c-891d-826ed70bba47 2026-03-11 13:25:46,959 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45601287:ctest-vn4-16919497', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45601287', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18125759666871222952', 'uuid-lslong': '13217934868195344297'}, 'enable': 'true', 'created': '2026-03-11T13:25:45', 'last-modified': '2026-03-11T13:25:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.799421'} 2026-03-11 13:25:46,968 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-11 13:25:46,968 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-16919497 passed 2026-03-11 13:25:46,969 - DEBUG - ====Verifying policy data for ctest-vn4-16919497 in API_Server ====== 2026-03-11 13:25:46,969 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-11 13:25:46,976 - DEBUG - Requesting: http://10.0.0.141:8082/domain/23281e85-2983-4f5a-9c1a-6e5a3f55be79 2026-03-11 13:25:46,988 - DEBUG - Requesting: http://10.0.0.141:8082/project/87d30154-8051-4121-a479-2a555acba243 2026-03-11 13:25:47,071 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/fb8ba261-f3f6-42a8-b76f-89bb23087fa9 2026-03-11 13:25:47,084 - DEBUG - ==>Verifying data for policy with id: 07724a6d-2c9d-4052-a862-33c9e3b11d22, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45601287', 'ctest-policy1-71308904'] 2026-03-11 13:25:47,084 - INFO - VN ctest-vn4-16919497 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-11 13:25:47,084 - DEBUG - Verifying the vn in opserver 2026-03-11 13:25:47,084 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45601287:ctest-vn4-16919497 virtual network link through opserver 10.0.0.141 2026-03-11 13:25:47,084 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-03-11 13:25:47,393 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-03-11 13:25:47,490 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45601287:ctest-vn4-16919497', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45601287:ctest-vn4-16919497?flat'} 2026-03-11 13:25:47,490 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45601287:ctest-vn4-16919497 is found in opserver 2026-03-11 13:25:47,506 - DEBUG - Do not have enough data to verify VN in agent 2026-03-11 13:25:47,513 - DEBUG - VRF ids for VN ctest-vn4-16919497: {} 2026-03-11 13:25:47,514 - DEBUG - ====Verifying data for ctest-policy1-71308904 in API_Server ====== 2026-03-11 13:25:47,514 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-11 13:25:47,523 - DEBUG - Requesting: http://10.0.0.141:8082/domain/23281e85-2983-4f5a-9c1a-6e5a3f55be79 2026-03-11 13:25:47,540 - DEBUG - Requesting: http://10.0.0.141:8082/project/87d30154-8051-4121-a479-2a555acba243 2026-03-11 13:25:47,622 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/07724a6d-2c9d-4052-a862-33c9e3b11d22 2026-03-11 13:25:47,635 - INFO - Verified policy ctest-policy1-71308904 in API Server, Result: True 2026-03-11 13:25:47,635 - INFO - Done with setup and verification, moving onto test .. 2026-03-11 13:25:47,647 - INFO - Deleting VN ctest-vn4-16919497 2026-03-11 13:25:47,808 - DEBUG - Response for deleting network () 2026-03-11 13:25:47,808 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/caa1cc94-7f65-4b16-b1d1-3d21a688db2e 2026-03-11 13:25:47,815 - DEBUG - Response Code: 404 2026-03-11 13:25:47,815 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-11 13:25:47,822 - DEBUG - Requesting: http://10.0.0.141:8082/domain/23281e85-2983-4f5a-9c1a-6e5a3f55be79 2026-03-11 13:25:47,879 - DEBUG - Requesting: http://10.0.0.141:8082/project/87d30154-8051-4121-a479-2a555acba243 2026-03-11 13:25:47,963 - INFO - Validated that VN ctest-vn4-16919497 is not found in API Server 2026-03-11 13:25:47,977 - DEBUG - VN ctest-vn4-16919497 is not present in Agent 10.0.0.141 2026-03-11 13:25:47,977 - INFO - Validated that VN ctest-vn4-16919497 is not in any agent 2026-03-11 13:25:47,996 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-16919497 info 2026-03-11 13:25:48,030 - INFO - Deleted policy ctest-policy1-71308904 2026-03-11 13:25:48,229 - DEBUG - policy ctest-policy1-71308904 is not found in API Server 2026-03-11 13:25:48,499 - DEBUG - No XMPP flaps were noticed during the test
2026-03-11 13:25:48,499 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-11 13:25:48,499 - INFO - -------------------------------------------------------------------------------- 2026-03-11 13:25:48,807 - DEBUG - No XMPP flaps were noticed during the test
2026-03-11 13:25:48,807 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-03-11 13:25:48,807 - INFO - -------------------------------------------------------------------------------- 2026-03-11 13:25:49,627 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-45601287, ID : 87d30154-8051-4121-a479-2a555acba243