2026-05-18 02:10:27,156 - INFO - Domain Default found not creating 2026-05-18 02:10:27,324 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71741421 not found, creating it 2026-05-18 02:10:27,771 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71741421, ID : 8e43540a-86f0-404c-b689-a539742888e0 2026-05-18 02:10:29,230 - INFO - ================================================================================ 2026-05-18 02:10:29,230 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-18 02:10:29,483 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2026-05-18 02:10:29,483 - INFO - Initial checks done. Running the testcase now 2026-05-18 02:10:29,483 - INFO - 2026-05-18 02:10:29,483 - INFO - ================================================================================ 2026-05-18 02:10:29,484 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-18 02:10:29,484 - 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-05-18 02:10:29,774 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2026-05-18 02:10:29,774 - INFO - Initial checks done. Running the testcase now 2026-05-18 02:10:29,774 - INFO - 2026-05-18 02:10:30,126 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71741421:ctest-vn4-75950024, 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-71741421:ctest-vn4-75950024, 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-71741421:ctest-vn4-75950024, 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-71741421:ctest-vn4-75950024, 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-05-18 02:10:30,641 - DEBUG - Response for create_network : {'network': {'id': '1d72d1d2-3a4b-46a9-8fcd-8f5c3d8eedc8', 'name': 'ctest-vn4-75950024', 'tenant_id': '8e43540a86f0404cb689a539742888e0', 'project_id': '8e43540a86f0404cb689a539742888e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71741421', 'ctest-vn4-75950024'], 'port_security_enabled': True, 'description': ''}} 2026-05-18 02:10:30,842 - DEBUG - Response for create_subnet : {'subnet': {'id': '82713387-24b6-45a6-aee4-d34a6d47e2e3', 'name': '', 'tenant_id': '8e43540a86f0404cb689a539742888e0', 'network_id': '1d72d1d2-3a4b-46a9-8fcd-8f5c3d8eedc8', 'ip_version': 4, 'cidr': '180.150.32.192/26', 'allocation_pools': [{'start': '180.150.32.194', 'end': '180.150.32.254'}], 'gateway_ip': '180.150.32.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.150.32.194', 'tags': [], 'project_id': '8e43540a86f0404cb689a539742888e0'}} 2026-05-18 02:10:30,982 - DEBUG - Response for create_subnet : {'subnet': {'id': '532c4e65-2782-48d1-9e76-9a8996fced91', 'name': '', 'tenant_id': '8e43540a86f0404cb689a539742888e0', 'network_id': '1d72d1d2-3a4b-46a9-8fcd-8f5c3d8eedc8', 'ip_version': 6, 'cidr': '2417:de4f:e7d2:d0df:99f2:11b7::/96', 'allocation_pools': [{'start': '2417:de4f:e7d2:d0df:99f2:11b7:0:2', 'end': '2417:de4f:e7d2:d0df:99f2:11b7:ffff:fffe'}], 'gateway_ip': '2417:de4f:e7d2:d0df:99f2:11b7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2417:de4f:e7d2:d0df:99f2:11b7:0:2', 'tags': [], 'project_id': '8e43540a86f0404cb689a539742888e0'}} 2026-05-18 02:10:31,002 - INFO - Created VN ctest-vn4-75950024 2026-05-18 02:10:31,057 - DEBUG - VN ctest-vn4-75950024 UUID is 1d72d1d2-3a4b-46a9-8fcd-8f5c3d8eedc8 2026-05-18 02:10:31,262 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1d72d1d2-3a4b-46a9-8fcd-8f5c3d8eedc8', 'name': 'ctest-vn4-75950024', 'tenant_id': '8e43540a86f0404cb689a539742888e0', 'project_id': '8e43540a86f0404cb689a539742888e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['82713387-24b6-45a6-aee4-d34a6d47e2e3', '532c4e65-2782-48d1-9e76-9a8996fced91'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71741421', 'ctest-vn4-75950024'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71741421', 'ctest-policy1-86780169']], 'subnet_ipam': [{'subnet_cidr': '180.150.32.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2417:de4f:e7d2:d0df:99f2:11b7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-18 02:10:31,425 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-18 02:10:31,750 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-18 02:10:31,787 - DEBUG - Requesting: http://10.0.0.19:8082/domain/8873ed90-408b-4729-837a-11ebc2ac97ca 2026-05-18 02:10:31,798 - DEBUG - Requesting: http://10.0.0.19:8082/project/8e43540a-86f0-404c-b689-a539742888e0 2026-05-18 02:10:31,870 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/1d72d1d2-3a4b-46a9-8fcd-8f5c3d8eedc8 2026-05-18 02:10:31,883 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/1d72d1d2-3a4b-46a9-8fcd-8f5c3d8eedc8 2026-05-18 02:10:31,892 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5b5cd2c0-206f-4e9e-b2d3-70dc3d349b29 2026-05-18 02:10:31,899 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5b5cd2c0-206f-4e9e-b2d3-70dc3d349b29 2026-05-18 02:10:31,907 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/a87ccb08-358d-4564-8b5f-cdbaa2e97bbc 2026-05-18 02:10:31,916 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-18 02:10:31,916 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/1d72d1d2-3a4b-46a9-8fcd-8f5c3d8eedc8 2026-05-18 02:10:31,930 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5b5cd2c0-206f-4e9e-b2d3-70dc3d349b29 2026-05-18 02:10:31,947 - INFO - Verified VN network id 11 for VN 1d72d1d2-3a4b-46a9-8fcd-8f5c3d8eedc8 2026-05-18 02:10:31,947 - INFO - Verifications in API Server for VN ctest-vn4-75950024 passed 2026-05-18 02:10:31,947 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/1d72d1d2-3a4b-46a9-8fcd-8f5c3d8eedc8 2026-05-18 02:10:31,961 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5b5cd2c0-206f-4e9e-b2d3-70dc3d349b29 2026-05-18 02:10:31,969 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5b5cd2c0-206f-4e9e-b2d3-70dc3d349b29 2026-05-18 02:10:31,977 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/a87ccb08-358d-4564-8b5f-cdbaa2e97bbc 2026-05-18 02:10:31,992 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71741421:ctest-vn4-75950024', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71741421', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2121989075296274089', 'uuid-lslong': '10362095943981919688'}, 'enable': 'true', 'created': '2026-05-18T02:10:30', 'last-modified': '2026-05-18T02:10:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.754178'} 2026-05-18 02:10:32,001 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-18 02:10:32,001 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-75950024 passed 2026-05-18 02:10:32,001 - DEBUG - ====Verifying policy data for ctest-vn4-75950024 in API_Server ====== 2026-05-18 02:10:32,001 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-18 02:10:32,009 - DEBUG - Requesting: http://10.0.0.19:8082/domain/8873ed90-408b-4729-837a-11ebc2ac97ca 2026-05-18 02:10:32,020 - DEBUG - Requesting: http://10.0.0.19:8082/project/8e43540a-86f0-404c-b689-a539742888e0 2026-05-18 02:10:32,089 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/1d72d1d2-3a4b-46a9-8fcd-8f5c3d8eedc8 2026-05-18 02:10:32,099 - DEBUG - ==>Verifying data for policy with id: e1795839-053a-4d28-9483-bf7fd72759f1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71741421', 'ctest-policy1-86780169'] 2026-05-18 02:10:32,099 - INFO - VN ctest-vn4-75950024 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-18 02:10:32,099 - DEBUG - Verifying the vn in opserver 2026-05-18 02:10:32,099 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71741421:ctest-vn4-75950024 virtual network link through opserver 10.0.0.19 2026-05-18 02:10:32,100 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-05-18 02:10:32,426 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-05-18 02:10:32,494 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71741421:ctest-vn4-75950024', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71741421:ctest-vn4-75950024?flat'} 2026-05-18 02:10:32,494 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71741421:ctest-vn4-75950024 is found in opserver 2026-05-18 02:10:32,504 - DEBUG - Do not have enough data to verify VN in agent 2026-05-18 02:10:32,509 - DEBUG - VRF ids for VN ctest-vn4-75950024: {} 2026-05-18 02:10:32,509 - DEBUG - ====Verifying data for ctest-policy1-86780169 in API_Server ====== 2026-05-18 02:10:32,509 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-18 02:10:32,515 - DEBUG - Requesting: http://10.0.0.19:8082/domain/8873ed90-408b-4729-837a-11ebc2ac97ca 2026-05-18 02:10:32,526 - DEBUG - Requesting: http://10.0.0.19:8082/project/8e43540a-86f0-404c-b689-a539742888e0 2026-05-18 02:10:32,597 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/e1795839-053a-4d28-9483-bf7fd72759f1 2026-05-18 02:10:32,609 - INFO - Verified policy ctest-policy1-86780169 in API Server, Result: True 2026-05-18 02:10:32,609 - INFO - Done with setup and verification, moving onto test .. 2026-05-18 02:10:32,619 - INFO - Deleting VN ctest-vn4-75950024 2026-05-18 02:10:32,738 - DEBUG - Response for deleting network () 2026-05-18 02:10:32,738 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/5b5cd2c0-206f-4e9e-b2d3-70dc3d349b29 2026-05-18 02:10:32,743 - DEBUG - Response Code: 404 2026-05-18 02:10:32,743 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-05-18 02:10:32,750 - DEBUG - Requesting: http://10.0.0.19:8082/domain/8873ed90-408b-4729-837a-11ebc2ac97ca 2026-05-18 02:10:32,804 - DEBUG - Requesting: http://10.0.0.19:8082/project/8e43540a-86f0-404c-b689-a539742888e0 2026-05-18 02:10:32,879 - INFO - Validated that VN ctest-vn4-75950024 is not found in API Server 2026-05-18 02:10:32,890 - DEBUG - VN ctest-vn4-75950024 is not present in Agent 10.0.0.19 2026-05-18 02:10:32,890 - INFO - Validated that VN ctest-vn4-75950024 is not in any agent 2026-05-18 02:10:32,903 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-75950024 info 2026-05-18 02:10:32,930 - INFO - Deleted policy ctest-policy1-86780169 2026-05-18 02:10:33,089 - DEBUG - policy ctest-policy1-86780169 is not found in API Server 2026-05-18 02:10:33,341 - DEBUG - No XMPP flaps were noticed during the test