2026-04-17 15:50:33,207 - INFO - Domain Default found not creating 2026-04-17 15:50:33,405 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-28544384 not found, creating it 2026-04-17 15:50:33,890 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-28544384, ID : 3d892bf3-5663-4279-968b-6ea74a3beadc 2026-04-17 15:50:35,449 - INFO - ================================================================================ 2026-04-17 15:50:35,449 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-17 15:50:35,704 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-17 15:50:35,704 - INFO - Initial checks done. Running the testcase now 2026-04-17 15:50:35,704 - INFO - 2026-04-17 15:50:35,704 - INFO - ================================================================================ 2026-04-17 15:50:35,704 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-17 15:50:35,705 - 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-17 15:50:35,998 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-17 15:50:35,998 - INFO - Initial checks done. Running the testcase now 2026-04-17 15:50:35,998 - INFO - 2026-04-17 15:50:36,372 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28544384:ctest-vn4-73259293, 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-28544384:ctest-vn4-73259293, 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-28544384:ctest-vn4-73259293, 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-28544384:ctest-vn4-73259293, 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-17 15:50:36,905 - DEBUG - Response for create_network : {'network': {'id': 'e8811ef1-f204-48b3-a670-d68f4a58da22', 'name': 'ctest-vn4-73259293', 'tenant_id': '3d892bf356634279968b6ea74a3beadc', 'project_id': '3d892bf356634279968b6ea74a3beadc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28544384', 'ctest-vn4-73259293'], 'port_security_enabled': True, 'description': ''}} 2026-04-17 15:50:37,098 - DEBUG - Response for create_subnet : {'subnet': {'id': '20c8cc42-4992-47ce-aa17-7fcc3c93ccc7', 'name': '', 'tenant_id': '3d892bf356634279968b6ea74a3beadc', 'network_id': 'e8811ef1-f204-48b3-a670-d68f4a58da22', 'ip_version': 4, 'cidr': '177.103.47.64/26', 'allocation_pools': [{'start': '177.103.47.66', 'end': '177.103.47.126'}], 'gateway_ip': '177.103.47.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.103.47.66', 'tags': [], 'project_id': '3d892bf356634279968b6ea74a3beadc'}} 2026-04-17 15:50:37,286 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba04ae6e-ce00-4c6a-8c24-71ae58124c59', 'name': '', 'tenant_id': '3d892bf356634279968b6ea74a3beadc', 'network_id': 'e8811ef1-f204-48b3-a670-d68f4a58da22', 'ip_version': 6, 'cidr': '30a4:c463:6af5:f453:1421:97cf::/96', 'allocation_pools': [{'start': '30a4:c463:6af5:f453:1421:97cf:0:2', 'end': '30a4:c463:6af5:f453:1421:97cf:ffff:fffe'}], 'gateway_ip': '30a4:c463:6af5:f453:1421:97cf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30a4:c463:6af5:f453:1421:97cf:0:2', 'tags': [], 'project_id': '3d892bf356634279968b6ea74a3beadc'}} 2026-04-17 15:50:37,308 - INFO - Created VN ctest-vn4-73259293 2026-04-17 15:50:37,362 - DEBUG - VN ctest-vn4-73259293 UUID is e8811ef1-f204-48b3-a670-d68f4a58da22 2026-04-17 15:50:37,570 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8811ef1-f204-48b3-a670-d68f4a58da22', 'name': 'ctest-vn4-73259293', 'tenant_id': '3d892bf356634279968b6ea74a3beadc', 'project_id': '3d892bf356634279968b6ea74a3beadc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20c8cc42-4992-47ce-aa17-7fcc3c93ccc7', 'ba04ae6e-ce00-4c6a-8c24-71ae58124c59'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28544384', 'ctest-vn4-73259293'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28544384', 'ctest-policy1-32360802']], 'subnet_ipam': [{'subnet_cidr': '177.103.47.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30a4:c463:6af5:f453:1421:97cf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-17 15:50:37,738 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-17 15:50:38,044 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-17 15:50:38,079 - DEBUG - Requesting: http://10.0.0.38:8082/domain/02d4c6c9-9ebb-4e98-95fe-2e40b7b8f5c5 2026-04-17 15:50:38,091 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d892bf3-5663-4279-968b-6ea74a3beadc 2026-04-17 15:50:38,170 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8811ef1-f204-48b3-a670-d68f4a58da22 2026-04-17 15:50:38,181 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8811ef1-f204-48b3-a670-d68f4a58da22 2026-04-17 15:50:38,190 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/981a50d3-8515-4fd0-becd-9f50847dc765 2026-04-17 15:50:38,197 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/981a50d3-8515-4fd0-becd-9f50847dc765 2026-04-17 15:50:38,204 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/46185690-11bb-4979-b5f6-dadda666f02d 2026-04-17 15:50:38,211 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-17 15:50:38,211 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8811ef1-f204-48b3-a670-d68f4a58da22 2026-04-17 15:50:38,221 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/981a50d3-8515-4fd0-becd-9f50847dc765 2026-04-17 15:50:38,236 - INFO - Verified VN network id 11 for VN e8811ef1-f204-48b3-a670-d68f4a58da22 2026-04-17 15:50:38,236 - INFO - Verifications in API Server for VN ctest-vn4-73259293 passed 2026-04-17 15:50:38,237 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8811ef1-f204-48b3-a670-d68f4a58da22 2026-04-17 15:50:38,246 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/981a50d3-8515-4fd0-becd-9f50847dc765 2026-04-17 15:50:38,253 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/981a50d3-8515-4fd0-becd-9f50847dc765 2026-04-17 15:50:38,260 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/46185690-11bb-4979-b5f6-dadda666f02d 2026-04-17 15:50:38,272 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28544384:ctest-vn4-73259293', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28544384', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16753706113291274419', 'uuid-lslong': '11993321718603635234'}, 'enable': 'true', 'created': '2026-04-17T15:50:36', 'last-modified': '2026-04-17T15:50:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.733265'} 2026-04-17 15:50:38,278 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-17 15:50:38,278 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-73259293 passed 2026-04-17 15:50:38,278 - DEBUG - ====Verifying policy data for ctest-vn4-73259293 in API_Server ====== 2026-04-17 15:50:38,278 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-17 15:50:38,284 - DEBUG - Requesting: http://10.0.0.38:8082/domain/02d4c6c9-9ebb-4e98-95fe-2e40b7b8f5c5 2026-04-17 15:50:38,296 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d892bf3-5663-4279-968b-6ea74a3beadc 2026-04-17 15:50:38,367 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8811ef1-f204-48b3-a670-d68f4a58da22 2026-04-17 15:50:38,377 - DEBUG - ==>Verifying data for policy with id: 1a18c6af-e808-43b0-b943-faff0a2c5b43, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28544384', 'ctest-policy1-32360802'] 2026-04-17 15:50:38,377 - INFO - VN ctest-vn4-73259293 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-17 15:50:38,377 - DEBUG - Verifying the vn in opserver 2026-04-17 15:50:38,377 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28544384:ctest-vn4-73259293 virtual network link through opserver 10.0.0.38 2026-04-17 15:50:38,377 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-17 15:50:38,686 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-17 15:50:38,758 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28544384:ctest-vn4-73259293', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28544384:ctest-vn4-73259293?flat'} 2026-04-17 15:50:38,758 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28544384:ctest-vn4-73259293 is found in opserver 2026-04-17 15:50:38,768 - DEBUG - Do not have enough data to verify VN in agent 2026-04-17 15:50:38,773 - DEBUG - VRF ids for VN ctest-vn4-73259293: {} 2026-04-17 15:50:38,773 - DEBUG - ====Verifying data for ctest-policy1-32360802 in API_Server ====== 2026-04-17 15:50:38,773 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-17 15:50:38,778 - DEBUG - Requesting: http://10.0.0.38:8082/domain/02d4c6c9-9ebb-4e98-95fe-2e40b7b8f5c5 2026-04-17 15:50:38,788 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d892bf3-5663-4279-968b-6ea74a3beadc 2026-04-17 15:50:38,863 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/1a18c6af-e808-43b0-b943-faff0a2c5b43 2026-04-17 15:50:38,873 - INFO - Verified policy ctest-policy1-32360802 in API Server, Result: True 2026-04-17 15:50:38,873 - INFO - Done with setup and verification, moving onto test .. 2026-04-17 15:50:38,880 - INFO - Deleting VN ctest-vn4-73259293 2026-04-17 15:50:39,007 - DEBUG - Response for deleting network () 2026-04-17 15:50:39,007 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/981a50d3-8515-4fd0-becd-9f50847dc765 2026-04-17 15:50:39,012 - DEBUG - Response Code: 404 2026-04-17 15:50:39,012 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-17 15:50:39,017 - DEBUG - Requesting: http://10.0.0.38:8082/domain/02d4c6c9-9ebb-4e98-95fe-2e40b7b8f5c5 2026-04-17 15:50:39,071 - DEBUG - Requesting: http://10.0.0.38:8082/project/3d892bf3-5663-4279-968b-6ea74a3beadc 2026-04-17 15:50:39,140 - INFO - Validated that VN ctest-vn4-73259293 is not found in API Server 2026-04-17 15:50:39,149 - DEBUG - VN ctest-vn4-73259293 is not present in Agent 10.0.0.38 2026-04-17 15:50:39,149 - INFO - Validated that VN ctest-vn4-73259293 is not in any agent 2026-04-17 15:50:39,163 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-73259293 info 2026-04-17 15:50:39,191 - INFO - Deleted policy ctest-policy1-32360802 2026-04-17 15:50:39,358 - DEBUG - policy ctest-policy1-32360802 is not found in API Server 2026-04-17 15:50:39,615 - DEBUG - No XMPP flaps were noticed during the test