2026-09-02 03:01:51,189 - INFO - Domain Default found not creating 2026-09-02 03:01:51,384 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-01147801 not found, creating it 2026-09-02 03:01:51,883 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-01147801, ID : 630d552f-6ba4-4b44-aadf-e64f771b2ed9 2026-09-02 03:01:53,475 - INFO - ================================================================================ 2026-09-02 03:01:53,475 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-02 03:01:53,746 - DEBUG - Nothing to compare xmpp stats {'10.0.0.248': {'10.20.0.17': '0'}} with 2026-09-02 03:01:53,746 - INFO - Initial checks done. Running the testcase now 2026-09-02 03:01:53,747 - INFO - 2026-09-02 03:01:53,747 - INFO - ================================================================================ 2026-09-02 03:01:53,747 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-02 03:01:53,747 - 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-09-02 03:01:54,043 - DEBUG - Nothing to compare xmpp stats {'10.0.0.248': {'10.20.0.17': '0'}} with 2026-09-02 03:01:54,043 - INFO - Initial checks done. Running the testcase now 2026-09-02 03:01:54,043 - INFO - 2026-09-02 03:01:54,432 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01147801:ctest-vn4-74686539, 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-01147801:ctest-vn4-74686539, 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-01147801:ctest-vn4-74686539, 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-01147801:ctest-vn4-74686539, 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-09-02 03:01:55,034 - DEBUG - Response for create_network : {'network': {'id': '229d4cdd-2442-460c-9d92-76a06144b2da', 'name': 'ctest-vn4-74686539', 'tenant_id': '630d552f6ba44b44aadfe64f771b2ed9', 'project_id': '630d552f6ba44b44aadfe64f771b2ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01147801', 'ctest-vn4-74686539'], 'port_security_enabled': True, 'description': ''}} 2026-09-02 03:01:55,210 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad150f54-4b29-413a-ab9b-9c145bb55a68', 'name': '', 'tenant_id': '630d552f6ba44b44aadfe64f771b2ed9', 'network_id': '229d4cdd-2442-460c-9d92-76a06144b2da', 'ip_version': 4, 'cidr': '205.69.169.64/26', 'allocation_pools': [{'start': '205.69.169.66', 'end': '205.69.169.126'}], 'gateway_ip': '205.69.169.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '205.69.169.66', 'tags': [], 'project_id': '630d552f6ba44b44aadfe64f771b2ed9'}} 2026-09-02 03:01:55,382 - DEBUG - Response for create_subnet : {'subnet': {'id': '49d736d2-562a-4651-8802-a93d6fa00c0d', 'name': '', 'tenant_id': '630d552f6ba44b44aadfe64f771b2ed9', 'network_id': '229d4cdd-2442-460c-9d92-76a06144b2da', 'ip_version': 6, 'cidr': '355d:6f04:2752:c4c:7f5b:7782::/96', 'allocation_pools': [{'start': '355d:6f04:2752:c4c:7f5b:7782:0:2', 'end': '355d:6f04:2752:c4c:7f5b:7782:ffff:fffe'}], 'gateway_ip': '355d:6f04:2752:c4c:7f5b:7782:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '355d:6f04:2752:c4c:7f5b:7782:0:2', 'tags': [], 'project_id': '630d552f6ba44b44aadfe64f771b2ed9'}} 2026-09-02 03:01:55,400 - INFO - Created VN ctest-vn4-74686539 2026-09-02 03:01:55,454 - DEBUG - VN ctest-vn4-74686539 UUID is 229d4cdd-2442-460c-9d92-76a06144b2da 2026-09-02 03:01:55,649 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '229d4cdd-2442-460c-9d92-76a06144b2da', 'name': 'ctest-vn4-74686539', 'tenant_id': '630d552f6ba44b44aadfe64f771b2ed9', 'project_id': '630d552f6ba44b44aadfe64f771b2ed9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['ad150f54-4b29-413a-ab9b-9c145bb55a68', '49d736d2-562a-4651-8802-a93d6fa00c0d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01147801', 'ctest-vn4-74686539'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01147801', 'ctest-policy1-19342267']], 'subnet_ipam': [{'subnet_cidr': '205.69.169.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '355d:6f04:2752:c4c:7f5b:7782::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-02 03:01:55,818 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-09-02 03:01:56,153 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-09-02 03:01:56,185 - DEBUG - Requesting: http://10.0.0.248:8082/domain/039cb222-8513-42b3-b8b0-060b2d1e146c 2026-09-02 03:01:56,198 - DEBUG - Requesting: http://10.0.0.248:8082/project/630d552f-6ba4-4b44-aadf-e64f771b2ed9 2026-09-02 03:01:56,278 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/229d4cdd-2442-460c-9d92-76a06144b2da 2026-09-02 03:01:56,292 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/229d4cdd-2442-460c-9d92-76a06144b2da 2026-09-02 03:01:56,304 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/e2eb3f89-d6a3-40a6-9b9f-51e71f461920 2026-09-02 03:01:56,312 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/e2eb3f89-d6a3-40a6-9b9f-51e71f461920 2026-09-02 03:01:56,319 - DEBUG - Requesting: http://10.0.0.248:8082/route-target/47234526-86aa-44aa-8674-0a5a99fa9e18 2026-09-02 03:01:56,326 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-02 03:01:56,326 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/229d4cdd-2442-460c-9d92-76a06144b2da 2026-09-02 03:01:56,336 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/e2eb3f89-d6a3-40a6-9b9f-51e71f461920 2026-09-02 03:01:56,350 - INFO - Verified VN network id 12 for VN 229d4cdd-2442-460c-9d92-76a06144b2da 2026-09-02 03:01:56,350 - INFO - Verifications in API Server for VN ctest-vn4-74686539 passed 2026-09-02 03:01:56,350 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/229d4cdd-2442-460c-9d92-76a06144b2da 2026-09-02 03:01:56,359 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/e2eb3f89-d6a3-40a6-9b9f-51e71f461920 2026-09-02 03:01:56,366 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/e2eb3f89-d6a3-40a6-9b9f-51e71f461920 2026-09-02 03:01:56,374 - DEBUG - Requesting: http://10.0.0.248:8082/route-target/47234526-86aa-44aa-8674-0a5a99fa9e18 2026-09-02 03:01:56,388 - DEBUG - Control-node 10.0.0.248 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01147801:ctest-vn4-74686539', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-01147801', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2494234281312929292', 'uuid-lslong': '11354268041753178842'}, 'enable': 'true', 'created': '2026-09-02T03:01:54', 'last-modified': '2026-09-02T03:01:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.763317'} 2026-09-02 03:01:56,395 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-02 03:01:56,395 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-74686539 passed 2026-09-02 03:01:56,396 - DEBUG - ====Verifying policy data for ctest-vn4-74686539 in API_Server ====== 2026-09-02 03:01:56,396 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-09-02 03:01:56,402 - DEBUG - Requesting: http://10.0.0.248:8082/domain/039cb222-8513-42b3-b8b0-060b2d1e146c 2026-09-02 03:01:56,413 - DEBUG - Requesting: http://10.0.0.248:8082/project/630d552f-6ba4-4b44-aadf-e64f771b2ed9 2026-09-02 03:01:56,491 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/229d4cdd-2442-460c-9d92-76a06144b2da 2026-09-02 03:01:56,500 - DEBUG - ==>Verifying data for policy with id: a045f40d-41fe-4ccf-82a2-065e24d7c44b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-01147801', 'ctest-policy1-19342267'] 2026-09-02 03:01:56,500 - INFO - VN ctest-vn4-74686539 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-02 03:01:56,500 - DEBUG - Verifying the vn in opserver 2026-09-02 03:01:56,500 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01147801:ctest-vn4-74686539 virtual network link through opserver 10.0.0.248 2026-09-02 03:01:56,501 - DEBUG - Requesting: http://10.0.0.248:8081/analytics/uves/virtual-networks 2026-09-02 03:01:56,826 - DEBUG - Requesting: http://10.0.0.248:8081/analytics/uves/virtual-networks 2026-09-02 03:01:56,892 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01147801:ctest-vn4-74686539', 'href': 'http://10.0.0.248:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01147801:ctest-vn4-74686539?flat'} 2026-09-02 03:01:56,892 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-01147801:ctest-vn4-74686539 is found in opserver 2026-09-02 03:01:56,904 - DEBUG - Do not have enough data to verify VN in agent 2026-09-02 03:01:56,909 - DEBUG - VRF ids for VN ctest-vn4-74686539: {} 2026-09-02 03:01:56,910 - DEBUG - ====Verifying data for ctest-policy1-19342267 in API_Server ====== 2026-09-02 03:01:56,910 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-09-02 03:01:56,917 - DEBUG - Requesting: http://10.0.0.248:8082/domain/039cb222-8513-42b3-b8b0-060b2d1e146c 2026-09-02 03:01:56,930 - DEBUG - Requesting: http://10.0.0.248:8082/project/630d552f-6ba4-4b44-aadf-e64f771b2ed9 2026-09-02 03:01:57,005 - DEBUG - Requesting: http://10.0.0.248:8082/network-policy/a045f40d-41fe-4ccf-82a2-065e24d7c44b 2026-09-02 03:01:57,015 - INFO - Verified policy ctest-policy1-19342267 in API Server, Result: True 2026-09-02 03:01:57,015 - INFO - Done with setup and verification, moving onto test .. 2026-09-02 03:01:57,024 - INFO - Deleting VN ctest-vn4-74686539 2026-09-02 03:01:57,161 - DEBUG - Response for deleting network () 2026-09-02 03:01:57,161 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/e2eb3f89-d6a3-40a6-9b9f-51e71f461920 2026-09-02 03:01:57,167 - DEBUG - Response Code: 404 2026-09-02 03:01:57,167 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-09-02 03:01:57,173 - DEBUG - Requesting: http://10.0.0.248:8082/domain/039cb222-8513-42b3-b8b0-060b2d1e146c 2026-09-02 03:01:57,227 - DEBUG - Requesting: http://10.0.0.248:8082/project/630d552f-6ba4-4b44-aadf-e64f771b2ed9 2026-09-02 03:01:57,306 - INFO - Validated that VN ctest-vn4-74686539 is not found in API Server 2026-09-02 03:01:57,322 - DEBUG - VN ctest-vn4-74686539 is not present in Agent 10.0.0.248 2026-09-02 03:01:57,322 - INFO - Validated that VN ctest-vn4-74686539 is not in any agent 2026-09-02 03:01:57,344 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-74686539 info 2026-09-02 03:01:57,372 - INFO - Deleted policy ctest-policy1-19342267 2026-09-02 03:01:57,546 - DEBUG - policy ctest-policy1-19342267 is not found in API Server 2026-09-02 03:01:57,804 - DEBUG - No XMPP flaps were noticed during the test 2026-09-02 03:01:57,804 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-09-02 03:01:57,804 - INFO - -------------------------------------------------------------------------------- 2026-09-02 03:01:58,119 - DEBUG - No XMPP flaps were noticed during the test 2026-09-02 03:01:58,120 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-02 03:01:58,120 - INFO - -------------------------------------------------------------------------------- 2026-09-02 03:01:58,879 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-01147801, ID : 630d552f-6ba4-4b44-aadf-e64f771b2ed9