2026-02-25 14:10:14,877 - INFO - Domain Default found not creating 2026-02-25 14:10:15,033 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-15577554 not found, creating it 2026-02-25 14:10:15,457 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-15577554, ID : 320f9302-7ee2-40a6-aad4-adb0ba1af1b9 2026-02-25 14:10:16,869 - INFO - ================================================================================ 2026-02-25 14:10:16,869 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-25 14:10:17,128 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with 2026-02-25 14:10:17,128 - INFO - Initial checks done. Running the testcase now 2026-02-25 14:10:17,128 - INFO - 2026-02-25 14:10:17,128 - INFO - ================================================================================ 2026-02-25 14:10:17,128 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-25 14:10:17,128 - 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-02-25 14:10:17,424 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.17': '0'}} with 2026-02-25 14:10:17,424 - INFO - Initial checks done. Running the testcase now 2026-02-25 14:10:17,424 - INFO - 2026-02-25 14:10:17,772 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15577554:ctest-vn4-36697960, 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-15577554:ctest-vn4-36697960, 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-15577554:ctest-vn4-36697960, 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-15577554:ctest-vn4-36697960, 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-02-25 14:10:18,270 - DEBUG - Response for create_network : {'network': {'id': '0ccdc1f3-d375-40ea-9acd-58710485a294', 'name': 'ctest-vn4-36697960', 'tenant_id': '320f93027ee240a6aad4adb0ba1af1b9', 'project_id': '320f93027ee240a6aad4adb0ba1af1b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15577554', 'ctest-vn4-36697960'], 'port_security_enabled': True, 'description': ''}} 2026-02-25 14:10:18,493 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd3806173-0ce6-4dbd-8e2c-eea378a40daa', 'name': '', 'tenant_id': '320f93027ee240a6aad4adb0ba1af1b9', 'network_id': '0ccdc1f3-d375-40ea-9acd-58710485a294', 'ip_version': 4, 'cidr': '156.110.251.128/26', 'allocation_pools': [{'start': '156.110.251.130', 'end': '156.110.251.190'}], 'gateway_ip': '156.110.251.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.110.251.130', 'tags': [], 'project_id': '320f93027ee240a6aad4adb0ba1af1b9'}} 2026-02-25 14:10:18,674 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2224742-4eec-4683-8909-4b2f78c4fa44', 'name': '', 'tenant_id': '320f93027ee240a6aad4adb0ba1af1b9', 'network_id': '0ccdc1f3-d375-40ea-9acd-58710485a294', 'ip_version': 6, 'cidr': '3a03:a2b2:76e9:c084:6153:14e6::/96', 'allocation_pools': [{'start': '3a03:a2b2:76e9:c084:6153:14e6:0:2', 'end': '3a03:a2b2:76e9:c084:6153:14e6:ffff:fffe'}], 'gateway_ip': '3a03:a2b2:76e9:c084:6153:14e6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a03:a2b2:76e9:c084:6153:14e6:0:2', 'tags': [], 'project_id': '320f93027ee240a6aad4adb0ba1af1b9'}} 2026-02-25 14:10:18,694 - INFO - Created VN ctest-vn4-36697960 2026-02-25 14:10:18,747 - DEBUG - VN ctest-vn4-36697960 UUID is 0ccdc1f3-d375-40ea-9acd-58710485a294 2026-02-25 14:10:18,956 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0ccdc1f3-d375-40ea-9acd-58710485a294', 'name': 'ctest-vn4-36697960', 'tenant_id': '320f93027ee240a6aad4adb0ba1af1b9', 'project_id': '320f93027ee240a6aad4adb0ba1af1b9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d3806173-0ce6-4dbd-8e2c-eea378a40daa', 'b2224742-4eec-4683-8909-4b2f78c4fa44'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15577554', 'ctest-vn4-36697960'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15577554', 'ctest-policy1-25812683']], 'subnet_ipam': [{'subnet_cidr': '156.110.251.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a03:a2b2:76e9:c084:6153:14e6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-25 14:10:19,119 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-25 14:10:19,427 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-25 14:10:19,456 - DEBUG - Requesting: http://10.0.0.129:8082/domain/a870835a-deb6-4d41-be5e-3c5a2efc8cc4 2026-02-25 14:10:19,468 - DEBUG - Requesting: http://10.0.0.129:8082/project/320f9302-7ee2-40a6-aad4-adb0ba1af1b9 2026-02-25 14:10:19,540 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0ccdc1f3-d375-40ea-9acd-58710485a294 2026-02-25 14:10:19,550 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0ccdc1f3-d375-40ea-9acd-58710485a294 2026-02-25 14:10:19,559 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/7eee3e3d-b802-418e-b8b2-3063ee299f94 2026-02-25 14:10:19,566 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/7eee3e3d-b802-418e-b8b2-3063ee299f94 2026-02-25 14:10:19,572 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/0f71b03b-c14b-42b3-bb3a-0807c602c860 2026-02-25 14:10:19,577 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-25 14:10:19,577 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0ccdc1f3-d375-40ea-9acd-58710485a294 2026-02-25 14:10:19,585 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/7eee3e3d-b802-418e-b8b2-3063ee299f94 2026-02-25 14:10:19,600 - INFO - Verified VN network id 11 for VN 0ccdc1f3-d375-40ea-9acd-58710485a294 2026-02-25 14:10:19,600 - INFO - Verifications in API Server for VN ctest-vn4-36697960 passed 2026-02-25 14:10:19,600 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0ccdc1f3-d375-40ea-9acd-58710485a294 2026-02-25 14:10:19,610 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/7eee3e3d-b802-418e-b8b2-3063ee299f94 2026-02-25 14:10:19,622 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/7eee3e3d-b802-418e-b8b2-3063ee299f94 2026-02-25 14:10:19,629 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/0f71b03b-c14b-42b3-bb3a-0807c602c860 2026-02-25 14:10:19,641 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15577554:ctest-vn4-36697960', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-15577554', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '922606751649710314', 'uuid-lslong': '11154669094497002132'}, 'enable': 'true', 'created': '2026-02-25T14:10:18', 'last-modified': '2026-02-25T14:10:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.718051'} 2026-02-25 14:10:19,647 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-25 14:10:19,648 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-36697960 passed 2026-02-25 14:10:19,648 - DEBUG - ====Verifying policy data for ctest-vn4-36697960 in API_Server ====== 2026-02-25 14:10:19,648 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-25 14:10:19,653 - DEBUG - Requesting: http://10.0.0.129:8082/domain/a870835a-deb6-4d41-be5e-3c5a2efc8cc4 2026-02-25 14:10:19,664 - DEBUG - Requesting: http://10.0.0.129:8082/project/320f9302-7ee2-40a6-aad4-adb0ba1af1b9 2026-02-25 14:10:19,738 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/0ccdc1f3-d375-40ea-9acd-58710485a294 2026-02-25 14:10:19,748 - DEBUG - ==>Verifying data for policy with id: 38f5a76f-22e6-4d4f-b372-cabac5563690, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15577554', 'ctest-policy1-25812683'] 2026-02-25 14:10:19,749 - INFO - VN ctest-vn4-36697960 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-25 14:10:19,749 - DEBUG - Verifying the vn in opserver 2026-02-25 14:10:19,749 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15577554:ctest-vn4-36697960 virtual network link through opserver 10.0.0.129 2026-02-25 14:10:19,749 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-25 14:10:20,048 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-02-25 14:10:20,111 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15577554:ctest-vn4-36697960', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15577554:ctest-vn4-36697960?flat'} 2026-02-25 14:10:20,111 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15577554:ctest-vn4-36697960 is found in opserver 2026-02-25 14:10:20,120 - DEBUG - Do not have enough data to verify VN in agent 2026-02-25 14:10:20,124 - DEBUG - VRF ids for VN ctest-vn4-36697960: {} 2026-02-25 14:10:20,125 - DEBUG - ====Verifying data for ctest-policy1-25812683 in API_Server ====== 2026-02-25 14:10:20,125 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-25 14:10:20,130 - DEBUG - Requesting: http://10.0.0.129:8082/domain/a870835a-deb6-4d41-be5e-3c5a2efc8cc4 2026-02-25 14:10:20,139 - DEBUG - Requesting: http://10.0.0.129:8082/project/320f9302-7ee2-40a6-aad4-adb0ba1af1b9 2026-02-25 14:10:20,212 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/38f5a76f-22e6-4d4f-b372-cabac5563690 2026-02-25 14:10:20,223 - INFO - Verified policy ctest-policy1-25812683 in API Server, Result: True 2026-02-25 14:10:20,224 - INFO - Done with setup and verification, moving onto test .. 2026-02-25 14:10:20,234 - INFO - Deleting VN ctest-vn4-36697960 2026-02-25 14:10:20,344 - DEBUG - Response for deleting network () 2026-02-25 14:10:20,344 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/7eee3e3d-b802-418e-b8b2-3063ee299f94 2026-02-25 14:10:20,348 - DEBUG - Response Code: 404 2026-02-25 14:10:20,348 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-02-25 14:10:20,354 - DEBUG - Requesting: http://10.0.0.129:8082/domain/a870835a-deb6-4d41-be5e-3c5a2efc8cc4 2026-02-25 14:10:20,407 - DEBUG - Requesting: http://10.0.0.129:8082/project/320f9302-7ee2-40a6-aad4-adb0ba1af1b9 2026-02-25 14:10:20,545 - INFO - Validated that VN ctest-vn4-36697960 is not found in API Server 2026-02-25 14:10:20,556 - DEBUG - VN ctest-vn4-36697960 is not present in Agent 10.0.0.129 2026-02-25 14:10:20,556 - INFO - Validated that VN ctest-vn4-36697960 is not in any agent 2026-02-25 14:10:20,569 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-36697960 info 2026-02-25 14:10:20,594 - INFO - Deleted policy ctest-policy1-25812683 2026-02-25 14:10:20,754 - DEBUG - policy ctest-policy1-25812683 is not found in API Server 2026-02-25 14:10:21,007 - DEBUG - No XMPP flaps were noticed during the test
2026-02-25 14:10:21,007 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-25 14:10:21,007 - INFO - -------------------------------------------------------------------------------- 2026-02-25 14:10:21,299 - DEBUG - No XMPP flaps were noticed during the test
2026-02-25 14:10:21,300 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-25 14:10:21,300 - INFO - -------------------------------------------------------------------------------- 2026-02-25 14:10:21,988 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-15577554, ID : 320f9302-7ee2-40a6-aad4-adb0ba1af1b9