2026-05-25 14:13:53,551 - INFO - Domain Default found not creating 2026-05-25 14:13:53,723 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-52657158 not found, creating it 2026-05-25 14:13:54,190 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-52657158, ID : f3bd7d73-1cfb-4224-9e5b-e5b2487d9f1e 2026-05-25 14:13:55,709 - INFO - ================================================================================ 2026-05-25 14:13:55,709 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-25 14:13:55,963 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-05-25 14:13:55,963 - INFO - Initial checks done. Running the testcase now 2026-05-25 14:13:55,963 - INFO - 2026-05-25 14:13:55,963 - INFO - ================================================================================ 2026-05-25 14:13:55,963 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-25 14:13:55,963 - 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-05-25 14:13:56,259 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2026-05-25 14:13:56,259 - INFO - Initial checks done. Running the testcase now 2026-05-25 14:13:56,259 - INFO - 2026-05-25 14:13:56,627 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52657158:ctest-vn4-43238469, 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-52657158:ctest-vn4-43238469, 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-52657158:ctest-vn4-43238469, 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-52657158:ctest-vn4-43238469, 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-05-25 14:13:57,159 - DEBUG - Response for create_network : {'network': {'id': '8888bfd9-988b-4c52-8d51-3a8d5a9c4f75', 'name': 'ctest-vn4-43238469', 'tenant_id': 'f3bd7d731cfb42249e5be5b2487d9f1e', 'project_id': 'f3bd7d731cfb42249e5be5b2487d9f1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52657158', 'ctest-vn4-43238469'], 'port_security_enabled': True, 'description': ''}} 2026-05-25 14:13:57,360 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b9faa64-0f81-42c8-825e-de57ac3e3fb9', 'name': '', 'tenant_id': 'f3bd7d731cfb42249e5be5b2487d9f1e', 'network_id': '8888bfd9-988b-4c52-8d51-3a8d5a9c4f75', 'ip_version': 4, 'cidr': '118.152.235.128/26', 'allocation_pools': [{'start': '118.152.235.130', 'end': '118.152.235.190'}], 'gateway_ip': '118.152.235.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.152.235.130', 'tags': [], 'project_id': 'f3bd7d731cfb42249e5be5b2487d9f1e'}} 2026-05-25 14:13:57,516 - DEBUG - Response for create_subnet : {'subnet': {'id': '36c53662-d025-4a55-aadf-7dc0aa6c780d', 'name': '', 'tenant_id': 'f3bd7d731cfb42249e5be5b2487d9f1e', 'network_id': '8888bfd9-988b-4c52-8d51-3a8d5a9c4f75', 'ip_version': 6, 'cidr': '2eb4:4ecf:9a53:9fd6:1169:86b0::/96', 'allocation_pools': [{'start': '2eb4:4ecf:9a53:9fd6:1169:86b0:0:2', 'end': '2eb4:4ecf:9a53:9fd6:1169:86b0:ffff:fffe'}], 'gateway_ip': '2eb4:4ecf:9a53:9fd6:1169:86b0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2eb4:4ecf:9a53:9fd6:1169:86b0:0:2', 'tags': [], 'project_id': 'f3bd7d731cfb42249e5be5b2487d9f1e'}} 2026-05-25 14:13:57,538 - INFO - Created VN ctest-vn4-43238469 2026-05-25 14:13:57,589 - DEBUG - VN ctest-vn4-43238469 UUID is 8888bfd9-988b-4c52-8d51-3a8d5a9c4f75 2026-05-25 14:13:57,785 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8888bfd9-988b-4c52-8d51-3a8d5a9c4f75', 'name': 'ctest-vn4-43238469', 'tenant_id': 'f3bd7d731cfb42249e5be5b2487d9f1e', 'project_id': 'f3bd7d731cfb42249e5be5b2487d9f1e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b9faa64-0f81-42c8-825e-de57ac3e3fb9', '36c53662-d025-4a55-aadf-7dc0aa6c780d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52657158', 'ctest-vn4-43238469'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52657158', 'ctest-policy1-91852672']], 'subnet_ipam': [{'subnet_cidr': '118.152.235.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2eb4:4ecf:9a53:9fd6:1169:86b0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-25 14:13:57,957 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-25 14:13:58,257 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-25 14:13:58,294 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b3a8e6f1-b0d2-4198-a993-4ad31f5a9cf6 2026-05-25 14:13:58,309 - DEBUG - Requesting: http://10.0.0.50:8082/project/f3bd7d73-1cfb-4224-9e5b-e5b2487d9f1e 2026-05-25 14:13:58,384 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8888bfd9-988b-4c52-8d51-3a8d5a9c4f75 2026-05-25 14:13:58,397 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8888bfd9-988b-4c52-8d51-3a8d5a9c4f75 2026-05-25 14:13:58,409 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5736e5c2-a37b-4c12-a3da-706362081ad8 2026-05-25 14:13:58,418 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5736e5c2-a37b-4c12-a3da-706362081ad8 2026-05-25 14:13:58,425 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/07f07561-0861-4c29-9446-35b94e93c734 2026-05-25 14:13:58,431 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-25 14:13:58,431 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8888bfd9-988b-4c52-8d51-3a8d5a9c4f75 2026-05-25 14:13:58,443 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5736e5c2-a37b-4c12-a3da-706362081ad8 2026-05-25 14:13:58,458 - INFO - Verified VN network id 11 for VN 8888bfd9-988b-4c52-8d51-3a8d5a9c4f75 2026-05-25 14:13:58,458 - INFO - Verifications in API Server for VN ctest-vn4-43238469 passed 2026-05-25 14:13:58,458 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8888bfd9-988b-4c52-8d51-3a8d5a9c4f75 2026-05-25 14:13:58,470 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5736e5c2-a37b-4c12-a3da-706362081ad8 2026-05-25 14:13:58,479 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5736e5c2-a37b-4c12-a3da-706362081ad8 2026-05-25 14:13:58,489 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/07f07561-0861-4c29-9446-35b94e93c734 2026-05-25 14:13:58,500 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52657158:ctest-vn4-43238469', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-52657158', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9838324327278922834', 'uuid-lslong': '10182984611246395253'}, 'enable': 'true', 'created': '2026-05-25T14:13:57', 'last-modified': '2026-05-25T14:13:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.739970'} 2026-05-25 14:13:58,506 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-25 14:13:58,506 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43238469 passed 2026-05-25 14:13:58,506 - DEBUG - ====Verifying policy data for ctest-vn4-43238469 in API_Server ====== 2026-05-25 14:13:58,506 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-25 14:13:58,511 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b3a8e6f1-b0d2-4198-a993-4ad31f5a9cf6 2026-05-25 14:13:58,522 - DEBUG - Requesting: http://10.0.0.50:8082/project/f3bd7d73-1cfb-4224-9e5b-e5b2487d9f1e 2026-05-25 14:13:58,593 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8888bfd9-988b-4c52-8d51-3a8d5a9c4f75 2026-05-25 14:13:58,604 - DEBUG - ==>Verifying data for policy with id: 22d14698-ea17-425b-9717-20112833dde9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52657158', 'ctest-policy1-91852672'] 2026-05-25 14:13:58,604 - INFO - VN ctest-vn4-43238469 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-25 14:13:58,604 - DEBUG - Verifying the vn in opserver 2026-05-25 14:13:58,604 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52657158:ctest-vn4-43238469 virtual network link through opserver 10.0.0.50 2026-05-25 14:13:58,604 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-25 14:13:58,897 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-25 14:13:58,959 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52657158:ctest-vn4-43238469', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52657158:ctest-vn4-43238469?flat'} 2026-05-25 14:13:58,959 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-52657158:ctest-vn4-43238469 is found in opserver 2026-05-25 14:13:58,968 - DEBUG - Do not have enough data to verify VN in agent 2026-05-25 14:13:58,972 - DEBUG - VRF ids for VN ctest-vn4-43238469: {} 2026-05-25 14:13:58,972 - DEBUG - ====Verifying data for ctest-policy1-91852672 in API_Server ====== 2026-05-25 14:13:58,972 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-25 14:13:58,978 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b3a8e6f1-b0d2-4198-a993-4ad31f5a9cf6 2026-05-25 14:13:58,988 - DEBUG - Requesting: http://10.0.0.50:8082/project/f3bd7d73-1cfb-4224-9e5b-e5b2487d9f1e 2026-05-25 14:13:59,061 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/22d14698-ea17-425b-9717-20112833dde9 2026-05-25 14:13:59,070 - INFO - Verified policy ctest-policy1-91852672 in API Server, Result: True 2026-05-25 14:13:59,070 - INFO - Done with setup and verification, moving onto test .. 2026-05-25 14:13:59,078 - INFO - Deleting VN ctest-vn4-43238469 2026-05-25 14:13:59,193 - DEBUG - Response for deleting network () 2026-05-25 14:13:59,193 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/5736e5c2-a37b-4c12-a3da-706362081ad8 2026-05-25 14:13:59,198 - DEBUG - Response Code: 404 2026-05-25 14:13:59,198 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-25 14:13:59,204 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b3a8e6f1-b0d2-4198-a993-4ad31f5a9cf6 2026-05-25 14:13:59,258 - DEBUG - Requesting: http://10.0.0.50:8082/project/f3bd7d73-1cfb-4224-9e5b-e5b2487d9f1e 2026-05-25 14:13:59,347 - INFO - Validated that VN ctest-vn4-43238469 is not found in API Server 2026-05-25 14:13:59,356 - DEBUG - VN ctest-vn4-43238469 is not present in Agent 10.0.0.50 2026-05-25 14:13:59,356 - INFO - Validated that VN ctest-vn4-43238469 is not in any agent 2026-05-25 14:13:59,369 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43238469 info 2026-05-25 14:13:59,392 - INFO - Deleted policy ctest-policy1-91852672 2026-05-25 14:13:59,557 - DEBUG - policy ctest-policy1-91852672 is not found in API Server 2026-05-25 14:13:59,812 - DEBUG - No XMPP flaps were noticed during the test