2026-03-27 14:53:25,450 - INFO - Domain Default found not creating 2026-03-27 14:53:26,090 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-10823395 not found, creating it 2026-03-27 14:53:26,969 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-10823395, ID : 01ce9530-6c07-4cf6-bc17-c696f69b2ed2 2026-03-27 14:53:28,840 - INFO - ================================================================================ 2026-03-27 14:53:28,841 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-27 14:53:29,111 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-03-27 14:53:29,111 - INFO - Initial checks done. Running the testcase now 2026-03-27 14:53:29,111 - INFO - 2026-03-27 14:53:29,111 - INFO - ================================================================================ 2026-03-27 14:53:29,111 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-27 14:53:29,112 - 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-27 14:53:29,431 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-03-27 14:53:29,432 - INFO - Initial checks done. Running the testcase now 2026-03-27 14:53:29,432 - INFO - 2026-03-27 14:53:29,863 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10823395:ctest-vn4-14956484, 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-10823395:ctest-vn4-14956484, 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-10823395:ctest-vn4-14956484, 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-10823395:ctest-vn4-14956484, 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-27 14:53:30,465 - DEBUG - Response for create_network : {'network': {'id': '8602f049-c937-4e8f-89c8-3fc165be16b6', 'name': 'ctest-vn4-14956484', 'tenant_id': '01ce95306c074cf6bc17c696f69b2ed2', 'project_id': '01ce95306c074cf6bc17c696f69b2ed2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10823395', 'ctest-vn4-14956484'], 'port_security_enabled': True, 'description': ''}} 2026-03-27 14:53:30,652 - DEBUG - Response for create_subnet : {'subnet': {'id': '2acc6f49-d200-4b23-a8ff-e16775c95f0f', 'name': '', 'tenant_id': '01ce95306c074cf6bc17c696f69b2ed2', 'network_id': '8602f049-c937-4e8f-89c8-3fc165be16b6', 'ip_version': 4, 'cidr': '136.87.99.192/26', 'allocation_pools': [{'start': '136.87.99.194', 'end': '136.87.99.254'}], 'gateway_ip': '136.87.99.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.87.99.194', 'tags': [], 'project_id': '01ce95306c074cf6bc17c696f69b2ed2'}} 2026-03-27 14:53:30,858 - DEBUG - Response for create_subnet : {'subnet': {'id': '948057b1-d3ab-48f5-a5ff-d8d6607ad6d8', 'name': '', 'tenant_id': '01ce95306c074cf6bc17c696f69b2ed2', 'network_id': '8602f049-c937-4e8f-89c8-3fc165be16b6', 'ip_version': 6, 'cidr': '2ff5:dd67:6e82:7a90:b5c4:4610::/96', 'allocation_pools': [{'start': '2ff5:dd67:6e82:7a90:b5c4:4610:0:2', 'end': '2ff5:dd67:6e82:7a90:b5c4:4610:ffff:fffe'}], 'gateway_ip': '2ff5:dd67:6e82:7a90:b5c4:4610:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ff5:dd67:6e82:7a90:b5c4:4610:0:2', 'tags': [], 'project_id': '01ce95306c074cf6bc17c696f69b2ed2'}} 2026-03-27 14:53:30,890 - INFO - Created VN ctest-vn4-14956484 2026-03-27 14:53:30,946 - DEBUG - VN ctest-vn4-14956484 UUID is 8602f049-c937-4e8f-89c8-3fc165be16b6 2026-03-27 14:53:31,208 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8602f049-c937-4e8f-89c8-3fc165be16b6', 'name': 'ctest-vn4-14956484', 'tenant_id': '01ce95306c074cf6bc17c696f69b2ed2', 'project_id': '01ce95306c074cf6bc17c696f69b2ed2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2acc6f49-d200-4b23-a8ff-e16775c95f0f', '948057b1-d3ab-48f5-a5ff-d8d6607ad6d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10823395', 'ctest-vn4-14956484'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10823395', 'ctest-policy1-42243672']], 'subnet_ipam': [{'subnet_cidr': '136.87.99.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ff5:dd67:6e82:7a90:b5c4:4610::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-27 14:53:31,378 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-27 14:53:31,736 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-27 14:53:31,789 - DEBUG - Requesting: http://10.0.0.242:8082/domain/f26f3862-ac90-44b6-9976-ea993ff3ab61 2026-03-27 14:53:31,808 - DEBUG - Requesting: http://10.0.0.242:8082/project/01ce9530-6c07-4cf6-bc17-c696f69b2ed2 2026-03-27 14:53:31,893 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8602f049-c937-4e8f-89c8-3fc165be16b6 2026-03-27 14:53:31,912 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8602f049-c937-4e8f-89c8-3fc165be16b6 2026-03-27 14:53:31,926 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/da836eae-ee2f-45be-8062-dcf4fbb0a6e5 2026-03-27 14:53:31,936 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/da836eae-ee2f-45be-8062-dcf4fbb0a6e5 2026-03-27 14:53:31,945 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/c573e5c5-2012-43a8-846b-d33367d53230 2026-03-27 14:53:31,954 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-27 14:53:31,954 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8602f049-c937-4e8f-89c8-3fc165be16b6 2026-03-27 14:53:31,964 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/da836eae-ee2f-45be-8062-dcf4fbb0a6e5 2026-03-27 14:53:31,980 - INFO - Verified VN network id 9 for VN 8602f049-c937-4e8f-89c8-3fc165be16b6 2026-03-27 14:53:31,980 - INFO - Verifications in API Server for VN ctest-vn4-14956484 passed 2026-03-27 14:53:31,980 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8602f049-c937-4e8f-89c8-3fc165be16b6 2026-03-27 14:53:31,994 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/da836eae-ee2f-45be-8062-dcf4fbb0a6e5 2026-03-27 14:53:32,005 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/da836eae-ee2f-45be-8062-dcf4fbb0a6e5 2026-03-27 14:53:32,016 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/c573e5c5-2012-43a8-846b-d33367d53230 2026-03-27 14:53:32,037 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10823395:ctest-vn4-14956484', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-10823395', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9656544750734888591', 'uuid-lslong': '9928255478406452918'}, 'enable': 'true', 'created': '2026-03-27T14:53:30', 'last-modified': '2026-03-27T14:53:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.867986'} 2026-03-27 14:53:32,045 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-27 14:53:32,046 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-14956484 passed 2026-03-27 14:53:32,046 - DEBUG - ====Verifying policy data for ctest-vn4-14956484 in API_Server ====== 2026-03-27 14:53:32,046 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-27 14:53:32,054 - DEBUG - Requesting: http://10.0.0.242:8082/domain/f26f3862-ac90-44b6-9976-ea993ff3ab61 2026-03-27 14:53:32,069 - DEBUG - Requesting: http://10.0.0.242:8082/project/01ce9530-6c07-4cf6-bc17-c696f69b2ed2 2026-03-27 14:53:32,161 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/8602f049-c937-4e8f-89c8-3fc165be16b6 2026-03-27 14:53:32,182 - DEBUG - ==>Verifying data for policy with id: 12b9d38f-2fb6-4116-889a-46109b9caee8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10823395', 'ctest-policy1-42243672'] 2026-03-27 14:53:32,182 - INFO - VN ctest-vn4-14956484 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-27 14:53:32,183 - DEBUG - Verifying the vn in opserver 2026-03-27 14:53:32,183 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10823395:ctest-vn4-14956484 virtual network link through opserver 10.0.0.242 2026-03-27 14:53:32,183 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-27 14:53:32,514 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-03-27 14:53:32,607 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10823395:ctest-vn4-14956484', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10823395:ctest-vn4-14956484?flat'} 2026-03-27 14:53:32,607 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10823395:ctest-vn4-14956484 is found in opserver 2026-03-27 14:53:32,624 - DEBUG - Do not have enough data to verify VN in agent 2026-03-27 14:53:32,633 - DEBUG - VRF ids for VN ctest-vn4-14956484: {} 2026-03-27 14:53:32,634 - DEBUG - ====Verifying data for ctest-policy1-42243672 in API_Server ====== 2026-03-27 14:53:32,635 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-27 14:53:32,645 - DEBUG - Requesting: http://10.0.0.242:8082/domain/f26f3862-ac90-44b6-9976-ea993ff3ab61 2026-03-27 14:53:32,661 - DEBUG - Requesting: http://10.0.0.242:8082/project/01ce9530-6c07-4cf6-bc17-c696f69b2ed2 2026-03-27 14:53:32,755 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/12b9d38f-2fb6-4116-889a-46109b9caee8 2026-03-27 14:53:32,770 - INFO - Verified policy ctest-policy1-42243672 in API Server, Result: True 2026-03-27 14:53:32,770 - INFO - Done with setup and verification, moving onto test .. 2026-03-27 14:53:32,782 - INFO - Deleting VN ctest-vn4-14956484 2026-03-27 14:53:32,941 - DEBUG - Response for deleting network () 2026-03-27 14:53:32,941 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/da836eae-ee2f-45be-8062-dcf4fbb0a6e5 2026-03-27 14:53:32,951 - DEBUG - Response Code: 404 2026-03-27 14:53:32,952 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-03-27 14:53:32,960 - DEBUG - Requesting: http://10.0.0.242:8082/domain/f26f3862-ac90-44b6-9976-ea993ff3ab61 2026-03-27 14:53:33,021 - DEBUG - Requesting: http://10.0.0.242:8082/project/01ce9530-6c07-4cf6-bc17-c696f69b2ed2 2026-03-27 14:53:33,101 - INFO - Validated that VN ctest-vn4-14956484 is not found in API Server 2026-03-27 14:53:33,116 - DEBUG - VN ctest-vn4-14956484 is not present in Agent 10.0.0.242 2026-03-27 14:53:33,116 - INFO - Validated that VN ctest-vn4-14956484 is not in any agent 2026-03-27 14:53:33,135 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-14956484 info 2026-03-27 14:53:33,165 - INFO - Deleted policy ctest-policy1-42243672 2026-03-27 14:53:33,342 - DEBUG - policy ctest-policy1-42243672 is not found in API Server 2026-03-27 14:53:33,622 - DEBUG - No XMPP flaps were noticed during the test 2026-03-27 14:53:33,622 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-27 14:53:33,623 - INFO - -------------------------------------------------------------------------------- 2026-03-27 14:53:33,923 - DEBUG - No XMPP flaps were noticed during the test 2026-03-27 14:53:33,923 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-03-27 14:53:33,923 - INFO - -------------------------------------------------------------------------------- 2026-03-27 14:53:34,726 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-10823395, ID : 01ce9530-6c07-4cf6-bc17-c696f69b2ed2