2026-11-09 02:58:04,848 - INFO - Domain Default found not creating 2026-11-09 02:58:05,029 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35368505 not found, creating it 2026-11-09 02:58:05,658 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35368505, ID : 8e7f4845-1748-46a9-ba89-d8670e8ad59a 2026-11-09 02:58:07,467 - INFO - ================================================================================ 2026-11-09 02:58:07,468 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-09 02:58:08,784 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.38': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2026-11-09 02:58:08,784 - INFO - Initial checks done. Running the testcase now 2026-11-09 02:58:08,784 - INFO - 2026-11-09 02:58:08,784 - INFO - ================================================================================ 2026-11-09 02:58:08,784 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-09 02:58:08,784 - 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-11-09 02:58:10,105 - DEBUG - Nothing to compare xmpp stats {'10.0.0.250': {'10.20.0.25': '0', '10.20.0.17': '0'}, '10.0.0.38': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2026-11-09 02:58:10,105 - INFO - Initial checks done. Running the testcase now 2026-11-09 02:58:10,105 - INFO - 2026-11-09 02:58:10,551 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35368505:ctest-vn4-92850104, 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-35368505:ctest-vn4-92850104, 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-35368505:ctest-vn4-92850104, 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-35368505:ctest-vn4-92850104, 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-11-09 02:58:11,212 - DEBUG - Response for create_network : {'network': {'id': '8fe88138-93ef-43e2-95ff-56472b5b3c2e', 'name': 'ctest-vn4-92850104', 'tenant_id': '8e7f4845174846a9ba89d8670e8ad59a', 'project_id': '8e7f4845174846a9ba89d8670e8ad59a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35368505', 'ctest-vn4-92850104'], 'port_security_enabled': True, 'description': ''}} 2026-11-09 02:58:11,536 - DEBUG - Response for create_subnet : {'subnet': {'id': '6214520b-22c8-449a-8c23-3564430ba39a', 'name': '', 'tenant_id': '8e7f4845174846a9ba89d8670e8ad59a', 'network_id': '8fe88138-93ef-43e2-95ff-56472b5b3c2e', 'ip_version': 4, 'cidr': '202.123.88.128/26', 'allocation_pools': [{'start': '202.123.88.130', 'end': '202.123.88.190'}], 'gateway_ip': '202.123.88.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.123.88.130', 'tags': [], 'project_id': '8e7f4845174846a9ba89d8670e8ad59a'}} 2026-11-09 02:58:11,787 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb85d3a3-85e8-491d-a4b5-140565b8b267', 'name': '', 'tenant_id': '8e7f4845174846a9ba89d8670e8ad59a', 'network_id': '8fe88138-93ef-43e2-95ff-56472b5b3c2e', 'ip_version': 6, 'cidr': '292c:e24b:d738:13c7:aa70:ecf8::/96', 'allocation_pools': [{'start': '292c:e24b:d738:13c7:aa70:ecf8:0:2', 'end': '292c:e24b:d738:13c7:aa70:ecf8:ffff:fffe'}], 'gateway_ip': '292c:e24b:d738:13c7:aa70:ecf8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '292c:e24b:d738:13c7:aa70:ecf8:0:2', 'tags': [], 'project_id': '8e7f4845174846a9ba89d8670e8ad59a'}} 2026-11-09 02:58:11,826 - INFO - Created VN ctest-vn4-92850104 2026-11-09 02:58:11,838 - DEBUG - VN ctest-vn4-92850104 UUID is 8fe88138-93ef-43e2-95ff-56472b5b3c2e 2026-11-09 02:58:12,102 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8fe88138-93ef-43e2-95ff-56472b5b3c2e', 'name': 'ctest-vn4-92850104', 'tenant_id': '8e7f4845174846a9ba89d8670e8ad59a', 'project_id': '8e7f4845174846a9ba89d8670e8ad59a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['6214520b-22c8-449a-8c23-3564430ba39a', 'eb85d3a3-85e8-491d-a4b5-140565b8b267'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35368505', 'ctest-vn4-92850104'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35368505', 'ctest-policy1-87827802']], 'subnet_ipam': [{'subnet_cidr': '202.123.88.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '292c:e24b:d738:13c7:aa70:ecf8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-09 02:58:12,233 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-11-09 02:58:12,603 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-11-09 02:58:12,647 - DEBUG - Requesting: http://10.0.0.248:8082/domain/48397716-fb81-4046-93f4-8bda606db062 2026-11-09 02:58:12,665 - DEBUG - Requesting: http://10.0.0.248:8082/project/8e7f4845-1748-46a9-ba89-d8670e8ad59a 2026-11-09 02:58:12,769 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/8fe88138-93ef-43e2-95ff-56472b5b3c2e 2026-11-09 02:58:12,784 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/8fe88138-93ef-43e2-95ff-56472b5b3c2e 2026-11-09 02:58:12,796 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/95fefb27-7cf7-4205-b0d6-d7a478c0fcaa 2026-11-09 02:58:12,804 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/95fefb27-7cf7-4205-b0d6-d7a478c0fcaa 2026-11-09 02:58:12,811 - DEBUG - Requesting: http://10.0.0.248:8082/route-target/15e8368e-c593-430b-9391-f9bf058c179c 2026-11-09 02:58:12,821 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-09 02:58:12,821 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/8fe88138-93ef-43e2-95ff-56472b5b3c2e 2026-11-09 02:58:12,835 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/95fefb27-7cf7-4205-b0d6-d7a478c0fcaa 2026-11-09 02:58:12,853 - INFO - Verified VN network id 14 for VN 8fe88138-93ef-43e2-95ff-56472b5b3c2e 2026-11-09 02:58:12,853 - INFO - Verifications in API Server for VN ctest-vn4-92850104 passed 2026-11-09 02:58:12,853 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/8fe88138-93ef-43e2-95ff-56472b5b3c2e 2026-11-09 02:58:12,864 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/95fefb27-7cf7-4205-b0d6-d7a478c0fcaa 2026-11-09 02:58:12,871 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/95fefb27-7cf7-4205-b0d6-d7a478c0fcaa 2026-11-09 02:58:12,879 - DEBUG - Requesting: http://10.0.0.248:8082/route-target/15e8368e-c593-430b-9391-f9bf058c179c 2026-11-09 02:58:12,894 - DEBUG - Control-node 10.0.0.248 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35368505:ctest-vn4-92850104', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35368505', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10369680222020649954', 'uuid-lslong': '10808452494382545966'}, 'enable': 'true', 'created': '2026-11-09T02:58:11', 'last-modified': '2026-11-09T02:58:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.856491'} 2026-11-09 02:58:12,900 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-09 02:58:12,906 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35368505:ctest-vn4-92850104', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35368505', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10369680222020649954', 'uuid-lslong': '10808452494382545966'}, 'enable': 'true', 'created': '2026-11-09T02:58:11', 'last-modified': '2026-11-09T02:58:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.871499'} 2026-11-09 02:58:12,912 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-09 02:58:12,917 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35368505:ctest-vn4-92850104', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35368505', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10369680222020649954', 'uuid-lslong': '10808452494382545966'}, 'enable': 'true', 'created': '2026-11-09T02:58:11', 'last-modified': '2026-11-09T02:58:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.876072'} 2026-11-09 02:58:12,925 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-09 02:58:12,925 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-92850104 passed 2026-11-09 02:58:12,925 - DEBUG - ====Verifying policy data for ctest-vn4-92850104 in API_Server ====== 2026-11-09 02:58:12,925 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-11-09 02:58:12,932 - DEBUG - Requesting: http://10.0.0.248:8082/domain/48397716-fb81-4046-93f4-8bda606db062 2026-11-09 02:58:12,951 - DEBUG - Requesting: http://10.0.0.248:8082/project/8e7f4845-1748-46a9-ba89-d8670e8ad59a 2026-11-09 02:58:13,041 - DEBUG - Requesting: http://10.0.0.248:8082/virtual-network/8fe88138-93ef-43e2-95ff-56472b5b3c2e 2026-11-09 02:58:13,061 - DEBUG - ==>Verifying data for policy with id: d4f909ee-aa44-4e36-b148-773f4643d508, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35368505', 'ctest-policy1-87827802'] 2026-11-09 02:58:13,061 - INFO - VN ctest-vn4-92850104 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-09 02:58:13,061 - DEBUG - Verifying the vn in opserver 2026-11-09 02:58:13,061 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35368505:ctest-vn4-92850104 virtual network link through opserver 10.0.0.248 2026-11-09 02:58:13,061 - DEBUG - Requesting: http://10.0.0.248:8081/analytics/uves/virtual-networks 2026-11-09 02:58:13,437 - DEBUG - Requesting: http://10.0.0.248:8081/analytics/uves/virtual-networks 2026-11-09 02:58:13,495 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35368505:ctest-vn4-92850104', 'href': 'http://10.0.0.248:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35368505:ctest-vn4-92850104?flat'} 2026-11-09 02:58:13,495 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35368505:ctest-vn4-92850104 virtual network link through opserver 10.0.0.249 2026-11-09 02:58:13,495 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-11-09 02:58:13,860 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-11-09 02:58:13,916 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35368505:ctest-vn4-92850104', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35368505:ctest-vn4-92850104?flat'} 2026-11-09 02:58:13,916 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35368505:ctest-vn4-92850104 virtual network link through opserver 10.0.0.33 2026-11-09 02:58:13,917 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-11-09 02:58:14,281 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-11-09 02:58:14,341 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35368505:ctest-vn4-92850104', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35368505:ctest-vn4-92850104?flat'} 2026-11-09 02:58:14,341 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35368505:ctest-vn4-92850104 is found in opserver 2026-11-09 02:58:14,368 - DEBUG - Do not have enough data to verify VN in agent 2026-11-09 02:58:14,377 - DEBUG - VRF ids for VN ctest-vn4-92850104: {} 2026-11-09 02:58:14,378 - DEBUG - ====Verifying data for ctest-policy1-87827802 in API_Server ====== 2026-11-09 02:58:14,378 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-11-09 02:58:14,384 - DEBUG - Requesting: http://10.0.0.248:8082/domain/48397716-fb81-4046-93f4-8bda606db062 2026-11-09 02:58:14,395 - DEBUG - Requesting: http://10.0.0.248:8082/project/8e7f4845-1748-46a9-ba89-d8670e8ad59a 2026-11-09 02:58:14,482 - DEBUG - Requesting: http://10.0.0.248:8082/network-policy/d4f909ee-aa44-4e36-b148-773f4643d508 2026-11-09 02:58:14,493 - INFO - Verified policy ctest-policy1-87827802 in API Server, Result: True 2026-11-09 02:58:14,493 - INFO - Done with setup and verification, moving onto test .. 2026-11-09 02:58:14,505 - INFO - Deleting VN ctest-vn4-92850104 2026-11-09 02:58:14,715 - DEBUG - Response for deleting network () 2026-11-09 02:58:14,715 - DEBUG - Requesting: http://10.0.0.248:8082/routing-instance/95fefb27-7cf7-4205-b0d6-d7a478c0fcaa 2026-11-09 02:58:14,727 - DEBUG - Response Code: 404 2026-11-09 02:58:14,727 - DEBUG - Requesting: http://10.0.0.248:8082/domains 2026-11-09 02:58:14,734 - DEBUG - Requesting: http://10.0.0.248:8082/domain/48397716-fb81-4046-93f4-8bda606db062 2026-11-09 02:58:14,787 - DEBUG - Requesting: http://10.0.0.248:8082/project/8e7f4845-1748-46a9-ba89-d8670e8ad59a 2026-11-09 02:58:14,881 - INFO - Validated that VN ctest-vn4-92850104 is not found in API Server 2026-11-09 02:58:14,893 - DEBUG - VN ctest-vn4-92850104 is not present in Agent 10.0.0.250 2026-11-09 02:58:14,905 - DEBUG - VN ctest-vn4-92850104 is not present in Agent 10.0.0.38 2026-11-09 02:58:14,905 - INFO - Validated that VN ctest-vn4-92850104 is not in any agent 2026-11-09 02:58:14,943 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-92850104 info 2026-11-09 02:58:14,982 - INFO - Deleted policy ctest-policy1-87827802 2026-11-09 02:58:15,181 - DEBUG - policy ctest-policy1-87827802 is not found in API Server 2026-11-09 02:58:16,478 - DEBUG - No XMPP flaps were noticed during the test 2026-11-09 02:58:16,478 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2026-11-09 02:58:16,478 - INFO - -------------------------------------------------------------------------------- 2026-11-09 02:58:17,804 - DEBUG - No XMPP flaps were noticed during the test 2026-11-09 02:58:17,804 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-11-09 02:58:17,804 - INFO - -------------------------------------------------------------------------------- 2026-11-09 02:58:18,665 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-35368505, ID : 8e7f4845-1748-46a9-ba89-d8670e8ad59a