2026-06-19 21:15:21,932 - INFO - Domain Default found not creating 2026-06-19 21:15:22,072 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-42691423 not found, creating it 2026-06-19 21:15:22,513 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-42691423, ID : 92a49db7-514e-4a19-a3c2-25d65207cda6 2026-06-19 21:15:24,099 - INFO - ================================================================================ 2026-06-19 21:15:24,099 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 21:15:24,358 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2026-06-19 21:15:24,358 - INFO - Initial checks done. Running the testcase now 2026-06-19 21:15:24,358 - INFO - 2026-06-19 21:15:24,358 - INFO - ================================================================================ 2026-06-19 21:15:24,358 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 21:15:24,358 - 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-06-19 21:15:24,655 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2026-06-19 21:15:24,655 - INFO - Initial checks done. Running the testcase now 2026-06-19 21:15:24,655 - INFO - 2026-06-19 21:15:25,081 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42691423:ctest-vn4-15992484, 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-42691423:ctest-vn4-15992484, 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-42691423:ctest-vn4-15992484, 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-42691423:ctest-vn4-15992484, 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-06-19 21:15:25,580 - DEBUG - Response for create_network : {'network': {'id': '2b8f4531-1958-4846-8e4c-7ba0ebb3fb9e', 'name': 'ctest-vn4-15992484', 'tenant_id': '92a49db7514e4a19a3c225d65207cda6', 'project_id': '92a49db7514e4a19a3c225d65207cda6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42691423', 'ctest-vn4-15992484'], 'port_security_enabled': True, 'description': ''}} 2026-06-19 21:15:25,774 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f21f513a-e18f-4b1a-94fe-42731f4eea40', 'name': '', 'tenant_id': '92a49db7514e4a19a3c225d65207cda6', 'network_id': '2b8f4531-1958-4846-8e4c-7ba0ebb3fb9e', 'ip_version': 4, 'cidr': '87.170.209.64/26', 'allocation_pools': [{'start': '87.170.209.66', 'end': '87.170.209.126'}], 'gateway_ip': '87.170.209.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.170.209.66', 'tags': [], 'project_id': '92a49db7514e4a19a3c225d65207cda6'}} 2026-06-19 21:15:25,966 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c1b85dc-e7ea-40db-9990-134e1e7cd15d', 'name': '', 'tenant_id': '92a49db7514e4a19a3c225d65207cda6', 'network_id': '2b8f4531-1958-4846-8e4c-7ba0ebb3fb9e', 'ip_version': 6, 'cidr': '3fdc:9bb2:8486:da9a:e521:ec7e::/96', 'allocation_pools': [{'start': '3fdc:9bb2:8486:da9a:e521:ec7e:0:2', 'end': '3fdc:9bb2:8486:da9a:e521:ec7e:ffff:fffe'}], 'gateway_ip': '3fdc:9bb2:8486:da9a:e521:ec7e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3fdc:9bb2:8486:da9a:e521:ec7e:0:2', 'tags': [], 'project_id': '92a49db7514e4a19a3c225d65207cda6'}} 2026-06-19 21:15:25,982 - INFO - Created VN ctest-vn4-15992484 2026-06-19 21:15:26,033 - DEBUG - VN ctest-vn4-15992484 UUID is 2b8f4531-1958-4846-8e4c-7ba0ebb3fb9e 2026-06-19 21:15:26,218 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2b8f4531-1958-4846-8e4c-7ba0ebb3fb9e', 'name': 'ctest-vn4-15992484', 'tenant_id': '92a49db7514e4a19a3c225d65207cda6', 'project_id': '92a49db7514e4a19a3c225d65207cda6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f21f513a-e18f-4b1a-94fe-42731f4eea40', '8c1b85dc-e7ea-40db-9990-134e1e7cd15d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42691423', 'ctest-vn4-15992484'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42691423', 'ctest-policy1-01634808']], 'subnet_ipam': [{'subnet_cidr': '87.170.209.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3fdc:9bb2:8486:da9a:e521:ec7e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-19 21:15:26,381 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-19 21:15:26,742 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-19 21:15:26,767 - DEBUG - Requesting: http://10.0.0.38:8082/domain/05ed1d71-83f3-4200-89b1-432ab4ede8c2 2026-06-19 21:15:26,780 - DEBUG - Requesting: http://10.0.0.38:8082/project/92a49db7-514e-4a19-a3c2-25d65207cda6 2026-06-19 21:15:26,856 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b8f4531-1958-4846-8e4c-7ba0ebb3fb9e 2026-06-19 21:15:26,867 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b8f4531-1958-4846-8e4c-7ba0ebb3fb9e 2026-06-19 21:15:26,876 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e6f1ca5-d6e8-4982-8091-41d9db00111d 2026-06-19 21:15:26,883 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e6f1ca5-d6e8-4982-8091-41d9db00111d 2026-06-19 21:15:26,889 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9dcb13fc-ff46-4500-8e31-8d889f906a6f 2026-06-19 21:15:26,895 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 21:15:26,895 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b8f4531-1958-4846-8e4c-7ba0ebb3fb9e 2026-06-19 21:15:26,904 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e6f1ca5-d6e8-4982-8091-41d9db00111d 2026-06-19 21:15:26,917 - INFO - Verified VN network id 11 for VN 2b8f4531-1958-4846-8e4c-7ba0ebb3fb9e 2026-06-19 21:15:26,917 - INFO - Verifications in API Server for VN ctest-vn4-15992484 passed 2026-06-19 21:15:26,917 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b8f4531-1958-4846-8e4c-7ba0ebb3fb9e 2026-06-19 21:15:26,925 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e6f1ca5-d6e8-4982-8091-41d9db00111d 2026-06-19 21:15:26,931 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e6f1ca5-d6e8-4982-8091-41d9db00111d 2026-06-19 21:15:26,936 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9dcb13fc-ff46-4500-8e31-8d889f906a6f 2026-06-19 21:15:26,946 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42691423:ctest-vn4-15992484', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42691423', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3138803542481455174', 'uuid-lslong': '10253706382695201694'}, 'enable': 'true', 'created': '2026-06-19T21:15:25', 'last-modified': '2026-06-19T21:15:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.756639'} 2026-06-19 21:15:26,952 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 21:15:26,952 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15992484 passed 2026-06-19 21:15:26,952 - DEBUG - ====Verifying policy data for ctest-vn4-15992484 in API_Server ====== 2026-06-19 21:15:26,952 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-19 21:15:26,957 - DEBUG - Requesting: http://10.0.0.38:8082/domain/05ed1d71-83f3-4200-89b1-432ab4ede8c2 2026-06-19 21:15:26,967 - DEBUG - Requesting: http://10.0.0.38:8082/project/92a49db7-514e-4a19-a3c2-25d65207cda6 2026-06-19 21:15:27,039 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2b8f4531-1958-4846-8e4c-7ba0ebb3fb9e 2026-06-19 21:15:27,049 - DEBUG - ==>Verifying data for policy with id: bead2a00-aed2-4b6a-8ec4-172f7613397b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42691423', 'ctest-policy1-01634808'] 2026-06-19 21:15:27,049 - INFO - VN ctest-vn4-15992484 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-19 21:15:27,049 - DEBUG - Verifying the vn in opserver 2026-06-19 21:15:27,049 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42691423:ctest-vn4-15992484 virtual network link through opserver 10.0.0.38 2026-06-19 21:15:27,049 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-19 21:15:27,411 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-19 21:15:27,468 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42691423:ctest-vn4-15992484', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42691423:ctest-vn4-15992484?flat'} 2026-06-19 21:15:27,468 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42691423:ctest-vn4-15992484 is found in opserver 2026-06-19 21:15:27,477 - DEBUG - Do not have enough data to verify VN in agent 2026-06-19 21:15:27,481 - DEBUG - VRF ids for VN ctest-vn4-15992484: {} 2026-06-19 21:15:27,481 - DEBUG - ====Verifying data for ctest-policy1-01634808 in API_Server ====== 2026-06-19 21:15:27,481 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-19 21:15:27,489 - DEBUG - Requesting: http://10.0.0.38:8082/domain/05ed1d71-83f3-4200-89b1-432ab4ede8c2 2026-06-19 21:15:27,499 - DEBUG - Requesting: http://10.0.0.38:8082/project/92a49db7-514e-4a19-a3c2-25d65207cda6 2026-06-19 21:15:27,574 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/bead2a00-aed2-4b6a-8ec4-172f7613397b 2026-06-19 21:15:27,588 - INFO - Verified policy ctest-policy1-01634808 in API Server, Result: True 2026-06-19 21:15:27,588 - INFO - Done with setup and verification, moving onto test .. 2026-06-19 21:15:27,596 - INFO - Deleting VN ctest-vn4-15992484 2026-06-19 21:15:27,704 - DEBUG - Response for deleting network () 2026-06-19 21:15:27,704 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e6f1ca5-d6e8-4982-8091-41d9db00111d 2026-06-19 21:15:27,708 - DEBUG - Response Code: 404 2026-06-19 21:15:27,708 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-19 21:15:27,713 - DEBUG - Requesting: http://10.0.0.38:8082/domain/05ed1d71-83f3-4200-89b1-432ab4ede8c2 2026-06-19 21:15:27,769 - DEBUG - Requesting: http://10.0.0.38:8082/project/92a49db7-514e-4a19-a3c2-25d65207cda6 2026-06-19 21:15:27,840 - INFO - Validated that VN ctest-vn4-15992484 is not found in API Server 2026-06-19 21:15:27,849 - DEBUG - VN ctest-vn4-15992484 is not present in Agent 10.0.0.38 2026-06-19 21:15:27,849 - INFO - Validated that VN ctest-vn4-15992484 is not in any agent 2026-06-19 21:15:27,862 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15992484 info 2026-06-19 21:15:27,887 - INFO - Deleted policy ctest-policy1-01634808 2026-06-19 21:15:28,048 - DEBUG - policy ctest-policy1-01634808 is not found in API Server 2026-06-19 21:15:28,302 - DEBUG - No XMPP flaps were noticed during the test 2026-06-19 21:15:28,302 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-19 21:15:28,303 - INFO - -------------------------------------------------------------------------------- 2026-06-19 21:15:28,589 - DEBUG - No XMPP flaps were noticed during the test 2026-06-19 21:15:28,589 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-19 21:15:28,589 - INFO - -------------------------------------------------------------------------------- 2026-06-19 21:15:29,343 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-42691423, ID : 92a49db7-514e-4a19-a3c2-25d65207cda6