2026-01-26 02:16:59,747 - INFO - Domain Default found not creating 2026-01-26 02:16:59,900 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06209169 not found, creating it 2026-01-26 02:17:00,374 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06209169, ID : 0f92a371-d791-4743-9e22-a019448038a6 2026-01-26 02:17:01,940 - INFO - ================================================================================ 2026-01-26 02:17:01,940 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-26 02:17:02,195 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.241': '0'}} with 2026-01-26 02:17:02,195 - INFO - Initial checks done. Running the testcase now 2026-01-26 02:17:02,195 - INFO - 2026-01-26 02:17:02,196 - INFO - ================================================================================ 2026-01-26 02:17:02,196 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-26 02:17:02,196 - 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:17:02,483 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.241': '0'}} with 2026-01-26 02:17:02,483 - INFO - Initial checks done. Running the testcase now 2026-01-26 02:17:02,483 - INFO - 2026-01-26 02:17:02,885 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06209169:ctest-vn4-42949449, 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-06209169:ctest-vn4-42949449, 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-06209169:ctest-vn4-42949449, 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-06209169:ctest-vn4-42949449, 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:17:03,405 - DEBUG - Response for create_network : {'network': {'id': 'bd8dca6a-b703-421f-937a-53ff478f334a', 'name': 'ctest-vn4-42949449', 'tenant_id': '0f92a371d79147439e22a019448038a6', 'project_id': '0f92a371d79147439e22a019448038a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06209169', 'ctest-vn4-42949449'], 'port_security_enabled': True, 'description': ''}} 2026-01-26 02:17:03,620 - DEBUG - Response for create_subnet : {'subnet': {'id': '75a52920-09be-40a4-b214-d6c21f59e6ba', 'name': '', 'tenant_id': '0f92a371d79147439e22a019448038a6', 'network_id': 'bd8dca6a-b703-421f-937a-53ff478f334a', 'ip_version': 4, 'cidr': '144.158.14.64/26', 'allocation_pools': [{'start': '144.158.14.66', 'end': '144.158.14.126'}], 'gateway_ip': '144.158.14.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.158.14.66', 'tags': [], 'project_id': '0f92a371d79147439e22a019448038a6'}} 2026-01-26 02:17:03,773 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8b68c07-d500-4f34-8f91-7d13131c0ed6', 'name': '', 'tenant_id': '0f92a371d79147439e22a019448038a6', 'network_id': 'bd8dca6a-b703-421f-937a-53ff478f334a', 'ip_version': 6, 'cidr': '338d:ee85:385a:4fd:7b1a:7791::/96', 'allocation_pools': [{'start': '338d:ee85:385a:4fd:7b1a:7791:0:2', 'end': '338d:ee85:385a:4fd:7b1a:7791:ffff:fffe'}], 'gateway_ip': '338d:ee85:385a:4fd:7b1a:7791:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '338d:ee85:385a:4fd:7b1a:7791:0:2', 'tags': [], 'project_id': '0f92a371d79147439e22a019448038a6'}} 2026-01-26 02:17:03,790 - INFO - Created VN ctest-vn4-42949449 2026-01-26 02:17:03,842 - DEBUG - VN ctest-vn4-42949449 UUID is bd8dca6a-b703-421f-937a-53ff478f334a 2026-01-26 02:17:04,044 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd8dca6a-b703-421f-937a-53ff478f334a', 'name': 'ctest-vn4-42949449', 'tenant_id': '0f92a371d79147439e22a019448038a6', 'project_id': '0f92a371d79147439e22a019448038a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75a52920-09be-40a4-b214-d6c21f59e6ba', 'd8b68c07-d500-4f34-8f91-7d13131c0ed6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06209169', 'ctest-vn4-42949449'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06209169', 'ctest-policy1-88623260']], 'subnet_ipam': [{'subnet_cidr': '144.158.14.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '338d:ee85:385a:4fd:7b1a:7791::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-26 02:17:04,206 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-26 02:17:04,517 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-26 02:17:04,550 - DEBUG - Requesting: http://10.0.0.22:8082/domain/095301e9-c68f-4143-ba14-45efa741f259 2026-01-26 02:17:04,563 - DEBUG - Requesting: http://10.0.0.22:8082/project/0f92a371-d791-4743-9e22-a019448038a6 2026-01-26 02:17:04,638 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bd8dca6a-b703-421f-937a-53ff478f334a 2026-01-26 02:17:04,651 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bd8dca6a-b703-421f-937a-53ff478f334a 2026-01-26 02:17:04,660 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cec00540-7ccd-480c-b2f5-d42394dcd8bb 2026-01-26 02:17:04,667 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cec00540-7ccd-480c-b2f5-d42394dcd8bb 2026-01-26 02:17:04,674 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/31e758dd-6131-4321-94c4-93135bb5dfaf 2026-01-26 02:17:04,680 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 02:17:04,680 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bd8dca6a-b703-421f-937a-53ff478f334a 2026-01-26 02:17:04,689 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cec00540-7ccd-480c-b2f5-d42394dcd8bb 2026-01-26 02:17:04,702 - INFO - Verified VN network id 11 for VN bd8dca6a-b703-421f-937a-53ff478f334a 2026-01-26 02:17:04,702 - INFO - Verifications in API Server for VN ctest-vn4-42949449 passed 2026-01-26 02:17:04,702 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bd8dca6a-b703-421f-937a-53ff478f334a 2026-01-26 02:17:04,711 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cec00540-7ccd-480c-b2f5-d42394dcd8bb 2026-01-26 02:17:04,718 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cec00540-7ccd-480c-b2f5-d42394dcd8bb 2026-01-26 02:17:04,723 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/31e758dd-6131-4321-94c4-93135bb5dfaf 2026-01-26 02:17:04,733 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06209169:ctest-vn4-42949449', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06209169', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13658795804570370591', 'uuid-lslong': '10626898626616439626'}, 'enable': 'true', 'created': '2026-01-26T02:17:03', 'last-modified': '2026-01-26T02:17:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.719547'} 2026-01-26 02:17:04,743 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 02:17:04,743 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42949449 passed 2026-01-26 02:17:04,743 - DEBUG - ====Verifying policy data for ctest-vn4-42949449 in API_Server ====== 2026-01-26 02:17:04,743 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-26 02:17:04,750 - DEBUG - Requesting: http://10.0.0.22:8082/domain/095301e9-c68f-4143-ba14-45efa741f259 2026-01-26 02:17:04,760 - DEBUG - Requesting: http://10.0.0.22:8082/project/0f92a371-d791-4743-9e22-a019448038a6 2026-01-26 02:17:04,830 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/bd8dca6a-b703-421f-937a-53ff478f334a 2026-01-26 02:17:04,858 - DEBUG - ==>Verifying data for policy with id: 121afde1-26cd-4962-8a92-7f12fef0e0c2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06209169', 'ctest-policy1-88623260'] 2026-01-26 02:17:04,859 - INFO - VN ctest-vn4-42949449 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-26 02:17:04,859 - DEBUG - Verifying the vn in opserver 2026-01-26 02:17:04,859 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06209169:ctest-vn4-42949449 virtual network link through opserver 10.0.0.22 2026-01-26 02:17:04,859 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-26 02:17:05,163 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-26 02:17:05,243 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06209169:ctest-vn4-42949449', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06209169:ctest-vn4-42949449?flat'} 2026-01-26 02:17:05,243 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06209169:ctest-vn4-42949449 is found in opserver 2026-01-26 02:17:05,252 - DEBUG - Do not have enough data to verify VN in agent 2026-01-26 02:17:05,256 - DEBUG - VRF ids for VN ctest-vn4-42949449: {} 2026-01-26 02:17:05,256 - DEBUG - ====Verifying data for ctest-policy1-88623260 in API_Server ====== 2026-01-26 02:17:05,256 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-26 02:17:05,261 - DEBUG - Requesting: http://10.0.0.22:8082/domain/095301e9-c68f-4143-ba14-45efa741f259 2026-01-26 02:17:05,270 - DEBUG - Requesting: http://10.0.0.22:8082/project/0f92a371-d791-4743-9e22-a019448038a6 2026-01-26 02:17:05,352 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/121afde1-26cd-4962-8a92-7f12fef0e0c2 2026-01-26 02:17:05,362 - INFO - Verified policy ctest-policy1-88623260 in API Server, Result: True 2026-01-26 02:17:05,362 - INFO - Done with setup and verification, moving onto test .. 2026-01-26 02:17:05,369 - INFO - Deleting VN ctest-vn4-42949449 2026-01-26 02:17:05,482 - DEBUG - Response for deleting network () 2026-01-26 02:17:05,482 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/cec00540-7ccd-480c-b2f5-d42394dcd8bb 2026-01-26 02:17:05,487 - DEBUG - Response Code: 404 2026-01-26 02:17:05,488 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-26 02:17:05,492 - DEBUG - Requesting: http://10.0.0.22:8082/domain/095301e9-c68f-4143-ba14-45efa741f259 2026-01-26 02:17:05,546 - DEBUG - Requesting: http://10.0.0.22:8082/project/0f92a371-d791-4743-9e22-a019448038a6 2026-01-26 02:17:05,619 - INFO - Validated that VN ctest-vn4-42949449 is not found in API Server 2026-01-26 02:17:05,627 - DEBUG - VN ctest-vn4-42949449 is not present in Agent 10.0.0.22 2026-01-26 02:17:05,627 - INFO - Validated that VN ctest-vn4-42949449 is not in any agent 2026-01-26 02:17:05,639 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42949449 info 2026-01-26 02:17:05,663 - INFO - Deleted policy ctest-policy1-88623260 2026-01-26 02:17:05,829 - DEBUG - policy ctest-policy1-88623260 is not found in API Server 2026-01-26 02:17:06,086 - DEBUG - No XMPP flaps were noticed during the test 2026-01-26 02:17:06,086 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-26 02:17:06,086 - INFO - -------------------------------------------------------------------------------- 2026-01-26 02:17:06,374 - DEBUG - No XMPP flaps were noticed during the test 2026-01-26 02:17:06,374 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-01-26 02:17:06,374 - INFO - -------------------------------------------------------------------------------- 2026-01-26 02:17:07,031 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-06209169, ID : 0f92a371-d791-4743-9e22-a019448038a6