2026-03-13 14:31:02,052 - INFO - Domain Default found not creating 2026-03-13 14:31:02,288 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-01638952 not found, creating it 2026-03-13 14:31:02,888 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-01638952, ID : 31f714bf-5437-46ea-a41e-4654cb5d99d5 2026-03-13 14:31:04,677 - INFO - ================================================================================ 2026-03-13 14:31:04,678 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-13 14:31:04,965 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-03-13 14:31:04,966 - INFO - Initial checks done. Running the testcase now 2026-03-13 14:31:04,966 - INFO - 2026-03-13 14:31:04,966 - INFO - ================================================================================ 2026-03-13 14:31:04,966 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-13 14:31:04,966 - 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-13 14:31:05,283 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-03-13 14:31:05,283 - INFO - Initial checks done. Running the testcase now 2026-03-13 14:31:05,283 - INFO - 2026-03-13 14:31:05,719 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01638952:ctest-vn4-31048518, 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-01638952:ctest-vn4-31048518, 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-01638952:ctest-vn4-31048518, 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-01638952:ctest-vn4-31048518, 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-13 14:31:06,330 - DEBUG - Response for create_network : {'network': {'id': '111e470b-d241-4e5a-a052-a1dc273f2ff5', 'name': 'ctest-vn4-31048518', 'tenant_id': '31f714bf543746eaa41e4654cb5d99d5', 'project_id': '31f714bf543746eaa41e4654cb5d99d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01638952', 'ctest-vn4-31048518'], 'port_security_enabled': True, 'description': ''}} 2026-03-13 14:31:06,498 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a713dc07-1c50-4ef6-9e13-45ba6e281e8a', 'name': '', 'tenant_id': '31f714bf543746eaa41e4654cb5d99d5', 'network_id': '111e470b-d241-4e5a-a052-a1dc273f2ff5', 'ip_version': 4, 'cidr': '109.55.155.64/26', 'allocation_pools': [{'start': '109.55.155.66', 'end': '109.55.155.126'}], 'gateway_ip': '109.55.155.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.55.155.66', 'tags': [], 'project_id': '31f714bf543746eaa41e4654cb5d99d5'}} 2026-03-13 14:31:06,694 - DEBUG - Response for create_subnet : {'subnet': {'id': '695d3419-3eec-4b34-9e72-9e4bca7b187e', 'name': '', 'tenant_id': '31f714bf543746eaa41e4654cb5d99d5', 'network_id': '111e470b-d241-4e5a-a052-a1dc273f2ff5', 'ip_version': 6, 'cidr': '3750:b3ab:a6c0:9697:e8d6:79f8::/96', 'allocation_pools': [{'start': '3750:b3ab:a6c0:9697:e8d6:79f8:0:2', 'end': '3750:b3ab:a6c0:9697:e8d6:79f8:ffff:fffe'}], 'gateway_ip': '3750:b3ab:a6c0:9697:e8d6:79f8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3750:b3ab:a6c0:9697:e8d6:79f8:0:2', 'tags': [], 'project_id': '31f714bf543746eaa41e4654cb5d99d5'}} 2026-03-13 14:31:06,718 - INFO - Created VN ctest-vn4-31048518 2026-03-13 14:31:06,775 - DEBUG - VN ctest-vn4-31048518 UUID is 111e470b-d241-4e5a-a052-a1dc273f2ff5 2026-03-13 14:31:07,040 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '111e470b-d241-4e5a-a052-a1dc273f2ff5', 'name': 'ctest-vn4-31048518', 'tenant_id': '31f714bf543746eaa41e4654cb5d99d5', 'project_id': '31f714bf543746eaa41e4654cb5d99d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a713dc07-1c50-4ef6-9e13-45ba6e281e8a', '695d3419-3eec-4b34-9e72-9e4bca7b187e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01638952', 'ctest-vn4-31048518'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01638952', 'ctest-policy1-01474221']], 'subnet_ipam': [{'subnet_cidr': '109.55.155.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3750:b3ab:a6c0:9697:e8d6:79f8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-13 14:31:07,223 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-13 14:31:07,534 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-13 14:31:07,621 - DEBUG - Requesting: http://10.0.0.50:8082/domain/85891250-e8e0-4e7a-8c49-f9b0e72fd2db 2026-03-13 14:31:07,635 - DEBUG - Requesting: http://10.0.0.50:8082/project/31f714bf-5437-46ea-a41e-4654cb5d99d5 2026-03-13 14:31:07,738 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/111e470b-d241-4e5a-a052-a1dc273f2ff5 2026-03-13 14:31:07,761 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/111e470b-d241-4e5a-a052-a1dc273f2ff5 2026-03-13 14:31:07,782 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9b21605-300d-4c8b-a6dd-58bfa7113e11 2026-03-13 14:31:07,796 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9b21605-300d-4c8b-a6dd-58bfa7113e11 2026-03-13 14:31:07,806 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d690b5f6-7976-4762-b01e-fae9af59409f 2026-03-13 14:31:07,817 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-13 14:31:07,818 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/111e470b-d241-4e5a-a052-a1dc273f2ff5 2026-03-13 14:31:07,829 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9b21605-300d-4c8b-a6dd-58bfa7113e11 2026-03-13 14:31:07,853 - INFO - Verified VN network id 11 for VN 111e470b-d241-4e5a-a052-a1dc273f2ff5 2026-03-13 14:31:07,853 - INFO - Verifications in API Server for VN ctest-vn4-31048518 passed 2026-03-13 14:31:07,853 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/111e470b-d241-4e5a-a052-a1dc273f2ff5 2026-03-13 14:31:07,865 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9b21605-300d-4c8b-a6dd-58bfa7113e11 2026-03-13 14:31:07,874 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9b21605-300d-4c8b-a6dd-58bfa7113e11 2026-03-13 14:31:07,883 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d690b5f6-7976-4762-b01e-fae9af59409f 2026-03-13 14:31:07,901 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01638952:ctest-vn4-31048518', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-01638952', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1233501464043802202', 'uuid-lslong': '11552473961082073077'}, 'enable': 'true', 'created': '2026-03-13T14:31:06', 'last-modified': '2026-03-13T14:31:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.895182'} 2026-03-13 14:31:07,912 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-13 14:31:07,912 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-31048518 passed 2026-03-13 14:31:07,912 - DEBUG - ====Verifying policy data for ctest-vn4-31048518 in API_Server ====== 2026-03-13 14:31:07,912 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-13 14:31:07,920 - DEBUG - Requesting: http://10.0.0.50:8082/domain/85891250-e8e0-4e7a-8c49-f9b0e72fd2db 2026-03-13 14:31:07,939 - DEBUG - Requesting: http://10.0.0.50:8082/project/31f714bf-5437-46ea-a41e-4654cb5d99d5 2026-03-13 14:31:08,030 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/111e470b-d241-4e5a-a052-a1dc273f2ff5 2026-03-13 14:31:08,041 - DEBUG - ==>Verifying data for policy with id: 2ad3d914-7d26-429b-9a5d-c9e5164019e1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01638952', 'ctest-policy1-01474221'] 2026-03-13 14:31:08,041 - INFO - VN ctest-vn4-31048518 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-13 14:31:08,041 - DEBUG - Verifying the vn in opserver 2026-03-13 14:31:08,041 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01638952:ctest-vn4-31048518 virtual network link through opserver 10.0.0.50 2026-03-13 14:31:08,041 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-13 14:31:08,345 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-03-13 14:31:08,429 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01638952:ctest-vn4-31048518', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01638952:ctest-vn4-31048518?flat'} 2026-03-13 14:31:08,429 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01638952:ctest-vn4-31048518 is found in opserver 2026-03-13 14:31:08,444 - DEBUG - Do not have enough data to verify VN in agent 2026-03-13 14:31:08,455 - DEBUG - VRF ids for VN ctest-vn4-31048518: {} 2026-03-13 14:31:08,456 - DEBUG - ====Verifying data for ctest-policy1-01474221 in API_Server ====== 2026-03-13 14:31:08,456 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-13 14:31:08,464 - DEBUG - Requesting: http://10.0.0.50:8082/domain/85891250-e8e0-4e7a-8c49-f9b0e72fd2db 2026-03-13 14:31:08,481 - DEBUG - Requesting: http://10.0.0.50:8082/project/31f714bf-5437-46ea-a41e-4654cb5d99d5 2026-03-13 14:31:08,571 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/2ad3d914-7d26-429b-9a5d-c9e5164019e1 2026-03-13 14:31:08,584 - INFO - Verified policy ctest-policy1-01474221 in API Server, Result: True 2026-03-13 14:31:08,584 - INFO - Done with setup and verification, moving onto test .. 2026-03-13 14:31:08,595 - INFO - Deleting VN ctest-vn4-31048518 2026-03-13 14:31:08,739 - DEBUG - Response for deleting network () 2026-03-13 14:31:08,739 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e9b21605-300d-4c8b-a6dd-58bfa7113e11 2026-03-13 14:31:08,744 - DEBUG - Response Code: 404 2026-03-13 14:31:08,744 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-03-13 14:31:08,749 - DEBUG - Requesting: http://10.0.0.50:8082/domain/85891250-e8e0-4e7a-8c49-f9b0e72fd2db 2026-03-13 14:31:08,804 - DEBUG - Requesting: http://10.0.0.50:8082/project/31f714bf-5437-46ea-a41e-4654cb5d99d5 2026-03-13 14:31:08,889 - INFO - Validated that VN ctest-vn4-31048518 is not found in API Server 2026-03-13 14:31:08,901 - DEBUG - VN ctest-vn4-31048518 is not present in Agent 10.0.0.50 2026-03-13 14:31:08,901 - INFO - Validated that VN ctest-vn4-31048518 is not in any agent 2026-03-13 14:31:08,922 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-31048518 info 2026-03-13 14:31:08,970 - INFO - Deleted policy ctest-policy1-01474221 2026-03-13 14:31:09,175 - DEBUG - policy ctest-policy1-01474221 is not found in API Server 2026-03-13 14:31:09,484 - DEBUG - No XMPP flaps were noticed during the test