2026-03-05 09:04:00,095 - INFO - Domain Default found not creating 2026-03-05 09:04:00,275 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07157200 not found, creating it 2026-03-05 09:04:00,755 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07157200, ID : aa59c7f9-6bd0-485b-b4ec-f495f0d3aea2 2026-03-05 09:04:02,318 - INFO - ================================================================================ 2026-03-05 09:04:02,319 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 09:04:02,573 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-03-05 09:04:02,573 - INFO - Initial checks done. Running the testcase now 2026-03-05 09:04:02,573 - INFO - 2026-03-05 09:04:02,573 - INFO - ================================================================================ 2026-03-05 09:04:02,574 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 09:04:02,574 - 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-05 09:04:02,865 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-03-05 09:04:02,865 - INFO - Initial checks done. Running the testcase now 2026-03-05 09:04:02,865 - INFO - 2026-03-05 09:04:03,242 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07157200:ctest-vn4-16098644, 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-07157200:ctest-vn4-16098644, 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-07157200:ctest-vn4-16098644, 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-07157200:ctest-vn4-16098644, 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-05 09:04:03,769 - DEBUG - Response for create_network : {'network': {'id': '2a7e40e5-53e3-4792-b4d9-096883aea1a0', 'name': 'ctest-vn4-16098644', 'tenant_id': 'aa59c7f96bd0485bb4ecf495f0d3aea2', 'project_id': 'aa59c7f96bd0485bb4ecf495f0d3aea2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07157200', 'ctest-vn4-16098644'], 'port_security_enabled': True, 'description': ''}} 2026-03-05 09:04:03,980 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b1dae273-d86a-405b-84db-a936227b060d', 'name': '', 'tenant_id': 'aa59c7f96bd0485bb4ecf495f0d3aea2', 'network_id': '2a7e40e5-53e3-4792-b4d9-096883aea1a0', 'ip_version': 4, 'cidr': '75.24.243.0/26', 'allocation_pools': [{'start': '75.24.243.2', 'end': '75.24.243.62'}], 'gateway_ip': '75.24.243.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.24.243.2', 'tags': [], 'project_id': 'aa59c7f96bd0485bb4ecf495f0d3aea2'}} 2026-03-05 09:04:04,169 - DEBUG - Response for create_subnet : {'subnet': {'id': '029776e7-580b-4dbe-b98e-501afe9ceabd', 'name': '', 'tenant_id': 'aa59c7f96bd0485bb4ecf495f0d3aea2', 'network_id': '2a7e40e5-53e3-4792-b4d9-096883aea1a0', 'ip_version': 6, 'cidr': '2859:63bc:e1bf:17b0:e875:6a63::/96', 'allocation_pools': [{'start': '2859:63bc:e1bf:17b0:e875:6a63:0:2', 'end': '2859:63bc:e1bf:17b0:e875:6a63:ffff:fffe'}], 'gateway_ip': '2859:63bc:e1bf:17b0:e875:6a63:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2859:63bc:e1bf:17b0:e875:6a63:0:2', 'tags': [], 'project_id': 'aa59c7f96bd0485bb4ecf495f0d3aea2'}} 2026-03-05 09:04:04,195 - INFO - Created VN ctest-vn4-16098644 2026-03-05 09:04:04,251 - DEBUG - VN ctest-vn4-16098644 UUID is 2a7e40e5-53e3-4792-b4d9-096883aea1a0 2026-03-05 09:04:04,470 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a7e40e5-53e3-4792-b4d9-096883aea1a0', 'name': 'ctest-vn4-16098644', 'tenant_id': 'aa59c7f96bd0485bb4ecf495f0d3aea2', 'project_id': 'aa59c7f96bd0485bb4ecf495f0d3aea2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b1dae273-d86a-405b-84db-a936227b060d', '029776e7-580b-4dbe-b98e-501afe9ceabd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07157200', 'ctest-vn4-16098644'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07157200', 'ctest-policy1-51856622']], 'subnet_ipam': [{'subnet_cidr': '75.24.243.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2859:63bc:e1bf:17b0:e875:6a63::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-05 09:04:04,643 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-05 09:04:04,937 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-05 09:04:04,974 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f33196d4-65e2-4442-bb7b-daa83caa4dfe 2026-03-05 09:04:04,987 - DEBUG - Requesting: http://10.0.0.33:8082/project/aa59c7f9-6bd0-485b-b4ec-f495f0d3aea2 2026-03-05 09:04:05,063 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2a7e40e5-53e3-4792-b4d9-096883aea1a0 2026-03-05 09:04:05,077 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2a7e40e5-53e3-4792-b4d9-096883aea1a0 2026-03-05 09:04:05,088 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8da49a1a-efca-4495-8961-834bc2862317 2026-03-05 09:04:05,097 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8da49a1a-efca-4495-8961-834bc2862317 2026-03-05 09:04:05,104 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/281e0a16-2440-4913-9618-696bb649c5d1 2026-03-05 09:04:05,112 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 09:04:05,112 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2a7e40e5-53e3-4792-b4d9-096883aea1a0 2026-03-05 09:04:05,123 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8da49a1a-efca-4495-8961-834bc2862317 2026-03-05 09:04:05,140 - INFO - Verified VN network id 11 for VN 2a7e40e5-53e3-4792-b4d9-096883aea1a0 2026-03-05 09:04:05,140 - INFO - Verifications in API Server for VN ctest-vn4-16098644 passed 2026-03-05 09:04:05,140 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2a7e40e5-53e3-4792-b4d9-096883aea1a0 2026-03-05 09:04:05,153 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8da49a1a-efca-4495-8961-834bc2862317 2026-03-05 09:04:05,162 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8da49a1a-efca-4495-8961-834bc2862317 2026-03-05 09:04:05,170 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/281e0a16-2440-4913-9618-696bb649c5d1 2026-03-05 09:04:05,183 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07157200:ctest-vn4-16098644', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07157200', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3061956150357608338', 'uuid-lslong': '13031457341263749536'}, 'enable': 'true', 'created': '2026-03-05T09:04:03', 'last-modified': '2026-03-05T09:04:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.738742'} 2026-03-05 09:04:05,189 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 09:04:05,190 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-16098644 passed 2026-03-05 09:04:05,190 - DEBUG - ====Verifying policy data for ctest-vn4-16098644 in API_Server ====== 2026-03-05 09:04:05,190 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-05 09:04:05,196 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f33196d4-65e2-4442-bb7b-daa83caa4dfe 2026-03-05 09:04:05,209 - DEBUG - Requesting: http://10.0.0.33:8082/project/aa59c7f9-6bd0-485b-b4ec-f495f0d3aea2 2026-03-05 09:04:05,287 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2a7e40e5-53e3-4792-b4d9-096883aea1a0 2026-03-05 09:04:05,297 - DEBUG - ==>Verifying data for policy with id: 27f5a77f-2b02-4ac2-810b-6ab56242900a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07157200', 'ctest-policy1-51856622'] 2026-03-05 09:04:05,297 - INFO - VN ctest-vn4-16098644 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-05 09:04:05,297 - DEBUG - Verifying the vn in opserver 2026-03-05 09:04:05,298 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07157200:ctest-vn4-16098644 virtual network link through opserver 10.0.0.33 2026-03-05 09:04:05,298 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-05 09:04:05,595 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-05 09:04:05,666 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07157200:ctest-vn4-16098644', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07157200:ctest-vn4-16098644?flat'} 2026-03-05 09:04:05,666 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07157200:ctest-vn4-16098644 is found in opserver 2026-03-05 09:04:05,677 - DEBUG - Do not have enough data to verify VN in agent 2026-03-05 09:04:05,683 - DEBUG - VRF ids for VN ctest-vn4-16098644: {} 2026-03-05 09:04:05,684 - DEBUG - ====Verifying data for ctest-policy1-51856622 in API_Server ====== 2026-03-05 09:04:05,684 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-05 09:04:05,690 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f33196d4-65e2-4442-bb7b-daa83caa4dfe 2026-03-05 09:04:05,702 - DEBUG - Requesting: http://10.0.0.33:8082/project/aa59c7f9-6bd0-485b-b4ec-f495f0d3aea2 2026-03-05 09:04:05,777 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/27f5a77f-2b02-4ac2-810b-6ab56242900a 2026-03-05 09:04:05,788 - INFO - Verified policy ctest-policy1-51856622 in API Server, Result: True 2026-03-05 09:04:05,788 - INFO - Done with setup and verification, moving onto test .. 2026-03-05 09:04:05,797 - INFO - Deleting VN ctest-vn4-16098644 2026-03-05 09:04:05,943 - DEBUG - Response for deleting network () 2026-03-05 09:04:05,943 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/8da49a1a-efca-4495-8961-834bc2862317 2026-03-05 09:04:05,950 - DEBUG - Response Code: 404 2026-03-05 09:04:05,950 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-05 09:04:05,958 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f33196d4-65e2-4442-bb7b-daa83caa4dfe 2026-03-05 09:04:06,017 - DEBUG - Requesting: http://10.0.0.33:8082/project/aa59c7f9-6bd0-485b-b4ec-f495f0d3aea2 2026-03-05 09:04:06,102 - INFO - Validated that VN ctest-vn4-16098644 is not found in API Server 2026-03-05 09:04:06,114 - DEBUG - VN ctest-vn4-16098644 is not present in Agent 10.0.0.33 2026-03-05 09:04:06,114 - INFO - Validated that VN ctest-vn4-16098644 is not in any agent 2026-03-05 09:04:06,130 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-16098644 info 2026-03-05 09:04:06,158 - INFO - Deleted policy ctest-policy1-51856622 2026-03-05 09:04:06,331 - DEBUG - policy ctest-policy1-51856622 is not found in API Server 2026-03-05 09:04:06,597 - DEBUG - No XMPP flaps were noticed during the test