2026-08-25 08:19:14,421 - INFO - Domain Default found not creating 2026-08-25 08:19:14,589 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-20013545 not found, creating it 2026-08-25 08:19:15,080 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-20013545, ID : 11698f9f-f8b8-4148-ab2e-bd86001e44d5 2026-08-25 08:19:16,671 - INFO - ================================================================================ 2026-08-25 08:19:16,671 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 08:19:16,930 - DEBUG - Nothing to compare xmpp stats {'10.0.0.248': {'10.20.0.254': '0'}} with 2026-08-25 08:19:16,930 - INFO - Initial checks done. Running the testcase now 2026-08-25 08:19:16,930 - INFO - 2026-08-25 08:19:16,930 - INFO - ================================================================================ 2026-08-25 08:19:16,930 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 08:19:16,930 - 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-08-25 08:19:17,232 - DEBUG - Nothing to compare xmpp stats {'10.0.0.248': {'10.20.0.254': '0'}} with 2026-08-25 08:19:17,233 - INFO - Initial checks done. Running the testcase now 2026-08-25 08:19:17,233 - INFO - 2026-08-25 08:19:17,630 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20013545:ctest-vn4-66105147, 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-20013545:ctest-vn4-66105147, 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-20013545:ctest-vn4-66105147, 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-20013545:ctest-vn4-66105147, 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-08-25 08:19:18,160 - DEBUG - Response for create_network : {'network': {'id': '2ff8ce97-b892-4313-a3ca-93aa3ffc444e', 'name': 'ctest-vn4-66105147', 'tenant_id': '11698f9ff8b84148ab2ebd86001e44d5', 'project_id': '11698f9ff8b84148ab2ebd86001e44d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20013545', 'ctest-vn4-66105147'], 'port_security_enabled': True, 'description': ''}} 2026-08-25 08:19:18,385 - DEBUG - Response for create_subnet : {'subnet': {'id': '41a82efb-233b-4cdd-a9d6-7661b778c5ea', 'name': '', 'tenant_id': '11698f9ff8b84148ab2ebd86001e44d5', 'network_id': '2ff8ce97-b892-4313-a3ca-93aa3ffc444e', 'ip_version': 4, 'cidr': '1.69.11.64/26', 'allocation_pools': [{'start': '1.69.11.66', 'end': '1.69.11.126'}], 'gateway_ip': '1.69.11.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.69.11.66', 'tags': [], 'project_id': '11698f9ff8b84148ab2ebd86001e44d5'}} 2026-08-25 08:19:18,547 - DEBUG - Response for create_subnet : {'subnet': {'id': '4dc34277-c9a5-4679-a744-8096fd4632ec', 'name': '', 'tenant_id': '11698f9ff8b84148ab2ebd86001e44d5', 'network_id': '2ff8ce97-b892-4313-a3ca-93aa3ffc444e', 'ip_version': 6, 'cidr': '35c4:301a:ed3c:a8b1:20d:224::/96', 'allocation_pools': [{'start': '35c4:301a:ed3c:a8b1:20d:224:0:2', 'end': '35c4:301a:ed3c:a8b1:20d:224:ffff:fffe'}], 'gateway_ip': '35c4:301a:ed3c:a8b1:20d:224:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35c4:301a:ed3c:a8b1:20d:224:0:2', 'tags': [], 'project_id': '11698f9ff8b84148ab2ebd86001e44d5'}} 2026-08-25 08:19:18,566 - INFO - Created VN ctest-vn4-66105147 2026-08-25 08:19:18,619 - DEBUG - VN ctest-vn4-66105147 UUID is 2ff8ce97-b892-4313-a3ca-93aa3ffc444e 2026-08-25 08:19:18,835 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ff8ce97-b892-4313-a3ca-93aa3ffc444e', 'name': 'ctest-vn4-66105147', 'tenant_id': '11698f9ff8b84148ab2ebd86001e44d5', 'project_id': '11698f9ff8b84148ab2ebd86001e44d5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41a82efb-233b-4cdd-a9d6-7661b778c5ea', '4dc34277-c9a5-4679-a744-8096fd4632ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20013545', 'ctest-vn4-66105147'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20013545', 'ctest-policy1-23091684']], 'subnet_ipam': [{'subnet_cidr': '1.69.11.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35c4:301a:ed3c:a8b1:20d:224::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-25 08:19:18,995 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-08-25 08:19:19,313 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-08-25 08:19:19,339 - DEBUG - Requesting: http://10.0.0.248:8082/domain/e6852103-9cbf-4bac-9a4e-cf5e6e05c0fa 2026-08-25 08:19:19,351 - DEBUG - Requesting: http://10.0.0.248:8082/project/11698f9f-f8b8-4148-ab2e-bd86001e44d5 2026-08-25 08:19:19,430 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/2ff8ce97-b892-4313-a3ca-93aa3ffc444e 2026-08-25 08:19:19,442 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/2ff8ce97-b892-4313-a3ca-93aa3ffc444e 2026-08-25 08:19:19,452 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/ab7a3d6a-23ba-41a1-8709-d367565b0beb 2026-08-25 08:19:19,459 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/ab7a3d6a-23ba-41a1-8709-d367565b0beb 2026-08-25 08:19:19,465 - DEBUG - Requesting: http://10.0.0.248:8082/route-target/46c2c0e9-367a-4a83-8efd-90b9823dfbe6 2026-08-25 08:19:19,472 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 08:19:19,472 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/2ff8ce97-b892-4313-a3ca-93aa3ffc444e 2026-08-25 08:19:19,481 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/ab7a3d6a-23ba-41a1-8709-d367565b0beb 2026-08-25 08:19:19,493 - INFO - Verified VN network id 11 for VN 2ff8ce97-b892-4313-a3ca-93aa3ffc444e 2026-08-25 08:19:19,493 - INFO - Verifications in API Server for VN ctest-vn4-66105147 passed 2026-08-25 08:19:19,493 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/2ff8ce97-b892-4313-a3ca-93aa3ffc444e 2026-08-25 08:19:19,504 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/ab7a3d6a-23ba-41a1-8709-d367565b0beb 2026-08-25 08:19:19,512 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/ab7a3d6a-23ba-41a1-8709-d367565b0beb 2026-08-25 08:19:19,519 - DEBUG - Requesting: http://10.0.0.248:8082/route-target/46c2c0e9-367a-4a83-8efd-90b9823dfbe6 2026-08-25 08:19:19,532 - DEBUG - Control-node 10.0.0.248 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20013545:ctest-vn4-66105147', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20013545', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3456739865038832403', 'uuid-lslong': '11802408132905026638'}, 'enable': 'true', 'created': '2026-08-25T08:19:18', 'last-modified': '2026-08-25T08:19:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.730844'} 2026-08-25 08:19:19,539 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 08:19:19,539 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-66105147 passed 2026-08-25 08:19:19,540 - DEBUG - ====Verifying policy data for ctest-vn4-66105147 in API_Server ====== 2026-08-25 08:19:19,540 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-08-25 08:19:19,546 - DEBUG - Requesting: http://10.0.0.248:8082/domain/e6852103-9cbf-4bac-9a4e-cf5e6e05c0fa 2026-08-25 08:19:19,559 - DEBUG - Requesting: http://10.0.0.248:8082/project/11698f9f-f8b8-4148-ab2e-bd86001e44d5 2026-08-25 08:19:19,641 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/2ff8ce97-b892-4313-a3ca-93aa3ffc444e 2026-08-25 08:19:19,651 - DEBUG - ==>Verifying data for policy with id: 446a8e3e-17e0-4e20-9ff8-edfc1a5889e0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20013545', 'ctest-policy1-23091684'] 2026-08-25 08:19:19,651 - INFO - VN ctest-vn4-66105147 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-25 08:19:19,651 - DEBUG - Verifying the vn in opserver 2026-08-25 08:19:19,651 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20013545:ctest-vn4-66105147 virtual network link through opserver 10.0.0.248 2026-08-25 08:19:19,652 - DEBUG - Requesting: http://10.0.0.248:8081/analytics/uves/virtual-networks 2026-08-25 08:19:19,972 - DEBUG - Requesting: http://10.0.0.248:8081/analytics/uves/virtual-networks 2026-08-25 08:19:20,023 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20013545:ctest-vn4-66105147', 'href': 'http://10.0.0.248:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20013545:ctest-vn4-66105147?flat'} 2026-08-25 08:19:20,023 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20013545:ctest-vn4-66105147 is found in opserver 2026-08-25 08:19:20,034 - DEBUG - Do not have enough data to verify VN in agent 2026-08-25 08:19:20,039 - DEBUG - VRF ids for VN ctest-vn4-66105147: {} 2026-08-25 08:19:20,040 - DEBUG - ====Verifying data for ctest-policy1-23091684 in API_Server ====== 2026-08-25 08:19:20,040 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-08-25 08:19:20,046 - DEBUG - Requesting: http://10.0.0.248:8082/domain/e6852103-9cbf-4bac-9a4e-cf5e6e05c0fa 2026-08-25 08:19:20,057 - DEBUG - Requesting: http://10.0.0.248:8082/project/11698f9f-f8b8-4148-ab2e-bd86001e44d5 2026-08-25 08:19:20,136 - DEBUG - Requesting: http://10.0.0.248:8082/network-policy/446a8e3e-17e0-4e20-9ff8-edfc1a5889e0 2026-08-25 08:19:20,147 - INFO - Verified policy ctest-policy1-23091684 in API Server, Result: True 2026-08-25 08:19:20,147 - INFO - Done with setup and verification, moving onto test .. 2026-08-25 08:19:20,156 - INFO - Deleting VN ctest-vn4-66105147 2026-08-25 08:19:20,302 - DEBUG - Response for deleting network () 2026-08-25 08:19:20,302 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/ab7a3d6a-23ba-41a1-8709-d367565b0beb 2026-08-25 08:19:20,309 - DEBUG - Response Code: 404 2026-08-25 08:19:20,309 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-08-25 08:19:20,316 - DEBUG - Requesting: http://10.0.0.248:8082/domain/e6852103-9cbf-4bac-9a4e-cf5e6e05c0fa 2026-08-25 08:19:20,369 - DEBUG - Requesting: http://10.0.0.248:8082/project/11698f9f-f8b8-4148-ab2e-bd86001e44d5 2026-08-25 08:19:20,444 - INFO - Validated that VN ctest-vn4-66105147 is not found in API Server 2026-08-25 08:19:20,455 - DEBUG - VN ctest-vn4-66105147 is not present in Agent 10.0.0.248 2026-08-25 08:19:20,455 - INFO - Validated that VN ctest-vn4-66105147 is not in any agent 2026-08-25 08:19:20,471 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-66105147 info 2026-08-25 08:19:20,497 - INFO - Deleted policy ctest-policy1-23091684 2026-08-25 08:19:20,671 - DEBUG - policy ctest-policy1-23091684 is not found in API Server 2026-08-25 08:19:20,928 - DEBUG - No XMPP flaps were noticed during the test 2026-08-25 08:19:20,928 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-25 08:19:20,928 - INFO - -------------------------------------------------------------------------------- 2026-08-25 08:19:21,217 - DEBUG - No XMPP flaps were noticed during the test 2026-08-25 08:19:21,217 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-25 08:19:21,217 - INFO - -------------------------------------------------------------------------------- 2026-08-25 08:19:21,944 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-20013545, ID : 11698f9f-f8b8-4148-ab2e-bd86001e44d5