2026-02-16 13:08:06,548 - INFO - Domain Default found not creating 2026-02-16 13:08:06,711 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-98632315 not found, creating it 2026-02-16 13:08:07,173 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-98632315, ID : d42505c9-b669-4854-a4da-566aca62c645 2026-02-16 13:08:08,612 - INFO - ================================================================================ 2026-02-16 13:08:08,612 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 13:08:08,866 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2026-02-16 13:08:08,866 - INFO - Initial checks done. Running the testcase now 2026-02-16 13:08:08,866 - INFO - 2026-02-16 13:08:08,866 - INFO - ================================================================================ 2026-02-16 13:08:08,866 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 13:08:08,866 - 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-02-16 13:08:09,153 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.254': '0'}} with 2026-02-16 13:08:09,153 - INFO - Initial checks done. Running the testcase now 2026-02-16 13:08:09,153 - INFO - 2026-02-16 13:08:09,502 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98632315:ctest-vn4-36301964, 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-98632315:ctest-vn4-36301964, 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-98632315:ctest-vn4-36301964, 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-98632315:ctest-vn4-36301964, 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-02-16 13:08:10,007 - DEBUG - Response for create_network : {'network': {'id': '3810dd1c-3721-4b76-8d1a-19129b9af435', 'name': 'ctest-vn4-36301964', 'tenant_id': 'd42505c9b6694854a4da566aca62c645', 'project_id': 'd42505c9b6694854a4da566aca62c645', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98632315', 'ctest-vn4-36301964'], 'port_security_enabled': True, 'description': ''}} 2026-02-16 13:08:10,220 - DEBUG - Response for create_subnet : {'subnet': {'id': '7069f844-b1ca-4f38-b821-66579217a8d9', 'name': '', 'tenant_id': 'd42505c9b6694854a4da566aca62c645', 'network_id': '3810dd1c-3721-4b76-8d1a-19129b9af435', 'ip_version': 4, 'cidr': '141.129.187.64/26', 'allocation_pools': [{'start': '141.129.187.66', 'end': '141.129.187.126'}], 'gateway_ip': '141.129.187.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.129.187.66', 'tags': [], 'project_id': 'd42505c9b6694854a4da566aca62c645'}} 2026-02-16 13:08:10,358 - DEBUG - Response for create_subnet : {'subnet': {'id': '004bf73b-bca4-4b28-8127-ef3060707b02', 'name': '', 'tenant_id': 'd42505c9b6694854a4da566aca62c645', 'network_id': '3810dd1c-3721-4b76-8d1a-19129b9af435', 'ip_version': 6, 'cidr': '23f1:d43d:31a1:a891:96e2:ab91::/96', 'allocation_pools': [{'start': '23f1:d43d:31a1:a891:96e2:ab91:0:2', 'end': '23f1:d43d:31a1:a891:96e2:ab91:ffff:fffe'}], 'gateway_ip': '23f1:d43d:31a1:a891:96e2:ab91:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23f1:d43d:31a1:a891:96e2:ab91:0:2', 'tags': [], 'project_id': 'd42505c9b6694854a4da566aca62c645'}} 2026-02-16 13:08:10,378 - INFO - Created VN ctest-vn4-36301964 2026-02-16 13:08:10,429 - DEBUG - VN ctest-vn4-36301964 UUID is 3810dd1c-3721-4b76-8d1a-19129b9af435 2026-02-16 13:08:10,635 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3810dd1c-3721-4b76-8d1a-19129b9af435', 'name': 'ctest-vn4-36301964', 'tenant_id': 'd42505c9b6694854a4da566aca62c645', 'project_id': 'd42505c9b6694854a4da566aca62c645', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7069f844-b1ca-4f38-b821-66579217a8d9', '004bf73b-bca4-4b28-8127-ef3060707b02'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98632315', 'ctest-vn4-36301964'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98632315', 'ctest-policy1-88234874']], 'subnet_ipam': [{'subnet_cidr': '141.129.187.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '23f1:d43d:31a1:a891:96e2:ab91::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-16 13:08:10,793 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-16 13:08:11,085 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-16 13:08:11,114 - DEBUG - Requesting: http://10.0.0.41:8082/domain/303d7f9c-f75d-4e2d-8d07-c7b98ee4f401 2026-02-16 13:08:11,125 - DEBUG - Requesting: http://10.0.0.41:8082/project/d42505c9-b669-4854-a4da-566aca62c645 2026-02-16 13:08:11,199 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3810dd1c-3721-4b76-8d1a-19129b9af435 2026-02-16 13:08:11,210 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3810dd1c-3721-4b76-8d1a-19129b9af435 2026-02-16 13:08:11,219 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2145c311-a4e1-44ae-be88-76dd0e4c16d6 2026-02-16 13:08:11,225 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2145c311-a4e1-44ae-be88-76dd0e4c16d6 2026-02-16 13:08:11,231 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/fa8ed846-2ffb-4396-81f1-f18c79388bae 2026-02-16 13:08:11,237 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 13:08:11,237 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3810dd1c-3721-4b76-8d1a-19129b9af435 2026-02-16 13:08:11,245 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2145c311-a4e1-44ae-be88-76dd0e4c16d6 2026-02-16 13:08:11,259 - INFO - Verified VN network id 12 for VN 3810dd1c-3721-4b76-8d1a-19129b9af435 2026-02-16 13:08:11,259 - INFO - Verifications in API Server for VN ctest-vn4-36301964 passed 2026-02-16 13:08:11,259 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3810dd1c-3721-4b76-8d1a-19129b9af435 2026-02-16 13:08:11,268 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2145c311-a4e1-44ae-be88-76dd0e4c16d6 2026-02-16 13:08:11,274 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2145c311-a4e1-44ae-be88-76dd0e4c16d6 2026-02-16 13:08:11,281 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/fa8ed846-2ffb-4396-81f1-f18c79388bae 2026-02-16 13:08:11,292 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98632315:ctest-vn4-36301964', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-98632315', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4039971979005086582', 'uuid-lslong': '10167466676453045301'}, 'enable': 'true', 'created': '2026-02-16T13:08:09', 'last-modified': '2026-02-16T13:08:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.684374'} 2026-02-16 13:08:11,299 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 13:08:11,300 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-36301964 passed 2026-02-16 13:08:11,300 - DEBUG - ====Verifying policy data for ctest-vn4-36301964 in API_Server ====== 2026-02-16 13:08:11,300 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-16 13:08:11,306 - DEBUG - Requesting: http://10.0.0.41:8082/domain/303d7f9c-f75d-4e2d-8d07-c7b98ee4f401 2026-02-16 13:08:11,317 - DEBUG - Requesting: http://10.0.0.41:8082/project/d42505c9-b669-4854-a4da-566aca62c645 2026-02-16 13:08:11,386 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/3810dd1c-3721-4b76-8d1a-19129b9af435 2026-02-16 13:08:11,395 - DEBUG - ==>Verifying data for policy with id: d5d41c3c-f031-4260-af0f-c7250bde5052, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-98632315', 'ctest-policy1-88234874'] 2026-02-16 13:08:11,395 - INFO - VN ctest-vn4-36301964 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-16 13:08:11,395 - DEBUG - Verifying the vn in opserver 2026-02-16 13:08:11,395 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98632315:ctest-vn4-36301964 virtual network link through opserver 10.0.0.41 2026-02-16 13:08:11,395 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-02-16 13:08:11,685 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-02-16 13:08:11,743 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98632315:ctest-vn4-36301964', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98632315:ctest-vn4-36301964?flat'} 2026-02-16 13:08:11,743 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-98632315:ctest-vn4-36301964 is found in opserver 2026-02-16 13:08:11,753 - DEBUG - Do not have enough data to verify VN in agent 2026-02-16 13:08:11,757 - DEBUG - VRF ids for VN ctest-vn4-36301964: {} 2026-02-16 13:08:11,758 - DEBUG - ====Verifying data for ctest-policy1-88234874 in API_Server ====== 2026-02-16 13:08:11,758 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-16 13:08:11,763 - DEBUG - Requesting: http://10.0.0.41:8082/domain/303d7f9c-f75d-4e2d-8d07-c7b98ee4f401 2026-02-16 13:08:11,775 - DEBUG - Requesting: http://10.0.0.41:8082/project/d42505c9-b669-4854-a4da-566aca62c645 2026-02-16 13:08:11,844 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/d5d41c3c-f031-4260-af0f-c7250bde5052 2026-02-16 13:08:11,853 - INFO - Verified policy ctest-policy1-88234874 in API Server, Result: True 2026-02-16 13:08:11,853 - INFO - Done with setup and verification, moving onto test .. 2026-02-16 13:08:11,861 - INFO - Deleting VN ctest-vn4-36301964 2026-02-16 13:08:12,061 - DEBUG - Response for deleting network () 2026-02-16 13:08:12,061 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/2145c311-a4e1-44ae-be88-76dd0e4c16d6 2026-02-16 13:08:12,066 - DEBUG - Response Code: 404 2026-02-16 13:08:12,066 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-16 13:08:12,070 - DEBUG - Requesting: http://10.0.0.41:8082/domain/303d7f9c-f75d-4e2d-8d07-c7b98ee4f401 2026-02-16 13:08:12,123 - DEBUG - Requesting: http://10.0.0.41:8082/project/d42505c9-b669-4854-a4da-566aca62c645 2026-02-16 13:08:12,194 - INFO - Validated that VN ctest-vn4-36301964 is not found in API Server 2026-02-16 13:08:12,203 - DEBUG - VN ctest-vn4-36301964 is not present in Agent 10.0.0.41 2026-02-16 13:08:12,203 - INFO - Validated that VN ctest-vn4-36301964 is not in any agent 2026-02-16 13:08:12,216 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-36301964 info 2026-02-16 13:08:12,242 - INFO - Deleted policy ctest-policy1-88234874 2026-02-16 13:08:12,405 - DEBUG - policy ctest-policy1-88234874 is not found in API Server 2026-02-16 13:08:12,657 - DEBUG - No XMPP flaps were noticed during the test