2026-03-12 02:10:45,228 - INFO - Domain Default found not creating 2026-03-12 02:10:45,380 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-83516168 not found, creating it 2026-03-12 02:10:45,843 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-83516168, ID : 874f99e1-c4a1-4c62-a08d-4ea3991d5658 2026-03-12 02:10:47,347 - INFO - ================================================================================ 2026-03-12 02:10:47,347 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-12 02:10:47,605 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.193': '0'}} with 2026-03-12 02:10:47,605 - INFO - Initial checks done. Running the testcase now 2026-03-12 02:10:47,605 - INFO - 2026-03-12 02:10:47,605 - INFO - ================================================================================ 2026-03-12 02:10:47,605 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-12 02:10:47,605 - 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-12 02:10:47,892 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.193': '0'}} with 2026-03-12 02:10:47,893 - INFO - Initial checks done. Running the testcase now 2026-03-12 02:10:47,893 - INFO - 2026-03-12 02:10:48,247 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83516168:ctest-vn4-44465138, 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-83516168:ctest-vn4-44465138, 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-83516168:ctest-vn4-44465138, 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-83516168:ctest-vn4-44465138, 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-12 02:10:48,788 - DEBUG - Response for create_network : {'network': {'id': '72af9e8c-ee70-4ade-b1a5-a1e0a7e82493', 'name': 'ctest-vn4-44465138', 'tenant_id': '874f99e1c4a14c62a08d4ea3991d5658', 'project_id': '874f99e1c4a14c62a08d4ea3991d5658', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83516168', 'ctest-vn4-44465138'], 'port_security_enabled': True, 'description': ''}} 2026-03-12 02:10:49,017 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c3bb573a-57f1-4d0f-a1ce-40b346c46bfe', 'name': '', 'tenant_id': '874f99e1c4a14c62a08d4ea3991d5658', 'network_id': '72af9e8c-ee70-4ade-b1a5-a1e0a7e82493', 'ip_version': 4, 'cidr': '91.174.189.64/26', 'allocation_pools': [{'start': '91.174.189.66', 'end': '91.174.189.126'}], 'gateway_ip': '91.174.189.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.174.189.66', 'tags': [], 'project_id': '874f99e1c4a14c62a08d4ea3991d5658'}} 2026-03-12 02:10:49,171 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd85bc999-5f8a-4107-a9e0-5a61a0db387c', 'name': '', 'tenant_id': '874f99e1c4a14c62a08d4ea3991d5658', 'network_id': '72af9e8c-ee70-4ade-b1a5-a1e0a7e82493', 'ip_version': 6, 'cidr': '3290:62e0:fc60:cf0a:8da:336a::/96', 'allocation_pools': [{'start': '3290:62e0:fc60:cf0a:8da:336a:0:2', 'end': '3290:62e0:fc60:cf0a:8da:336a:ffff:fffe'}], 'gateway_ip': '3290:62e0:fc60:cf0a:8da:336a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3290:62e0:fc60:cf0a:8da:336a:0:2', 'tags': [], 'project_id': '874f99e1c4a14c62a08d4ea3991d5658'}} 2026-03-12 02:10:49,199 - INFO - Created VN ctest-vn4-44465138 2026-03-12 02:10:49,251 - DEBUG - VN ctest-vn4-44465138 UUID is 72af9e8c-ee70-4ade-b1a5-a1e0a7e82493 2026-03-12 02:10:49,447 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '72af9e8c-ee70-4ade-b1a5-a1e0a7e82493', 'name': 'ctest-vn4-44465138', 'tenant_id': '874f99e1c4a14c62a08d4ea3991d5658', 'project_id': '874f99e1c4a14c62a08d4ea3991d5658', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c3bb573a-57f1-4d0f-a1ce-40b346c46bfe', 'd85bc999-5f8a-4107-a9e0-5a61a0db387c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83516168', 'ctest-vn4-44465138'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83516168', 'ctest-policy1-90636318']], 'subnet_ipam': [{'subnet_cidr': '91.174.189.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3290:62e0:fc60:cf0a:8da:336a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-12 02:10:49,615 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-03-12 02:10:49,944 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-03-12 02:10:49,994 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e96e6af1-e7e5-48c9-b7da-16ab33608450 2026-03-12 02:10:50,005 - DEBUG - Requesting: http://10.0.0.19:8082/project/874f99e1-c4a1-4c62-a08d-4ea3991d5658 2026-03-12 02:10:50,078 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/72af9e8c-ee70-4ade-b1a5-a1e0a7e82493 2026-03-12 02:10:50,094 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/72af9e8c-ee70-4ade-b1a5-a1e0a7e82493 2026-03-12 02:10:50,103 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a7308d0b-fa71-4849-bf6a-caf89da17ec8 2026-03-12 02:10:50,109 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a7308d0b-fa71-4849-bf6a-caf89da17ec8 2026-03-12 02:10:50,115 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/7667c0d1-7293-4d50-81a4-ae412ba90a66 2026-03-12 02:10:50,120 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-12 02:10:50,120 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/72af9e8c-ee70-4ade-b1a5-a1e0a7e82493 2026-03-12 02:10:50,128 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a7308d0b-fa71-4849-bf6a-caf89da17ec8 2026-03-12 02:10:50,144 - INFO - Verified VN network id 11 for VN 72af9e8c-ee70-4ade-b1a5-a1e0a7e82493 2026-03-12 02:10:50,144 - INFO - Verifications in API Server for VN ctest-vn4-44465138 passed 2026-03-12 02:10:50,144 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/72af9e8c-ee70-4ade-b1a5-a1e0a7e82493 2026-03-12 02:10:50,155 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a7308d0b-fa71-4849-bf6a-caf89da17ec8 2026-03-12 02:10:50,161 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a7308d0b-fa71-4849-bf6a-caf89da17ec8 2026-03-12 02:10:50,168 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/7667c0d1-7293-4d50-81a4-ae412ba90a66 2026-03-12 02:10:50,184 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83516168:ctest-vn4-44465138', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-83516168', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8263998169381096158', 'uuid-lslong': '12800815502132257939'}, 'enable': 'true', 'created': '2026-03-12T02:10:48', 'last-modified': '2026-03-12T02:10:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.762343'} 2026-03-12 02:10:50,191 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-12 02:10:50,191 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44465138 passed 2026-03-12 02:10:50,191 - DEBUG - ====Verifying policy data for ctest-vn4-44465138 in API_Server ====== 2026-03-12 02:10:50,191 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-03-12 02:10:50,197 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e96e6af1-e7e5-48c9-b7da-16ab33608450 2026-03-12 02:10:50,206 - DEBUG - Requesting: http://10.0.0.19:8082/project/874f99e1-c4a1-4c62-a08d-4ea3991d5658 2026-03-12 02:10:50,274 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/72af9e8c-ee70-4ade-b1a5-a1e0a7e82493 2026-03-12 02:10:50,283 - DEBUG - ==>Verifying data for policy with id: 5ecb8539-6e8e-4d70-9b5b-8c919387769c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83516168', 'ctest-policy1-90636318'] 2026-03-12 02:10:50,283 - INFO - VN ctest-vn4-44465138 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-12 02:10:50,283 - DEBUG - Verifying the vn in opserver 2026-03-12 02:10:50,283 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83516168:ctest-vn4-44465138 virtual network link through opserver 10.0.0.19 2026-03-12 02:10:50,283 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-03-12 02:10:50,612 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-03-12 02:10:50,711 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83516168:ctest-vn4-44465138', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83516168:ctest-vn4-44465138?flat'} 2026-03-12 02:10:50,711 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83516168:ctest-vn4-44465138 is found in opserver 2026-03-12 02:10:50,720 - DEBUG - Do not have enough data to verify VN in agent 2026-03-12 02:10:50,725 - DEBUG - VRF ids for VN ctest-vn4-44465138: {} 2026-03-12 02:10:50,726 - DEBUG - ====Verifying data for ctest-policy1-90636318 in API_Server ====== 2026-03-12 02:10:50,726 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-03-12 02:10:50,731 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e96e6af1-e7e5-48c9-b7da-16ab33608450 2026-03-12 02:10:50,740 - DEBUG - Requesting: http://10.0.0.19:8082/project/874f99e1-c4a1-4c62-a08d-4ea3991d5658 2026-03-12 02:10:50,813 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/5ecb8539-6e8e-4d70-9b5b-8c919387769c 2026-03-12 02:10:50,823 - INFO - Verified policy ctest-policy1-90636318 in API Server, Result: True 2026-03-12 02:10:50,823 - INFO - Done with setup and verification, moving onto test .. 2026-03-12 02:10:50,829 - INFO - Deleting VN ctest-vn4-44465138 2026-03-12 02:10:50,947 - DEBUG - Response for deleting network () 2026-03-12 02:10:50,947 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a7308d0b-fa71-4849-bf6a-caf89da17ec8 2026-03-12 02:10:50,951 - DEBUG - Response Code: 404 2026-03-12 02:10:50,951 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-03-12 02:10:50,962 - DEBUG - Requesting: http://10.0.0.19:8082/domain/e96e6af1-e7e5-48c9-b7da-16ab33608450 2026-03-12 02:10:51,015 - DEBUG - Requesting: http://10.0.0.19:8082/project/874f99e1-c4a1-4c62-a08d-4ea3991d5658 2026-03-12 02:10:51,084 - INFO - Validated that VN ctest-vn4-44465138 is not found in API Server 2026-03-12 02:10:51,092 - DEBUG - VN ctest-vn4-44465138 is not present in Agent 10.0.0.19 2026-03-12 02:10:51,092 - INFO - Validated that VN ctest-vn4-44465138 is not in any agent 2026-03-12 02:10:51,105 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44465138 info 2026-03-12 02:10:51,127 - INFO - Deleted policy ctest-policy1-90636318 2026-03-12 02:10:51,287 - DEBUG - policy ctest-policy1-90636318 is not found in API Server 2026-03-12 02:10:51,540 - DEBUG - No XMPP flaps were noticed during the test 2026-03-12 02:10:51,540 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-12 02:10:51,540 - INFO - -------------------------------------------------------------------------------- 2026-03-12 02:10:51,832 - DEBUG - No XMPP flaps were noticed during the test 2026-03-12 02:10:51,832 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-03-12 02:10:51,832 - INFO - -------------------------------------------------------------------------------- 2026-03-12 02:10:52,512 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-83516168, ID : 874f99e1-c4a1-4c62-a08d-4ea3991d5658