2026-02-23 22:13:13,154 - INFO - Domain Default found not creating 2026-02-23 22:13:13,325 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-63175389 not found, creating it 2026-02-23 22:13:13,735 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-63175389, ID : 518a69f7-a5c5-4c53-88f0-3a0421e6115e 2026-02-23 22:13:15,075 - INFO - ================================================================================ 2026-02-23 22:13:15,075 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-23 22:13:15,328 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-23 22:13:15,328 - INFO - Initial checks done. Running the testcase now 2026-02-23 22:13:15,329 - INFO - 2026-02-23 22:13:15,329 - INFO - ================================================================================ 2026-02-23 22:13:15,329 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-23 22:13:15,329 - 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-23 22:13:15,616 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-02-23 22:13:15,616 - INFO - Initial checks done. Running the testcase now 2026-02-23 22:13:15,616 - INFO - 2026-02-23 22:13:15,953 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63175389:ctest-vn4-56645050, 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-63175389:ctest-vn4-56645050, 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-63175389:ctest-vn4-56645050, 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-63175389:ctest-vn4-56645050, 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-23 22:13:16,437 - DEBUG - Response for create_network : {'network': {'id': '7a38febc-6cdb-449a-8d55-8f93c62963e3', 'name': 'ctest-vn4-56645050', 'tenant_id': '518a69f7a5c54c5388f03a0421e6115e', 'project_id': '518a69f7a5c54c5388f03a0421e6115e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63175389', 'ctest-vn4-56645050'], 'port_security_enabled': True, 'description': ''}} 2026-02-23 22:13:16,570 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec129061-1d30-421b-932f-4d40cad57c4f', 'name': '', 'tenant_id': '518a69f7a5c54c5388f03a0421e6115e', 'network_id': '7a38febc-6cdb-449a-8d55-8f93c62963e3', 'ip_version': 4, 'cidr': '220.124.108.0/26', 'allocation_pools': [{'start': '220.124.108.2', 'end': '220.124.108.62'}], 'gateway_ip': '220.124.108.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '220.124.108.2', 'tags': [], 'project_id': '518a69f7a5c54c5388f03a0421e6115e'}} 2026-02-23 22:13:16,729 - DEBUG - Response for create_subnet : {'subnet': {'id': '76ee4b28-aaa3-42dc-9989-f103b399eda2', 'name': '', 'tenant_id': '518a69f7a5c54c5388f03a0421e6115e', 'network_id': '7a38febc-6cdb-449a-8d55-8f93c62963e3', 'ip_version': 6, 'cidr': '2391:b41a:6571:59db:f1f9:eef1::/96', 'allocation_pools': [{'start': '2391:b41a:6571:59db:f1f9:eef1:0:2', 'end': '2391:b41a:6571:59db:f1f9:eef1:ffff:fffe'}], 'gateway_ip': '2391:b41a:6571:59db:f1f9:eef1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2391:b41a:6571:59db:f1f9:eef1:0:2', 'tags': [], 'project_id': '518a69f7a5c54c5388f03a0421e6115e'}} 2026-02-23 22:13:16,747 - INFO - Created VN ctest-vn4-56645050 2026-02-23 22:13:16,796 - DEBUG - VN ctest-vn4-56645050 UUID is 7a38febc-6cdb-449a-8d55-8f93c62963e3 2026-02-23 22:13:16,997 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7a38febc-6cdb-449a-8d55-8f93c62963e3', 'name': 'ctest-vn4-56645050', 'tenant_id': '518a69f7a5c54c5388f03a0421e6115e', 'project_id': '518a69f7a5c54c5388f03a0421e6115e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ec129061-1d30-421b-932f-4d40cad57c4f', '76ee4b28-aaa3-42dc-9989-f103b399eda2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63175389', 'ctest-vn4-56645050'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63175389', 'ctest-policy1-80793471']], 'subnet_ipam': [{'subnet_cidr': '220.124.108.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2391:b41a:6571:59db:f1f9:eef1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-23 22:13:17,156 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-23 22:13:17,530 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-23 22:13:17,599 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c3b93268-7925-4975-ab9e-09c2bc68e972 2026-02-23 22:13:17,614 - DEBUG - Requesting: http://10.0.0.50:8082/project/518a69f7-a5c5-4c53-88f0-3a0421e6115e 2026-02-23 22:13:17,686 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7a38febc-6cdb-449a-8d55-8f93c62963e3 2026-02-23 22:13:17,697 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7a38febc-6cdb-449a-8d55-8f93c62963e3 2026-02-23 22:13:17,705 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f089c4c1-616f-4ce8-b83b-fb9399915cac 2026-02-23 22:13:17,711 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f089c4c1-616f-4ce8-b83b-fb9399915cac 2026-02-23 22:13:17,718 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/163e0b42-b7d1-4190-9d46-704159506191 2026-02-23 22:13:17,725 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 22:13:17,725 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7a38febc-6cdb-449a-8d55-8f93c62963e3 2026-02-23 22:13:17,736 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f089c4c1-616f-4ce8-b83b-fb9399915cac 2026-02-23 22:13:17,750 - INFO - Verified VN network id 11 for VN 7a38febc-6cdb-449a-8d55-8f93c62963e3 2026-02-23 22:13:17,750 - INFO - Verifications in API Server for VN ctest-vn4-56645050 passed 2026-02-23 22:13:17,750 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7a38febc-6cdb-449a-8d55-8f93c62963e3 2026-02-23 22:13:17,758 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f089c4c1-616f-4ce8-b83b-fb9399915cac 2026-02-23 22:13:17,764 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f089c4c1-616f-4ce8-b83b-fb9399915cac 2026-02-23 22:13:17,769 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/163e0b42-b7d1-4190-9d46-704159506191 2026-02-23 22:13:17,778 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63175389:ctest-vn4-56645050', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-63175389', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8807069156556620954', 'uuid-lslong': '10184203997215810531'}, 'enable': 'true', 'created': '2026-02-23T22:13:16', 'last-modified': '2026-02-23T22:13:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.801028'} 2026-02-23 22:13:17,783 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 22:13:17,783 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-56645050 passed 2026-02-23 22:13:17,784 - DEBUG - ====Verifying policy data for ctest-vn4-56645050 in API_Server ====== 2026-02-23 22:13:17,784 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-23 22:13:17,788 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c3b93268-7925-4975-ab9e-09c2bc68e972 2026-02-23 22:13:17,798 - DEBUG - Requesting: http://10.0.0.50:8082/project/518a69f7-a5c5-4c53-88f0-3a0421e6115e 2026-02-23 22:13:17,863 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7a38febc-6cdb-449a-8d55-8f93c62963e3 2026-02-23 22:13:17,871 - DEBUG - ==>Verifying data for policy with id: 224f86aa-4a99-4eac-9699-e4fcaf55b3d3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63175389', 'ctest-policy1-80793471'] 2026-02-23 22:13:17,871 - INFO - VN ctest-vn4-56645050 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-23 22:13:17,871 - DEBUG - Verifying the vn in opserver 2026-02-23 22:13:17,871 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63175389:ctest-vn4-56645050 virtual network link through opserver 10.0.0.50 2026-02-23 22:13:17,871 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-23 22:13:18,159 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-02-23 22:13:18,212 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63175389:ctest-vn4-56645050', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63175389:ctest-vn4-56645050?flat'} 2026-02-23 22:13:18,212 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63175389:ctest-vn4-56645050 is found in opserver 2026-02-23 22:13:18,221 - DEBUG - Do not have enough data to verify VN in agent 2026-02-23 22:13:18,225 - DEBUG - VRF ids for VN ctest-vn4-56645050: {} 2026-02-23 22:13:18,225 - DEBUG - ====Verifying data for ctest-policy1-80793471 in API_Server ====== 2026-02-23 22:13:18,225 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-23 22:13:18,230 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c3b93268-7925-4975-ab9e-09c2bc68e972 2026-02-23 22:13:18,239 - DEBUG - Requesting: http://10.0.0.50:8082/project/518a69f7-a5c5-4c53-88f0-3a0421e6115e 2026-02-23 22:13:18,305 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/224f86aa-4a99-4eac-9699-e4fcaf55b3d3 2026-02-23 22:13:18,313 - INFO - Verified policy ctest-policy1-80793471 in API Server, Result: True 2026-02-23 22:13:18,313 - INFO - Done with setup and verification, moving onto test .. 2026-02-23 22:13:18,320 - INFO - Deleting VN ctest-vn4-56645050 2026-02-23 22:13:18,423 - DEBUG - Response for deleting network () 2026-02-23 22:13:18,423 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f089c4c1-616f-4ce8-b83b-fb9399915cac 2026-02-23 22:13:18,427 - DEBUG - Response Code: 404 2026-02-23 22:13:18,427 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-02-23 22:13:18,431 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c3b93268-7925-4975-ab9e-09c2bc68e972 2026-02-23 22:13:18,480 - DEBUG - Requesting: http://10.0.0.50:8082/project/518a69f7-a5c5-4c53-88f0-3a0421e6115e 2026-02-23 22:13:18,548 - INFO - Validated that VN ctest-vn4-56645050 is not found in API Server 2026-02-23 22:13:18,557 - DEBUG - VN ctest-vn4-56645050 is not present in Agent 10.0.0.50 2026-02-23 22:13:18,557 - INFO - Validated that VN ctest-vn4-56645050 is not in any agent 2026-02-23 22:13:18,568 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-56645050 info 2026-02-23 22:13:18,587 - INFO - Deleted policy ctest-policy1-80793471 2026-02-23 22:13:18,744 - DEBUG - policy ctest-policy1-80793471 is not found in API Server 2026-02-23 22:13:18,997 - DEBUG - No XMPP flaps were noticed during the test 2026-02-23 22:13:18,997 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-02-23 22:13:18,997 - INFO - -------------------------------------------------------------------------------- 2026-02-23 22:13:19,300 - DEBUG - No XMPP flaps were noticed during the test 2026-02-23 22:13:19,300 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-23 22:13:19,300 - INFO - -------------------------------------------------------------------------------- 2026-02-23 22:13:19,944 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-63175389, ID : 518a69f7-a5c5-4c53-88f0-3a0421e6115e