2026-02-12 15:19:36,361 - INFO - Domain Default found not creating 2026-02-12 15:19:36,562 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-67311953 not found, creating it 2026-02-12 15:19:37,106 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-67311953, ID : 2052658c-951e-40e6-8d75-f71740588be4 2026-02-12 15:19:38,903 - INFO - ================================================================================ 2026-02-12 15:19:38,903 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 15:19:39,177 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with 2026-02-12 15:19:39,177 - INFO - Initial checks done. Running the testcase now 2026-02-12 15:19:39,177 - INFO - 2026-02-12 15:19:39,177 - INFO - ================================================================================ 2026-02-12 15:19:39,177 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-12 15:19:39,177 - 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-02-12 15:19:39,484 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with 2026-02-12 15:19:39,484 - INFO - Initial checks done. Running the testcase now 2026-02-12 15:19:39,485 - INFO - 2026-02-12 15:19:39,944 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67311953:ctest-vn4-09778581, 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-67311953:ctest-vn4-09778581, 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-67311953:ctest-vn4-09778581, 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-67311953:ctest-vn4-09778581, 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-02-12 15:19:40,517 - DEBUG - Response for create_network : {'network': {'id': '06211db2-4d72-42ce-a4a8-803afd5072c9', 'name': 'ctest-vn4-09778581', 'tenant_id': '2052658c951e40e68d75f71740588be4', 'project_id': '2052658c951e40e68d75f71740588be4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67311953', 'ctest-vn4-09778581'], 'port_security_enabled': True, 'description': ''}} 2026-02-12 15:19:40,718 - DEBUG - Response for create_subnet : {'subnet': {'id': '310c80fa-27ce-442b-a131-988dffaff144', 'name': '', 'tenant_id': '2052658c951e40e68d75f71740588be4', 'network_id': '06211db2-4d72-42ce-a4a8-803afd5072c9', 'ip_version': 4, 'cidr': '69.15.67.128/26', 'allocation_pools': [{'start': '69.15.67.130', 'end': '69.15.67.190'}], 'gateway_ip': '69.15.67.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.15.67.130', 'tags': [], 'project_id': '2052658c951e40e68d75f71740588be4'}} 2026-02-12 15:19:40,911 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f077e6d6-649d-4139-82e2-ed0a0bf0289d', 'name': '', 'tenant_id': '2052658c951e40e68d75f71740588be4', 'network_id': '06211db2-4d72-42ce-a4a8-803afd5072c9', 'ip_version': 6, 'cidr': '2d2b:b036:f34:4f01:98a0:fa9::/96', 'allocation_pools': [{'start': '2d2b:b036:f34:4f01:98a0:fa9:0:2', 'end': '2d2b:b036:f34:4f01:98a0:fa9:ffff:fffe'}], 'gateway_ip': '2d2b:b036:f34:4f01:98a0:fa9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d2b:b036:f34:4f01:98a0:fa9:0:2', 'tags': [], 'project_id': '2052658c951e40e68d75f71740588be4'}} 2026-02-12 15:19:40,939 - INFO - Created VN ctest-vn4-09778581 2026-02-12 15:19:40,991 - DEBUG - VN ctest-vn4-09778581 UUID is 06211db2-4d72-42ce-a4a8-803afd5072c9 2026-02-12 15:19:41,235 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '06211db2-4d72-42ce-a4a8-803afd5072c9', 'name': 'ctest-vn4-09778581', 'tenant_id': '2052658c951e40e68d75f71740588be4', 'project_id': '2052658c951e40e68d75f71740588be4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['310c80fa-27ce-442b-a131-988dffaff144', 'f077e6d6-649d-4139-82e2-ed0a0bf0289d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67311953', 'ctest-vn4-09778581'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67311953', 'ctest-policy1-93649057']], 'subnet_ipam': [{'subnet_cidr': '69.15.67.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d2b:b036:f34:4f01:98a0:fa9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-12 15:19:41,415 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-12 15:19:41,768 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-12 15:19:41,806 - DEBUG - Requesting: http://10.0.0.129:8082/domain/a0463cad-1b8f-499c-be49-0d07820a3594 2026-02-12 15:19:41,821 - DEBUG - Requesting: http://10.0.0.129:8082/project/2052658c-951e-40e6-8d75-f71740588be4 2026-02-12 15:19:41,907 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/06211db2-4d72-42ce-a4a8-803afd5072c9 2026-02-12 15:19:41,924 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/06211db2-4d72-42ce-a4a8-803afd5072c9 2026-02-12 15:19:41,937 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/1e541792-bbdf-42f6-89ca-b97af4e41f09 2026-02-12 15:19:41,946 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/1e541792-bbdf-42f6-89ca-b97af4e41f09 2026-02-12 15:19:41,954 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/8615d65a-78d7-42ed-a67a-941f68440ec3 2026-02-12 15:19:41,962 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 15:19:41,962 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/06211db2-4d72-42ce-a4a8-803afd5072c9 2026-02-12 15:19:41,973 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/1e541792-bbdf-42f6-89ca-b97af4e41f09 2026-02-12 15:19:41,989 - INFO - Verified VN network id 12 for VN 06211db2-4d72-42ce-a4a8-803afd5072c9 2026-02-12 15:19:41,989 - INFO - Verifications in API Server for VN ctest-vn4-09778581 passed 2026-02-12 15:19:41,990 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/06211db2-4d72-42ce-a4a8-803afd5072c9 2026-02-12 15:19:42,001 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/1e541792-bbdf-42f6-89ca-b97af4e41f09 2026-02-12 15:19:42,009 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/1e541792-bbdf-42f6-89ca-b97af4e41f09 2026-02-12 15:19:42,017 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/8615d65a-78d7-42ed-a67a-941f68440ec3 2026-02-12 15:19:42,031 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67311953:ctest-vn4-09778581', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-67311953', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '441666890099737294', 'uuid-lslong': '11864874209153938121'}, 'enable': 'true', 'created': '2026-02-12T15:19:40', 'last-modified': '2026-02-12T15:19:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.832703'} 2026-02-12 15:19:42,037 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-12 15:19:42,037 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-09778581 passed 2026-02-12 15:19:42,038 - DEBUG - ====Verifying policy data for ctest-vn4-09778581 in API_Server ====== 2026-02-12 15:19:42,038 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-12 15:19:42,045 - DEBUG - Requesting: http://10.0.0.129:8082/domain/a0463cad-1b8f-499c-be49-0d07820a3594 2026-02-12 15:19:42,057 - DEBUG - Requesting: http://10.0.0.129:8082/project/2052658c-951e-40e6-8d75-f71740588be4 2026-02-12 15:19:42,133 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/06211db2-4d72-42ce-a4a8-803afd5072c9 2026-02-12 15:19:42,146 - DEBUG - ==>Verifying data for policy with id: 54b6f90a-c2ab-4c8a-ad24-d209c6a2999e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67311953', 'ctest-policy1-93649057'] 2026-02-12 15:19:42,146 - INFO - VN ctest-vn4-09778581 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-12 15:19:42,146 - DEBUG - Verifying the vn in opserver 2026-02-12 15:19:42,146 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67311953:ctest-vn4-09778581 virtual network link through opserver 10.0.0.129 2026-02-12 15:19:42,146 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-12 15:19:42,492 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-12 15:19:42,577 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67311953:ctest-vn4-09778581', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67311953:ctest-vn4-09778581?flat'} 2026-02-12 15:19:42,578 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67311953:ctest-vn4-09778581 is found in opserver 2026-02-12 15:19:42,588 - DEBUG - Do not have enough data to verify VN in agent 2026-02-12 15:19:42,594 - DEBUG - VRF ids for VN ctest-vn4-09778581: {} 2026-02-12 15:19:42,594 - DEBUG - ====Verifying data for ctest-policy1-93649057 in API_Server ====== 2026-02-12 15:19:42,594 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-12 15:19:42,601 - DEBUG - Requesting: http://10.0.0.129:8082/domain/a0463cad-1b8f-499c-be49-0d07820a3594 2026-02-12 15:19:42,615 - DEBUG - Requesting: http://10.0.0.129:8082/project/2052658c-951e-40e6-8d75-f71740588be4 2026-02-12 15:19:42,688 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/54b6f90a-c2ab-4c8a-ad24-d209c6a2999e 2026-02-12 15:19:42,702 - INFO - Verified policy ctest-policy1-93649057 in API Server, Result: True 2026-02-12 15:19:42,702 - INFO - Done with setup and verification, moving onto test .. 2026-02-12 15:19:42,714 - INFO - Deleting VN ctest-vn4-09778581 2026-02-12 15:19:42,884 - DEBUG - Response for deleting network () 2026-02-12 15:19:42,884 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/1e541792-bbdf-42f6-89ca-b97af4e41f09 2026-02-12 15:19:42,892 - DEBUG - Response Code: 404 2026-02-12 15:19:42,892 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-12 15:19:42,898 - DEBUG - Requesting: http://10.0.0.129:8082/domain/a0463cad-1b8f-499c-be49-0d07820a3594 2026-02-12 15:19:42,961 - DEBUG - Requesting: http://10.0.0.129:8082/project/2052658c-951e-40e6-8d75-f71740588be4 2026-02-12 15:19:43,048 - INFO - Validated that VN ctest-vn4-09778581 is not found in API Server 2026-02-12 15:19:43,063 - DEBUG - VN ctest-vn4-09778581 is not present in Agent 10.0.0.129 2026-02-12 15:19:43,063 - INFO - Validated that VN ctest-vn4-09778581 is not in any agent 2026-02-12 15:19:43,084 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-09778581 info 2026-02-12 15:19:43,121 - INFO - Deleted policy ctest-policy1-93649057 2026-02-12 15:19:43,307 - DEBUG - policy ctest-policy1-93649057 is not found in API Server 2026-02-12 15:19:43,580 - DEBUG - No XMPP flaps were noticed during the test
2026-02-12 15:19:43,581 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-12 15:19:43,581 - INFO - -------------------------------------------------------------------------------- 2026-02-12 15:19:43,880 - DEBUG - No XMPP flaps were noticed during the test
2026-02-12 15:19:43,880 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-12 15:19:43,880 - INFO - -------------------------------------------------------------------------------- 2026-02-12 15:19:44,690 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-67311953, ID : 2052658c-951e-40e6-8d75-f71740588be4