2026-03-19 23:24:52,744 - INFO - Domain Default found not creating 2026-03-19 23:24:52,886 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35660707 not found, creating it 2026-03-19 23:24:53,330 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35660707, ID : bb2194e2-965d-4bc1-949d-1c008b6df4af 2026-03-19 23:24:54,701 - INFO - ================================================================================ 2026-03-19 23:24:54,701 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 23:24:54,954 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-03-19 23:24:54,955 - INFO - Initial checks done. Running the testcase now 2026-03-19 23:24:54,955 - INFO - 2026-03-19 23:24:54,955 - INFO - ================================================================================ 2026-03-19 23:24:54,955 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 23:24:54,955 - 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-19 23:24:55,239 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-03-19 23:24:55,240 - INFO - Initial checks done. Running the testcase now 2026-03-19 23:24:55,240 - INFO - 2026-03-19 23:24:55,558 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35660707:ctest-vn4-92790775, 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-35660707:ctest-vn4-92790775, 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-35660707:ctest-vn4-92790775, 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-35660707:ctest-vn4-92790775, 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-19 23:24:56,083 - DEBUG - Response for create_network : {'network': {'id': '60076ed2-7f2d-4d2a-bd49-95d09e5c8040', 'name': 'ctest-vn4-92790775', 'tenant_id': 'bb2194e2965d4bc1949d1c008b6df4af', 'project_id': 'bb2194e2965d4bc1949d1c008b6df4af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35660707', 'ctest-vn4-92790775'], 'port_security_enabled': True, 'description': ''}} 2026-03-19 23:24:56,305 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf3deb7c-8610-481e-b981-7aef2ffe66a0', 'name': '', 'tenant_id': 'bb2194e2965d4bc1949d1c008b6df4af', 'network_id': '60076ed2-7f2d-4d2a-bd49-95d09e5c8040', 'ip_version': 4, 'cidr': '14.105.97.128/26', 'allocation_pools': [{'start': '14.105.97.130', 'end': '14.105.97.190'}], 'gateway_ip': '14.105.97.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '14.105.97.130', 'tags': [], 'project_id': 'bb2194e2965d4bc1949d1c008b6df4af'}} 2026-03-19 23:24:56,519 - DEBUG - Response for create_subnet : {'subnet': {'id': '51ad279a-bade-42ef-810d-8e30c1248f90', 'name': '', 'tenant_id': 'bb2194e2965d4bc1949d1c008b6df4af', 'network_id': '60076ed2-7f2d-4d2a-bd49-95d09e5c8040', 'ip_version': 6, 'cidr': '3b6b:ce6a:72f1:cd27:84cc:e2::/96', 'allocation_pools': [{'start': '3b6b:ce6a:72f1:cd27:84cc:e2:0:2', 'end': '3b6b:ce6a:72f1:cd27:84cc:e2:ffff:fffe'}], 'gateway_ip': '3b6b:ce6a:72f1:cd27:84cc:e2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b6b:ce6a:72f1:cd27:84cc:e2:0:2', 'tags': [], 'project_id': 'bb2194e2965d4bc1949d1c008b6df4af'}} 2026-03-19 23:24:56,537 - INFO - Created VN ctest-vn4-92790775 2026-03-19 23:24:56,588 - DEBUG - VN ctest-vn4-92790775 UUID is 60076ed2-7f2d-4d2a-bd49-95d09e5c8040 2026-03-19 23:24:56,778 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60076ed2-7f2d-4d2a-bd49-95d09e5c8040', 'name': 'ctest-vn4-92790775', 'tenant_id': 'bb2194e2965d4bc1949d1c008b6df4af', 'project_id': 'bb2194e2965d4bc1949d1c008b6df4af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bf3deb7c-8610-481e-b981-7aef2ffe66a0', '51ad279a-bade-42ef-810d-8e30c1248f90'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35660707', 'ctest-vn4-92790775'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35660707', 'ctest-policy1-46379830']], 'subnet_ipam': [{'subnet_cidr': '14.105.97.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b6b:ce6a:72f1:cd27:84cc:e2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-19 23:24:56,936 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-19 23:24:57,197 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-19 23:24:57,229 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b08ef5ca-d3a2-420b-939b-3e36d83c00eb 2026-03-19 23:24:57,241 - DEBUG - Requesting: http://10.0.0.249:8082/project/bb2194e2-965d-4bc1-949d-1c008b6df4af 2026-03-19 23:24:57,315 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/60076ed2-7f2d-4d2a-bd49-95d09e5c8040 2026-03-19 23:24:57,328 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/60076ed2-7f2d-4d2a-bd49-95d09e5c8040 2026-03-19 23:24:57,339 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/62cef205-9b11-41fc-adc2-ae48e2b8466a 2026-03-19 23:24:57,346 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/62cef205-9b11-41fc-adc2-ae48e2b8466a 2026-03-19 23:24:57,353 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/976a9054-41af-4c1a-ad9e-6871cc8f8115 2026-03-19 23:24:57,359 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 23:24:57,359 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/60076ed2-7f2d-4d2a-bd49-95d09e5c8040 2026-03-19 23:24:57,367 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/62cef205-9b11-41fc-adc2-ae48e2b8466a 2026-03-19 23:24:57,381 - INFO - Verified VN network id 12 for VN 60076ed2-7f2d-4d2a-bd49-95d09e5c8040 2026-03-19 23:24:57,381 - INFO - Verifications in API Server for VN ctest-vn4-92790775 passed 2026-03-19 23:24:57,381 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/60076ed2-7f2d-4d2a-bd49-95d09e5c8040 2026-03-19 23:24:57,390 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/62cef205-9b11-41fc-adc2-ae48e2b8466a 2026-03-19 23:24:57,396 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/62cef205-9b11-41fc-adc2-ae48e2b8466a 2026-03-19 23:24:57,404 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/976a9054-41af-4c1a-ad9e-6871cc8f8115 2026-03-19 23:24:57,414 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35660707:ctest-vn4-92790775', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35660707', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6919621202833919274', 'uuid-lslong': '13639597669710856256'}, 'enable': 'true', 'created': '2026-03-19T23:24:56', 'last-modified': '2026-03-19T23:24:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.661313'} 2026-03-19 23:24:57,420 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 23:24:57,420 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-92790775 passed 2026-03-19 23:24:57,421 - DEBUG - ====Verifying policy data for ctest-vn4-92790775 in API_Server ====== 2026-03-19 23:24:57,421 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-19 23:24:57,426 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b08ef5ca-d3a2-420b-939b-3e36d83c00eb 2026-03-19 23:24:57,437 - DEBUG - Requesting: http://10.0.0.249:8082/project/bb2194e2-965d-4bc1-949d-1c008b6df4af 2026-03-19 23:24:57,508 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/60076ed2-7f2d-4d2a-bd49-95d09e5c8040 2026-03-19 23:24:57,519 - DEBUG - ==>Verifying data for policy with id: a6185d76-a2df-45bd-a382-d3dc799dbc27, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35660707', 'ctest-policy1-46379830'] 2026-03-19 23:24:57,519 - INFO - VN ctest-vn4-92790775 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-19 23:24:57,519 - DEBUG - Verifying the vn in opserver 2026-03-19 23:24:57,519 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35660707:ctest-vn4-92790775 virtual network link through opserver 10.0.0.249 2026-03-19 23:24:57,519 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-19 23:24:57,794 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-19 23:24:57,858 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35660707:ctest-vn4-92790775', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35660707:ctest-vn4-92790775?flat'} 2026-03-19 23:24:57,858 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35660707:ctest-vn4-92790775 is found in opserver 2026-03-19 23:24:57,867 - DEBUG - Do not have enough data to verify VN in agent 2026-03-19 23:24:57,870 - DEBUG - VRF ids for VN ctest-vn4-92790775: {} 2026-03-19 23:24:57,871 - DEBUG - ====Verifying data for ctest-policy1-46379830 in API_Server ====== 2026-03-19 23:24:57,871 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-19 23:24:57,876 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b08ef5ca-d3a2-420b-939b-3e36d83c00eb 2026-03-19 23:24:57,887 - DEBUG - Requesting: http://10.0.0.249:8082/project/bb2194e2-965d-4bc1-949d-1c008b6df4af 2026-03-19 23:24:57,959 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/a6185d76-a2df-45bd-a382-d3dc799dbc27 2026-03-19 23:24:57,969 - INFO - Verified policy ctest-policy1-46379830 in API Server, Result: True 2026-03-19 23:24:57,969 - INFO - Done with setup and verification, moving onto test .. 2026-03-19 23:24:57,977 - INFO - Deleting VN ctest-vn4-92790775 2026-03-19 23:24:58,087 - DEBUG - Response for deleting network () 2026-03-19 23:24:58,087 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/62cef205-9b11-41fc-adc2-ae48e2b8466a 2026-03-19 23:24:58,091 - DEBUG - Response Code: 404 2026-03-19 23:24:58,092 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-19 23:24:58,096 - DEBUG - Requesting: http://10.0.0.249:8082/domain/b08ef5ca-d3a2-420b-939b-3e36d83c00eb 2026-03-19 23:24:58,148 - DEBUG - Requesting: http://10.0.0.249:8082/project/bb2194e2-965d-4bc1-949d-1c008b6df4af 2026-03-19 23:24:58,217 - INFO - Validated that VN ctest-vn4-92790775 is not found in API Server 2026-03-19 23:24:58,227 - DEBUG - VN ctest-vn4-92790775 is not present in Agent 10.0.0.249 2026-03-19 23:24:58,227 - INFO - Validated that VN ctest-vn4-92790775 is not in any agent 2026-03-19 23:24:58,240 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-92790775 info 2026-03-19 23:24:58,262 - INFO - Deleted policy ctest-policy1-46379830 2026-03-19 23:24:58,423 - DEBUG - policy ctest-policy1-46379830 is not found in API Server 2026-03-19 23:24:58,680 - DEBUG - No XMPP flaps were noticed during the test