2026-05-13 18:53:05,018 - INFO - Domain Default found not creating 2026-05-13 18:53:05,201 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-44706834 not found, creating it 2026-05-13 18:53:05,725 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-44706834, ID : ac8119c8-0698-41ca-a179-78a18301529d 2026-05-13 18:53:07,358 - INFO - ================================================================================ 2026-05-13 18:53:07,359 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-13 18:53:07,627 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-05-13 18:53:07,627 - INFO - Initial checks done. Running the testcase now 2026-05-13 18:53:07,627 - INFO - 2026-05-13 18:53:07,627 - INFO - ================================================================================ 2026-05-13 18:53:07,627 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-13 18:53:07,627 - 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-13 18:53:07,911 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-05-13 18:53:07,911 - INFO - Initial checks done. Running the testcase now 2026-05-13 18:53:07,911 - INFO - 2026-05-13 18:53:08,272 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44706834:ctest-vn4-58423326, 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-44706834:ctest-vn4-58423326, 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-44706834:ctest-vn4-58423326, 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-44706834:ctest-vn4-58423326, 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-13 18:53:08,808 - DEBUG - Response for create_network : {'network': {'id': 'a94e31e9-97fb-4bf3-92d3-ff3eea1fcadb', 'name': 'ctest-vn4-58423326', 'tenant_id': 'ac8119c8069841caa17978a18301529d', 'project_id': 'ac8119c8069841caa17978a18301529d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44706834', 'ctest-vn4-58423326'], 'port_security_enabled': True, 'description': ''}} 2026-05-13 18:53:08,974 - DEBUG - Response for create_subnet : {'subnet': {'id': '8924c1a2-3b53-4408-b535-926afedc4c96', 'name': '', 'tenant_id': 'ac8119c8069841caa17978a18301529d', 'network_id': 'a94e31e9-97fb-4bf3-92d3-ff3eea1fcadb', 'ip_version': 4, 'cidr': '54.54.108.0/26', 'allocation_pools': [{'start': '54.54.108.2', 'end': '54.54.108.62'}], 'gateway_ip': '54.54.108.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.54.108.2', 'tags': [], 'project_id': 'ac8119c8069841caa17978a18301529d'}} 2026-05-13 18:53:09,189 - DEBUG - Response for create_subnet : {'subnet': {'id': '2c07cd0b-5e0c-4f9a-8d14-221481b71a23', 'name': '', 'tenant_id': 'ac8119c8069841caa17978a18301529d', 'network_id': 'a94e31e9-97fb-4bf3-92d3-ff3eea1fcadb', 'ip_version': 6, 'cidr': '3547:287f:5e36:399f:78fc:967a::/96', 'allocation_pools': [{'start': '3547:287f:5e36:399f:78fc:967a:0:2', 'end': '3547:287f:5e36:399f:78fc:967a:ffff:fffe'}], 'gateway_ip': '3547:287f:5e36:399f:78fc:967a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3547:287f:5e36:399f:78fc:967a:0:2', 'tags': [], 'project_id': 'ac8119c8069841caa17978a18301529d'}} 2026-05-13 18:53:09,211 - INFO - Created VN ctest-vn4-58423326 2026-05-13 18:53:09,262 - DEBUG - VN ctest-vn4-58423326 UUID is a94e31e9-97fb-4bf3-92d3-ff3eea1fcadb 2026-05-13 18:53:09,477 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a94e31e9-97fb-4bf3-92d3-ff3eea1fcadb', 'name': 'ctest-vn4-58423326', 'tenant_id': 'ac8119c8069841caa17978a18301529d', 'project_id': 'ac8119c8069841caa17978a18301529d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8924c1a2-3b53-4408-b535-926afedc4c96', '2c07cd0b-5e0c-4f9a-8d14-221481b71a23'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44706834', 'ctest-vn4-58423326'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44706834', 'ctest-policy1-35645604']], 'subnet_ipam': [{'subnet_cidr': '54.54.108.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3547:287f:5e36:399f:78fc:967a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-13 18:53:09,642 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-13 18:53:10,184 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-13 18:53:10,230 - DEBUG - Requesting: http://10.0.0.38:8082/domain/21eb59ba-cd40-4fc0-af55-261cafd71c4c 2026-05-13 18:53:10,243 - DEBUG - Requesting: http://10.0.0.38:8082/project/ac8119c8-0698-41ca-a179-78a18301529d 2026-05-13 18:53:10,319 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a94e31e9-97fb-4bf3-92d3-ff3eea1fcadb 2026-05-13 18:53:10,330 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a94e31e9-97fb-4bf3-92d3-ff3eea1fcadb 2026-05-13 18:53:10,339 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf629ba0-0474-4973-b239-49a9c830a680 2026-05-13 18:53:10,346 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf629ba0-0474-4973-b239-49a9c830a680 2026-05-13 18:53:10,353 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a88c823e-430b-4d01-a439-2af499435932 2026-05-13 18:53:10,361 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-13 18:53:10,361 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a94e31e9-97fb-4bf3-92d3-ff3eea1fcadb 2026-05-13 18:53:10,371 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf629ba0-0474-4973-b239-49a9c830a680 2026-05-13 18:53:10,388 - INFO - Verified VN network id 10 for VN a94e31e9-97fb-4bf3-92d3-ff3eea1fcadb 2026-05-13 18:53:10,388 - INFO - Verifications in API Server for VN ctest-vn4-58423326 passed 2026-05-13 18:53:10,388 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a94e31e9-97fb-4bf3-92d3-ff3eea1fcadb 2026-05-13 18:53:10,399 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf629ba0-0474-4973-b239-49a9c830a680 2026-05-13 18:53:10,406 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf629ba0-0474-4973-b239-49a9c830a680 2026-05-13 18:53:10,413 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a88c823e-430b-4d01-a439-2af499435932 2026-05-13 18:53:10,424 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44706834:ctest-vn4-58423326', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44706834', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12199743319940221939', 'uuid-lslong': '10580080595304434395'}, 'enable': 'true', 'created': '2026-05-13T18:53:08', 'last-modified': '2026-05-13T18:53:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.982426'} 2026-05-13 18:53:10,429 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-13 18:53:10,429 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-58423326 passed 2026-05-13 18:53:10,430 - DEBUG - ====Verifying policy data for ctest-vn4-58423326 in API_Server ====== 2026-05-13 18:53:10,430 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-13 18:53:10,434 - DEBUG - Requesting: http://10.0.0.38:8082/domain/21eb59ba-cd40-4fc0-af55-261cafd71c4c 2026-05-13 18:53:10,445 - DEBUG - Requesting: http://10.0.0.38:8082/project/ac8119c8-0698-41ca-a179-78a18301529d 2026-05-13 18:53:10,519 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a94e31e9-97fb-4bf3-92d3-ff3eea1fcadb 2026-05-13 18:53:10,529 - DEBUG - ==>Verifying data for policy with id: 910bd08b-6a3d-457b-895c-4427f68a2923, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44706834', 'ctest-policy1-35645604'] 2026-05-13 18:53:10,529 - INFO - VN ctest-vn4-58423326 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-13 18:53:10,529 - DEBUG - Verifying the vn in opserver 2026-05-13 18:53:10,529 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44706834:ctest-vn4-58423326 virtual network link through opserver 10.0.0.38 2026-05-13 18:53:10,529 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-05-13 18:53:10,857 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-05-13 18:53:10,972 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44706834:ctest-vn4-58423326', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44706834:ctest-vn4-58423326?flat'} 2026-05-13 18:53:10,972 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44706834:ctest-vn4-58423326 is found in opserver 2026-05-13 18:53:10,981 - DEBUG - Do not have enough data to verify VN in agent 2026-05-13 18:53:10,986 - DEBUG - VRF ids for VN ctest-vn4-58423326: {} 2026-05-13 18:53:10,986 - DEBUG - ====Verifying data for ctest-policy1-35645604 in API_Server ====== 2026-05-13 18:53:10,986 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-13 18:53:10,992 - DEBUG - Requesting: http://10.0.0.38:8082/domain/21eb59ba-cd40-4fc0-af55-261cafd71c4c 2026-05-13 18:53:11,002 - DEBUG - Requesting: http://10.0.0.38:8082/project/ac8119c8-0698-41ca-a179-78a18301529d 2026-05-13 18:53:11,073 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/910bd08b-6a3d-457b-895c-4427f68a2923 2026-05-13 18:53:11,083 - INFO - Verified policy ctest-policy1-35645604 in API Server, Result: True 2026-05-13 18:53:11,084 - INFO - Done with setup and verification, moving onto test .. 2026-05-13 18:53:11,091 - INFO - Deleting VN ctest-vn4-58423326 2026-05-13 18:53:11,209 - DEBUG - Response for deleting network () 2026-05-13 18:53:11,209 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf629ba0-0474-4973-b239-49a9c830a680 2026-05-13 18:53:11,215 - DEBUG - Response Code: 404 2026-05-13 18:53:11,215 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-13 18:53:11,221 - DEBUG - Requesting: http://10.0.0.38:8082/domain/21eb59ba-cd40-4fc0-af55-261cafd71c4c 2026-05-13 18:53:11,275 - DEBUG - Requesting: http://10.0.0.38:8082/project/ac8119c8-0698-41ca-a179-78a18301529d 2026-05-13 18:53:11,347 - INFO - Validated that VN ctest-vn4-58423326 is not found in API Server 2026-05-13 18:53:11,356 - DEBUG - VN ctest-vn4-58423326 is not present in Agent 10.0.0.38 2026-05-13 18:53:11,356 - INFO - Validated that VN ctest-vn4-58423326 is not in any agent 2026-05-13 18:53:11,370 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-58423326 info 2026-05-13 18:53:11,393 - INFO - Deleted policy ctest-policy1-35645604 2026-05-13 18:53:11,554 - DEBUG - policy ctest-policy1-35645604 is not found in API Server 2026-05-13 18:53:11,807 - DEBUG - No XMPP flaps were noticed during the test 2026-05-13 18:53:11,807 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-13 18:53:11,807 - INFO - -------------------------------------------------------------------------------- 2026-05-13 18:53:12,098 - DEBUG - No XMPP flaps were noticed during the test 2026-05-13 18:53:12,099 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-05-13 18:53:12,099 - INFO - -------------------------------------------------------------------------------- 2026-05-13 18:53:12,803 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-44706834, ID : ac8119c8-0698-41ca-a179-78a18301529d