2026-09-02 06:10:08,200 - INFO - Domain Default found not creating 2026-09-02 06:10:08,371 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-60475342 not found, creating it 2026-09-02 06:10:08,919 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-60475342, ID : b163c402-15ce-4c1c-8586-a4649059d243 2026-09-02 06:10:10,598 - INFO - ================================================================================ 2026-09-02 06:10:10,598 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-02 06:10:10,878 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.17': '0'}} with 2026-09-02 06:10:10,878 - INFO - Initial checks done. Running the testcase now 2026-09-02 06:10:10,878 - INFO - 2026-09-02 06:10:10,878 - INFO - ================================================================================ 2026-09-02 06:10:10,878 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-02 06:10:10,878 - 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-09-02 06:10:11,164 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.17': '0'}} with 2026-09-02 06:10:11,164 - INFO - Initial checks done. Running the testcase now 2026-09-02 06:10:11,164 - INFO - 2026-09-02 06:10:11,557 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60475342:ctest-vn4-78555100, 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-60475342:ctest-vn4-78555100, 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-60475342:ctest-vn4-78555100, 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-60475342:ctest-vn4-78555100, 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-09-02 06:10:12,112 - DEBUG - Response for create_network : {'network': {'id': '993760bc-c8f0-40c4-a784-95cb69386827', 'name': 'ctest-vn4-78555100', 'tenant_id': 'b163c40215ce4c1c8586a4649059d243', 'project_id': 'b163c40215ce4c1c8586a4649059d243', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60475342', 'ctest-vn4-78555100'], 'port_security_enabled': True, 'description': ''}} 2026-09-02 06:10:12,304 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba9c9713-e1bb-429d-ab59-9383176bb6d9', 'name': '', 'tenant_id': 'b163c40215ce4c1c8586a4649059d243', 'network_id': '993760bc-c8f0-40c4-a784-95cb69386827', 'ip_version': 4, 'cidr': '168.186.40.128/26', 'allocation_pools': [{'start': '168.186.40.130', 'end': '168.186.40.190'}], 'gateway_ip': '168.186.40.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.186.40.130', 'tags': [], 'project_id': 'b163c40215ce4c1c8586a4649059d243'}} 2026-09-02 06:10:12,490 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa2003e5-40ee-478f-bc10-9bea5781af53', 'name': '', 'tenant_id': 'b163c40215ce4c1c8586a4649059d243', 'network_id': '993760bc-c8f0-40c4-a784-95cb69386827', 'ip_version': 6, 'cidr': '3eb9:9f9d:653a:a823:2f2:910::/96', 'allocation_pools': [{'start': '3eb9:9f9d:653a:a823:2f2:910:0:2', 'end': '3eb9:9f9d:653a:a823:2f2:910:ffff:fffe'}], 'gateway_ip': '3eb9:9f9d:653a:a823:2f2:910:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3eb9:9f9d:653a:a823:2f2:910:0:2', 'tags': [], 'project_id': 'b163c40215ce4c1c8586a4649059d243'}} 2026-09-02 06:10:12,513 - INFO - Created VN ctest-vn4-78555100 2026-09-02 06:10:12,571 - DEBUG - VN ctest-vn4-78555100 UUID is 993760bc-c8f0-40c4-a784-95cb69386827 2026-09-02 06:10:12,795 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '993760bc-c8f0-40c4-a784-95cb69386827', 'name': 'ctest-vn4-78555100', 'tenant_id': 'b163c40215ce4c1c8586a4649059d243', 'project_id': 'b163c40215ce4c1c8586a4649059d243', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['ba9c9713-e1bb-429d-ab59-9383176bb6d9', 'aa2003e5-40ee-478f-bc10-9bea5781af53'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60475342', 'ctest-vn4-78555100'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60475342', 'ctest-policy1-32925276']], 'subnet_ipam': [{'subnet_cidr': '168.186.40.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3eb9:9f9d:653a:a823:2f2:910::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-02 06:10:12,971 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-02 06:10:13,292 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-02 06:10:13,323 - DEBUG - Requesting: http://10.0.0.163:8082/domain/316a517e-9c5f-4644-8dd5-5dbab89e726c 2026-09-02 06:10:13,338 - DEBUG - Requesting: http://10.0.0.163:8082/project/b163c402-15ce-4c1c-8586-a4649059d243 2026-09-02 06:10:13,418 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/993760bc-c8f0-40c4-a784-95cb69386827 2026-09-02 06:10:13,432 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/993760bc-c8f0-40c4-a784-95cb69386827 2026-09-02 06:10:13,444 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/1ea632e2-be2a-43d7-a8da-98ebfd413b8f 2026-09-02 06:10:13,468 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/1ea632e2-be2a-43d7-a8da-98ebfd413b8f 2026-09-02 06:10:13,488 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/f60ff876-9e0d-4f0d-9f1d-b78c160d4288 2026-09-02 06:10:13,505 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-02 06:10:13,505 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/993760bc-c8f0-40c4-a784-95cb69386827 2026-09-02 06:10:13,518 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/1ea632e2-be2a-43d7-a8da-98ebfd413b8f 2026-09-02 06:10:13,537 - INFO - Verified VN network id 12 for VN 993760bc-c8f0-40c4-a784-95cb69386827 2026-09-02 06:10:13,537 - INFO - Verifications in API Server for VN ctest-vn4-78555100 passed 2026-09-02 06:10:13,537 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/993760bc-c8f0-40c4-a784-95cb69386827 2026-09-02 06:10:13,549 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/1ea632e2-be2a-43d7-a8da-98ebfd413b8f 2026-09-02 06:10:13,559 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/1ea632e2-be2a-43d7-a8da-98ebfd413b8f 2026-09-02 06:10:13,568 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/f60ff876-9e0d-4f0d-9f1d-b78c160d4288 2026-09-02 06:10:13,589 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60475342:ctest-vn4-78555100', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-60475342', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11040399375463366852', 'uuid-lslong': '12070937602135975975'}, 'enable': 'true', 'created': '2026-09-02T06:10:12', 'last-modified': '2026-09-02T06:10:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.824846'} 2026-09-02 06:10:13,597 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-02 06:10:13,598 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78555100 passed 2026-09-02 06:10:13,598 - DEBUG - ====Verifying policy data for ctest-vn4-78555100 in API_Server ====== 2026-09-02 06:10:13,598 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-02 06:10:13,605 - DEBUG - Requesting: http://10.0.0.163:8082/domain/316a517e-9c5f-4644-8dd5-5dbab89e726c 2026-09-02 06:10:13,618 - DEBUG - Requesting: http://10.0.0.163:8082/project/b163c402-15ce-4c1c-8586-a4649059d243 2026-09-02 06:10:13,708 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/993760bc-c8f0-40c4-a784-95cb69386827 2026-09-02 06:10:13,720 - DEBUG - ==>Verifying data for policy with id: d8a410bb-a555-4e14-9f3c-a940c637e8af, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60475342', 'ctest-policy1-32925276'] 2026-09-02 06:10:13,720 - INFO - VN ctest-vn4-78555100 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-02 06:10:13,720 - DEBUG - Verifying the vn in opserver 2026-09-02 06:10:13,720 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60475342:ctest-vn4-78555100 virtual network link through opserver 10.0.0.163 2026-09-02 06:10:13,720 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-09-02 06:10:14,065 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-09-02 06:10:14,132 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60475342:ctest-vn4-78555100', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60475342:ctest-vn4-78555100?flat'} 2026-09-02 06:10:14,133 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60475342:ctest-vn4-78555100 is found in opserver 2026-09-02 06:10:14,148 - DEBUG - Do not have enough data to verify VN in agent 2026-09-02 06:10:14,154 - DEBUG - VRF ids for VN ctest-vn4-78555100: {} 2026-09-02 06:10:14,155 - DEBUG - ====Verifying data for ctest-policy1-32925276 in API_Server ====== 2026-09-02 06:10:14,155 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-02 06:10:14,162 - DEBUG - Requesting: http://10.0.0.163:8082/domain/316a517e-9c5f-4644-8dd5-5dbab89e726c 2026-09-02 06:10:14,176 - DEBUG - Requesting: http://10.0.0.163:8082/project/b163c402-15ce-4c1c-8586-a4649059d243 2026-09-02 06:10:14,276 - DEBUG - Requesting: http://10.0.0.163:8082/network-policy/d8a410bb-a555-4e14-9f3c-a940c637e8af 2026-09-02 06:10:14,295 - INFO - Verified policy ctest-policy1-32925276 in API Server, Result: True 2026-09-02 06:10:14,295 - INFO - Done with setup and verification, moving onto test .. 2026-09-02 06:10:14,308 - INFO - Deleting VN ctest-vn4-78555100 2026-09-02 06:10:14,523 - DEBUG - Response for deleting network () 2026-09-02 06:10:14,523 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/1ea632e2-be2a-43d7-a8da-98ebfd413b8f 2026-09-02 06:10:14,529 - DEBUG - Response Code: 404 2026-09-02 06:10:14,530 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-09-02 06:10:14,537 - DEBUG - Requesting: http://10.0.0.163:8082/domain/316a517e-9c5f-4644-8dd5-5dbab89e726c 2026-09-02 06:10:14,597 - DEBUG - Requesting: http://10.0.0.163:8082/project/b163c402-15ce-4c1c-8586-a4649059d243 2026-09-02 06:10:14,678 - INFO - Validated that VN ctest-vn4-78555100 is not found in API Server 2026-09-02 06:10:14,692 - DEBUG - VN ctest-vn4-78555100 is not present in Agent 10.0.0.163 2026-09-02 06:10:14,692 - INFO - Validated that VN ctest-vn4-78555100 is not in any agent 2026-09-02 06:10:14,711 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78555100 info 2026-09-02 06:10:14,747 - INFO - Deleted policy ctest-policy1-32925276 2026-09-02 06:10:14,922 - DEBUG - policy ctest-policy1-32925276 is not found in API Server 2026-09-02 06:10:15,193 - DEBUG - No XMPP flaps were noticed during the test
2026-09-02 06:10:15,193 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-02 06:10:15,193 - INFO - -------------------------------------------------------------------------------- 2026-09-02 06:10:15,494 - DEBUG - No XMPP flaps were noticed during the test
2026-09-02 06:10:15,494 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-02 06:10:15,494 - INFO - -------------------------------------------------------------------------------- 2026-09-02 06:10:16,296 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-60475342, ID : b163c402-15ce-4c1c-8586-a4649059d243