2026-03-27 11:17:36,493 - INFO - Domain Default found not creating 2026-03-27 11:17:36,678 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-79709754 not found, creating it 2026-03-27 11:17:37,139 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-79709754, ID : f5fc17c2-6a17-45d6-be66-a444c0d86353 2026-03-27 11:17:38,613 - INFO - ================================================================================ 2026-03-27 11:17:38,614 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-27 11:17:38,867 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2026-03-27 11:17:38,867 - INFO - Initial checks done. Running the testcase now 2026-03-27 11:17:38,867 - INFO - 2026-03-27 11:17:38,867 - INFO - ================================================================================ 2026-03-27 11:17:38,867 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-27 11:17:38,867 - 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-03-27 11:17:39,158 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2026-03-27 11:17:39,158 - INFO - Initial checks done. Running the testcase now 2026-03-27 11:17:39,158 - INFO - 2026-03-27 11:17:39,514 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79709754:ctest-vn4-50258933, 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-79709754:ctest-vn4-50258933, 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-79709754:ctest-vn4-50258933, 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-79709754:ctest-vn4-50258933, 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-03-27 11:17:40,031 - DEBUG - Response for create_network : {'network': {'id': '24910d86-074a-4c05-b2b8-7cdb60b460f0', 'name': 'ctest-vn4-50258933', 'tenant_id': 'f5fc17c26a1745d6be66a444c0d86353', 'project_id': 'f5fc17c26a1745d6be66a444c0d86353', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79709754', 'ctest-vn4-50258933'], 'port_security_enabled': True, 'description': ''}} 2026-03-27 11:17:40,269 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f7d49ef0-a6ef-49d6-9cca-abe75dc40673', 'name': '', 'tenant_id': 'f5fc17c26a1745d6be66a444c0d86353', 'network_id': '24910d86-074a-4c05-b2b8-7cdb60b460f0', 'ip_version': 4, 'cidr': '23.251.33.128/26', 'allocation_pools': [{'start': '23.251.33.130', 'end': '23.251.33.190'}], 'gateway_ip': '23.251.33.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.251.33.130', 'tags': [], 'project_id': 'f5fc17c26a1745d6be66a444c0d86353'}} 2026-03-27 11:17:40,448 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ceb32ec7-fa1d-4fc2-9c45-22bfb508318b', 'name': '', 'tenant_id': 'f5fc17c26a1745d6be66a444c0d86353', 'network_id': '24910d86-074a-4c05-b2b8-7cdb60b460f0', 'ip_version': 6, 'cidr': '22cd:c1cb:4a77:f013:5ed5:1116::/96', 'allocation_pools': [{'start': '22cd:c1cb:4a77:f013:5ed5:1116:0:2', 'end': '22cd:c1cb:4a77:f013:5ed5:1116:ffff:fffe'}], 'gateway_ip': '22cd:c1cb:4a77:f013:5ed5:1116:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22cd:c1cb:4a77:f013:5ed5:1116:0:2', 'tags': [], 'project_id': 'f5fc17c26a1745d6be66a444c0d86353'}} 2026-03-27 11:17:40,471 - INFO - Created VN ctest-vn4-50258933 2026-03-27 11:17:40,525 - DEBUG - VN ctest-vn4-50258933 UUID is 24910d86-074a-4c05-b2b8-7cdb60b460f0 2026-03-27 11:17:40,723 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '24910d86-074a-4c05-b2b8-7cdb60b460f0', 'name': 'ctest-vn4-50258933', 'tenant_id': 'f5fc17c26a1745d6be66a444c0d86353', 'project_id': 'f5fc17c26a1745d6be66a444c0d86353', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f7d49ef0-a6ef-49d6-9cca-abe75dc40673', 'ceb32ec7-fa1d-4fc2-9c45-22bfb508318b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79709754', 'ctest-vn4-50258933'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79709754', 'ctest-policy1-72708033']], 'subnet_ipam': [{'subnet_cidr': '23.251.33.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '22cd:c1cb:4a77:f013:5ed5:1116::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-27 11:17:40,881 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-27 11:17:41,176 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-27 11:17:41,208 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c9ed083c-1f0e-4461-ae22-5b9ca161886f 2026-03-27 11:17:41,220 - DEBUG - Requesting: http://10.0.0.22:8082/project/f5fc17c2-6a17-45d6-be66-a444c0d86353 2026-03-27 11:17:41,291 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/24910d86-074a-4c05-b2b8-7cdb60b460f0 2026-03-27 11:17:41,304 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/24910d86-074a-4c05-b2b8-7cdb60b460f0 2026-03-27 11:17:41,314 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a5e13004-557a-4828-9681-6b9047ef5af2 2026-03-27 11:17:41,321 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a5e13004-557a-4828-9681-6b9047ef5af2 2026-03-27 11:17:41,328 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5775179e-9286-4d29-b03a-dfbe531138d2 2026-03-27 11:17:41,335 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-27 11:17:41,335 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/24910d86-074a-4c05-b2b8-7cdb60b460f0 2026-03-27 11:17:41,344 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a5e13004-557a-4828-9681-6b9047ef5af2 2026-03-27 11:17:41,359 - INFO - Verified VN network id 11 for VN 24910d86-074a-4c05-b2b8-7cdb60b460f0 2026-03-27 11:17:41,359 - INFO - Verifications in API Server for VN ctest-vn4-50258933 passed 2026-03-27 11:17:41,359 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/24910d86-074a-4c05-b2b8-7cdb60b460f0 2026-03-27 11:17:41,369 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a5e13004-557a-4828-9681-6b9047ef5af2 2026-03-27 11:17:41,377 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a5e13004-557a-4828-9681-6b9047ef5af2 2026-03-27 11:17:41,384 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5775179e-9286-4d29-b03a-dfbe531138d2 2026-03-27 11:17:41,397 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79709754:ctest-vn4-50258933', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-79709754', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2634902126287539205', 'uuid-lslong': '12878180416128049392'}, 'enable': 'true', 'created': '2026-03-27T11:17:40', 'last-modified': '2026-03-27T11:17:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.698356'} 2026-03-27 11:17:41,403 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-27 11:17:41,403 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-50258933 passed 2026-03-27 11:17:41,403 - DEBUG - ====Verifying policy data for ctest-vn4-50258933 in API_Server ====== 2026-03-27 11:17:41,403 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-27 11:17:41,409 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c9ed083c-1f0e-4461-ae22-5b9ca161886f 2026-03-27 11:17:41,419 - DEBUG - Requesting: http://10.0.0.22:8082/project/f5fc17c2-6a17-45d6-be66-a444c0d86353 2026-03-27 11:17:41,493 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/24910d86-074a-4c05-b2b8-7cdb60b460f0 2026-03-27 11:17:41,502 - DEBUG - ==>Verifying data for policy with id: 22d54605-3cdb-4916-bf5d-ed1562dbd5a9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79709754', 'ctest-policy1-72708033'] 2026-03-27 11:17:41,502 - INFO - VN ctest-vn4-50258933 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-27 11:17:41,503 - DEBUG - Verifying the vn in opserver 2026-03-27 11:17:41,503 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79709754:ctest-vn4-50258933 virtual network link through opserver 10.0.0.22 2026-03-27 11:17:41,503 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-27 11:17:41,796 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-27 11:17:41,864 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79709754:ctest-vn4-50258933', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79709754:ctest-vn4-50258933?flat'} 2026-03-27 11:17:41,864 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79709754:ctest-vn4-50258933 is found in opserver 2026-03-27 11:17:41,875 - DEBUG - Do not have enough data to verify VN in agent 2026-03-27 11:17:41,879 - DEBUG - VRF ids for VN ctest-vn4-50258933: {} 2026-03-27 11:17:41,880 - DEBUG - ====Verifying data for ctest-policy1-72708033 in API_Server ====== 2026-03-27 11:17:41,880 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-27 11:17:41,885 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c9ed083c-1f0e-4461-ae22-5b9ca161886f 2026-03-27 11:17:41,896 - DEBUG - Requesting: http://10.0.0.22:8082/project/f5fc17c2-6a17-45d6-be66-a444c0d86353 2026-03-27 11:17:41,968 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/22d54605-3cdb-4916-bf5d-ed1562dbd5a9 2026-03-27 11:17:41,981 - INFO - Verified policy ctest-policy1-72708033 in API Server, Result: True 2026-03-27 11:17:41,981 - INFO - Done with setup and verification, moving onto test .. 2026-03-27 11:17:41,990 - INFO - Deleting VN ctest-vn4-50258933 2026-03-27 11:17:42,136 - DEBUG - Response for deleting network () 2026-03-27 11:17:42,136 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a5e13004-557a-4828-9681-6b9047ef5af2 2026-03-27 11:17:42,141 - DEBUG - Response Code: 404 2026-03-27 11:17:42,141 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-27 11:17:42,146 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c9ed083c-1f0e-4461-ae22-5b9ca161886f 2026-03-27 11:17:42,197 - DEBUG - Requesting: http://10.0.0.22:8082/project/f5fc17c2-6a17-45d6-be66-a444c0d86353 2026-03-27 11:17:42,273 - INFO - Validated that VN ctest-vn4-50258933 is not found in API Server 2026-03-27 11:17:42,282 - DEBUG - VN ctest-vn4-50258933 is not present in Agent 10.0.0.22 2026-03-27 11:17:42,282 - INFO - Validated that VN ctest-vn4-50258933 is not in any agent 2026-03-27 11:17:42,296 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-50258933 info 2026-03-27 11:17:42,323 - INFO - Deleted policy ctest-policy1-72708033 2026-03-27 11:17:42,489 - DEBUG - policy ctest-policy1-72708033 is not found in API Server 2026-03-27 11:17:42,742 - DEBUG - No XMPP flaps were noticed during the test 2026-03-27 11:17:42,742 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-27 11:17:42,742 - INFO - -------------------------------------------------------------------------------- 2026-03-27 11:17:43,030 - DEBUG - No XMPP flaps were noticed during the test 2026-03-27 11:17:43,031 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-03-27 11:17:43,031 - INFO - -------------------------------------------------------------------------------- 2026-03-27 11:17:43,719 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-79709754, ID : f5fc17c2-6a17-45d6-be66-a444c0d86353