2026-01-26 02:34:14,017 - INFO - Domain Default found not creating 2026-01-26 02:34:14,189 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-77019782 not found, creating it 2026-01-26 02:34:14,739 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-77019782, ID : 86f16835-69e3-401d-8a35-de0e68eaac36 2026-01-26 02:34:16,244 - INFO - ================================================================================ 2026-01-26 02:34:16,244 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-26 02:34:17,514 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.129': '0', '10.20.0.25': '0'}, '10.0.0.130': {'10.20.0.25': '0', '10.20.0.129': '0'}} with 2026-01-26 02:34:17,514 - INFO - Initial checks done. Running the testcase now 2026-01-26 02:34:17,515 - INFO - 2026-01-26 02:34:17,515 - INFO - ================================================================================ 2026-01-26 02:34:17,515 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-26 02:34:17,515 - 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-01-26 02:34:18,775 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.129': '0', '10.20.0.25': '0'}, '10.0.0.130': {'10.20.0.25': '0', '10.20.0.129': '0'}} with 2026-01-26 02:34:18,775 - INFO - Initial checks done. Running the testcase now 2026-01-26 02:34:18,775 - INFO - 2026-01-26 02:34:19,136 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77019782:ctest-vn4-46891880, 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-77019782:ctest-vn4-46891880, 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-77019782:ctest-vn4-46891880, 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-77019782:ctest-vn4-46891880, 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-01-26 02:34:19,775 - DEBUG - Response for create_network : {'network': {'id': '03b0b7ad-50fa-4dfc-aa3a-574ea0dbca81', 'name': 'ctest-vn4-46891880', 'tenant_id': '86f1683569e3401d8a35de0e68eaac36', 'project_id': '86f1683569e3401d8a35de0e68eaac36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77019782', 'ctest-vn4-46891880'], 'port_security_enabled': True, 'description': ''}} 2026-01-26 02:34:20,038 - DEBUG - Response for create_subnet : {'subnet': {'id': '02e469b0-7602-4702-9a26-46e88d9cb8ac', 'name': '', 'tenant_id': '86f1683569e3401d8a35de0e68eaac36', 'network_id': '03b0b7ad-50fa-4dfc-aa3a-574ea0dbca81', 'ip_version': 4, 'cidr': '166.80.132.128/26', 'allocation_pools': [{'start': '166.80.132.130', 'end': '166.80.132.190'}], 'gateway_ip': '166.80.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.80.132.130', 'tags': [], 'project_id': '86f1683569e3401d8a35de0e68eaac36'}} 2026-01-26 02:34:20,291 - DEBUG - Response for create_subnet : {'subnet': {'id': '4564accf-1556-4078-b4b1-058a03e04497', 'name': '', 'tenant_id': '86f1683569e3401d8a35de0e68eaac36', 'network_id': '03b0b7ad-50fa-4dfc-aa3a-574ea0dbca81', 'ip_version': 6, 'cidr': '3f34:b731:7c7b:2fc1:f9bf:c0e0::/96', 'allocation_pools': [{'start': '3f34:b731:7c7b:2fc1:f9bf:c0e0:0:2', 'end': '3f34:b731:7c7b:2fc1:f9bf:c0e0:ffff:fffe'}], 'gateway_ip': '3f34:b731:7c7b:2fc1:f9bf:c0e0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f34:b731:7c7b:2fc1:f9bf:c0e0:0:2', 'tags': [], 'project_id': '86f1683569e3401d8a35de0e68eaac36'}} 2026-01-26 02:34:20,321 - INFO - Created VN ctest-vn4-46891880 2026-01-26 02:34:20,332 - DEBUG - VN ctest-vn4-46891880 UUID is 03b0b7ad-50fa-4dfc-aa3a-574ea0dbca81 2026-01-26 02:34:20,585 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03b0b7ad-50fa-4dfc-aa3a-574ea0dbca81', 'name': 'ctest-vn4-46891880', 'tenant_id': '86f1683569e3401d8a35de0e68eaac36', 'project_id': '86f1683569e3401d8a35de0e68eaac36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['02e469b0-7602-4702-9a26-46e88d9cb8ac', '4564accf-1556-4078-b4b1-058a03e04497'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77019782', 'ctest-vn4-46891880'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77019782', 'ctest-policy1-07371104']], 'subnet_ipam': [{'subnet_cidr': '166.80.132.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f34:b731:7c7b:2fc1:f9bf:c0e0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-26 02:34:20,711 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-26 02:34:21,013 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-26 02:34:21,050 - DEBUG - Requesting: http://10.0.0.141:8082/domain/08a144b7-f725-46be-ae4d-cb483f66bd80 2026-01-26 02:34:21,067 - DEBUG - Requesting: http://10.0.0.141:8082/project/86f16835-69e3-401d-8a35-de0e68eaac36 2026-01-26 02:34:21,173 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/03b0b7ad-50fa-4dfc-aa3a-574ea0dbca81 2026-01-26 02:34:21,186 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/03b0b7ad-50fa-4dfc-aa3a-574ea0dbca81 2026-01-26 02:34:21,196 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/046efb13-bc3c-4b6e-9ca0-0b601b340c94 2026-01-26 02:34:21,204 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/046efb13-bc3c-4b6e-9ca0-0b601b340c94 2026-01-26 02:34:21,211 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/23503b6a-3836-4f52-9f72-c56b492f0b7b 2026-01-26 02:34:21,219 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 02:34:21,219 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/03b0b7ad-50fa-4dfc-aa3a-574ea0dbca81 2026-01-26 02:34:21,229 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/046efb13-bc3c-4b6e-9ca0-0b601b340c94 2026-01-26 02:34:21,254 - INFO - Verified VN network id 15 for VN 03b0b7ad-50fa-4dfc-aa3a-574ea0dbca81 2026-01-26 02:34:21,255 - INFO - Verifications in API Server for VN ctest-vn4-46891880 passed 2026-01-26 02:34:21,255 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/03b0b7ad-50fa-4dfc-aa3a-574ea0dbca81 2026-01-26 02:34:21,269 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/046efb13-bc3c-4b6e-9ca0-0b601b340c94 2026-01-26 02:34:21,278 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/046efb13-bc3c-4b6e-9ca0-0b601b340c94 2026-01-26 02:34:21,285 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/23503b6a-3836-4f52-9f72-c56b492f0b7b 2026-01-26 02:34:21,298 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77019782:ctest-vn4-46891880', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77019782', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '265914333030665724', 'uuid-lslong': '12266212530314791553'}, 'enable': 'true', 'created': '2026-01-26T02:34:19', 'last-modified': '2026-01-26T02:34:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.767451'} 2026-01-26 02:34:21,303 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 02:34:21,309 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77019782:ctest-vn4-46891880', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77019782', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '265914333030665724', 'uuid-lslong': '12266212530314791553'}, 'enable': 'true', 'created': '2026-01-26T02:34:19', 'last-modified': '2026-01-26T02:34:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.778198'} 2026-01-26 02:34:21,314 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 02:34:21,319 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77019782:ctest-vn4-46891880', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77019782', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '265914333030665724', 'uuid-lslong': '12266212530314791553'}, 'enable': 'true', 'created': '2026-01-26T02:34:19', 'last-modified': '2026-01-26T02:34:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.785664'} 2026-01-26 02:34:21,324 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 02:34:21,325 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-46891880 passed 2026-01-26 02:34:21,325 - DEBUG - ====Verifying policy data for ctest-vn4-46891880 in API_Server ====== 2026-01-26 02:34:21,325 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-26 02:34:21,331 - DEBUG - Requesting: http://10.0.0.141:8082/domain/08a144b7-f725-46be-ae4d-cb483f66bd80 2026-01-26 02:34:21,343 - DEBUG - Requesting: http://10.0.0.141:8082/project/86f16835-69e3-401d-8a35-de0e68eaac36 2026-01-26 02:34:21,457 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/03b0b7ad-50fa-4dfc-aa3a-574ea0dbca81 2026-01-26 02:34:21,467 - DEBUG - ==>Verifying data for policy with id: c273e83a-0d54-4723-b58f-84d4e2ae1417, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77019782', 'ctest-policy1-07371104'] 2026-01-26 02:34:21,467 - INFO - VN ctest-vn4-46891880 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-26 02:34:21,467 - DEBUG - Verifying the vn in opserver 2026-01-26 02:34:21,467 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77019782:ctest-vn4-46891880 virtual network link through opserver 10.0.0.141 2026-01-26 02:34:21,468 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-26 02:34:21,781 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-26 02:34:21,855 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77019782:ctest-vn4-46891880', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77019782:ctest-vn4-46891880?flat'} 2026-01-26 02:34:21,855 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77019782:ctest-vn4-46891880 virtual network link through opserver 10.0.0.38 2026-01-26 02:34:21,856 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-26 02:34:22,162 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-26 02:34:22,226 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77019782:ctest-vn4-46891880', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77019782:ctest-vn4-46891880?flat'} 2026-01-26 02:34:22,226 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77019782:ctest-vn4-46891880 virtual network link through opserver 10.0.0.240 2026-01-26 02:34:22,226 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-01-26 02:34:22,529 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-01-26 02:34:22,592 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77019782:ctest-vn4-46891880', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77019782:ctest-vn4-46891880?flat'} 2026-01-26 02:34:22,592 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77019782:ctest-vn4-46891880 is found in opserver 2026-01-26 02:34:22,614 - DEBUG - Do not have enough data to verify VN in agent 2026-01-26 02:34:22,624 - DEBUG - VRF ids for VN ctest-vn4-46891880: {} 2026-01-26 02:34:22,624 - DEBUG - ====Verifying data for ctest-policy1-07371104 in API_Server ====== 2026-01-26 02:34:22,624 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-26 02:34:22,630 - DEBUG - Requesting: http://10.0.0.141:8082/domain/08a144b7-f725-46be-ae4d-cb483f66bd80 2026-01-26 02:34:22,645 - DEBUG - Requesting: http://10.0.0.141:8082/project/86f16835-69e3-401d-8a35-de0e68eaac36 2026-01-26 02:34:22,739 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/c273e83a-0d54-4723-b58f-84d4e2ae1417 2026-01-26 02:34:22,750 - INFO - Verified policy ctest-policy1-07371104 in API Server, Result: True 2026-01-26 02:34:22,750 - INFO - Done with setup and verification, moving onto test .. 2026-01-26 02:34:22,761 - INFO - Deleting VN ctest-vn4-46891880 2026-01-26 02:34:22,976 - DEBUG - Response for deleting network () 2026-01-26 02:34:22,976 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/046efb13-bc3c-4b6e-9ca0-0b601b340c94 2026-01-26 02:34:22,981 - DEBUG - Response Code: 404 2026-01-26 02:34:22,982 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-26 02:34:23,001 - DEBUG - Requesting: http://10.0.0.141:8082/domain/08a144b7-f725-46be-ae4d-cb483f66bd80 2026-01-26 02:34:23,057 - DEBUG - Requesting: http://10.0.0.141:8082/project/86f16835-69e3-401d-8a35-de0e68eaac36 2026-01-26 02:34:23,150 - INFO - Validated that VN ctest-vn4-46891880 is not found in API Server 2026-01-26 02:34:23,161 - DEBUG - VN ctest-vn4-46891880 is not present in Agent 10.0.0.65 2026-01-26 02:34:23,171 - DEBUG - VN ctest-vn4-46891880 is not present in Agent 10.0.0.130 2026-01-26 02:34:23,171 - INFO - Validated that VN ctest-vn4-46891880 is not in any agent 2026-01-26 02:34:23,206 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-46891880 info 2026-01-26 02:34:23,243 - INFO - Deleted policy ctest-policy1-07371104 2026-01-26 02:34:23,440 - DEBUG - policy ctest-policy1-07371104 is not found in API Server 2026-01-26 02:34:24,707 - DEBUG - No XMPP flaps were noticed during the test 2026-01-26 02:34:24,707 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-01-26 02:34:24,707 - INFO - -------------------------------------------------------------------------------- 2026-01-26 02:34:25,983 - DEBUG - No XMPP flaps were noticed during the test 2026-01-26 02:34:25,983 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09] 2026-01-26 02:34:25,983 - INFO - -------------------------------------------------------------------------------- 2026-01-26 02:34:26,722 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-77019782, ID : 86f16835-69e3-401d-8a35-de0e68eaac36