2026-03-20 21:14:55,146 - INFO - Domain Default found not creating 2026-03-20 21:14:55,285 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29085688 not found, creating it 2026-03-20 21:14:55,715 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29085688, ID : 55f9fdb0-a71e-40d1-a2fb-c0585144b65d 2026-03-20 21:14:57,072 - INFO - ================================================================================ 2026-03-20 21:14:57,073 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-20 21:14:57,326 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-20 21:14:57,326 - INFO - Initial checks done. Running the testcase now 2026-03-20 21:14:57,326 - INFO - 2026-03-20 21:14:57,326 - INFO - ================================================================================ 2026-03-20 21:14:57,326 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-20 21:14:57,327 - 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-20 21:14:57,611 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-03-20 21:14:57,611 - INFO - Initial checks done. Running the testcase now 2026-03-20 21:14:57,611 - INFO - 2026-03-20 21:14:57,953 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29085688:ctest-vn4-78823707, 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-29085688:ctest-vn4-78823707, 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-29085688:ctest-vn4-78823707, 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-29085688:ctest-vn4-78823707, 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-20 21:14:58,442 - DEBUG - Response for create_network : {'network': {'id': 'bb7f016c-7f98-40b2-97fe-b9349ff5473e', 'name': 'ctest-vn4-78823707', 'tenant_id': '55f9fdb0a71e40d1a2fbc0585144b65d', 'project_id': '55f9fdb0a71e40d1a2fbc0585144b65d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29085688', 'ctest-vn4-78823707'], 'port_security_enabled': True, 'description': ''}} 2026-03-20 21:14:58,579 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f79d85a2-356e-42c5-8e0e-f8f93e644a23', 'name': '', 'tenant_id': '55f9fdb0a71e40d1a2fbc0585144b65d', 'network_id': 'bb7f016c-7f98-40b2-97fe-b9349ff5473e', 'ip_version': 4, 'cidr': '89.94.76.192/26', 'allocation_pools': [{'start': '89.94.76.194', 'end': '89.94.76.254'}], 'gateway_ip': '89.94.76.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.94.76.194', 'tags': [], 'project_id': '55f9fdb0a71e40d1a2fbc0585144b65d'}} 2026-03-20 21:14:58,736 - DEBUG - Response for create_subnet : {'subnet': {'id': '68d76cce-e93b-4665-b7e4-5904fa35d0d5', 'name': '', 'tenant_id': '55f9fdb0a71e40d1a2fbc0585144b65d', 'network_id': 'bb7f016c-7f98-40b2-97fe-b9349ff5473e', 'ip_version': 6, 'cidr': '20d2:ce3b:6e6b:d406:504c:7940::/96', 'allocation_pools': [{'start': '20d2:ce3b:6e6b:d406:504c:7940:0:2', 'end': '20d2:ce3b:6e6b:d406:504c:7940:ffff:fffe'}], 'gateway_ip': '20d2:ce3b:6e6b:d406:504c:7940:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20d2:ce3b:6e6b:d406:504c:7940:0:2', 'tags': [], 'project_id': '55f9fdb0a71e40d1a2fbc0585144b65d'}} 2026-03-20 21:14:58,752 - INFO - Created VN ctest-vn4-78823707 2026-03-20 21:14:58,802 - DEBUG - VN ctest-vn4-78823707 UUID is bb7f016c-7f98-40b2-97fe-b9349ff5473e 2026-03-20 21:14:58,971 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bb7f016c-7f98-40b2-97fe-b9349ff5473e', 'name': 'ctest-vn4-78823707', 'tenant_id': '55f9fdb0a71e40d1a2fbc0585144b65d', 'project_id': '55f9fdb0a71e40d1a2fbc0585144b65d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f79d85a2-356e-42c5-8e0e-f8f93e644a23', '68d76cce-e93b-4665-b7e4-5904fa35d0d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29085688', 'ctest-vn4-78823707'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29085688', 'ctest-policy1-76722536']], 'subnet_ipam': [{'subnet_cidr': '89.94.76.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '20d2:ce3b:6e6b:d406:504c:7940::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-20 21:14:59,134 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-20 21:14:59,424 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-20 21:14:59,453 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9cf004ce-4702-4a59-bd59-ede0221bf91e 2026-03-20 21:14:59,463 - DEBUG - Requesting: http://10.0.0.38:8082/project/55f9fdb0-a71e-40d1-a2fb-c0585144b65d 2026-03-20 21:14:59,536 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bb7f016c-7f98-40b2-97fe-b9349ff5473e 2026-03-20 21:14:59,546 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bb7f016c-7f98-40b2-97fe-b9349ff5473e 2026-03-20 21:14:59,554 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/89575592-37e2-4eb1-a5e9-bd4255eeb04a 2026-03-20 21:14:59,560 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/89575592-37e2-4eb1-a5e9-bd4255eeb04a 2026-03-20 21:14:59,566 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/363fa09f-8947-4471-bc4c-41b02bcc648c 2026-03-20 21:14:59,571 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-20 21:14:59,571 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bb7f016c-7f98-40b2-97fe-b9349ff5473e 2026-03-20 21:14:59,579 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/89575592-37e2-4eb1-a5e9-bd4255eeb04a 2026-03-20 21:14:59,590 - INFO - Verified VN network id 12 for VN bb7f016c-7f98-40b2-97fe-b9349ff5473e 2026-03-20 21:14:59,590 - INFO - Verifications in API Server for VN ctest-vn4-78823707 passed 2026-03-20 21:14:59,591 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bb7f016c-7f98-40b2-97fe-b9349ff5473e 2026-03-20 21:14:59,598 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/89575592-37e2-4eb1-a5e9-bd4255eeb04a 2026-03-20 21:14:59,603 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/89575592-37e2-4eb1-a5e9-bd4255eeb04a 2026-03-20 21:14:59,608 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/363fa09f-8947-4471-bc4c-41b02bcc648c 2026-03-20 21:14:59,617 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29085688:ctest-vn4-78823707', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29085688', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13510518972643557554', 'uuid-lslong': '10952394979484714814'}, 'enable': 'true', 'created': '2026-03-20T21:14:58', 'last-modified': '2026-03-20T21:14:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.669283'} 2026-03-20 21:14:59,622 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-20 21:14:59,622 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78823707 passed 2026-03-20 21:14:59,623 - DEBUG - ====Verifying policy data for ctest-vn4-78823707 in API_Server ====== 2026-03-20 21:14:59,623 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-20 21:14:59,627 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9cf004ce-4702-4a59-bd59-ede0221bf91e 2026-03-20 21:14:59,637 - DEBUG - Requesting: http://10.0.0.38:8082/project/55f9fdb0-a71e-40d1-a2fb-c0585144b65d 2026-03-20 21:14:59,705 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/bb7f016c-7f98-40b2-97fe-b9349ff5473e 2026-03-20 21:14:59,713 - DEBUG - ==>Verifying data for policy with id: f6c0dc6f-898d-4252-bb49-2ad03b7a0f55, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29085688', 'ctest-policy1-76722536'] 2026-03-20 21:14:59,713 - INFO - VN ctest-vn4-78823707 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-20 21:14:59,713 - DEBUG - Verifying the vn in opserver 2026-03-20 21:14:59,713 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29085688:ctest-vn4-78823707 virtual network link through opserver 10.0.0.38 2026-03-20 21:14:59,713 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-20 21:15:00,003 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-03-20 21:15:00,060 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29085688:ctest-vn4-78823707', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29085688:ctest-vn4-78823707?flat'} 2026-03-20 21:15:00,060 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29085688:ctest-vn4-78823707 is found in opserver 2026-03-20 21:15:00,068 - DEBUG - Do not have enough data to verify VN in agent 2026-03-20 21:15:00,071 - DEBUG - VRF ids for VN ctest-vn4-78823707: {} 2026-03-20 21:15:00,072 - DEBUG - ====Verifying data for ctest-policy1-76722536 in API_Server ====== 2026-03-20 21:15:00,072 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-20 21:15:00,076 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9cf004ce-4702-4a59-bd59-ede0221bf91e 2026-03-20 21:15:00,086 - DEBUG - Requesting: http://10.0.0.38:8082/project/55f9fdb0-a71e-40d1-a2fb-c0585144b65d 2026-03-20 21:15:00,155 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/f6c0dc6f-898d-4252-bb49-2ad03b7a0f55 2026-03-20 21:15:00,163 - INFO - Verified policy ctest-policy1-76722536 in API Server, Result: True 2026-03-20 21:15:00,163 - INFO - Done with setup and verification, moving onto test .. 2026-03-20 21:15:00,168 - INFO - Deleting VN ctest-vn4-78823707 2026-03-20 21:15:00,272 - DEBUG - Response for deleting network () 2026-03-20 21:15:00,272 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/89575592-37e2-4eb1-a5e9-bd4255eeb04a 2026-03-20 21:15:00,276 - DEBUG - Response Code: 404 2026-03-20 21:15:00,276 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-03-20 21:15:00,280 - DEBUG - Requesting: http://10.0.0.38:8082/domain/9cf004ce-4702-4a59-bd59-ede0221bf91e 2026-03-20 21:15:00,334 - DEBUG - Requesting: http://10.0.0.38:8082/project/55f9fdb0-a71e-40d1-a2fb-c0585144b65d 2026-03-20 21:15:00,400 - INFO - Validated that VN ctest-vn4-78823707 is not found in API Server 2026-03-20 21:15:00,408 - DEBUG - VN ctest-vn4-78823707 is not present in Agent 10.0.0.38 2026-03-20 21:15:00,408 - INFO - Validated that VN ctest-vn4-78823707 is not in any agent 2026-03-20 21:15:00,419 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78823707 info 2026-03-20 21:15:00,440 - INFO - Deleted policy ctest-policy1-76722536 2026-03-20 21:15:00,598 - DEBUG - policy ctest-policy1-76722536 is not found in API Server 2026-03-20 21:15:00,854 - DEBUG - No XMPP flaps were noticed during the test
2026-03-20 21:15:00,854 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-03-20 21:15:00,854 - INFO - -------------------------------------------------------------------------------- 2026-03-20 21:15:01,146 - DEBUG - No XMPP flaps were noticed during the test
2026-03-20 21:15:01,146 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-20 21:15:01,146 - INFO - -------------------------------------------------------------------------------- 2026-03-20 21:15:01,805 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-29085688, ID : 55f9fdb0-a71e-40d1-a2fb-c0585144b65d