2026-02-26 02:34:25,063 - INFO - Domain Default found not creating 2026-02-26 02:34:25,274 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02758230 not found, creating it 2026-02-26 02:34:25,885 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02758230, ID : c5fa1975-0d21-40c2-ba35-b1ca9941e71f 2026-02-26 02:34:27,607 - INFO - ================================================================================ 2026-02-26 02:34:27,607 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-26 02:34:28,896 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.129': '0', '10.20.0.254': '0'}, '10.0.0.48': {'10.20.0.129': '0', '10.20.0.25': '0'}} with 2026-02-26 02:34:28,896 - INFO - Initial checks done. Running the testcase now 2026-02-26 02:34:28,896 - INFO - 2026-02-26 02:34:28,896 - INFO - ================================================================================ 2026-02-26 02:34:28,896 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-26 02:34:28,897 - 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-26 02:34:30,183 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.129': '0', '10.20.0.254': '0'}, '10.0.0.48': {'10.20.0.129': '0', '10.20.0.25': '0'}} with 2026-02-26 02:34:30,183 - INFO - Initial checks done. Running the testcase now 2026-02-26 02:34:30,183 - INFO - 2026-02-26 02:34:30,571 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02758230:ctest-vn4-70079648, 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-02758230:ctest-vn4-70079648, 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-02758230:ctest-vn4-70079648, 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-02758230:ctest-vn4-70079648, 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-26 02:34:31,303 - DEBUG - Response for create_network : {'network': {'id': 'b361aaeb-90ed-4698-b7ab-36eddb261922', 'name': 'ctest-vn4-70079648', 'tenant_id': 'c5fa19750d2140c2ba35b1ca9941e71f', 'project_id': 'c5fa19750d2140c2ba35b1ca9941e71f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02758230', 'ctest-vn4-70079648'], 'port_security_enabled': True, 'description': ''}} 2026-02-26 02:34:31,616 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b10f4dd5-3153-4629-ac76-3200c4ee8247', 'name': '', 'tenant_id': 'c5fa19750d2140c2ba35b1ca9941e71f', 'network_id': 'b361aaeb-90ed-4698-b7ab-36eddb261922', 'ip_version': 4, 'cidr': '97.150.134.128/26', 'allocation_pools': [{'start': '97.150.134.130', 'end': '97.150.134.190'}], 'gateway_ip': '97.150.134.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.150.134.130', 'tags': [], 'project_id': 'c5fa19750d2140c2ba35b1ca9941e71f'}} 2026-02-26 02:34:31,836 - DEBUG - Response for create_subnet : {'subnet': {'id': 'be332c7d-b762-40af-8275-5f703fe4394a', 'name': '', 'tenant_id': 'c5fa19750d2140c2ba35b1ca9941e71f', 'network_id': 'b361aaeb-90ed-4698-b7ab-36eddb261922', 'ip_version': 6, 'cidr': '39fc:9171:fa5c:842a:b9b1:f6d5::/96', 'allocation_pools': [{'start': '39fc:9171:fa5c:842a:b9b1:f6d5:0:2', 'end': '39fc:9171:fa5c:842a:b9b1:f6d5:ffff:fffe'}], 'gateway_ip': '39fc:9171:fa5c:842a:b9b1:f6d5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39fc:9171:fa5c:842a:b9b1:f6d5:0:2', 'tags': [], 'project_id': 'c5fa19750d2140c2ba35b1ca9941e71f'}} 2026-02-26 02:34:31,883 - INFO - Created VN ctest-vn4-70079648 2026-02-26 02:34:31,896 - DEBUG - VN ctest-vn4-70079648 UUID is b361aaeb-90ed-4698-b7ab-36eddb261922 2026-02-26 02:34:32,158 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b361aaeb-90ed-4698-b7ab-36eddb261922', 'name': 'ctest-vn4-70079648', 'tenant_id': 'c5fa19750d2140c2ba35b1ca9941e71f', 'project_id': 'c5fa19750d2140c2ba35b1ca9941e71f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b10f4dd5-3153-4629-ac76-3200c4ee8247', 'be332c7d-b762-40af-8275-5f703fe4394a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02758230', 'ctest-vn4-70079648'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02758230', 'ctest-policy1-78440965']], 'subnet_ipam': [{'subnet_cidr': '97.150.134.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '39fc:9171:fa5c:842a:b9b1:f6d5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-26 02:34:32,283 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-02-26 02:34:32,636 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-02-26 02:34:32,675 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ca8c29a2-0264-4f8f-adb5-14cf22895ebe 2026-02-26 02:34:32,695 - DEBUG - Requesting: http://10.0.0.65:8082/project/c5fa1975-0d21-40c2-ba35-b1ca9941e71f 2026-02-26 02:34:32,797 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b361aaeb-90ed-4698-b7ab-36eddb261922 2026-02-26 02:34:32,811 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b361aaeb-90ed-4698-b7ab-36eddb261922 2026-02-26 02:34:32,822 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f02f1abc-1d1e-45c2-b20f-f38d506a2c4f 2026-02-26 02:34:32,830 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f02f1abc-1d1e-45c2-b20f-f38d506a2c4f 2026-02-26 02:34:32,838 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/8df75ffb-6d60-4a45-9c4f-7819a35d2fdc 2026-02-26 02:34:32,846 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 02:34:32,846 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b361aaeb-90ed-4698-b7ab-36eddb261922 2026-02-26 02:34:32,856 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f02f1abc-1d1e-45c2-b20f-f38d506a2c4f 2026-02-26 02:34:32,875 - INFO - Verified VN network id 13 for VN b361aaeb-90ed-4698-b7ab-36eddb261922 2026-02-26 02:34:32,875 - INFO - Verifications in API Server for VN ctest-vn4-70079648 passed 2026-02-26 02:34:32,875 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b361aaeb-90ed-4698-b7ab-36eddb261922 2026-02-26 02:34:32,887 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f02f1abc-1d1e-45c2-b20f-f38d506a2c4f 2026-02-26 02:34:32,895 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f02f1abc-1d1e-45c2-b20f-f38d506a2c4f 2026-02-26 02:34:32,903 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/8df75ffb-6d60-4a45-9c4f-7819a35d2fdc 2026-02-26 02:34:32,916 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02758230:ctest-vn4-70079648', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02758230', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12925800334255539864', 'uuid-lslong': '13234732325170190626'}, 'enable': 'true', 'created': '2026-02-26T02:34:31', 'last-modified': '2026-02-26T02:34:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.826903'} 2026-02-26 02:34:32,923 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 02:34:32,928 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02758230:ctest-vn4-70079648', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02758230', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12925800334255539864', 'uuid-lslong': '13234732325170190626'}, 'enable': 'true', 'created': '2026-02-26T02:34:31', 'last-modified': '2026-02-26T02:34:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.835640'} 2026-02-26 02:34:32,933 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 02:34:32,939 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02758230:ctest-vn4-70079648', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02758230', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12925800334255539864', 'uuid-lslong': '13234732325170190626'}, 'enable': 'true', 'created': '2026-02-26T02:34:31', 'last-modified': '2026-02-26T02:34:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.850079'} 2026-02-26 02:34:32,946 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-26 02:34:32,946 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70079648 passed 2026-02-26 02:34:32,947 - DEBUG - ====Verifying policy data for ctest-vn4-70079648 in API_Server ====== 2026-02-26 02:34:32,947 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-02-26 02:34:32,954 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ca8c29a2-0264-4f8f-adb5-14cf22895ebe 2026-02-26 02:34:32,968 - DEBUG - Requesting: http://10.0.0.65:8082/project/c5fa1975-0d21-40c2-ba35-b1ca9941e71f 2026-02-26 02:34:33,073 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b361aaeb-90ed-4698-b7ab-36eddb261922 2026-02-26 02:34:33,087 - DEBUG - ==>Verifying data for policy with id: c9246087-a8bc-4a88-8d62-9188e1062e5f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02758230', 'ctest-policy1-78440965'] 2026-02-26 02:34:33,087 - INFO - VN ctest-vn4-70079648 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-26 02:34:33,087 - DEBUG - Verifying the vn in opserver 2026-02-26 02:34:33,087 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02758230:ctest-vn4-70079648 virtual network link through opserver 10.0.0.65 2026-02-26 02:34:33,087 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-02-26 02:34:33,444 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-02-26 02:34:33,526 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02758230:ctest-vn4-70079648', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02758230:ctest-vn4-70079648?flat'} 2026-02-26 02:34:33,526 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02758230:ctest-vn4-70079648 virtual network link through opserver 10.0.0.73 2026-02-26 02:34:33,527 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-02-26 02:34:33,865 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-02-26 02:34:33,941 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02758230:ctest-vn4-70079648', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02758230:ctest-vn4-70079648?flat'} 2026-02-26 02:34:33,941 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02758230:ctest-vn4-70079648 virtual network link through opserver 10.0.0.131 2026-02-26 02:34:33,941 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2026-02-26 02:34:34,280 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2026-02-26 02:34:34,351 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02758230:ctest-vn4-70079648', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02758230:ctest-vn4-70079648?flat'} 2026-02-26 02:34:34,352 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02758230:ctest-vn4-70079648 is found in opserver 2026-02-26 02:34:34,375 - DEBUG - Do not have enough data to verify VN in agent 2026-02-26 02:34:34,385 - DEBUG - VRF ids for VN ctest-vn4-70079648: {} 2026-02-26 02:34:34,385 - DEBUG - ====Verifying data for ctest-policy1-78440965 in API_Server ====== 2026-02-26 02:34:34,385 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-02-26 02:34:34,393 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ca8c29a2-0264-4f8f-adb5-14cf22895ebe 2026-02-26 02:34:34,407 - DEBUG - Requesting: http://10.0.0.65:8082/project/c5fa1975-0d21-40c2-ba35-b1ca9941e71f 2026-02-26 02:34:34,502 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/c9246087-a8bc-4a88-8d62-9188e1062e5f 2026-02-26 02:34:34,513 - INFO - Verified policy ctest-policy1-78440965 in API Server, Result: True 2026-02-26 02:34:34,513 - INFO - Done with setup and verification, moving onto test .. 2026-02-26 02:34:34,523 - INFO - Deleting VN ctest-vn4-70079648 2026-02-26 02:34:34,724 - DEBUG - Response for deleting network () 2026-02-26 02:34:34,725 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/f02f1abc-1d1e-45c2-b20f-f38d506a2c4f 2026-02-26 02:34:34,734 - DEBUG - Response Code: 404 2026-02-26 02:34:34,735 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-02-26 02:34:34,742 - DEBUG - Requesting: http://10.0.0.65:8082/domain/ca8c29a2-0264-4f8f-adb5-14cf22895ebe 2026-02-26 02:34:34,797 - DEBUG - Requesting: http://10.0.0.65:8082/project/c5fa1975-0d21-40c2-ba35-b1ca9941e71f 2026-02-26 02:34:34,893 - INFO - Validated that VN ctest-vn4-70079648 is not found in API Server 2026-02-26 02:34:34,904 - DEBUG - VN ctest-vn4-70079648 is not present in Agent 10.0.0.23 2026-02-26 02:34:34,916 - DEBUG - VN ctest-vn4-70079648 is not present in Agent 10.0.0.48 2026-02-26 02:34:34,916 - INFO - Validated that VN ctest-vn4-70079648 is not in any agent 2026-02-26 02:34:34,946 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70079648 info 2026-02-26 02:34:34,982 - INFO - Deleted policy ctest-policy1-78440965 2026-02-26 02:34:35,166 - DEBUG - policy ctest-policy1-78440965 is not found in API Server 2026-02-26 02:34:36,460 - DEBUG - No XMPP flaps were noticed during the test