2026-05-04 02:52:25,083 - INFO - Domain Default found not creating 2026-05-04 02:52:25,263 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-17321271 not found, creating it 2026-05-04 02:52:25,931 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-17321271, ID : b42b48fc-3d16-46c5-8030-9fc7a30a6b69 2026-05-04 02:52:27,529 - INFO - ================================================================================ 2026-05-04 02:52:27,529 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-04 02:52:28,808 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.193': '0', '10.20.0.129': '0'}, '10.0.0.141': {'10.20.0.18': '0', '10.20.0.193': '0'}} with 2026-05-04 02:52:28,808 - INFO - Initial checks done. Running the testcase now 2026-05-04 02:52:28,808 - INFO - 2026-05-04 02:52:28,809 - INFO - ================================================================================ 2026-05-04 02:52:28,809 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-04 02:52:28,809 - 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-05-04 02:52:30,105 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.193': '0', '10.20.0.129': '0'}, '10.0.0.141': {'10.20.0.18': '0', '10.20.0.193': '0'}} with 2026-05-04 02:52:30,105 - INFO - Initial checks done. Running the testcase now 2026-05-04 02:52:30,105 - INFO - 2026-05-04 02:52:30,488 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17321271:ctest-vn4-26984215, 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-17321271:ctest-vn4-26984215, 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-17321271:ctest-vn4-26984215, 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-17321271:ctest-vn4-26984215, 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-05-04 02:52:31,149 - DEBUG - Response for create_network : {'network': {'id': '6113936a-eff4-4a8b-9ff4-31199a26aa7e', 'name': 'ctest-vn4-26984215', 'tenant_id': 'b42b48fc3d1646c580309fc7a30a6b69', 'project_id': 'b42b48fc3d1646c580309fc7a30a6b69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17321271', 'ctest-vn4-26984215'], 'port_security_enabled': True, 'description': ''}} 2026-05-04 02:52:31,447 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b753a143-cc13-4033-9e5f-de8726069ce7', 'name': '', 'tenant_id': 'b42b48fc3d1646c580309fc7a30a6b69', 'network_id': '6113936a-eff4-4a8b-9ff4-31199a26aa7e', 'ip_version': 4, 'cidr': '162.225.97.192/26', 'allocation_pools': [{'start': '162.225.97.194', 'end': '162.225.97.254'}], 'gateway_ip': '162.225.97.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.225.97.194', 'tags': [], 'project_id': 'b42b48fc3d1646c580309fc7a30a6b69'}} 2026-05-04 02:52:31,694 - DEBUG - Response for create_subnet : {'subnet': {'id': '2cac97b9-88aa-49f9-b936-b85798b2da17', 'name': '', 'tenant_id': 'b42b48fc3d1646c580309fc7a30a6b69', 'network_id': '6113936a-eff4-4a8b-9ff4-31199a26aa7e', 'ip_version': 6, 'cidr': '2566:185d:2d48:67b1:7773:6c00::/96', 'allocation_pools': [{'start': '2566:185d:2d48:67b1:7773:6c00:0:2', 'end': '2566:185d:2d48:67b1:7773:6c00:ffff:fffe'}], 'gateway_ip': '2566:185d:2d48:67b1:7773:6c00:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2566:185d:2d48:67b1:7773:6c00:0:2', 'tags': [], 'project_id': 'b42b48fc3d1646c580309fc7a30a6b69'}} 2026-05-04 02:52:31,723 - INFO - Created VN ctest-vn4-26984215 2026-05-04 02:52:31,736 - DEBUG - VN ctest-vn4-26984215 UUID is 6113936a-eff4-4a8b-9ff4-31199a26aa7e 2026-05-04 02:52:31,964 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6113936a-eff4-4a8b-9ff4-31199a26aa7e', 'name': 'ctest-vn4-26984215', 'tenant_id': 'b42b48fc3d1646c580309fc7a30a6b69', 'project_id': 'b42b48fc3d1646c580309fc7a30a6b69', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b753a143-cc13-4033-9e5f-de8726069ce7', '2cac97b9-88aa-49f9-b936-b85798b2da17'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17321271', 'ctest-vn4-26984215'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17321271', 'ctest-policy1-17182101']], 'subnet_ipam': [{'subnet_cidr': '162.225.97.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2566:185d:2d48:67b1:7773:6c00::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-04 02:52:32,062 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-05-04 02:52:32,372 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-05-04 02:52:32,407 - DEBUG - Requesting: http://10.0.0.129:8082/domain/de444c91-1c2e-4590-9dad-cf698cd9c62c 2026-05-04 02:52:32,426 - DEBUG - Requesting: http://10.0.0.129:8082/project/b42b48fc-3d16-46c5-8030-9fc7a30a6b69 2026-05-04 02:52:32,521 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6113936a-eff4-4a8b-9ff4-31199a26aa7e 2026-05-04 02:52:32,540 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6113936a-eff4-4a8b-9ff4-31199a26aa7e 2026-05-04 02:52:32,552 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/065fb794-5f2f-413f-a183-3aa6526331eb 2026-05-04 02:52:32,564 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/065fb794-5f2f-413f-a183-3aa6526331eb 2026-05-04 02:52:32,573 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/76f04659-0338-4862-9d79-6bd51b8efa23 2026-05-04 02:52:32,580 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-04 02:52:32,580 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6113936a-eff4-4a8b-9ff4-31199a26aa7e 2026-05-04 02:52:32,592 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/065fb794-5f2f-413f-a183-3aa6526331eb 2026-05-04 02:52:32,609 - INFO - Verified VN network id 12 for VN 6113936a-eff4-4a8b-9ff4-31199a26aa7e 2026-05-04 02:52:32,609 - INFO - Verifications in API Server for VN ctest-vn4-26984215 passed 2026-05-04 02:52:32,609 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6113936a-eff4-4a8b-9ff4-31199a26aa7e 2026-05-04 02:52:32,621 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/065fb794-5f2f-413f-a183-3aa6526331eb 2026-05-04 02:52:32,630 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/065fb794-5f2f-413f-a183-3aa6526331eb 2026-05-04 02:52:32,640 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/76f04659-0338-4862-9d79-6bd51b8efa23 2026-05-04 02:52:32,653 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17321271:ctest-vn4-26984215', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17321271', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6995096733738093195', 'uuid-lslong': '11525891332378110590'}, 'enable': 'true', 'created': '2026-05-04T02:52:31', 'last-modified': '2026-05-04T02:52:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.728098'} 2026-05-04 02:52:32,659 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-04 02:52:32,664 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17321271:ctest-vn4-26984215', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17321271', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6995096733738093195', 'uuid-lslong': '11525891332378110590'}, 'enable': 'true', 'created': '2026-05-04T02:52:31', 'last-modified': '2026-05-04T02:52:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.744781'} 2026-05-04 02:52:32,670 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-04 02:52:32,676 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17321271:ctest-vn4-26984215', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17321271', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6995096733738093195', 'uuid-lslong': '11525891332378110590'}, 'enable': 'true', 'created': '2026-05-04T02:52:31', 'last-modified': '2026-05-04T02:52:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.757931'} 2026-05-04 02:52:32,684 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-04 02:52:32,684 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26984215 passed 2026-05-04 02:52:32,685 - DEBUG - ====Verifying policy data for ctest-vn4-26984215 in API_Server ====== 2026-05-04 02:52:32,685 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-05-04 02:52:32,692 - DEBUG - Requesting: http://10.0.0.129:8082/domain/de444c91-1c2e-4590-9dad-cf698cd9c62c 2026-05-04 02:52:32,705 - DEBUG - Requesting: http://10.0.0.129:8082/project/b42b48fc-3d16-46c5-8030-9fc7a30a6b69 2026-05-04 02:52:32,801 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6113936a-eff4-4a8b-9ff4-31199a26aa7e 2026-05-04 02:52:32,813 - DEBUG - ==>Verifying data for policy with id: 4cf511a8-ed4a-4a34-ab27-eb3bf5f2f716, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17321271', 'ctest-policy1-17182101'] 2026-05-04 02:52:32,813 - INFO - VN ctest-vn4-26984215 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-04 02:52:32,813 - DEBUG - Verifying the vn in opserver 2026-05-04 02:52:32,813 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17321271:ctest-vn4-26984215 virtual network link through opserver 10.0.0.129 2026-05-04 02:52:32,813 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-05-04 02:52:33,117 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-05-04 02:52:33,200 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17321271:ctest-vn4-26984215', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17321271:ctest-vn4-26984215?flat'} 2026-05-04 02:52:33,200 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17321271:ctest-vn4-26984215 virtual network link through opserver 10.0.0.50 2026-05-04 02:52:33,201 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-04 02:52:33,606 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-04 02:52:33,713 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17321271:ctest-vn4-26984215', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17321271:ctest-vn4-26984215?flat'} 2026-05-04 02:52:33,713 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17321271:ctest-vn4-26984215 virtual network link through opserver 10.0.0.249 2026-05-04 02:52:33,713 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-05-04 02:52:34,031 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-05-04 02:52:34,102 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17321271:ctest-vn4-26984215', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17321271:ctest-vn4-26984215?flat'} 2026-05-04 02:52:34,102 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17321271:ctest-vn4-26984215 is found in opserver 2026-05-04 02:52:34,124 - DEBUG - Do not have enough data to verify VN in agent 2026-05-04 02:52:34,135 - DEBUG - VRF ids for VN ctest-vn4-26984215: {} 2026-05-04 02:52:34,135 - DEBUG - ====Verifying data for ctest-policy1-17182101 in API_Server ====== 2026-05-04 02:52:34,135 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-05-04 02:52:34,144 - DEBUG - Requesting: http://10.0.0.129:8082/domain/de444c91-1c2e-4590-9dad-cf698cd9c62c 2026-05-04 02:52:34,159 - DEBUG - Requesting: http://10.0.0.129:8082/project/b42b48fc-3d16-46c5-8030-9fc7a30a6b69 2026-05-04 02:52:34,267 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/4cf511a8-ed4a-4a34-ab27-eb3bf5f2f716 2026-05-04 02:52:34,277 - INFO - Verified policy ctest-policy1-17182101 in API Server, Result: True 2026-05-04 02:52:34,277 - INFO - Done with setup and verification, moving onto test .. 2026-05-04 02:52:34,290 - INFO - Deleting VN ctest-vn4-26984215 2026-05-04 02:52:34,536 - DEBUG - Response for deleting network () 2026-05-04 02:52:34,536 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/065fb794-5f2f-413f-a183-3aa6526331eb 2026-05-04 02:52:34,555 - DEBUG - Response Code: 404 2026-05-04 02:52:34,555 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-05-04 02:52:34,567 - DEBUG - Requesting: http://10.0.0.129:8082/domain/de444c91-1c2e-4590-9dad-cf698cd9c62c 2026-05-04 02:52:34,583 - DEBUG - Requesting: http://10.0.0.129:8082/project/b42b48fc-3d16-46c5-8030-9fc7a30a6b69 2026-05-04 02:52:34,681 - INFO - Validated that VN ctest-vn4-26984215 is not found in API Server 2026-05-04 02:52:34,692 - DEBUG - VN ctest-vn4-26984215 is not present in Agent 10.0.0.41 2026-05-04 02:52:34,703 - DEBUG - VN ctest-vn4-26984215 is not present in Agent 10.0.0.141 2026-05-04 02:52:34,703 - INFO - Validated that VN ctest-vn4-26984215 is not in any agent 2026-05-04 02:52:34,738 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26984215 info 2026-05-04 02:52:34,783 - INFO - Deleted policy ctest-policy1-17182101 2026-05-04 02:52:34,994 - DEBUG - policy ctest-policy1-17182101 is not found in API Server 2026-05-04 02:52:36,299 - DEBUG - No XMPP flaps were noticed during the test 2026-05-04 02:52:36,299 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2026-05-04 02:52:36,299 - INFO - -------------------------------------------------------------------------------- 2026-05-04 02:52:37,584 - DEBUG - No XMPP flaps were noticed during the test 2026-05-04 02:52:37,585 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-05-04 02:52:37,585 - INFO - -------------------------------------------------------------------------------- 2026-05-04 02:52:38,381 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-17321271, ID : b42b48fc-3d16-46c5-8030-9fc7a30a6b69