2026-06-15 15:02:55,224 - INFO - Domain Default found not creating 2026-06-15 15:02:55,420 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80338455 not found, creating it 2026-06-15 15:02:55,885 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80338455, ID : 1d1e19f6-6ff3-48b0-af56-8a5655bff6eb 2026-06-15 15:02:57,403 - INFO - ================================================================================ 2026-06-15 15:02:57,403 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 15:02:57,656 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-15 15:02:57,656 - INFO - Initial checks done. Running the testcase now 2026-06-15 15:02:57,656 - INFO - 2026-06-15 15:02:57,656 - INFO - ================================================================================ 2026-06-15 15:02:57,656 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 15:02:57,656 - 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 15:02:57,948 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-06-15 15:02:57,948 - INFO - Initial checks done. Running the testcase now 2026-06-15 15:02:57,948 - INFO - 2026-06-15 15:02:58,328 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80338455:ctest-vn4-39506823, 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-80338455:ctest-vn4-39506823, 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-80338455:ctest-vn4-39506823, 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-80338455:ctest-vn4-39506823, 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 15:02:58,835 - DEBUG - Response for create_network : {'network': {'id': 'b4ff90f8-06ad-418a-b532-3f29f75a9e2a', 'name': 'ctest-vn4-39506823', 'tenant_id': '1d1e19f66ff348b0af568a5655bff6eb', 'project_id': '1d1e19f66ff348b0af568a5655bff6eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80338455', 'ctest-vn4-39506823'], 'port_security_enabled': True, 'description': ''}} 2026-06-15 15:02:58,987 - DEBUG - Response for create_subnet : {'subnet': {'id': '81259f1c-759d-45b9-8088-0c4b25ded895', 'name': '', 'tenant_id': '1d1e19f66ff348b0af568a5655bff6eb', 'network_id': 'b4ff90f8-06ad-418a-b532-3f29f75a9e2a', 'ip_version': 4, 'cidr': '216.207.132.128/26', 'allocation_pools': [{'start': '216.207.132.130', 'end': '216.207.132.190'}], 'gateway_ip': '216.207.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '216.207.132.130', 'tags': [], 'project_id': '1d1e19f66ff348b0af568a5655bff6eb'}} 2026-06-15 15:02:59,208 - DEBUG - Response for create_subnet : {'subnet': {'id': '1423afa5-955a-4679-a155-8b008b6e2863', 'name': '', 'tenant_id': '1d1e19f66ff348b0af568a5655bff6eb', 'network_id': 'b4ff90f8-06ad-418a-b532-3f29f75a9e2a', 'ip_version': 6, 'cidr': '20bd:29dc:a4ae:cb27:3edd:a619::/96', 'allocation_pools': [{'start': '20bd:29dc:a4ae:cb27:3edd:a619:0:2', 'end': '20bd:29dc:a4ae:cb27:3edd:a619:ffff:fffe'}], 'gateway_ip': '20bd:29dc:a4ae:cb27:3edd:a619:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20bd:29dc:a4ae:cb27:3edd:a619:0:2', 'tags': [], 'project_id': '1d1e19f66ff348b0af568a5655bff6eb'}} 2026-06-15 15:02:59,227 - INFO - Created VN ctest-vn4-39506823 2026-06-15 15:02:59,283 - DEBUG - VN ctest-vn4-39506823 UUID is b4ff90f8-06ad-418a-b532-3f29f75a9e2a 2026-06-15 15:02:59,502 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b4ff90f8-06ad-418a-b532-3f29f75a9e2a', 'name': 'ctest-vn4-39506823', 'tenant_id': '1d1e19f66ff348b0af568a5655bff6eb', 'project_id': '1d1e19f66ff348b0af568a5655bff6eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['81259f1c-759d-45b9-8088-0c4b25ded895', '1423afa5-955a-4679-a155-8b008b6e2863'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80338455', 'ctest-vn4-39506823'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80338455', 'ctest-policy1-70874977']], 'subnet_ipam': [{'subnet_cidr': '216.207.132.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '20bd:29dc:a4ae:cb27:3edd:a619::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-15 15:02:59,658 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-15 15:02:59,994 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-15 15:03:00,021 - DEBUG - Requesting: http://10.0.0.33:8082/domain/082228e4-2e28-4052-9943-a3ba51798b4d 2026-06-15 15:03:00,035 - DEBUG - Requesting: http://10.0.0.33:8082/project/1d1e19f6-6ff3-48b0-af56-8a5655bff6eb 2026-06-15 15:03:00,106 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b4ff90f8-06ad-418a-b532-3f29f75a9e2a 2026-06-15 15:03:00,120 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b4ff90f8-06ad-418a-b532-3f29f75a9e2a 2026-06-15 15:03:00,133 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/74545cbc-8a96-413a-b75b-3fa65322558f 2026-06-15 15:03:00,141 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/74545cbc-8a96-413a-b75b-3fa65322558f 2026-06-15 15:03:00,148 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ae7c53cd-2f9f-477c-abb1-712cf25e9ccd 2026-06-15 15:03:00,155 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 15:03:00,155 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b4ff90f8-06ad-418a-b532-3f29f75a9e2a 2026-06-15 15:03:00,164 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/74545cbc-8a96-413a-b75b-3fa65322558f 2026-06-15 15:03:00,188 - INFO - Verified VN network id 12 for VN b4ff90f8-06ad-418a-b532-3f29f75a9e2a 2026-06-15 15:03:00,188 - INFO - Verifications in API Server for VN ctest-vn4-39506823 passed 2026-06-15 15:03:00,188 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b4ff90f8-06ad-418a-b532-3f29f75a9e2a 2026-06-15 15:03:00,197 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/74545cbc-8a96-413a-b75b-3fa65322558f 2026-06-15 15:03:00,204 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/74545cbc-8a96-413a-b75b-3fa65322558f 2026-06-15 15:03:00,211 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/ae7c53cd-2f9f-477c-abb1-712cf25e9ccd 2026-06-15 15:03:00,222 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80338455:ctest-vn4-39506823', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80338455', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13042302440826552714', 'uuid-lslong': '13056567719176609322'}, 'enable': 'true', 'created': '2026-06-15T15:02:58', 'last-modified': '2026-06-15T15:02:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.755637'} 2026-06-15 15:03:00,227 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 15:03:00,228 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39506823 passed 2026-06-15 15:03:00,228 - DEBUG - ====Verifying policy data for ctest-vn4-39506823 in API_Server ====== 2026-06-15 15:03:00,228 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-15 15:03:00,233 - DEBUG - Requesting: http://10.0.0.33:8082/domain/082228e4-2e28-4052-9943-a3ba51798b4d 2026-06-15 15:03:00,243 - DEBUG - Requesting: http://10.0.0.33:8082/project/1d1e19f6-6ff3-48b0-af56-8a5655bff6eb 2026-06-15 15:03:00,313 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/b4ff90f8-06ad-418a-b532-3f29f75a9e2a 2026-06-15 15:03:00,322 - DEBUG - ==>Verifying data for policy with id: 2695b1fc-fd03-420e-a508-a92f2e811530, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80338455', 'ctest-policy1-70874977'] 2026-06-15 15:03:00,323 - INFO - VN ctest-vn4-39506823 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-15 15:03:00,323 - DEBUG - Verifying the vn in opserver 2026-06-15 15:03:00,323 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80338455:ctest-vn4-39506823 virtual network link through opserver 10.0.0.33 2026-06-15 15:03:00,323 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-15 15:03:00,642 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-15 15:03:00,691 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80338455:ctest-vn4-39506823', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80338455:ctest-vn4-39506823?flat'} 2026-06-15 15:03:00,691 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80338455:ctest-vn4-39506823 is found in opserver 2026-06-15 15:03:00,703 - DEBUG - Do not have enough data to verify VN in agent 2026-06-15 15:03:00,708 - DEBUG - VRF ids for VN ctest-vn4-39506823: {} 2026-06-15 15:03:00,708 - DEBUG - ====Verifying data for ctest-policy1-70874977 in API_Server ====== 2026-06-15 15:03:00,708 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-15 15:03:00,715 - DEBUG - Requesting: http://10.0.0.33:8082/domain/082228e4-2e28-4052-9943-a3ba51798b4d 2026-06-15 15:03:00,726 - DEBUG - Requesting: http://10.0.0.33:8082/project/1d1e19f6-6ff3-48b0-af56-8a5655bff6eb 2026-06-15 15:03:00,798 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/2695b1fc-fd03-420e-a508-a92f2e811530 2026-06-15 15:03:00,809 - INFO - Verified policy ctest-policy1-70874977 in API Server, Result: True 2026-06-15 15:03:00,809 - INFO - Done with setup and verification, moving onto test .. 2026-06-15 15:03:00,818 - INFO - Deleting VN ctest-vn4-39506823 2026-06-15 15:03:00,931 - DEBUG - Response for deleting network () 2026-06-15 15:03:00,931 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/74545cbc-8a96-413a-b75b-3fa65322558f 2026-06-15 15:03:00,937 - DEBUG - Response Code: 404 2026-06-15 15:03:00,937 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-06-15 15:03:00,943 - DEBUG - Requesting: http://10.0.0.33:8082/domain/082228e4-2e28-4052-9943-a3ba51798b4d 2026-06-15 15:03:01,001 - DEBUG - Requesting: http://10.0.0.33:8082/project/1d1e19f6-6ff3-48b0-af56-8a5655bff6eb 2026-06-15 15:03:01,072 - INFO - Validated that VN ctest-vn4-39506823 is not found in API Server 2026-06-15 15:03:01,082 - DEBUG - VN ctest-vn4-39506823 is not present in Agent 10.0.0.33 2026-06-15 15:03:01,082 - INFO - Validated that VN ctest-vn4-39506823 is not in any agent 2026-06-15 15:03:01,097 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39506823 info 2026-06-15 15:03:01,125 - INFO - Deleted policy ctest-policy1-70874977 2026-06-15 15:03:01,290 - DEBUG - policy ctest-policy1-70874977 is not found in API Server 2026-06-15 15:03:01,544 - DEBUG - No XMPP flaps were noticed during the test 2026-06-15 15:03:01,544 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-15 15:03:01,544 - INFO - -------------------------------------------------------------------------------- 2026-06-15 15:03:01,831 - DEBUG - No XMPP flaps were noticed during the test 2026-06-15 15:03:01,831 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-15 15:03:01,831 - INFO - -------------------------------------------------------------------------------- 2026-06-15 15:03:02,553 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-80338455, ID : 1d1e19f6-6ff3-48b0-af56-8a5655bff6eb