2026-01-28 13:17:31,506 - INFO - Domain Default found not creating 2026-01-28 13:17:31,668 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25512484 not found, creating it 2026-01-28 13:17:32,195 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25512484, ID : 03bf6177-8566-4aaf-8fdf-60a9b9a90378 2026-01-28 13:17:33,666 - INFO - ================================================================================ 2026-01-28 13:17:33,666 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 13:17:33,925 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2026-01-28 13:17:33,925 - INFO - Initial checks done. Running the testcase now 2026-01-28 13:17:33,926 - INFO - 2026-01-28 13:17:33,926 - INFO - ================================================================================ 2026-01-28 13:17:33,926 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 13:17:33,926 - 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-28 13:17:34,220 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2026-01-28 13:17:34,220 - INFO - Initial checks done. Running the testcase now 2026-01-28 13:17:34,220 - INFO - 2026-01-28 13:17:34,573 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25512484:ctest-vn4-85676834, 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-25512484:ctest-vn4-85676834, 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-25512484:ctest-vn4-85676834, 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-25512484:ctest-vn4-85676834, 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-28 13:17:35,100 - DEBUG - Response for create_network : {'network': {'id': '16a1a647-5ca2-4a11-9a23-885e5f872ec5', 'name': 'ctest-vn4-85676834', 'tenant_id': '03bf617785664aaf8fdf60a9b9a90378', 'project_id': '03bf617785664aaf8fdf60a9b9a90378', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25512484', 'ctest-vn4-85676834'], 'port_security_enabled': True, 'description': ''}} 2026-01-28 13:17:35,323 - DEBUG - Response for create_subnet : {'subnet': {'id': '23d89602-4a9d-41ca-bb39-1104d7fd86e1', 'name': '', 'tenant_id': '03bf617785664aaf8fdf60a9b9a90378', 'network_id': '16a1a647-5ca2-4a11-9a23-885e5f872ec5', 'ip_version': 4, 'cidr': '166.43.118.0/26', 'allocation_pools': [{'start': '166.43.118.2', 'end': '166.43.118.62'}], 'gateway_ip': '166.43.118.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.43.118.2', 'tags': [], 'project_id': '03bf617785664aaf8fdf60a9b9a90378'}} 2026-01-28 13:17:35,531 - DEBUG - Response for create_subnet : {'subnet': {'id': '05076dbd-d317-4515-8a07-bc25363339f4', 'name': '', 'tenant_id': '03bf617785664aaf8fdf60a9b9a90378', 'network_id': '16a1a647-5ca2-4a11-9a23-885e5f872ec5', 'ip_version': 6, 'cidr': '21f1:b2d9:19c5:27a5:9907:4833::/96', 'allocation_pools': [{'start': '21f1:b2d9:19c5:27a5:9907:4833:0:2', 'end': '21f1:b2d9:19c5:27a5:9907:4833:ffff:fffe'}], 'gateway_ip': '21f1:b2d9:19c5:27a5:9907:4833:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21f1:b2d9:19c5:27a5:9907:4833:0:2', 'tags': [], 'project_id': '03bf617785664aaf8fdf60a9b9a90378'}} 2026-01-28 13:17:35,552 - INFO - Created VN ctest-vn4-85676834 2026-01-28 13:17:35,603 - DEBUG - VN ctest-vn4-85676834 UUID is 16a1a647-5ca2-4a11-9a23-885e5f872ec5 2026-01-28 13:17:35,812 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16a1a647-5ca2-4a11-9a23-885e5f872ec5', 'name': 'ctest-vn4-85676834', 'tenant_id': '03bf617785664aaf8fdf60a9b9a90378', 'project_id': '03bf617785664aaf8fdf60a9b9a90378', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23d89602-4a9d-41ca-bb39-1104d7fd86e1', '05076dbd-d317-4515-8a07-bc25363339f4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25512484', 'ctest-vn4-85676834'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25512484', 'ctest-policy1-41174139']], 'subnet_ipam': [{'subnet_cidr': '166.43.118.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21f1:b2d9:19c5:27a5:9907:4833::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-28 13:17:35,979 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-28 13:17:36,274 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-28 13:17:36,305 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ceebe4b1-2a25-4dca-b8c2-5f1d2f42b9e6 2026-01-28 13:17:36,317 - DEBUG - Requesting: http://10.0.0.141:8082/project/03bf6177-8566-4aaf-8fdf-60a9b9a90378 2026-01-28 13:17:36,392 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/16a1a647-5ca2-4a11-9a23-885e5f872ec5 2026-01-28 13:17:36,404 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/16a1a647-5ca2-4a11-9a23-885e5f872ec5 2026-01-28 13:17:36,414 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/8017abd2-f5f0-4950-b67e-e27466d5d30e 2026-01-28 13:17:36,422 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/8017abd2-f5f0-4950-b67e-e27466d5d30e 2026-01-28 13:17:36,429 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/363681cc-1554-44d0-8354-c2f43be552d9 2026-01-28 13:17:36,435 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 13:17:36,435 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/16a1a647-5ca2-4a11-9a23-885e5f872ec5 2026-01-28 13:17:36,444 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/8017abd2-f5f0-4950-b67e-e27466d5d30e 2026-01-28 13:17:36,457 - INFO - Verified VN network id 11 for VN 16a1a647-5ca2-4a11-9a23-885e5f872ec5 2026-01-28 13:17:36,458 - INFO - Verifications in API Server for VN ctest-vn4-85676834 passed 2026-01-28 13:17:36,458 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/16a1a647-5ca2-4a11-9a23-885e5f872ec5 2026-01-28 13:17:36,466 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/8017abd2-f5f0-4950-b67e-e27466d5d30e 2026-01-28 13:17:36,472 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/8017abd2-f5f0-4950-b67e-e27466d5d30e 2026-01-28 13:17:36,478 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/363681cc-1554-44d0-8354-c2f43be552d9 2026-01-28 13:17:36,490 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25512484:ctest-vn4-85676834', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25512484', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1630767365511858705', 'uuid-lslong': '11106871044936773317'}, 'enable': 'true', 'created': '2026-01-28T13:17:35', 'last-modified': '2026-01-28T13:17:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.698849'} 2026-01-28 13:17:36,495 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 13:17:36,495 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-85676834 passed 2026-01-28 13:17:36,495 - DEBUG - ====Verifying policy data for ctest-vn4-85676834 in API_Server ====== 2026-01-28 13:17:36,495 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-28 13:17:36,501 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ceebe4b1-2a25-4dca-b8c2-5f1d2f42b9e6 2026-01-28 13:17:36,513 - DEBUG - Requesting: http://10.0.0.141:8082/project/03bf6177-8566-4aaf-8fdf-60a9b9a90378 2026-01-28 13:17:36,589 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/16a1a647-5ca2-4a11-9a23-885e5f872ec5 2026-01-28 13:17:36,601 - DEBUG - ==>Verifying data for policy with id: c0ae0486-850a-4223-a61f-a237a74ae96e, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25512484', 'ctest-policy1-41174139'] 2026-01-28 13:17:36,601 - INFO - VN ctest-vn4-85676834 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-28 13:17:36,601 - DEBUG - Verifying the vn in opserver 2026-01-28 13:17:36,601 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25512484:ctest-vn4-85676834 virtual network link through opserver 10.0.0.141 2026-01-28 13:17:36,601 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-28 13:17:36,895 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-01-28 13:17:36,960 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25512484:ctest-vn4-85676834', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25512484:ctest-vn4-85676834?flat'} 2026-01-28 13:17:36,960 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25512484:ctest-vn4-85676834 is found in opserver 2026-01-28 13:17:36,970 - DEBUG - Do not have enough data to verify VN in agent 2026-01-28 13:17:36,974 - DEBUG - VRF ids for VN ctest-vn4-85676834: {} 2026-01-28 13:17:36,975 - DEBUG - ====Verifying data for ctest-policy1-41174139 in API_Server ====== 2026-01-28 13:17:36,975 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-28 13:17:36,981 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ceebe4b1-2a25-4dca-b8c2-5f1d2f42b9e6 2026-01-28 13:17:36,991 - DEBUG - Requesting: http://10.0.0.141:8082/project/03bf6177-8566-4aaf-8fdf-60a9b9a90378 2026-01-28 13:17:37,065 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/c0ae0486-850a-4223-a61f-a237a74ae96e 2026-01-28 13:17:37,077 - INFO - Verified policy ctest-policy1-41174139 in API Server, Result: True 2026-01-28 13:17:37,077 - INFO - Done with setup and verification, moving onto test .. 2026-01-28 13:17:37,086 - INFO - Deleting VN ctest-vn4-85676834 2026-01-28 13:17:37,208 - DEBUG - Response for deleting network () 2026-01-28 13:17:37,209 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/8017abd2-f5f0-4950-b67e-e27466d5d30e 2026-01-28 13:17:37,214 - DEBUG - Response Code: 404 2026-01-28 13:17:37,214 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-01-28 13:17:37,219 - DEBUG - Requesting: http://10.0.0.141:8082/domain/ceebe4b1-2a25-4dca-b8c2-5f1d2f42b9e6 2026-01-28 13:17:37,272 - DEBUG - Requesting: http://10.0.0.141:8082/project/03bf6177-8566-4aaf-8fdf-60a9b9a90378 2026-01-28 13:17:37,342 - INFO - Validated that VN ctest-vn4-85676834 is not found in API Server 2026-01-28 13:17:37,351 - DEBUG - VN ctest-vn4-85676834 is not present in Agent 10.0.0.141 2026-01-28 13:17:37,351 - INFO - Validated that VN ctest-vn4-85676834 is not in any agent 2026-01-28 13:17:37,364 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-85676834 info 2026-01-28 13:17:37,388 - INFO - Deleted policy ctest-policy1-41174139 2026-01-28 13:17:37,551 - DEBUG - policy ctest-policy1-41174139 is not found in API Server 2026-01-28 13:17:37,804 - DEBUG - No XMPP flaps were noticed during the test
2026-01-28 13:17:37,804 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-28 13:17:37,804 - INFO - -------------------------------------------------------------------------------- 2026-01-28 13:17:38,092 - DEBUG - No XMPP flaps were noticed during the test
2026-01-28 13:17:38,092 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-01-28 13:17:38,092 - INFO - -------------------------------------------------------------------------------- 2026-01-28 13:17:38,779 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-25512484, ID : 03bf6177-8566-4aaf-8fdf-60a9b9a90378