2026-06-16 09:40:55,254 - INFO - Domain Default found not creating 2026-06-16 09:40:55,378 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-31489910 not found, creating it 2026-06-16 09:40:55,784 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-31489910, ID : 20b132e5-0d49-42ef-895f-675b7fea3cf7 2026-06-16 09:40:57,202 - INFO - ================================================================================ 2026-06-16 09:40:57,202 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-16 09:40:57,459 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-16 09:40:57,460 - INFO - Initial checks done. Running the testcase now 2026-06-16 09:40:57,460 - INFO - 2026-06-16 09:40:57,460 - INFO - ================================================================================ 2026-06-16 09:40:57,460 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-16 09:40:57,460 - 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-16 09:40:57,748 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-16 09:40:57,748 - INFO - Initial checks done. Running the testcase now 2026-06-16 09:40:57,748 - INFO - 2026-06-16 09:40:58,109 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31489910:ctest-vn4-28759780, 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-31489910:ctest-vn4-28759780, 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-31489910:ctest-vn4-28759780, 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-31489910:ctest-vn4-28759780, 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-16 09:40:58,591 - DEBUG - Response for create_network : {'network': {'id': '484733db-61a9-4732-a362-8f241b1e494e', 'name': 'ctest-vn4-28759780', 'tenant_id': '20b132e50d4942ef895f675b7fea3cf7', 'project_id': '20b132e50d4942ef895f675b7fea3cf7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31489910', 'ctest-vn4-28759780'], 'port_security_enabled': True, 'description': ''}} 2026-06-16 09:40:58,752 - DEBUG - Response for create_subnet : {'subnet': {'id': '8706d5ce-0a3a-4d16-ac17-e78125bdb1bd', 'name': '', 'tenant_id': '20b132e50d4942ef895f675b7fea3cf7', 'network_id': '484733db-61a9-4732-a362-8f241b1e494e', 'ip_version': 4, 'cidr': '175.108.105.0/26', 'allocation_pools': [{'start': '175.108.105.2', 'end': '175.108.105.62'}], 'gateway_ip': '175.108.105.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.108.105.2', 'tags': [], 'project_id': '20b132e50d4942ef895f675b7fea3cf7'}} 2026-06-16 09:40:58,902 - DEBUG - Response for create_subnet : {'subnet': {'id': '7ea3992b-7ac5-475d-8067-452e58e3ccd7', 'name': '', 'tenant_id': '20b132e50d4942ef895f675b7fea3cf7', 'network_id': '484733db-61a9-4732-a362-8f241b1e494e', 'ip_version': 6, 'cidr': '382e:f091:19fa:bb11:24d6:535::/96', 'allocation_pools': [{'start': '382e:f091:19fa:bb11:24d6:535:0:2', 'end': '382e:f091:19fa:bb11:24d6:535:ffff:fffe'}], 'gateway_ip': '382e:f091:19fa:bb11:24d6:535:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '382e:f091:19fa:bb11:24d6:535:0:2', 'tags': [], 'project_id': '20b132e50d4942ef895f675b7fea3cf7'}} 2026-06-16 09:40:58,918 - INFO - Created VN ctest-vn4-28759780 2026-06-16 09:40:58,972 - DEBUG - VN ctest-vn4-28759780 UUID is 484733db-61a9-4732-a362-8f241b1e494e 2026-06-16 09:40:59,142 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '484733db-61a9-4732-a362-8f241b1e494e', 'name': 'ctest-vn4-28759780', 'tenant_id': '20b132e50d4942ef895f675b7fea3cf7', 'project_id': '20b132e50d4942ef895f675b7fea3cf7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8706d5ce-0a3a-4d16-ac17-e78125bdb1bd', '7ea3992b-7ac5-475d-8067-452e58e3ccd7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31489910', 'ctest-vn4-28759780'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31489910', 'ctest-policy1-20758596']], 'subnet_ipam': [{'subnet_cidr': '175.108.105.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '382e:f091:19fa:bb11:24d6:535::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-16 09:40:59,308 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 09:40:59,635 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 09:40:59,658 - DEBUG - Requesting: http://10.0.0.50:8082/domain/92cc2983-65e4-4c00-be14-d1699b781629 2026-06-16 09:40:59,668 - DEBUG - Requesting: http://10.0.0.50:8082/project/20b132e5-0d49-42ef-895f-675b7fea3cf7 2026-06-16 09:40:59,762 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/484733db-61a9-4732-a362-8f241b1e494e 2026-06-16 09:40:59,779 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/484733db-61a9-4732-a362-8f241b1e494e 2026-06-16 09:40:59,789 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/06e43644-291c-4422-a29a-e8cb8ee7563c 2026-06-16 09:40:59,796 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/06e43644-291c-4422-a29a-e8cb8ee7563c 2026-06-16 09:40:59,803 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4bd5fa55-1c7b-4cb8-b780-aaac124d73bc 2026-06-16 09:40:59,811 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-16 09:40:59,811 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/484733db-61a9-4732-a362-8f241b1e494e 2026-06-16 09:40:59,820 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/06e43644-291c-4422-a29a-e8cb8ee7563c 2026-06-16 09:40:59,834 - INFO - Verified VN network id 11 for VN 484733db-61a9-4732-a362-8f241b1e494e 2026-06-16 09:40:59,834 - INFO - Verifications in API Server for VN ctest-vn4-28759780 passed 2026-06-16 09:40:59,835 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/484733db-61a9-4732-a362-8f241b1e494e 2026-06-16 09:40:59,844 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/06e43644-291c-4422-a29a-e8cb8ee7563c 2026-06-16 09:40:59,851 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/06e43644-291c-4422-a29a-e8cb8ee7563c 2026-06-16 09:40:59,858 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4bd5fa55-1c7b-4cb8-b780-aaac124d73bc 2026-06-16 09:40:59,871 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31489910:ctest-vn4-28759780', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31489910', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5208188511406606130', 'uuid-lslong': '11773129761136462158'}, 'enable': 'true', 'created': '2026-06-16T09:40:58', 'last-modified': '2026-06-16T09:40:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.750854'} 2026-06-16 09:40:59,877 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-16 09:40:59,877 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-28759780 passed 2026-06-16 09:40:59,877 - DEBUG - ====Verifying policy data for ctest-vn4-28759780 in API_Server ====== 2026-06-16 09:40:59,877 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 09:40:59,884 - DEBUG - Requesting: http://10.0.0.50:8082/domain/92cc2983-65e4-4c00-be14-d1699b781629 2026-06-16 09:40:59,894 - DEBUG - Requesting: http://10.0.0.50:8082/project/20b132e5-0d49-42ef-895f-675b7fea3cf7 2026-06-16 09:40:59,977 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/484733db-61a9-4732-a362-8f241b1e494e 2026-06-16 09:40:59,988 - DEBUG - ==>Verifying data for policy with id: 8cbfa4b8-4969-419e-a4c0-bc0514fce6bc, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31489910', 'ctest-policy1-20758596'] 2026-06-16 09:40:59,988 - INFO - VN ctest-vn4-28759780 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-16 09:40:59,988 - DEBUG - Verifying the vn in opserver 2026-06-16 09:40:59,988 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31489910:ctest-vn4-28759780 virtual network link through opserver 10.0.0.50 2026-06-16 09:40:59,988 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-16 09:41:00,319 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-16 09:41:00,375 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31489910:ctest-vn4-28759780', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31489910:ctest-vn4-28759780?flat'} 2026-06-16 09:41:00,375 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31489910:ctest-vn4-28759780 is found in opserver 2026-06-16 09:41:00,386 - DEBUG - Do not have enough data to verify VN in agent 2026-06-16 09:41:00,391 - DEBUG - VRF ids for VN ctest-vn4-28759780: {} 2026-06-16 09:41:00,392 - DEBUG - ====Verifying data for ctest-policy1-20758596 in API_Server ====== 2026-06-16 09:41:00,392 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 09:41:00,398 - DEBUG - Requesting: http://10.0.0.50:8082/domain/92cc2983-65e4-4c00-be14-d1699b781629 2026-06-16 09:41:00,408 - DEBUG - Requesting: http://10.0.0.50:8082/project/20b132e5-0d49-42ef-895f-675b7fea3cf7 2026-06-16 09:41:00,476 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/8cbfa4b8-4969-419e-a4c0-bc0514fce6bc 2026-06-16 09:41:00,486 - INFO - Verified policy ctest-policy1-20758596 in API Server, Result: True 2026-06-16 09:41:00,486 - INFO - Done with setup and verification, moving onto test .. 2026-06-16 09:41:00,495 - INFO - Deleting VN ctest-vn4-28759780 2026-06-16 09:41:00,610 - DEBUG - Response for deleting network () 2026-06-16 09:41:00,611 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/06e43644-291c-4422-a29a-e8cb8ee7563c 2026-06-16 09:41:00,615 - DEBUG - Response Code: 404 2026-06-16 09:41:00,615 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 09:41:00,620 - DEBUG - Requesting: http://10.0.0.50:8082/domain/92cc2983-65e4-4c00-be14-d1699b781629 2026-06-16 09:41:00,676 - DEBUG - Requesting: http://10.0.0.50:8082/project/20b132e5-0d49-42ef-895f-675b7fea3cf7 2026-06-16 09:41:00,746 - INFO - Validated that VN ctest-vn4-28759780 is not found in API Server 2026-06-16 09:41:00,757 - DEBUG - VN ctest-vn4-28759780 is not present in Agent 10.0.0.50 2026-06-16 09:41:00,757 - INFO - Validated that VN ctest-vn4-28759780 is not in any agent 2026-06-16 09:41:00,770 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-28759780 info 2026-06-16 09:41:00,793 - INFO - Deleted policy ctest-policy1-20758596 2026-06-16 09:41:00,955 - DEBUG - policy ctest-policy1-20758596 is not found in API Server 2026-06-16 09:41:01,216 - DEBUG - No XMPP flaps were noticed during the test