2026-02-03 21:24:17,712 - INFO - Domain Default found not creating 2026-02-03 21:24:17,874 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-31681510 not found, creating it 2026-02-03 21:24:18,295 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-31681510, ID : e89ad242-2380-476a-8f77-fc63f01fdb62 2026-02-03 21:24:19,873 - INFO - ================================================================================ 2026-02-03 21:24:19,873 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 21:24:20,128 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.25': '0'}} with 2026-02-03 21:24:20,128 - INFO - Initial checks done. Running the testcase now 2026-02-03 21:24:20,128 - INFO - 2026-02-03 21:24:20,128 - INFO - ================================================================================ 2026-02-03 21:24:20,128 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 21:24:20,128 - 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-02-03 21:24:20,416 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.25': '0'}} with 2026-02-03 21:24:20,416 - INFO - Initial checks done. Running the testcase now 2026-02-03 21:24:20,416 - INFO - 2026-02-03 21:24:20,808 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31681510:ctest-vn4-01144515, 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-31681510:ctest-vn4-01144515, 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-31681510:ctest-vn4-01144515, 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-31681510:ctest-vn4-01144515, 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-02-03 21:24:21,338 - DEBUG - Response for create_network : {'network': {'id': '07c1a0c3-0398-4a70-9764-3cca2676da45', 'name': 'ctest-vn4-01144515', 'tenant_id': 'e89ad2422380476a8f77fc63f01fdb62', 'project_id': 'e89ad2422380476a8f77fc63f01fdb62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31681510', 'ctest-vn4-01144515'], 'port_security_enabled': True, 'description': ''}} 2026-02-03 21:24:21,561 - DEBUG - Response for create_subnet : {'subnet': {'id': '8981ddbf-81ef-4981-8c9d-14521ec8b685', 'name': '', 'tenant_id': 'e89ad2422380476a8f77fc63f01fdb62', 'network_id': '07c1a0c3-0398-4a70-9764-3cca2676da45', 'ip_version': 4, 'cidr': '9.179.100.0/26', 'allocation_pools': [{'start': '9.179.100.2', 'end': '9.179.100.62'}], 'gateway_ip': '9.179.100.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.179.100.2', 'tags': [], 'project_id': 'e89ad2422380476a8f77fc63f01fdb62'}} 2026-02-03 21:24:21,704 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd24ebbcb-2e9e-4b4b-bcd0-7206fc164519', 'name': '', 'tenant_id': 'e89ad2422380476a8f77fc63f01fdb62', 'network_id': '07c1a0c3-0398-4a70-9764-3cca2676da45', 'ip_version': 6, 'cidr': '2417:26c0:2480:cf35:a71e:4b40::/96', 'allocation_pools': [{'start': '2417:26c0:2480:cf35:a71e:4b40:0:2', 'end': '2417:26c0:2480:cf35:a71e:4b40:ffff:fffe'}], 'gateway_ip': '2417:26c0:2480:cf35:a71e:4b40:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2417:26c0:2480:cf35:a71e:4b40:0:2', 'tags': [], 'project_id': 'e89ad2422380476a8f77fc63f01fdb62'}} 2026-02-03 21:24:21,724 - INFO - Created VN ctest-vn4-01144515 2026-02-03 21:24:21,778 - DEBUG - VN ctest-vn4-01144515 UUID is 07c1a0c3-0398-4a70-9764-3cca2676da45 2026-02-03 21:24:21,970 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07c1a0c3-0398-4a70-9764-3cca2676da45', 'name': 'ctest-vn4-01144515', 'tenant_id': 'e89ad2422380476a8f77fc63f01fdb62', 'project_id': 'e89ad2422380476a8f77fc63f01fdb62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8981ddbf-81ef-4981-8c9d-14521ec8b685', 'd24ebbcb-2e9e-4b4b-bcd0-7206fc164519'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31681510', 'ctest-vn4-01144515'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31681510', 'ctest-policy1-14160278']], 'subnet_ipam': [{'subnet_cidr': '9.179.100.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2417:26c0:2480:cf35:a71e:4b40::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-03 21:24:22,135 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-03 21:24:22,469 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-03 21:24:22,499 - DEBUG - Requesting: http://10.0.0.19:8082/domain/5052fb11-9ee8-4ca8-8743-a9976da66102 2026-02-03 21:24:22,510 - DEBUG - Requesting: http://10.0.0.19:8082/project/e89ad242-2380-476a-8f77-fc63f01fdb62 2026-02-03 21:24:22,582 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/07c1a0c3-0398-4a70-9764-3cca2676da45 2026-02-03 21:24:22,593 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/07c1a0c3-0398-4a70-9764-3cca2676da45 2026-02-03 21:24:22,602 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/307257da-20b9-4287-88ac-c05eb2f84c45 2026-02-03 21:24:22,609 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/307257da-20b9-4287-88ac-c05eb2f84c45 2026-02-03 21:24:22,616 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/51228fe2-d566-4f0e-9271-e593a971a139 2026-02-03 21:24:22,621 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 21:24:22,621 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/07c1a0c3-0398-4a70-9764-3cca2676da45 2026-02-03 21:24:22,630 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/307257da-20b9-4287-88ac-c05eb2f84c45 2026-02-03 21:24:22,644 - INFO - Verified VN network id 12 for VN 07c1a0c3-0398-4a70-9764-3cca2676da45 2026-02-03 21:24:22,644 - INFO - Verifications in API Server for VN ctest-vn4-01144515 passed 2026-02-03 21:24:22,644 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/07c1a0c3-0398-4a70-9764-3cca2676da45 2026-02-03 21:24:22,652 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/307257da-20b9-4287-88ac-c05eb2f84c45 2026-02-03 21:24:22,658 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/307257da-20b9-4287-88ac-c05eb2f84c45 2026-02-03 21:24:22,664 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/51228fe2-d566-4f0e-9271-e593a971a139 2026-02-03 21:24:22,675 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31681510:ctest-vn4-01144515', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31681510', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '558904588210031216', 'uuid-lslong': '10908911036324567621'}, 'enable': 'true', 'created': '2026-02-03T21:24:21', 'last-modified': '2026-02-03T21:24:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.730184'} 2026-02-03 21:24:22,681 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 21:24:22,682 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-01144515 passed 2026-02-03 21:24:22,682 - DEBUG - ====Verifying policy data for ctest-vn4-01144515 in API_Server ====== 2026-02-03 21:24:22,682 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-03 21:24:22,687 - DEBUG - Requesting: http://10.0.0.19:8082/domain/5052fb11-9ee8-4ca8-8743-a9976da66102 2026-02-03 21:24:22,697 - DEBUG - Requesting: http://10.0.0.19:8082/project/e89ad242-2380-476a-8f77-fc63f01fdb62 2026-02-03 21:24:22,768 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/07c1a0c3-0398-4a70-9764-3cca2676da45 2026-02-03 21:24:22,777 - DEBUG - ==>Verifying data for policy with id: 07d61be3-d08b-4ce5-b76d-f17a544152e8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31681510', 'ctest-policy1-14160278'] 2026-02-03 21:24:22,778 - INFO - VN ctest-vn4-01144515 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-03 21:24:22,778 - DEBUG - Verifying the vn in opserver 2026-02-03 21:24:22,778 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31681510:ctest-vn4-01144515 virtual network link through opserver 10.0.0.19 2026-02-03 21:24:22,778 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-03 21:24:23,116 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-03 21:24:23,176 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31681510:ctest-vn4-01144515', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31681510:ctest-vn4-01144515?flat'} 2026-02-03 21:24:23,176 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31681510:ctest-vn4-01144515 is found in opserver 2026-02-03 21:24:23,186 - DEBUG - Do not have enough data to verify VN in agent 2026-02-03 21:24:23,190 - DEBUG - VRF ids for VN ctest-vn4-01144515: {} 2026-02-03 21:24:23,190 - DEBUG - ====Verifying data for ctest-policy1-14160278 in API_Server ====== 2026-02-03 21:24:23,190 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-03 21:24:23,195 - DEBUG - Requesting: http://10.0.0.19:8082/domain/5052fb11-9ee8-4ca8-8743-a9976da66102 2026-02-03 21:24:23,205 - DEBUG - Requesting: http://10.0.0.19:8082/project/e89ad242-2380-476a-8f77-fc63f01fdb62 2026-02-03 21:24:23,280 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/07d61be3-d08b-4ce5-b76d-f17a544152e8 2026-02-03 21:24:23,291 - INFO - Verified policy ctest-policy1-14160278 in API Server, Result: True 2026-02-03 21:24:23,292 - INFO - Done with setup and verification, moving onto test .. 2026-02-03 21:24:23,299 - INFO - Deleting VN ctest-vn4-01144515 2026-02-03 21:24:23,415 - DEBUG - Response for deleting network () 2026-02-03 21:24:23,415 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/307257da-20b9-4287-88ac-c05eb2f84c45 2026-02-03 21:24:23,420 - DEBUG - Response Code: 404 2026-02-03 21:24:23,420 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-03 21:24:23,425 - DEBUG - Requesting: http://10.0.0.19:8082/domain/5052fb11-9ee8-4ca8-8743-a9976da66102 2026-02-03 21:24:23,480 - DEBUG - Requesting: http://10.0.0.19:8082/project/e89ad242-2380-476a-8f77-fc63f01fdb62 2026-02-03 21:24:23,561 - INFO - Validated that VN ctest-vn4-01144515 is not found in API Server 2026-02-03 21:24:23,572 - DEBUG - VN ctest-vn4-01144515 is not present in Agent 10.0.0.19 2026-02-03 21:24:23,572 - INFO - Validated that VN ctest-vn4-01144515 is not in any agent 2026-02-03 21:24:23,589 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-01144515 info 2026-02-03 21:24:23,614 - INFO - Deleted policy ctest-policy1-14160278 2026-02-03 21:24:23,782 - DEBUG - policy ctest-policy1-14160278 is not found in API Server 2026-02-03 21:24:24,040 - DEBUG - No XMPP flaps were noticed during the test