2026-02-17 12:12:31,685 - INFO - Domain Default found not creating 2026-02-17 12:12:31,840 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-60309281 not found, creating it 2026-02-17 12:12:32,284 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-60309281, ID : 51328e10-125b-4968-b950-53f7d83b259b 2026-02-17 12:12:33,722 - INFO - ================================================================================ 2026-02-17 12:12:33,722 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-17 12:12:33,982 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-17 12:12:33,982 - INFO - Initial checks done. Running the testcase now 2026-02-17 12:12:33,982 - INFO - 2026-02-17 12:12:33,982 - INFO - ================================================================================ 2026-02-17 12:12:33,982 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-17 12:12:33,982 - 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-17 12:12:34,277 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-02-17 12:12:34,277 - INFO - Initial checks done. Running the testcase now 2026-02-17 12:12:34,278 - INFO - 2026-02-17 12:12:34,630 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60309281:ctest-vn4-60582185, 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-60309281:ctest-vn4-60582185, 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-60309281:ctest-vn4-60582185, 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-60309281:ctest-vn4-60582185, 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-17 12:12:35,144 - DEBUG - Response for create_network : {'network': {'id': '50231b28-6443-4141-ac88-4854e512cd00', 'name': 'ctest-vn4-60582185', 'tenant_id': '51328e10125b4968b95053f7d83b259b', 'project_id': '51328e10125b4968b95053f7d83b259b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60309281', 'ctest-vn4-60582185'], 'port_security_enabled': True, 'description': ''}} 2026-02-17 12:12:35,355 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a24fecb2-a0f1-4348-9212-932cfbfb7622', 'name': '', 'tenant_id': '51328e10125b4968b95053f7d83b259b', 'network_id': '50231b28-6443-4141-ac88-4854e512cd00', 'ip_version': 4, 'cidr': '68.237.248.64/26', 'allocation_pools': [{'start': '68.237.248.66', 'end': '68.237.248.126'}], 'gateway_ip': '68.237.248.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.237.248.66', 'tags': [], 'project_id': '51328e10125b4968b95053f7d83b259b'}} 2026-02-17 12:12:35,532 - DEBUG - Response for create_subnet : {'subnet': {'id': '9eb1d7bb-588f-419a-9952-2b8e742b36d5', 'name': '', 'tenant_id': '51328e10125b4968b95053f7d83b259b', 'network_id': '50231b28-6443-4141-ac88-4854e512cd00', 'ip_version': 6, 'cidr': '27c8:a7b5:2e60:6111:6226:6953::/96', 'allocation_pools': [{'start': '27c8:a7b5:2e60:6111:6226:6953:0:2', 'end': '27c8:a7b5:2e60:6111:6226:6953:ffff:fffe'}], 'gateway_ip': '27c8:a7b5:2e60:6111:6226:6953:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27c8:a7b5:2e60:6111:6226:6953:0:2', 'tags': [], 'project_id': '51328e10125b4968b95053f7d83b259b'}} 2026-02-17 12:12:35,550 - INFO - Created VN ctest-vn4-60582185 2026-02-17 12:12:35,605 - DEBUG - VN ctest-vn4-60582185 UUID is 50231b28-6443-4141-ac88-4854e512cd00 2026-02-17 12:12:35,796 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50231b28-6443-4141-ac88-4854e512cd00', 'name': 'ctest-vn4-60582185', 'tenant_id': '51328e10125b4968b95053f7d83b259b', 'project_id': '51328e10125b4968b95053f7d83b259b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a24fecb2-a0f1-4348-9212-932cfbfb7622', '9eb1d7bb-588f-419a-9952-2b8e742b36d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60309281', 'ctest-vn4-60582185'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60309281', 'ctest-policy1-11659415']], 'subnet_ipam': [{'subnet_cidr': '68.237.248.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '27c8:a7b5:2e60:6111:6226:6953::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-17 12:12:35,953 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-17 12:12:36,246 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-17 12:12:36,276 - DEBUG - Requesting: http://10.0.0.38:8082/domain/885b06fd-0b6d-4f2d-b8d1-62410e882fae 2026-02-17 12:12:36,287 - DEBUG - Requesting: http://10.0.0.38:8082/project/51328e10-125b-4968-b950-53f7d83b259b 2026-02-17 12:12:36,355 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50231b28-6443-4141-ac88-4854e512cd00 2026-02-17 12:12:36,366 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50231b28-6443-4141-ac88-4854e512cd00 2026-02-17 12:12:36,376 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec38aba7-4b32-4ea7-b229-7c3ea560f52d 2026-02-17 12:12:36,382 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec38aba7-4b32-4ea7-b229-7c3ea560f52d 2026-02-17 12:12:36,388 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fbe594d2-6287-4156-bf14-dc6d2980c916 2026-02-17 12:12:36,394 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-17 12:12:36,394 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50231b28-6443-4141-ac88-4854e512cd00 2026-02-17 12:12:36,403 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec38aba7-4b32-4ea7-b229-7c3ea560f52d 2026-02-17 12:12:36,417 - INFO - Verified VN network id 11 for VN 50231b28-6443-4141-ac88-4854e512cd00 2026-02-17 12:12:36,417 - INFO - Verifications in API Server for VN ctest-vn4-60582185 passed 2026-02-17 12:12:36,417 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50231b28-6443-4141-ac88-4854e512cd00 2026-02-17 12:12:36,425 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec38aba7-4b32-4ea7-b229-7c3ea560f52d 2026-02-17 12:12:36,432 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec38aba7-4b32-4ea7-b229-7c3ea560f52d 2026-02-17 12:12:36,438 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fbe594d2-6287-4156-bf14-dc6d2980c916 2026-02-17 12:12:36,450 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60309281:ctest-vn4-60582185', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-60309281', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5774489007513878849', 'uuid-lslong': '12432266300813921536'}, 'enable': 'true', 'created': '2026-02-17T12:12:35', 'last-modified': '2026-02-17T12:12:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.680087'} 2026-02-17 12:12:36,456 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-17 12:12:36,457 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-60582185 passed 2026-02-17 12:12:36,457 - DEBUG - ====Verifying policy data for ctest-vn4-60582185 in API_Server ====== 2026-02-17 12:12:36,457 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-17 12:12:36,462 - DEBUG - Requesting: http://10.0.0.38:8082/domain/885b06fd-0b6d-4f2d-b8d1-62410e882fae 2026-02-17 12:12:36,472 - DEBUG - Requesting: http://10.0.0.38:8082/project/51328e10-125b-4968-b950-53f7d83b259b 2026-02-17 12:12:36,542 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/50231b28-6443-4141-ac88-4854e512cd00 2026-02-17 12:12:36,551 - DEBUG - ==>Verifying data for policy with id: 4ef96cf5-4193-4d37-9c65-3307676df45e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60309281', 'ctest-policy1-11659415'] 2026-02-17 12:12:36,551 - INFO - VN ctest-vn4-60582185 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-17 12:12:36,551 - DEBUG - Verifying the vn in opserver 2026-02-17 12:12:36,551 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60309281:ctest-vn4-60582185 virtual network link through opserver 10.0.0.38 2026-02-17 12:12:36,551 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-17 12:12:36,841 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-17 12:12:36,901 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60309281:ctest-vn4-60582185', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60309281:ctest-vn4-60582185?flat'} 2026-02-17 12:12:36,901 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60309281:ctest-vn4-60582185 is found in opserver 2026-02-17 12:12:36,910 - DEBUG - Do not have enough data to verify VN in agent 2026-02-17 12:12:36,914 - DEBUG - VRF ids for VN ctest-vn4-60582185: {} 2026-02-17 12:12:36,914 - DEBUG - ====Verifying data for ctest-policy1-11659415 in API_Server ====== 2026-02-17 12:12:36,914 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-17 12:12:36,919 - DEBUG - Requesting: http://10.0.0.38:8082/domain/885b06fd-0b6d-4f2d-b8d1-62410e882fae 2026-02-17 12:12:36,929 - DEBUG - Requesting: http://10.0.0.38:8082/project/51328e10-125b-4968-b950-53f7d83b259b 2026-02-17 12:12:36,998 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/4ef96cf5-4193-4d37-9c65-3307676df45e 2026-02-17 12:12:37,009 - INFO - Verified policy ctest-policy1-11659415 in API Server, Result: True 2026-02-17 12:12:37,009 - INFO - Done with setup and verification, moving onto test .. 2026-02-17 12:12:37,016 - INFO - Deleting VN ctest-vn4-60582185 2026-02-17 12:12:37,137 - DEBUG - Response for deleting network () 2026-02-17 12:12:37,137 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ec38aba7-4b32-4ea7-b229-7c3ea560f52d 2026-02-17 12:12:37,142 - DEBUG - Response Code: 404 2026-02-17 12:12:37,142 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-17 12:12:37,147 - DEBUG - Requesting: http://10.0.0.38:8082/domain/885b06fd-0b6d-4f2d-b8d1-62410e882fae 2026-02-17 12:12:37,198 - DEBUG - Requesting: http://10.0.0.38:8082/project/51328e10-125b-4968-b950-53f7d83b259b 2026-02-17 12:12:37,268 - INFO - Validated that VN ctest-vn4-60582185 is not found in API Server 2026-02-17 12:12:37,276 - DEBUG - VN ctest-vn4-60582185 is not present in Agent 10.0.0.38 2026-02-17 12:12:37,276 - INFO - Validated that VN ctest-vn4-60582185 is not in any agent 2026-02-17 12:12:37,290 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-60582185 info 2026-02-17 12:12:37,315 - INFO - Deleted policy ctest-policy1-11659415 2026-02-17 12:12:37,473 - DEBUG - policy ctest-policy1-11659415 is not found in API Server 2026-02-17 12:12:37,730 - DEBUG - No XMPP flaps were noticed during the test