2026-08-25 08:24:55,018 - INFO - Domain Default found not creating 2026-08-25 08:24:55,191 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-84236556 not found, creating it 2026-08-25 08:24:55,702 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-84236556, ID : 677ec05b-d499-45e5-9141-f27991208ce5 2026-08-25 08:24:57,271 - INFO - ================================================================================ 2026-08-25 08:24:57,271 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 08:24:57,529 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.14': '0'}} with 2026-08-25 08:24:57,529 - INFO - Initial checks done. Running the testcase now 2026-08-25 08:24:57,529 - INFO - 2026-08-25 08:24:57,529 - INFO - ================================================================================ 2026-08-25 08:24:57,529 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 08:24:57,529 - 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-08-25 08:24:57,815 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.14': '0'}} with 2026-08-25 08:24:57,815 - INFO - Initial checks done. Running the testcase now 2026-08-25 08:24:57,816 - INFO - 2026-08-25 08:24:58,204 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84236556:ctest-vn4-90666121, 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-84236556:ctest-vn4-90666121, 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-84236556:ctest-vn4-90666121, 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-84236556:ctest-vn4-90666121, 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-08-25 08:24:58,735 - DEBUG - Response for create_network : {'network': {'id': '634d3c9c-db7e-4df4-8c3f-b4b0b3ab9fa0', 'name': 'ctest-vn4-90666121', 'tenant_id': '677ec05bd49945e59141f27991208ce5', 'project_id': '677ec05bd49945e59141f27991208ce5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84236556', 'ctest-vn4-90666121'], 'port_security_enabled': True, 'description': ''}} 2026-08-25 08:24:58,942 - DEBUG - Response for create_subnet : {'subnet': {'id': '9eb99db5-ac23-40e8-a2ba-0bfac2251167', 'name': '', 'tenant_id': '677ec05bd49945e59141f27991208ce5', 'network_id': '634d3c9c-db7e-4df4-8c3f-b4b0b3ab9fa0', 'ip_version': 4, 'cidr': '213.185.239.0/26', 'allocation_pools': [{'start': '213.185.239.2', 'end': '213.185.239.62'}], 'gateway_ip': '213.185.239.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.185.239.2', 'tags': [], 'project_id': '677ec05bd49945e59141f27991208ce5'}} 2026-08-25 08:24:59,107 - DEBUG - Response for create_subnet : {'subnet': {'id': '61638695-ebbf-415a-ad48-aa04fbfb2996', 'name': '', 'tenant_id': '677ec05bd49945e59141f27991208ce5', 'network_id': '634d3c9c-db7e-4df4-8c3f-b4b0b3ab9fa0', 'ip_version': 6, 'cidr': '301d:843c:5ec8:8d82:3958:22a1::/96', 'allocation_pools': [{'start': '301d:843c:5ec8:8d82:3958:22a1:0:2', 'end': '301d:843c:5ec8:8d82:3958:22a1:ffff:fffe'}], 'gateway_ip': '301d:843c:5ec8:8d82:3958:22a1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '301d:843c:5ec8:8d82:3958:22a1:0:2', 'tags': [], 'project_id': '677ec05bd49945e59141f27991208ce5'}} 2026-08-25 08:24:59,128 - INFO - Created VN ctest-vn4-90666121 2026-08-25 08:24:59,183 - DEBUG - VN ctest-vn4-90666121 UUID is 634d3c9c-db7e-4df4-8c3f-b4b0b3ab9fa0 2026-08-25 08:24:59,387 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '634d3c9c-db7e-4df4-8c3f-b4b0b3ab9fa0', 'name': 'ctest-vn4-90666121', 'tenant_id': '677ec05bd49945e59141f27991208ce5', 'project_id': '677ec05bd49945e59141f27991208ce5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['9eb99db5-ac23-40e8-a2ba-0bfac2251167', '61638695-ebbf-415a-ad48-aa04fbfb2996'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84236556', 'ctest-vn4-90666121'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84236556', 'ctest-policy1-87597130']], 'subnet_ipam': [{'subnet_cidr': '213.185.239.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '301d:843c:5ec8:8d82:3958:22a1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-25 08:24:59,547 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-25 08:24:59,871 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-25 08:24:59,899 - DEBUG - Requesting: http://10.0.0.177:8082/domain/90de20b4-731c-43b9-a090-22a2067e821d 2026-08-25 08:24:59,913 - DEBUG - Requesting: http://10.0.0.177:8082/project/677ec05b-d499-45e5-9141-f27991208ce5 2026-08-25 08:24:59,990 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/634d3c9c-db7e-4df4-8c3f-b4b0b3ab9fa0 2026-08-25 08:25:00,002 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/634d3c9c-db7e-4df4-8c3f-b4b0b3ab9fa0 2026-08-25 08:25:00,015 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9f1552db-dc3f-4d62-b3cd-241a46bd2aa8 2026-08-25 08:25:00,024 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9f1552db-dc3f-4d62-b3cd-241a46bd2aa8 2026-08-25 08:25:00,031 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/9b0e9460-36f8-4b59-9ec7-92a889d58e11 2026-08-25 08:25:00,038 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-25 08:25:00,038 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/634d3c9c-db7e-4df4-8c3f-b4b0b3ab9fa0 2026-08-25 08:25:00,049 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9f1552db-dc3f-4d62-b3cd-241a46bd2aa8 2026-08-25 08:25:00,070 - INFO - Verified VN network id 12 for VN 634d3c9c-db7e-4df4-8c3f-b4b0b3ab9fa0 2026-08-25 08:25:00,070 - INFO - Verifications in API Server for VN ctest-vn4-90666121 passed 2026-08-25 08:25:00,070 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/634d3c9c-db7e-4df4-8c3f-b4b0b3ab9fa0 2026-08-25 08:25:00,085 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9f1552db-dc3f-4d62-b3cd-241a46bd2aa8 2026-08-25 08:25:00,093 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9f1552db-dc3f-4d62-b3cd-241a46bd2aa8 2026-08-25 08:25:00,101 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/9b0e9460-36f8-4b59-9ec7-92a889d58e11 2026-08-25 08:25:00,115 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84236556:ctest-vn4-90666121', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-84236556', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7155442027356638708', 'uuid-lslong': '10105994759864295328'}, 'enable': 'true', 'created': '2026-08-25T08:24:58', 'last-modified': '2026-08-25T08:24:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.755092'} 2026-08-25 08:25:00,121 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-25 08:25:00,121 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-90666121 passed 2026-08-25 08:25:00,122 - DEBUG - ====Verifying policy data for ctest-vn4-90666121 in API_Server ====== 2026-08-25 08:25:00,122 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-25 08:25:00,128 - DEBUG - Requesting: http://10.0.0.177:8082/domain/90de20b4-731c-43b9-a090-22a2067e821d 2026-08-25 08:25:00,141 - DEBUG - Requesting: http://10.0.0.177:8082/project/677ec05b-d499-45e5-9141-f27991208ce5 2026-08-25 08:25:00,216 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/634d3c9c-db7e-4df4-8c3f-b4b0b3ab9fa0 2026-08-25 08:25:00,228 - DEBUG - ==>Verifying data for policy with id: 00b15c51-8897-4e9d-9328-b1231be0439a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-84236556', 'ctest-policy1-87597130'] 2026-08-25 08:25:00,228 - INFO - VN ctest-vn4-90666121 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-25 08:25:00,228 - DEBUG - Verifying the vn in opserver 2026-08-25 08:25:00,228 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84236556:ctest-vn4-90666121 virtual network link through opserver 10.0.0.177 2026-08-25 08:25:00,229 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-25 08:25:00,563 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-25 08:25:00,619 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84236556:ctest-vn4-90666121', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84236556:ctest-vn4-90666121?flat'} 2026-08-25 08:25:00,619 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-84236556:ctest-vn4-90666121 is found in opserver 2026-08-25 08:25:00,631 - DEBUG - Do not have enough data to verify VN in agent 2026-08-25 08:25:00,637 - DEBUG - VRF ids for VN ctest-vn4-90666121: {} 2026-08-25 08:25:00,637 - DEBUG - ====Verifying data for ctest-policy1-87597130 in API_Server ====== 2026-08-25 08:25:00,637 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-25 08:25:00,643 - DEBUG - Requesting: http://10.0.0.177:8082/domain/90de20b4-731c-43b9-a090-22a2067e821d 2026-08-25 08:25:00,656 - DEBUG - Requesting: http://10.0.0.177:8082/project/677ec05b-d499-45e5-9141-f27991208ce5 2026-08-25 08:25:00,740 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/00b15c51-8897-4e9d-9328-b1231be0439a 2026-08-25 08:25:00,753 - INFO - Verified policy ctest-policy1-87597130 in API Server, Result: True 2026-08-25 08:25:00,754 - INFO - Done with setup and verification, moving onto test .. 2026-08-25 08:25:00,766 - INFO - Deleting VN ctest-vn4-90666121 2026-08-25 08:25:00,904 - DEBUG - Response for deleting network () 2026-08-25 08:25:00,905 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9f1552db-dc3f-4d62-b3cd-241a46bd2aa8 2026-08-25 08:25:00,911 - DEBUG - Response Code: 404 2026-08-25 08:25:00,911 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-25 08:25:00,918 - DEBUG - Requesting: http://10.0.0.177:8082/domain/90de20b4-731c-43b9-a090-22a2067e821d 2026-08-25 08:25:00,973 - DEBUG - Requesting: http://10.0.0.177:8082/project/677ec05b-d499-45e5-9141-f27991208ce5 2026-08-25 08:25:01,053 - INFO - Validated that VN ctest-vn4-90666121 is not found in API Server 2026-08-25 08:25:01,064 - DEBUG - VN ctest-vn4-90666121 is not present in Agent 10.0.0.177 2026-08-25 08:25:01,064 - INFO - Validated that VN ctest-vn4-90666121 is not in any agent 2026-08-25 08:25:01,080 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-90666121 info 2026-08-25 08:25:01,110 - INFO - Deleted policy ctest-policy1-87597130 2026-08-25 08:25:01,291 - DEBUG - policy ctest-policy1-87597130 is not found in API Server 2026-08-25 08:25:01,558 - DEBUG - No XMPP flaps were noticed during the test
2026-08-25 08:25:01,558 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-25 08:25:01,558 - INFO - -------------------------------------------------------------------------------- 2026-08-25 08:25:01,844 - DEBUG - No XMPP flaps were noticed during the test
2026-08-25 08:25:01,845 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-25 08:25:01,845 - INFO - -------------------------------------------------------------------------------- 2026-08-25 08:25:02,635 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-84236556, ID : 677ec05b-d499-45e5-9141-f27991208ce5