2026-10-26 15:48:38,907 - INFO - Domain Default found not creating 2026-10-26 15:48:39,131 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35432807 not found, creating it 2026-10-26 15:48:39,675 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35432807, ID : be87c7cb-4001-4efc-a197-ab490faaf070 2026-10-26 15:48:41,578 - INFO - ================================================================================ 2026-10-26 15:48:41,578 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-26 15:48:41,842 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-10-26 15:48:41,842 - INFO - Initial checks done. Running the testcase now 2026-10-26 15:48:41,843 - INFO - 2026-10-26 15:48:41,843 - INFO - ================================================================================ 2026-10-26 15:48:41,843 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-26 15:48:41,843 - 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-10-26 15:48:42,152 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-10-26 15:48:42,152 - INFO - Initial checks done. Running the testcase now 2026-10-26 15:48:42,152 - INFO - 2026-10-26 15:48:42,625 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35432807:ctest-vn4-95309874, 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-35432807:ctest-vn4-95309874, 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-35432807:ctest-vn4-95309874, 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-35432807:ctest-vn4-95309874, 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-10-26 15:48:43,236 - DEBUG - Response for create_network : {'network': {'id': '6f41c585-15ac-40dc-acfb-4c447c08374c', 'name': 'ctest-vn4-95309874', 'tenant_id': 'be87c7cb40014efca197ab490faaf070', 'project_id': 'be87c7cb40014efca197ab490faaf070', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35432807', 'ctest-vn4-95309874'], 'port_security_enabled': True, 'description': ''}} 2026-10-26 15:48:43,474 - DEBUG - Response for create_subnet : {'subnet': {'id': '57fbf89b-da00-4496-8d1c-b9af4d7d09bb', 'name': '', 'tenant_id': 'be87c7cb40014efca197ab490faaf070', 'network_id': '6f41c585-15ac-40dc-acfb-4c447c08374c', 'ip_version': 4, 'cidr': '98.54.42.0/26', 'allocation_pools': [{'start': '98.54.42.2', 'end': '98.54.42.62'}], 'gateway_ip': '98.54.42.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '98.54.42.2', 'tags': [], 'project_id': 'be87c7cb40014efca197ab490faaf070'}} 2026-10-26 15:48:43,653 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f73ad014-20e6-4ced-b15a-54356d2d5e66', 'name': '', 'tenant_id': 'be87c7cb40014efca197ab490faaf070', 'network_id': '6f41c585-15ac-40dc-acfb-4c447c08374c', 'ip_version': 6, 'cidr': '3066:87a2:2306:f913:3eda:4ca4::/96', 'allocation_pools': [{'start': '3066:87a2:2306:f913:3eda:4ca4:0:2', 'end': '3066:87a2:2306:f913:3eda:4ca4:ffff:fffe'}], 'gateway_ip': '3066:87a2:2306:f913:3eda:4ca4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3066:87a2:2306:f913:3eda:4ca4:0:2', 'tags': [], 'project_id': 'be87c7cb40014efca197ab490faaf070'}} 2026-10-26 15:48:43,677 - INFO - Created VN ctest-vn4-95309874 2026-10-26 15:48:43,734 - DEBUG - VN ctest-vn4-95309874 UUID is 6f41c585-15ac-40dc-acfb-4c447c08374c 2026-10-26 15:48:43,969 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6f41c585-15ac-40dc-acfb-4c447c08374c', 'name': 'ctest-vn4-95309874', 'tenant_id': 'be87c7cb40014efca197ab490faaf070', 'project_id': 'be87c7cb40014efca197ab490faaf070', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['57fbf89b-da00-4496-8d1c-b9af4d7d09bb', 'f73ad014-20e6-4ced-b15a-54356d2d5e66'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35432807', 'ctest-vn4-95309874'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35432807', 'ctest-policy1-58582665']], 'subnet_ipam': [{'subnet_cidr': '98.54.42.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3066:87a2:2306:f913:3eda:4ca4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-26 15:48:44,118 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-26 15:48:44,511 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-26 15:48:44,547 - DEBUG - Requesting: http://10.0.0.38:8082/domain/722e85e7-cd68-495f-a442-c686f9cc6d5d 2026-10-26 15:48:44,565 - DEBUG - Requesting: http://10.0.0.38:8082/project/be87c7cb-4001-4efc-a197-ab490faaf070 2026-10-26 15:48:44,647 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6f41c585-15ac-40dc-acfb-4c447c08374c 2026-10-26 15:48:44,664 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6f41c585-15ac-40dc-acfb-4c447c08374c 2026-10-26 15:48:44,679 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/02089903-ffa5-45cd-a94b-f20ce828ef3e 2026-10-26 15:48:44,688 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/02089903-ffa5-45cd-a94b-f20ce828ef3e 2026-10-26 15:48:44,696 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/abf36313-fb61-4648-a1f9-ffbcce33b9e6 2026-10-26 15:48:44,703 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-26 15:48:44,703 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6f41c585-15ac-40dc-acfb-4c447c08374c 2026-10-26 15:48:44,714 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/02089903-ffa5-45cd-a94b-f20ce828ef3e 2026-10-26 15:48:44,733 - INFO - Verified VN network id 12 for VN 6f41c585-15ac-40dc-acfb-4c447c08374c 2026-10-26 15:48:44,733 - INFO - Verifications in API Server for VN ctest-vn4-95309874 passed 2026-10-26 15:48:44,733 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6f41c585-15ac-40dc-acfb-4c447c08374c 2026-10-26 15:48:44,745 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/02089903-ffa5-45cd-a94b-f20ce828ef3e 2026-10-26 15:48:44,753 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/02089903-ffa5-45cd-a94b-f20ce828ef3e 2026-10-26 15:48:44,762 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/abf36313-fb61-4648-a1f9-ffbcce33b9e6 2026-10-26 15:48:44,776 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35432807:ctest-vn4-95309874', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35432807', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8016905987081126108', 'uuid-lslong': '12464640250700379980'}, 'enable': 'true', 'created': '2026-10-26T15:48:43', 'last-modified': '2026-10-26T15:48:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.832904'} 2026-10-26 15:48:44,785 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-26 15:48:44,785 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-95309874 passed 2026-10-26 15:48:44,785 - DEBUG - ====Verifying policy data for ctest-vn4-95309874 in API_Server ====== 2026-10-26 15:48:44,785 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-26 15:48:44,791 - DEBUG - Requesting: http://10.0.0.38:8082/domain/722e85e7-cd68-495f-a442-c686f9cc6d5d 2026-10-26 15:48:44,806 - DEBUG - Requesting: http://10.0.0.38:8082/project/be87c7cb-4001-4efc-a197-ab490faaf070 2026-10-26 15:48:44,890 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6f41c585-15ac-40dc-acfb-4c447c08374c 2026-10-26 15:48:44,903 - DEBUG - ==>Verifying data for policy with id: f936fd4b-ffb4-4d5c-9151-c138074df2bc, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35432807', 'ctest-policy1-58582665'] 2026-10-26 15:48:44,903 - INFO - VN ctest-vn4-95309874 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-26 15:48:44,903 - DEBUG - Verifying the vn in opserver 2026-10-26 15:48:44,903 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35432807:ctest-vn4-95309874 virtual network link through opserver 10.0.0.38 2026-10-26 15:48:44,904 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-26 15:48:45,285 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-26 15:48:45,723 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35432807:ctest-vn4-95309874', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35432807:ctest-vn4-95309874?flat'} 2026-10-26 15:48:45,723 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35432807:ctest-vn4-95309874 is found in opserver 2026-10-26 15:48:45,738 - DEBUG - Do not have enough data to verify VN in agent 2026-10-26 15:48:45,744 - DEBUG - VRF ids for VN ctest-vn4-95309874: {} 2026-10-26 15:48:45,745 - DEBUG - ====Verifying data for ctest-policy1-58582665 in API_Server ====== 2026-10-26 15:48:45,745 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-26 15:48:45,752 - DEBUG - Requesting: http://10.0.0.38:8082/domain/722e85e7-cd68-495f-a442-c686f9cc6d5d 2026-10-26 15:48:45,768 - DEBUG - Requesting: http://10.0.0.38:8082/project/be87c7cb-4001-4efc-a197-ab490faaf070 2026-10-26 15:48:45,847 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/f936fd4b-ffb4-4d5c-9151-c138074df2bc 2026-10-26 15:48:45,859 - INFO - Verified policy ctest-policy1-58582665 in API Server, Result: True 2026-10-26 15:48:45,859 - INFO - Done with setup and verification, moving onto test .. 2026-10-26 15:48:45,874 - INFO - Deleting VN ctest-vn4-95309874 2026-10-26 15:48:46,023 - DEBUG - Response for deleting network () 2026-10-26 15:48:46,023 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/02089903-ffa5-45cd-a94b-f20ce828ef3e 2026-10-26 15:48:46,030 - DEBUG - Response Code: 404 2026-10-26 15:48:46,030 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-26 15:48:46,036 - DEBUG - Requesting: http://10.0.0.38:8082/domain/722e85e7-cd68-495f-a442-c686f9cc6d5d 2026-10-26 15:48:46,093 - DEBUG - Requesting: http://10.0.0.38:8082/project/be87c7cb-4001-4efc-a197-ab490faaf070 2026-10-26 15:48:46,177 - INFO - Validated that VN ctest-vn4-95309874 is not found in API Server 2026-10-26 15:48:46,192 - DEBUG - VN ctest-vn4-95309874 is not present in Agent 10.0.0.38 2026-10-26 15:48:46,192 - INFO - Validated that VN ctest-vn4-95309874 is not in any agent 2026-10-26 15:48:46,215 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-95309874 info 2026-10-26 15:48:46,258 - INFO - Deleted policy ctest-policy1-58582665 2026-10-26 15:48:46,446 - DEBUG - policy ctest-policy1-58582665 is not found in API Server 2026-10-26 15:48:46,719 - DEBUG - No XMPP flaps were noticed during the test
2026-10-26 15:48:46,719 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-10-26 15:48:46,720 - INFO - -------------------------------------------------------------------------------- 2026-10-26 15:48:47,019 - DEBUG - No XMPP flaps were noticed during the test
2026-10-26 15:48:47,020 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2026-10-26 15:48:47,020 - INFO - -------------------------------------------------------------------------------- 2026-10-26 15:48:47,850 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-35432807, ID : be87c7cb-4001-4efc-a197-ab490faaf070