2026-03-06 11:47:20,175 - INFO - Domain Default found not creating 2026-03-06 11:47:20,341 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-58763117 not found, creating it 2026-03-06 11:47:20,800 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-58763117, ID : 946a3b16-764a-4c86-a61f-97552561a5a3 2026-03-06 11:47:22,357 - INFO - ================================================================================ 2026-03-06 11:47:22,357 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-06 11:47:22,613 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-03-06 11:47:22,613 - INFO - Initial checks done. Running the testcase now 2026-03-06 11:47:22,613 - INFO - 2026-03-06 11:47:22,613 - INFO - ================================================================================ 2026-03-06 11:47:22,613 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-06 11:47:22,613 - 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-06 11:47:22,914 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-03-06 11:47:22,914 - INFO - Initial checks done. Running the testcase now 2026-03-06 11:47:22,914 - INFO - 2026-03-06 11:47:23,279 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58763117:ctest-vn4-46302995, 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-58763117:ctest-vn4-46302995, 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-58763117:ctest-vn4-46302995, 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-58763117:ctest-vn4-46302995, 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-06 11:47:23,817 - DEBUG - Response for create_network : {'network': {'id': 'd5f56518-6040-4c10-a16b-d434bd314183', 'name': 'ctest-vn4-46302995', 'tenant_id': '946a3b16764a4c86a61f97552561a5a3', 'project_id': '946a3b16764a4c86a61f97552561a5a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58763117', 'ctest-vn4-46302995'], 'port_security_enabled': True, 'description': ''}} 2026-03-06 11:47:24,032 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f6b4aacc-00a3-4e2a-beda-1b013e7f4bbd', 'name': '', 'tenant_id': '946a3b16764a4c86a61f97552561a5a3', 'network_id': 'd5f56518-6040-4c10-a16b-d434bd314183', 'ip_version': 4, 'cidr': '202.49.50.128/26', 'allocation_pools': [{'start': '202.49.50.130', 'end': '202.49.50.190'}], 'gateway_ip': '202.49.50.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.49.50.130', 'tags': [], 'project_id': '946a3b16764a4c86a61f97552561a5a3'}} 2026-03-06 11:47:24,185 - DEBUG - Response for create_subnet : {'subnet': {'id': '479dc298-a944-4836-8e0b-d2ecadc9dba9', 'name': '', 'tenant_id': '946a3b16764a4c86a61f97552561a5a3', 'network_id': 'd5f56518-6040-4c10-a16b-d434bd314183', 'ip_version': 6, 'cidr': '2f02:1813:8143:1cf:6bc9:17da::/96', 'allocation_pools': [{'start': '2f02:1813:8143:1cf:6bc9:17da:0:2', 'end': '2f02:1813:8143:1cf:6bc9:17da:ffff:fffe'}], 'gateway_ip': '2f02:1813:8143:1cf:6bc9:17da:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f02:1813:8143:1cf:6bc9:17da:0:2', 'tags': [], 'project_id': '946a3b16764a4c86a61f97552561a5a3'}} 2026-03-06 11:47:24,209 - INFO - Created VN ctest-vn4-46302995 2026-03-06 11:47:24,262 - DEBUG - VN ctest-vn4-46302995 UUID is d5f56518-6040-4c10-a16b-d434bd314183 2026-03-06 11:47:24,492 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd5f56518-6040-4c10-a16b-d434bd314183', 'name': 'ctest-vn4-46302995', 'tenant_id': '946a3b16764a4c86a61f97552561a5a3', 'project_id': '946a3b16764a4c86a61f97552561a5a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f6b4aacc-00a3-4e2a-beda-1b013e7f4bbd', '479dc298-a944-4836-8e0b-d2ecadc9dba9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58763117', 'ctest-vn4-46302995'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58763117', 'ctest-policy1-32170413']], 'subnet_ipam': [{'subnet_cidr': '202.49.50.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f02:1813:8143:1cf:6bc9:17da::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-06 11:47:24,662 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-06 11:47:24,959 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-06 11:47:24,995 - DEBUG - Requesting: http://10.0.0.33:8082/domain/416f1e79-0b11-4787-a446-853f43b4fc70 2026-03-06 11:47:25,009 - DEBUG - Requesting: http://10.0.0.33:8082/project/946a3b16-764a-4c86-a61f-97552561a5a3 2026-03-06 11:47:25,086 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d5f56518-6040-4c10-a16b-d434bd314183 2026-03-06 11:47:25,100 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d5f56518-6040-4c10-a16b-d434bd314183 2026-03-06 11:47:25,111 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/32445e74-ed02-4399-a259-5b36592f0925 2026-03-06 11:47:25,120 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/32445e74-ed02-4399-a259-5b36592f0925 2026-03-06 11:47:25,128 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a047ae29-9116-4f64-82b1-ff941ab0bc63 2026-03-06 11:47:25,135 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-06 11:47:25,135 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d5f56518-6040-4c10-a16b-d434bd314183 2026-03-06 11:47:25,145 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/32445e74-ed02-4399-a259-5b36592f0925 2026-03-06 11:47:25,161 - INFO - Verified VN network id 11 for VN d5f56518-6040-4c10-a16b-d434bd314183 2026-03-06 11:47:25,161 - INFO - Verifications in API Server for VN ctest-vn4-46302995 passed 2026-03-06 11:47:25,161 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d5f56518-6040-4c10-a16b-d434bd314183 2026-03-06 11:47:25,172 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/32445e74-ed02-4399-a259-5b36592f0925 2026-03-06 11:47:25,182 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/32445e74-ed02-4399-a259-5b36592f0925 2026-03-06 11:47:25,191 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a047ae29-9116-4f64-82b1-ff941ab0bc63 2026-03-06 11:47:25,205 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58763117:ctest-vn4-46302995', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58763117', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15417340054741208080', 'uuid-lslong': '11631623785591947651'}, 'enable': 'true', 'created': '2026-03-06T11:47:23', 'last-modified': '2026-03-06T11:47:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.742068'} 2026-03-06 11:47:25,211 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-06 11:47:25,211 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-46302995 passed 2026-03-06 11:47:25,212 - DEBUG - ====Verifying policy data for ctest-vn4-46302995 in API_Server ====== 2026-03-06 11:47:25,212 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-06 11:47:25,218 - DEBUG - Requesting: http://10.0.0.33:8082/domain/416f1e79-0b11-4787-a446-853f43b4fc70 2026-03-06 11:47:25,231 - DEBUG - Requesting: http://10.0.0.33:8082/project/946a3b16-764a-4c86-a61f-97552561a5a3 2026-03-06 11:47:25,311 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d5f56518-6040-4c10-a16b-d434bd314183 2026-03-06 11:47:25,324 - DEBUG - ==>Verifying data for policy with id: e9cadd2b-3fb9-4199-b103-988d1aa72137, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58763117', 'ctest-policy1-32170413'] 2026-03-06 11:47:25,324 - INFO - VN ctest-vn4-46302995 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-06 11:47:25,325 - DEBUG - Verifying the vn in opserver 2026-03-06 11:47:25,325 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58763117:ctest-vn4-46302995 virtual network link through opserver 10.0.0.33 2026-03-06 11:47:25,325 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-06 11:47:25,621 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-06 11:47:25,687 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58763117:ctest-vn4-46302995', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58763117:ctest-vn4-46302995?flat'} 2026-03-06 11:47:25,687 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58763117:ctest-vn4-46302995 is found in opserver 2026-03-06 11:47:25,698 - DEBUG - Do not have enough data to verify VN in agent 2026-03-06 11:47:25,703 - DEBUG - VRF ids for VN ctest-vn4-46302995: {} 2026-03-06 11:47:25,704 - DEBUG - ====Verifying data for ctest-policy1-32170413 in API_Server ====== 2026-03-06 11:47:25,704 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-06 11:47:25,709 - DEBUG - Requesting: http://10.0.0.33:8082/domain/416f1e79-0b11-4787-a446-853f43b4fc70 2026-03-06 11:47:25,720 - DEBUG - Requesting: http://10.0.0.33:8082/project/946a3b16-764a-4c86-a61f-97552561a5a3 2026-03-06 11:47:25,793 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/e9cadd2b-3fb9-4199-b103-988d1aa72137 2026-03-06 11:47:25,804 - INFO - Verified policy ctest-policy1-32170413 in API Server, Result: True 2026-03-06 11:47:25,804 - INFO - Done with setup and verification, moving onto test .. 2026-03-06 11:47:25,813 - INFO - Deleting VN ctest-vn4-46302995 2026-03-06 11:47:25,936 - DEBUG - Response for deleting network () 2026-03-06 11:47:25,936 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/32445e74-ed02-4399-a259-5b36592f0925 2026-03-06 11:47:25,941 - DEBUG - Response Code: 404 2026-03-06 11:47:25,942 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-06 11:47:25,947 - DEBUG - Requesting: http://10.0.0.33:8082/domain/416f1e79-0b11-4787-a446-853f43b4fc70 2026-03-06 11:47:26,004 - DEBUG - Requesting: http://10.0.0.33:8082/project/946a3b16-764a-4c86-a61f-97552561a5a3 2026-03-06 11:47:26,080 - INFO - Validated that VN ctest-vn4-46302995 is not found in API Server 2026-03-06 11:47:26,090 - DEBUG - VN ctest-vn4-46302995 is not present in Agent 10.0.0.33 2026-03-06 11:47:26,090 - INFO - Validated that VN ctest-vn4-46302995 is not in any agent 2026-03-06 11:47:26,105 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-46302995 info 2026-03-06 11:47:26,131 - INFO - Deleted policy ctest-policy1-32170413 2026-03-06 11:47:26,294 - DEBUG - policy ctest-policy1-32170413 is not found in API Server 2026-03-06 11:47:26,550 - DEBUG - No XMPP flaps were noticed during the test