2026-04-29 18:02:35,672 - INFO - Domain Default found not creating 2026-04-29 18:02:35,908 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70671575 not found, creating it 2026-04-29 18:02:36,435 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70671575, ID : e68e63f4-0084-4fba-8e68-f8079275c00a 2026-04-29 18:02:38,167 - INFO - ================================================================================ 2026-04-29 18:02:38,168 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-29 18:02:38,439 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-04-29 18:02:38,439 - INFO - Initial checks done. Running the testcase now 2026-04-29 18:02:38,439 - INFO - 2026-04-29 18:02:38,439 - INFO - ================================================================================ 2026-04-29 18:02:38,439 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-29 18:02:38,439 - 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-04-29 18:02:38,735 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-04-29 18:02:38,735 - INFO - Initial checks done. Running the testcase now 2026-04-29 18:02:38,735 - INFO - 2026-04-29 18:02:39,117 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70671575:ctest-vn4-24139692, 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-70671575:ctest-vn4-24139692, 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-70671575:ctest-vn4-24139692, 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-70671575:ctest-vn4-24139692, 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-04-29 18:02:39,695 - DEBUG - Response for create_network : {'network': {'id': '4f8e879d-06ed-48ce-979b-e14483f4d0ce', 'name': 'ctest-vn4-24139692', 'tenant_id': 'e68e63f400844fba8e68f8079275c00a', 'project_id': 'e68e63f400844fba8e68f8079275c00a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70671575', 'ctest-vn4-24139692'], 'port_security_enabled': True, 'description': ''}} 2026-04-29 18:02:39,897 - DEBUG - Response for create_subnet : {'subnet': {'id': '601edb01-9e24-4701-9908-e4a224f79d5e', 'name': '', 'tenant_id': 'e68e63f400844fba8e68f8079275c00a', 'network_id': '4f8e879d-06ed-48ce-979b-e14483f4d0ce', 'ip_version': 4, 'cidr': '163.41.91.0/26', 'allocation_pools': [{'start': '163.41.91.2', 'end': '163.41.91.62'}], 'gateway_ip': '163.41.91.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.41.91.2', 'tags': [], 'project_id': 'e68e63f400844fba8e68f8079275c00a'}} 2026-04-29 18:02:40,059 - DEBUG - Response for create_subnet : {'subnet': {'id': '77e94e67-6653-4156-9f2e-54afa8c98b61', 'name': '', 'tenant_id': 'e68e63f400844fba8e68f8079275c00a', 'network_id': '4f8e879d-06ed-48ce-979b-e14483f4d0ce', 'ip_version': 6, 'cidr': '34f5:d40e:6b7d:a014:760e:85a0::/96', 'allocation_pools': [{'start': '34f5:d40e:6b7d:a014:760e:85a0:0:2', 'end': '34f5:d40e:6b7d:a014:760e:85a0:ffff:fffe'}], 'gateway_ip': '34f5:d40e:6b7d:a014:760e:85a0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34f5:d40e:6b7d:a014:760e:85a0:0:2', 'tags': [], 'project_id': 'e68e63f400844fba8e68f8079275c00a'}} 2026-04-29 18:02:40,086 - INFO - Created VN ctest-vn4-24139692 2026-04-29 18:02:40,141 - DEBUG - VN ctest-vn4-24139692 UUID is 4f8e879d-06ed-48ce-979b-e14483f4d0ce 2026-04-29 18:02:40,392 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4f8e879d-06ed-48ce-979b-e14483f4d0ce', 'name': 'ctest-vn4-24139692', 'tenant_id': 'e68e63f400844fba8e68f8079275c00a', 'project_id': 'e68e63f400844fba8e68f8079275c00a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['601edb01-9e24-4701-9908-e4a224f79d5e', '77e94e67-6653-4156-9f2e-54afa8c98b61'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70671575', 'ctest-vn4-24139692'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70671575', 'ctest-policy1-69090335']], 'subnet_ipam': [{'subnet_cidr': '163.41.91.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34f5:d40e:6b7d:a014:760e:85a0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-29 18:02:40,553 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-29 18:02:40,855 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-29 18:02:40,896 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a5885fdb-1bdc-45fc-8384-627111b525ac 2026-04-29 18:02:40,911 - DEBUG - Requesting: http://10.0.0.249:8082/project/e68e63f4-0084-4fba-8e68-f8079275c00a 2026-04-29 18:02:41,002 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4f8e879d-06ed-48ce-979b-e14483f4d0ce 2026-04-29 18:02:41,017 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4f8e879d-06ed-48ce-979b-e14483f4d0ce 2026-04-29 18:02:41,029 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/02ef0d90-86eb-481a-a846-7a272758ef9b 2026-04-29 18:02:41,039 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/02ef0d90-86eb-481a-a846-7a272758ef9b 2026-04-29 18:02:41,049 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/38dc4d0f-30fc-41f5-914f-a66e68adc384 2026-04-29 18:02:41,061 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-29 18:02:41,061 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4f8e879d-06ed-48ce-979b-e14483f4d0ce 2026-04-29 18:02:41,074 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/02ef0d90-86eb-481a-a846-7a272758ef9b 2026-04-29 18:02:41,091 - INFO - Verified VN network id 11 for VN 4f8e879d-06ed-48ce-979b-e14483f4d0ce 2026-04-29 18:02:41,091 - INFO - Verifications in API Server for VN ctest-vn4-24139692 passed 2026-04-29 18:02:41,091 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4f8e879d-06ed-48ce-979b-e14483f4d0ce 2026-04-29 18:02:41,104 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/02ef0d90-86eb-481a-a846-7a272758ef9b 2026-04-29 18:02:41,112 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/02ef0d90-86eb-481a-a846-7a272758ef9b 2026-04-29 18:02:41,121 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/38dc4d0f-30fc-41f5-914f-a66e68adc384 2026-04-29 18:02:41,138 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70671575:ctest-vn4-24139692', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70671575', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5732668484185049294', 'uuid-lslong': '10924573005505155278'}, 'enable': 'true', 'created': '2026-04-29T18:02:39', 'last-modified': '2026-04-29T18:02:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.790045'} 2026-04-29 18:02:41,146 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-29 18:02:41,146 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-24139692 passed 2026-04-29 18:02:41,147 - DEBUG - ====Verifying policy data for ctest-vn4-24139692 in API_Server ====== 2026-04-29 18:02:41,147 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-29 18:02:41,155 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a5885fdb-1bdc-45fc-8384-627111b525ac 2026-04-29 18:02:41,168 - DEBUG - Requesting: http://10.0.0.249:8082/project/e68e63f4-0084-4fba-8e68-f8079275c00a 2026-04-29 18:02:41,246 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/4f8e879d-06ed-48ce-979b-e14483f4d0ce 2026-04-29 18:02:41,259 - DEBUG - ==>Verifying data for policy with id: a9489b91-2a66-4dea-ad24-4306b346a326, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70671575', 'ctest-policy1-69090335'] 2026-04-29 18:02:41,259 - INFO - VN ctest-vn4-24139692 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-29 18:02:41,259 - DEBUG - Verifying the vn in opserver 2026-04-29 18:02:41,259 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70671575:ctest-vn4-24139692 virtual network link through opserver 10.0.0.249 2026-04-29 18:02:41,259 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-29 18:02:41,573 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-04-29 18:02:41,970 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70671575:ctest-vn4-24139692', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70671575:ctest-vn4-24139692?flat'} 2026-04-29 18:02:41,970 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70671575:ctest-vn4-24139692 is found in opserver 2026-04-29 18:02:41,985 - DEBUG - Do not have enough data to verify VN in agent 2026-04-29 18:02:41,994 - DEBUG - VRF ids for VN ctest-vn4-24139692: {} 2026-04-29 18:02:41,994 - DEBUG - ====Verifying data for ctest-policy1-69090335 in API_Server ====== 2026-04-29 18:02:41,994 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-29 18:02:42,002 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a5885fdb-1bdc-45fc-8384-627111b525ac 2026-04-29 18:02:42,021 - DEBUG - Requesting: http://10.0.0.249:8082/project/e68e63f4-0084-4fba-8e68-f8079275c00a 2026-04-29 18:02:42,108 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/a9489b91-2a66-4dea-ad24-4306b346a326 2026-04-29 18:02:42,118 - INFO - Verified policy ctest-policy1-69090335 in API Server, Result: True 2026-04-29 18:02:42,119 - INFO - Done with setup and verification, moving onto test .. 2026-04-29 18:02:42,130 - INFO - Deleting VN ctest-vn4-24139692 2026-04-29 18:02:42,285 - DEBUG - Response for deleting network () 2026-04-29 18:02:42,285 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/02ef0d90-86eb-481a-a846-7a272758ef9b 2026-04-29 18:02:42,291 - DEBUG - Response Code: 404 2026-04-29 18:02:42,291 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-04-29 18:02:42,298 - DEBUG - Requesting: http://10.0.0.249:8082/domain/a5885fdb-1bdc-45fc-8384-627111b525ac 2026-04-29 18:02:42,355 - DEBUG - Requesting: http://10.0.0.249:8082/project/e68e63f4-0084-4fba-8e68-f8079275c00a 2026-04-29 18:02:42,438 - INFO - Validated that VN ctest-vn4-24139692 is not found in API Server 2026-04-29 18:02:42,448 - DEBUG - VN ctest-vn4-24139692 is not present in Agent 10.0.0.249 2026-04-29 18:02:42,448 - INFO - Validated that VN ctest-vn4-24139692 is not in any agent 2026-04-29 18:02:42,466 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-24139692 info 2026-04-29 18:02:42,500 - INFO - Deleted policy ctest-policy1-69090335 2026-04-29 18:02:42,677 - DEBUG - policy ctest-policy1-69090335 is not found in API Server 2026-04-29 18:02:42,934 - DEBUG - No XMPP flaps were noticed during the test 2026-04-29 18:02:42,934 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-04-29 18:02:42,934 - INFO - -------------------------------------------------------------------------------- 2026-04-29 18:02:43,229 - DEBUG - No XMPP flaps were noticed during the test 2026-04-29 18:02:43,229 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-04-29 18:02:43,229 - INFO - -------------------------------------------------------------------------------- 2026-04-29 18:02:43,975 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-70671575, ID : e68e63f4-0084-4fba-8e68-f8079275c00a