2026-02-20 16:19:11,017 - INFO - Domain Default found not creating 2026-02-20 16:19:11,157 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11291423 not found, creating it 2026-02-20 16:19:11,635 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11291423, ID : 43f8024b-ff0d-4232-8ed5-1c540c314a03 2026-02-20 16:19:13,040 - INFO - ================================================================================ 2026-02-20 16:19:13,040 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 16:19:13,299 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with 2026-02-20 16:19:13,299 - INFO - Initial checks done. Running the testcase now 2026-02-20 16:19:13,299 - INFO - 2026-02-20 16:19:13,299 - INFO - ================================================================================ 2026-02-20 16:19:13,299 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 16:19:13,299 - 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-02-20 16:19:13,588 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with 2026-02-20 16:19:13,588 - INFO - Initial checks done. Running the testcase now 2026-02-20 16:19:13,588 - INFO - 2026-02-20 16:19:13,982 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11291423:ctest-vn4-70391923, 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-11291423:ctest-vn4-70391923, 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-11291423:ctest-vn4-70391923, 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-11291423:ctest-vn4-70391923, 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-02-20 16:19:14,473 - DEBUG - Response for create_network : {'network': {'id': 'ba823c72-bb53-44d9-844d-a3195be8706c', 'name': 'ctest-vn4-70391923', 'tenant_id': '43f8024bff0d42328ed51c540c314a03', 'project_id': '43f8024bff0d42328ed51c540c314a03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11291423', 'ctest-vn4-70391923'], 'port_security_enabled': True, 'description': ''}} 2026-02-20 16:19:14,603 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d95c973-1c1c-4884-8222-f91e3d5b5fad', 'name': '', 'tenant_id': '43f8024bff0d42328ed51c540c314a03', 'network_id': 'ba823c72-bb53-44d9-844d-a3195be8706c', 'ip_version': 4, 'cidr': '25.123.255.0/26', 'allocation_pools': [{'start': '25.123.255.2', 'end': '25.123.255.62'}], 'gateway_ip': '25.123.255.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.123.255.2', 'tags': [], 'project_id': '43f8024bff0d42328ed51c540c314a03'}} 2026-02-20 16:19:14,773 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e023d9b-c9ca-49fa-89b5-b0dc892b04fe', 'name': '', 'tenant_id': '43f8024bff0d42328ed51c540c314a03', 'network_id': 'ba823c72-bb53-44d9-844d-a3195be8706c', 'ip_version': 6, 'cidr': '38fd:f20f:d0d1:a444:d700:db90::/96', 'allocation_pools': [{'start': '38fd:f20f:d0d1:a444:d700:db90:0:2', 'end': '38fd:f20f:d0d1:a444:d700:db90:ffff:fffe'}], 'gateway_ip': '38fd:f20f:d0d1:a444:d700:db90:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38fd:f20f:d0d1:a444:d700:db90:0:2', 'tags': [], 'project_id': '43f8024bff0d42328ed51c540c314a03'}} 2026-02-20 16:19:14,790 - INFO - Created VN ctest-vn4-70391923 2026-02-20 16:19:14,842 - DEBUG - VN ctest-vn4-70391923 UUID is ba823c72-bb53-44d9-844d-a3195be8706c 2026-02-20 16:19:15,016 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ba823c72-bb53-44d9-844d-a3195be8706c', 'name': 'ctest-vn4-70391923', 'tenant_id': '43f8024bff0d42328ed51c540c314a03', 'project_id': '43f8024bff0d42328ed51c540c314a03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8d95c973-1c1c-4884-8222-f91e3d5b5fad', '9e023d9b-c9ca-49fa-89b5-b0dc892b04fe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11291423', 'ctest-vn4-70391923'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11291423', 'ctest-policy1-11097017']], 'subnet_ipam': [{'subnet_cidr': '25.123.255.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '38fd:f20f:d0d1:a444:d700:db90::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-20 16:19:15,174 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-20 16:19:15,467 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-20 16:19:15,499 - DEBUG - Requesting: http://10.0.0.129:8082/domain/8dde1870-6c9b-45fe-ba4a-4fab6729ff1d 2026-02-20 16:19:15,509 - DEBUG - Requesting: http://10.0.0.129:8082/project/43f8024b-ff0d-4232-8ed5-1c540c314a03 2026-02-20 16:19:15,573 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/ba823c72-bb53-44d9-844d-a3195be8706c 2026-02-20 16:19:15,582 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/ba823c72-bb53-44d9-844d-a3195be8706c 2026-02-20 16:19:15,592 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/719acbc6-a2eb-4124-9ac4-aff0c03750eb 2026-02-20 16:19:15,597 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/719acbc6-a2eb-4124-9ac4-aff0c03750eb 2026-02-20 16:19:15,602 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/3e58b8d6-ccbc-4a3e-9429-a6613067f5f4 2026-02-20 16:19:15,607 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 16:19:15,607 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/ba823c72-bb53-44d9-844d-a3195be8706c 2026-02-20 16:19:15,615 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/719acbc6-a2eb-4124-9ac4-aff0c03750eb 2026-02-20 16:19:15,624 - INFO - Verified VN network id 12 for VN ba823c72-bb53-44d9-844d-a3195be8706c 2026-02-20 16:19:15,625 - INFO - Verifications in API Server for VN ctest-vn4-70391923 passed 2026-02-20 16:19:15,625 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/ba823c72-bb53-44d9-844d-a3195be8706c 2026-02-20 16:19:15,632 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/719acbc6-a2eb-4124-9ac4-aff0c03750eb 2026-02-20 16:19:15,636 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/719acbc6-a2eb-4124-9ac4-aff0c03750eb 2026-02-20 16:19:15,641 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/3e58b8d6-ccbc-4a3e-9429-a6613067f5f4 2026-02-20 16:19:15,651 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11291423:ctest-vn4-70391923', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11291423', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13439370701493716185', 'uuid-lslong': '9533455315524677740'}, 'enable': 'true', 'created': '2026-02-20T16:19:14', 'last-modified': '2026-02-20T16:19:14', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.659817'} 2026-02-20 16:19:15,656 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 16:19:15,656 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70391923 passed 2026-02-20 16:19:15,656 - DEBUG - ====Verifying policy data for ctest-vn4-70391923 in API_Server ====== 2026-02-20 16:19:15,656 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-20 16:19:15,660 - DEBUG - Requesting: http://10.0.0.129:8082/domain/8dde1870-6c9b-45fe-ba4a-4fab6729ff1d 2026-02-20 16:19:15,667 - DEBUG - Requesting: http://10.0.0.129:8082/project/43f8024b-ff0d-4232-8ed5-1c540c314a03 2026-02-20 16:19:15,734 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/ba823c72-bb53-44d9-844d-a3195be8706c 2026-02-20 16:19:15,743 - DEBUG - ==>Verifying data for policy with id: ae4dab89-8561-4a30-9904-17dc603977bc, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11291423', 'ctest-policy1-11097017'] 2026-02-20 16:19:15,743 - INFO - VN ctest-vn4-70391923 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-20 16:19:15,743 - DEBUG - Verifying the vn in opserver 2026-02-20 16:19:15,743 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11291423:ctest-vn4-70391923 virtual network link through opserver 10.0.0.129 2026-02-20 16:19:15,743 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-20 16:19:16,033 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-20 16:19:16,088 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11291423:ctest-vn4-70391923', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11291423:ctest-vn4-70391923?flat'} 2026-02-20 16:19:16,089 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11291423:ctest-vn4-70391923 is found in opserver 2026-02-20 16:19:16,098 - DEBUG - Do not have enough data to verify VN in agent 2026-02-20 16:19:16,102 - DEBUG - VRF ids for VN ctest-vn4-70391923: {} 2026-02-20 16:19:16,102 - DEBUG - ====Verifying data for ctest-policy1-11097017 in API_Server ====== 2026-02-20 16:19:16,102 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-20 16:19:16,107 - DEBUG - Requesting: http://10.0.0.129:8082/domain/8dde1870-6c9b-45fe-ba4a-4fab6729ff1d 2026-02-20 16:19:16,117 - DEBUG - Requesting: http://10.0.0.129:8082/project/43f8024b-ff0d-4232-8ed5-1c540c314a03 2026-02-20 16:19:16,185 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/ae4dab89-8561-4a30-9904-17dc603977bc 2026-02-20 16:19:16,193 - INFO - Verified policy ctest-policy1-11097017 in API Server, Result: True 2026-02-20 16:19:16,193 - INFO - Done with setup and verification, moving onto test .. 2026-02-20 16:19:16,199 - INFO - Deleting VN ctest-vn4-70391923 2026-02-20 16:19:16,295 - DEBUG - Response for deleting network () 2026-02-20 16:19:16,295 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/719acbc6-a2eb-4124-9ac4-aff0c03750eb 2026-02-20 16:19:16,300 - DEBUG - Response Code: 404 2026-02-20 16:19:16,300 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-20 16:19:16,304 - DEBUG - Requesting: http://10.0.0.129:8082/domain/8dde1870-6c9b-45fe-ba4a-4fab6729ff1d 2026-02-20 16:19:16,359 - DEBUG - Requesting: http://10.0.0.129:8082/project/43f8024b-ff0d-4232-8ed5-1c540c314a03 2026-02-20 16:19:16,427 - INFO - Validated that VN ctest-vn4-70391923 is not found in API Server 2026-02-20 16:19:16,435 - DEBUG - VN ctest-vn4-70391923 is not present in Agent 10.0.0.129 2026-02-20 16:19:16,435 - INFO - Validated that VN ctest-vn4-70391923 is not in any agent 2026-02-20 16:19:16,448 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70391923 info 2026-02-20 16:19:16,466 - INFO - Deleted policy ctest-policy1-11097017 2026-02-20 16:19:16,622 - DEBUG - policy ctest-policy1-11097017 is not found in API Server 2026-02-20 16:19:16,874 - DEBUG - No XMPP flaps were noticed during the test
2026-02-20 16:19:16,874 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-02-20 16:19:16,874 - INFO - -------------------------------------------------------------------------------- 2026-02-20 16:19:17,162 - DEBUG - No XMPP flaps were noticed during the test
2026-02-20 16:19:17,162 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-20 16:19:17,162 - INFO - -------------------------------------------------------------------------------- 2026-02-20 16:19:17,811 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-11291423, ID : 43f8024b-ff0d-4232-8ed5-1c540c314a03