2026-11-02 10:21:12,917 - INFO - Domain Default found not creating 2026-11-02 10:21:13,104 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-82627131 not found, creating it 2026-11-02 10:21:13,634 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-82627131, ID : 4e450292-99b0-4e25-a12b-c9423808c767 2026-11-02 10:21:15,549 - INFO - ================================================================================ 2026-11-02 10:21:15,550 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-02 10:21:15,825 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.29': '0'}} with 2026-11-02 10:21:15,825 - INFO - Initial checks done. Running the testcase now 2026-11-02 10:21:15,825 - INFO - 2026-11-02 10:21:15,825 - INFO - ================================================================================ 2026-11-02 10:21:15,825 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-02 10:21:15,825 - 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-11-02 10:21:16,124 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.29': '0'}} with 2026-11-02 10:21:16,124 - INFO - Initial checks done. Running the testcase now 2026-11-02 10:21:16,124 - INFO - 2026-11-02 10:21:16,557 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82627131:ctest-vn4-20298352, 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-82627131:ctest-vn4-20298352, 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-82627131:ctest-vn4-20298352, 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-82627131:ctest-vn4-20298352, 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-11-02 10:21:17,104 - DEBUG - Response for create_network : {'network': {'id': '4a1d25b2-133c-4166-b42e-4ce4cbb99cb9', 'name': 'ctest-vn4-20298352', 'tenant_id': '4e45029299b04e25a12bc9423808c767', 'project_id': '4e45029299b04e25a12bc9423808c767', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82627131', 'ctest-vn4-20298352'], 'port_security_enabled': True, 'description': ''}} 2026-11-02 10:21:17,304 - DEBUG - Response for create_subnet : {'subnet': {'id': '616cb124-c58a-4fe7-af57-46f967ec35ec', 'name': '', 'tenant_id': '4e45029299b04e25a12bc9423808c767', 'network_id': '4a1d25b2-133c-4166-b42e-4ce4cbb99cb9', 'ip_version': 4, 'cidr': '194.34.130.192/26', 'allocation_pools': [{'start': '194.34.130.194', 'end': '194.34.130.254'}], 'gateway_ip': '194.34.130.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.34.130.194', 'tags': [], 'project_id': '4e45029299b04e25a12bc9423808c767'}} 2026-11-02 10:21:17,502 - DEBUG - Response for create_subnet : {'subnet': {'id': '46cebd9f-fbca-4eeb-9bbd-c4e11c957ec6', 'name': '', 'tenant_id': '4e45029299b04e25a12bc9423808c767', 'network_id': '4a1d25b2-133c-4166-b42e-4ce4cbb99cb9', 'ip_version': 6, 'cidr': '2b6a:f974:1cb3:f8ac:a788:8b89::/96', 'allocation_pools': [{'start': '2b6a:f974:1cb3:f8ac:a788:8b89:0:2', 'end': '2b6a:f974:1cb3:f8ac:a788:8b89:ffff:fffe'}], 'gateway_ip': '2b6a:f974:1cb3:f8ac:a788:8b89:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b6a:f974:1cb3:f8ac:a788:8b89:0:2', 'tags': [], 'project_id': '4e45029299b04e25a12bc9423808c767'}} 2026-11-02 10:21:17,522 - INFO - Created VN ctest-vn4-20298352 2026-11-02 10:21:17,579 - DEBUG - VN ctest-vn4-20298352 UUID is 4a1d25b2-133c-4166-b42e-4ce4cbb99cb9 2026-11-02 10:21:17,790 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a1d25b2-133c-4166-b42e-4ce4cbb99cb9', 'name': 'ctest-vn4-20298352', 'tenant_id': '4e45029299b04e25a12bc9423808c767', 'project_id': '4e45029299b04e25a12bc9423808c767', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['616cb124-c58a-4fe7-af57-46f967ec35ec', '46cebd9f-fbca-4eeb-9bbd-c4e11c957ec6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82627131', 'ctest-vn4-20298352'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82627131', 'ctest-policy1-07332891']], 'subnet_ipam': [{'subnet_cidr': '194.34.130.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b6a:f974:1cb3:f8ac:a788:8b89::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-02 10:21:17,959 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-02 10:21:18,466 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-02 10:21:18,503 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7ddde34b-8e4a-4dc9-b109-6c5b50450e18 2026-11-02 10:21:18,517 - DEBUG - Requesting: http://10.0.0.38:8082/project/4e450292-99b0-4e25-a12b-c9423808c767 2026-11-02 10:21:18,601 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a1d25b2-133c-4166-b42e-4ce4cbb99cb9 2026-11-02 10:21:18,615 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a1d25b2-133c-4166-b42e-4ce4cbb99cb9 2026-11-02 10:21:18,629 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/418c763e-315f-4a18-9365-7d1c93baf356 2026-11-02 10:21:18,638 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/418c763e-315f-4a18-9365-7d1c93baf356 2026-11-02 10:21:18,645 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bd850c15-86cc-4dc2-b1a7-54082557de13 2026-11-02 10:21:18,652 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-02 10:21:18,652 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a1d25b2-133c-4166-b42e-4ce4cbb99cb9 2026-11-02 10:21:18,662 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/418c763e-315f-4a18-9365-7d1c93baf356 2026-11-02 10:21:18,685 - INFO - Verified VN network id 10 for VN 4a1d25b2-133c-4166-b42e-4ce4cbb99cb9 2026-11-02 10:21:18,685 - INFO - Verifications in API Server for VN ctest-vn4-20298352 passed 2026-11-02 10:21:18,685 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a1d25b2-133c-4166-b42e-4ce4cbb99cb9 2026-11-02 10:21:18,696 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/418c763e-315f-4a18-9365-7d1c93baf356 2026-11-02 10:21:18,702 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/418c763e-315f-4a18-9365-7d1c93baf356 2026-11-02 10:21:18,709 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/bd850c15-86cc-4dc2-b1a7-54082557de13 2026-11-02 10:21:18,722 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82627131:ctest-vn4-20298352', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-82627131', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5340466179888398694', 'uuid-lslong': '12983399321309912249'}, 'enable': 'true', 'created': '2026-11-02T10:21:17', 'last-modified': '2026-11-02T10:21:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.956826'} 2026-11-02 10:21:18,729 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-02 10:21:18,729 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20298352 passed 2026-11-02 10:21:18,729 - DEBUG - ====Verifying policy data for ctest-vn4-20298352 in API_Server ====== 2026-11-02 10:21:18,729 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-02 10:21:18,735 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7ddde34b-8e4a-4dc9-b109-6c5b50450e18 2026-11-02 10:21:18,747 - DEBUG - Requesting: http://10.0.0.38:8082/project/4e450292-99b0-4e25-a12b-c9423808c767 2026-11-02 10:21:18,825 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a1d25b2-133c-4166-b42e-4ce4cbb99cb9 2026-11-02 10:21:18,835 - DEBUG - ==>Verifying data for policy with id: 7ceb9105-7432-46fa-9f63-1f0bfc1b6285, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82627131', 'ctest-policy1-07332891'] 2026-11-02 10:21:18,835 - INFO - VN ctest-vn4-20298352 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-02 10:21:18,835 - DEBUG - Verifying the vn in opserver 2026-11-02 10:21:18,835 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82627131:ctest-vn4-20298352 virtual network link through opserver 10.0.0.38 2026-11-02 10:21:18,835 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-11-02 10:21:19,267 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-11-02 10:21:19,339 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82627131:ctest-vn4-20298352', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82627131:ctest-vn4-20298352?flat'} 2026-11-02 10:21:19,340 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82627131:ctest-vn4-20298352 is found in opserver 2026-11-02 10:21:19,351 - DEBUG - Do not have enough data to verify VN in agent 2026-11-02 10:21:19,357 - DEBUG - VRF ids for VN ctest-vn4-20298352: {} 2026-11-02 10:21:19,358 - DEBUG - ====Verifying data for ctest-policy1-07332891 in API_Server ====== 2026-11-02 10:21:19,358 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-02 10:21:19,364 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7ddde34b-8e4a-4dc9-b109-6c5b50450e18 2026-11-02 10:21:19,377 - DEBUG - Requesting: http://10.0.0.38:8082/project/4e450292-99b0-4e25-a12b-c9423808c767 2026-11-02 10:21:19,455 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/7ceb9105-7432-46fa-9f63-1f0bfc1b6285 2026-11-02 10:21:19,467 - INFO - Verified policy ctest-policy1-07332891 in API Server, Result: True 2026-11-02 10:21:19,467 - INFO - Done with setup and verification, moving onto test .. 2026-11-02 10:21:19,475 - INFO - Deleting VN ctest-vn4-20298352 2026-11-02 10:21:19,597 - DEBUG - Response for deleting network () 2026-11-02 10:21:19,597 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/418c763e-315f-4a18-9365-7d1c93baf356 2026-11-02 10:21:19,603 - DEBUG - Response Code: 404 2026-11-02 10:21:19,603 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-02 10:21:19,609 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7ddde34b-8e4a-4dc9-b109-6c5b50450e18 2026-11-02 10:21:19,661 - DEBUG - Requesting: http://10.0.0.38:8082/project/4e450292-99b0-4e25-a12b-c9423808c767 2026-11-02 10:21:19,740 - INFO - Validated that VN ctest-vn4-20298352 is not found in API Server 2026-11-02 10:21:19,751 - DEBUG - VN ctest-vn4-20298352 is not present in Agent 10.0.0.38 2026-11-02 10:21:19,751 - INFO - Validated that VN ctest-vn4-20298352 is not in any agent 2026-11-02 10:21:19,768 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20298352 info 2026-11-02 10:21:19,795 - INFO - Deleted policy ctest-policy1-07332891 2026-11-02 10:21:19,971 - DEBUG - policy ctest-policy1-07332891 is not found in API Server 2026-11-02 10:21:20,228 - DEBUG - No XMPP flaps were noticed during the test
2026-11-02 10:21:20,228 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-11-02 10:21:20,228 - INFO - -------------------------------------------------------------------------------- 2026-11-02 10:21:20,519 - DEBUG - No XMPP flaps were noticed during the test
2026-11-02 10:21:20,519 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-11-02 10:21:20,519 - INFO - -------------------------------------------------------------------------------- 2026-11-02 10:21:21,319 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-82627131, ID : 4e450292-99b0-4e25-a12b-c9423808c767