2026-06-15 17:13:21,278 - INFO - Domain Default found not creating 2026-06-15 17:13:21,425 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48365959 not found, creating it 2026-06-15 17:13:21,854 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48365959, ID : de80f222-e450-47ad-99d0-67c4b0305cb1 2026-06-15 17:13:23,314 - INFO - ================================================================================ 2026-06-15 17:13:23,314 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 17:13:23,567 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-15 17:13:23,567 - INFO - Initial checks done. Running the testcase now 2026-06-15 17:13:23,567 - INFO - 2026-06-15 17:13:23,567 - INFO - ================================================================================ 2026-06-15 17:13:23,567 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 17:13:23,567 - 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-15 17:13:23,853 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-15 17:13:23,853 - INFO - Initial checks done. Running the testcase now 2026-06-15 17:13:23,854 - INFO - 2026-06-15 17:13:24,225 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48365959:ctest-vn4-00857635, 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-48365959:ctest-vn4-00857635, 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-48365959:ctest-vn4-00857635, 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-48365959:ctest-vn4-00857635, 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-15 17:13:24,705 - DEBUG - Response for create_network : {'network': {'id': '859a6cc3-71d5-4f9e-9845-183b7562e0d6', 'name': 'ctest-vn4-00857635', 'tenant_id': 'de80f222e45047ad99d067c4b0305cb1', 'project_id': 'de80f222e45047ad99d067c4b0305cb1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48365959', 'ctest-vn4-00857635'], 'port_security_enabled': True, 'description': ''}} 2026-06-15 17:13:24,872 - DEBUG - Response for create_subnet : {'subnet': {'id': '7809762d-9962-42b1-bc72-68609907aec7', 'name': '', 'tenant_id': 'de80f222e45047ad99d067c4b0305cb1', 'network_id': '859a6cc3-71d5-4f9e-9845-183b7562e0d6', 'ip_version': 4, 'cidr': '112.2.133.0/26', 'allocation_pools': [{'start': '112.2.133.2', 'end': '112.2.133.62'}], 'gateway_ip': '112.2.133.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.2.133.2', 'tags': [], 'project_id': 'de80f222e45047ad99d067c4b0305cb1'}} 2026-06-15 17:13:25,069 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0cd18fd-115b-4380-ae43-0ff40a5a06d0', 'name': '', 'tenant_id': 'de80f222e45047ad99d067c4b0305cb1', 'network_id': '859a6cc3-71d5-4f9e-9845-183b7562e0d6', 'ip_version': 6, 'cidr': '32ba:be05:b672:344:ed8c:81b::/96', 'allocation_pools': [{'start': '32ba:be05:b672:344:ed8c:81b:0:2', 'end': '32ba:be05:b672:344:ed8c:81b:ffff:fffe'}], 'gateway_ip': '32ba:be05:b672:344:ed8c:81b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32ba:be05:b672:344:ed8c:81b:0:2', 'tags': [], 'project_id': 'de80f222e45047ad99d067c4b0305cb1'}} 2026-06-15 17:13:25,084 - INFO - Created VN ctest-vn4-00857635 2026-06-15 17:13:25,134 - DEBUG - VN ctest-vn4-00857635 UUID is 859a6cc3-71d5-4f9e-9845-183b7562e0d6 2026-06-15 17:13:25,371 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '859a6cc3-71d5-4f9e-9845-183b7562e0d6', 'name': 'ctest-vn4-00857635', 'tenant_id': 'de80f222e45047ad99d067c4b0305cb1', 'project_id': 'de80f222e45047ad99d067c4b0305cb1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7809762d-9962-42b1-bc72-68609907aec7', 'd0cd18fd-115b-4380-ae43-0ff40a5a06d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48365959', 'ctest-vn4-00857635'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48365959', 'ctest-policy1-64185460']], 'subnet_ipam': [{'subnet_cidr': '112.2.133.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32ba:be05:b672:344:ed8c:81b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-15 17:13:25,534 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-15 17:13:25,855 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-15 17:13:25,878 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6ce25000-4b40-40f0-9211-4873d51fb9b5 2026-06-15 17:13:25,889 - DEBUG - Requesting: http://10.0.0.50:8082/project/de80f222-e450-47ad-99d0-67c4b0305cb1 2026-06-15 17:13:25,973 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/859a6cc3-71d5-4f9e-9845-183b7562e0d6 2026-06-15 17:13:25,984 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/859a6cc3-71d5-4f9e-9845-183b7562e0d6 2026-06-15 17:13:25,992 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4f1fcf61-3fdd-4b7d-98fe-9f1d23dce788 2026-06-15 17:13:25,999 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4f1fcf61-3fdd-4b7d-98fe-9f1d23dce788 2026-06-15 17:13:26,005 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/786b0b7f-12f9-4db5-b7ea-7ed16eb49564 2026-06-15 17:13:26,011 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 17:13:26,011 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/859a6cc3-71d5-4f9e-9845-183b7562e0d6 2026-06-15 17:13:26,019 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4f1fcf61-3fdd-4b7d-98fe-9f1d23dce788 2026-06-15 17:13:26,032 - INFO - Verified VN network id 11 for VN 859a6cc3-71d5-4f9e-9845-183b7562e0d6 2026-06-15 17:13:26,032 - INFO - Verifications in API Server for VN ctest-vn4-00857635 passed 2026-06-15 17:13:26,033 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/859a6cc3-71d5-4f9e-9845-183b7562e0d6 2026-06-15 17:13:26,041 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4f1fcf61-3fdd-4b7d-98fe-9f1d23dce788 2026-06-15 17:13:26,047 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4f1fcf61-3fdd-4b7d-98fe-9f1d23dce788 2026-06-15 17:13:26,052 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/786b0b7f-12f9-4db5-b7ea-7ed16eb49564 2026-06-15 17:13:26,067 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48365959:ctest-vn4-00857635', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48365959', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9627126740142083998', 'uuid-lslong': '10972202710809632982'}, 'enable': 'true', 'created': '2026-06-15T17:13:24', 'last-modified': '2026-06-15T17:13:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.780350'} 2026-06-15 17:13:26,072 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 17:13:26,072 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-00857635 passed 2026-06-15 17:13:26,072 - DEBUG - ====Verifying policy data for ctest-vn4-00857635 in API_Server ====== 2026-06-15 17:13:26,072 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-15 17:13:26,076 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6ce25000-4b40-40f0-9211-4873d51fb9b5 2026-06-15 17:13:26,085 - DEBUG - Requesting: http://10.0.0.50:8082/project/de80f222-e450-47ad-99d0-67c4b0305cb1 2026-06-15 17:13:26,152 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/859a6cc3-71d5-4f9e-9845-183b7562e0d6 2026-06-15 17:13:26,160 - DEBUG - ==>Verifying data for policy with id: 7cd7d3c6-4a1d-4b08-b10a-bdbd22237887, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48365959', 'ctest-policy1-64185460'] 2026-06-15 17:13:26,160 - INFO - VN ctest-vn4-00857635 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-15 17:13:26,160 - DEBUG - Verifying the vn in opserver 2026-06-15 17:13:26,160 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48365959:ctest-vn4-00857635 virtual network link through opserver 10.0.0.50 2026-06-15 17:13:26,160 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-15 17:13:26,475 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-15 17:13:26,518 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48365959:ctest-vn4-00857635', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48365959:ctest-vn4-00857635?flat'} 2026-06-15 17:13:26,518 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48365959:ctest-vn4-00857635 is found in opserver 2026-06-15 17:13:26,527 - DEBUG - Do not have enough data to verify VN in agent 2026-06-15 17:13:26,530 - DEBUG - VRF ids for VN ctest-vn4-00857635: {} 2026-06-15 17:13:26,530 - DEBUG - ====Verifying data for ctest-policy1-64185460 in API_Server ====== 2026-06-15 17:13:26,531 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-15 17:13:26,536 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6ce25000-4b40-40f0-9211-4873d51fb9b5 2026-06-15 17:13:26,546 - DEBUG - Requesting: http://10.0.0.50:8082/project/de80f222-e450-47ad-99d0-67c4b0305cb1 2026-06-15 17:13:26,612 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/7cd7d3c6-4a1d-4b08-b10a-bdbd22237887 2026-06-15 17:13:26,620 - INFO - Verified policy ctest-policy1-64185460 in API Server, Result: True 2026-06-15 17:13:26,620 - INFO - Done with setup and verification, moving onto test .. 2026-06-15 17:13:26,627 - INFO - Deleting VN ctest-vn4-00857635 2026-06-15 17:13:26,728 - DEBUG - Response for deleting network () 2026-06-15 17:13:26,728 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/4f1fcf61-3fdd-4b7d-98fe-9f1d23dce788 2026-06-15 17:13:26,733 - DEBUG - Response Code: 404 2026-06-15 17:13:26,733 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-15 17:13:26,737 - DEBUG - Requesting: http://10.0.0.50:8082/domain/6ce25000-4b40-40f0-9211-4873d51fb9b5 2026-06-15 17:13:26,790 - DEBUG - Requesting: http://10.0.0.50:8082/project/de80f222-e450-47ad-99d0-67c4b0305cb1 2026-06-15 17:13:26,856 - INFO - Validated that VN ctest-vn4-00857635 is not found in API Server 2026-06-15 17:13:26,864 - DEBUG - VN ctest-vn4-00857635 is not present in Agent 10.0.0.50 2026-06-15 17:13:26,864 - INFO - Validated that VN ctest-vn4-00857635 is not in any agent 2026-06-15 17:13:26,875 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-00857635 info 2026-06-15 17:13:26,894 - INFO - Deleted policy ctest-policy1-64185460 2026-06-15 17:13:27,062 - DEBUG - policy ctest-policy1-64185460 is not found in API Server 2026-06-15 17:13:27,315 - DEBUG - No XMPP flaps were noticed during the test
2026-06-15 17:13:27,315 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-15 17:13:27,315 - INFO - -------------------------------------------------------------------------------- 2026-06-15 17:13:27,602 - DEBUG - No XMPP flaps were noticed during the test
2026-06-15 17:13:27,603 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-15 17:13:27,603 - INFO - -------------------------------------------------------------------------------- 2026-06-15 17:13:28,276 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-48365959, ID : de80f222-e450-47ad-99d0-67c4b0305cb1