2026-03-19 13:19:24,290 - INFO - Domain Default found not creating 2026-03-19 13:19:24,516 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95846015 not found, creating it 2026-03-19 13:19:25,047 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95846015, ID : 802bab1a-c768-4038-abd0-f9ab722bd7cb 2026-03-19 13:19:26,671 - INFO - ================================================================================ 2026-03-19 13:19:26,671 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 13:19:26,939 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2026-03-19 13:19:26,939 - INFO - Initial checks done. Running the testcase now 2026-03-19 13:19:26,939 - INFO - 2026-03-19 13:19:26,939 - INFO - ================================================================================ 2026-03-19 13:19:26,940 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 13:19:26,940 - 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-19 13:19:27,234 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2026-03-19 13:19:27,234 - INFO - Initial checks done. Running the testcase now 2026-03-19 13:19:27,234 - INFO - 2026-03-19 13:19:27,609 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95846015:ctest-vn4-16786926, 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-95846015:ctest-vn4-16786926, 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-95846015:ctest-vn4-16786926, 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-95846015:ctest-vn4-16786926, 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-19 13:19:28,142 - DEBUG - Response for create_network : {'network': {'id': '598c6139-e160-4b51-8a5a-a8631420c0cb', 'name': 'ctest-vn4-16786926', 'tenant_id': '802bab1ac7684038abd0f9ab722bd7cb', 'project_id': '802bab1ac7684038abd0f9ab722bd7cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95846015', 'ctest-vn4-16786926'], 'port_security_enabled': True, 'description': ''}} 2026-03-19 13:19:28,350 - DEBUG - Response for create_subnet : {'subnet': {'id': '78d8665b-675d-4de3-98ea-9235c181ccf2', 'name': '', 'tenant_id': '802bab1ac7684038abd0f9ab722bd7cb', 'network_id': '598c6139-e160-4b51-8a5a-a8631420c0cb', 'ip_version': 4, 'cidr': '180.106.181.0/26', 'allocation_pools': [{'start': '180.106.181.2', 'end': '180.106.181.62'}], 'gateway_ip': '180.106.181.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.106.181.2', 'tags': [], 'project_id': '802bab1ac7684038abd0f9ab722bd7cb'}} 2026-03-19 13:19:28,561 - DEBUG - Response for create_subnet : {'subnet': {'id': '6922a96b-07b7-4242-9620-7e18704eb672', 'name': '', 'tenant_id': '802bab1ac7684038abd0f9ab722bd7cb', 'network_id': '598c6139-e160-4b51-8a5a-a8631420c0cb', 'ip_version': 6, 'cidr': '2725:41b2:7156:96ea:7620:1690::/96', 'allocation_pools': [{'start': '2725:41b2:7156:96ea:7620:1690:0:2', 'end': '2725:41b2:7156:96ea:7620:1690:ffff:fffe'}], 'gateway_ip': '2725:41b2:7156:96ea:7620:1690:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2725:41b2:7156:96ea:7620:1690:0:2', 'tags': [], 'project_id': '802bab1ac7684038abd0f9ab722bd7cb'}} 2026-03-19 13:19:28,585 - INFO - Created VN ctest-vn4-16786926 2026-03-19 13:19:28,640 - DEBUG - VN ctest-vn4-16786926 UUID is 598c6139-e160-4b51-8a5a-a8631420c0cb 2026-03-19 13:19:28,876 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '598c6139-e160-4b51-8a5a-a8631420c0cb', 'name': 'ctest-vn4-16786926', 'tenant_id': '802bab1ac7684038abd0f9ab722bd7cb', 'project_id': '802bab1ac7684038abd0f9ab722bd7cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['78d8665b-675d-4de3-98ea-9235c181ccf2', '6922a96b-07b7-4242-9620-7e18704eb672'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95846015', 'ctest-vn4-16786926'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95846015', 'ctest-policy1-91245943']], 'subnet_ipam': [{'subnet_cidr': '180.106.181.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2725:41b2:7156:96ea:7620:1690::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-19 13:19:29,044 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-19 13:19:29,365 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-19 13:19:29,401 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e357beac-7e61-4835-a0e5-673c15d2b5a4 2026-03-19 13:19:29,414 - DEBUG - Requesting: http://10.0.0.41:8082/project/802bab1a-c768-4038-abd0-f9ab722bd7cb 2026-03-19 13:19:29,491 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/598c6139-e160-4b51-8a5a-a8631420c0cb 2026-03-19 13:19:29,504 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/598c6139-e160-4b51-8a5a-a8631420c0cb 2026-03-19 13:19:29,514 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/171f06bd-0688-4c97-a205-fc5891dc88ac 2026-03-19 13:19:29,523 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/171f06bd-0688-4c97-a205-fc5891dc88ac 2026-03-19 13:19:29,532 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/eaf0533d-0738-4843-a4f2-d8f8a32c223c 2026-03-19 13:19:29,539 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 13:19:29,539 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/598c6139-e160-4b51-8a5a-a8631420c0cb 2026-03-19 13:19:29,550 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/171f06bd-0688-4c97-a205-fc5891dc88ac 2026-03-19 13:19:29,567 - INFO - Verified VN network id 12 for VN 598c6139-e160-4b51-8a5a-a8631420c0cb 2026-03-19 13:19:29,567 - INFO - Verifications in API Server for VN ctest-vn4-16786926 passed 2026-03-19 13:19:29,567 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/598c6139-e160-4b51-8a5a-a8631420c0cb 2026-03-19 13:19:29,586 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/171f06bd-0688-4c97-a205-fc5891dc88ac 2026-03-19 13:19:29,594 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/171f06bd-0688-4c97-a205-fc5891dc88ac 2026-03-19 13:19:29,602 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/eaf0533d-0738-4843-a4f2-d8f8a32c223c 2026-03-19 13:19:29,615 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95846015:ctest-vn4-16786926', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95846015', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6452639267337292625', 'uuid-lslong': '9969465868630933707'}, 'enable': 'true', 'created': '2026-03-19T13:19:28', 'last-modified': '2026-03-19T13:19:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.773175'} 2026-03-19 13:19:29,621 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 13:19:29,621 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-16786926 passed 2026-03-19 13:19:29,622 - DEBUG - ====Verifying policy data for ctest-vn4-16786926 in API_Server ====== 2026-03-19 13:19:29,622 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-19 13:19:29,628 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e357beac-7e61-4835-a0e5-673c15d2b5a4 2026-03-19 13:19:29,641 - DEBUG - Requesting: http://10.0.0.41:8082/project/802bab1a-c768-4038-abd0-f9ab722bd7cb 2026-03-19 13:19:29,716 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/598c6139-e160-4b51-8a5a-a8631420c0cb 2026-03-19 13:19:29,727 - DEBUG - ==>Verifying data for policy with id: 253842df-a58f-48f8-b863-f99b750b1609, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95846015', 'ctest-policy1-91245943'] 2026-03-19 13:19:29,727 - INFO - VN ctest-vn4-16786926 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-19 13:19:29,728 - DEBUG - Verifying the vn in opserver 2026-03-19 13:19:29,728 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95846015:ctest-vn4-16786926 virtual network link through opserver 10.0.0.41 2026-03-19 13:19:29,728 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-03-19 13:19:30,027 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-03-19 13:19:30,107 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95846015:ctest-vn4-16786926', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95846015:ctest-vn4-16786926?flat'} 2026-03-19 13:19:30,107 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95846015:ctest-vn4-16786926 is found in opserver 2026-03-19 13:19:30,117 - DEBUG - Do not have enough data to verify VN in agent 2026-03-19 13:19:30,122 - DEBUG - VRF ids for VN ctest-vn4-16786926: {} 2026-03-19 13:19:30,122 - DEBUG - ====Verifying data for ctest-policy1-91245943 in API_Server ====== 2026-03-19 13:19:30,123 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-19 13:19:30,129 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e357beac-7e61-4835-a0e5-673c15d2b5a4 2026-03-19 13:19:30,144 - DEBUG - Requesting: http://10.0.0.41:8082/project/802bab1a-c768-4038-abd0-f9ab722bd7cb 2026-03-19 13:19:30,221 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/253842df-a58f-48f8-b863-f99b750b1609 2026-03-19 13:19:30,231 - INFO - Verified policy ctest-policy1-91245943 in API Server, Result: True 2026-03-19 13:19:30,232 - INFO - Done with setup and verification, moving onto test .. 2026-03-19 13:19:30,241 - INFO - Deleting VN ctest-vn4-16786926 2026-03-19 13:19:30,377 - DEBUG - Response for deleting network () 2026-03-19 13:19:30,378 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/171f06bd-0688-4c97-a205-fc5891dc88ac 2026-03-19 13:19:30,383 - DEBUG - Response Code: 404 2026-03-19 13:19:30,383 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-19 13:19:30,389 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e357beac-7e61-4835-a0e5-673c15d2b5a4 2026-03-19 13:19:30,441 - DEBUG - Requesting: http://10.0.0.41:8082/project/802bab1a-c768-4038-abd0-f9ab722bd7cb 2026-03-19 13:19:30,516 - INFO - Validated that VN ctest-vn4-16786926 is not found in API Server 2026-03-19 13:19:30,527 - DEBUG - VN ctest-vn4-16786926 is not present in Agent 10.0.0.41 2026-03-19 13:19:30,527 - INFO - Validated that VN ctest-vn4-16786926 is not in any agent 2026-03-19 13:19:30,541 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-16786926 info 2026-03-19 13:19:30,571 - INFO - Deleted policy ctest-policy1-91245943 2026-03-19 13:19:30,739 - DEBUG - policy ctest-policy1-91245943 is not found in API Server 2026-03-19 13:19:31,004 - DEBUG - No XMPP flaps were noticed during the test 2026-03-19 13:19:31,004 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-03-19 13:19:31,004 - INFO - -------------------------------------------------------------------------------- 2026-03-19 13:19:31,295 - DEBUG - No XMPP flaps were noticed during the test 2026-03-19 13:19:31,295 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-03-19 13:19:31,295 - INFO - -------------------------------------------------------------------------------- 2026-03-19 13:19:32,034 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95846015, ID : 802bab1a-c768-4038-abd0-f9ab722bd7cb