2026-09-01 14:50:33,565 - INFO - Domain Default found not creating 2026-09-01 14:50:33,746 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-67623182 not found, creating it 2026-09-01 14:50:34,277 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-67623182, ID : e30bc23f-dd4a-4c2e-8c12-fdc75175aad2 2026-09-01 14:50:36,078 - INFO - ================================================================================ 2026-09-01 14:50:36,079 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-01 14:50:36,352 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-09-01 14:50:36,353 - INFO - Initial checks done. Running the testcase now 2026-09-01 14:50:36,353 - INFO - 2026-09-01 14:50:36,353 - INFO - ================================================================================ 2026-09-01 14:50:36,353 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-01 14:50:36,353 - 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-09-01 14:50:36,653 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-09-01 14:50:36,653 - INFO - Initial checks done. Running the testcase now 2026-09-01 14:50:36,653 - INFO - 2026-09-01 14:50:37,087 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67623182:ctest-vn4-51961033, 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-67623182:ctest-vn4-51961033, 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-67623182:ctest-vn4-51961033, 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-67623182:ctest-vn4-51961033, 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-09-01 14:50:37,658 - DEBUG - Response for create_network : {'network': {'id': 'aaed1e6a-ee79-4f91-93b1-72466b8899dd', 'name': 'ctest-vn4-51961033', 'tenant_id': 'e30bc23fdd4a4c2e8c12fdc75175aad2', 'project_id': 'e30bc23fdd4a4c2e8c12fdc75175aad2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67623182', 'ctest-vn4-51961033'], 'port_security_enabled': True, 'description': ''}} 2026-09-01 14:50:37,852 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd9bbaab3-5dc4-4cad-9c9b-896074d39144', 'name': '', 'tenant_id': 'e30bc23fdd4a4c2e8c12fdc75175aad2', 'network_id': 'aaed1e6a-ee79-4f91-93b1-72466b8899dd', 'ip_version': 4, 'cidr': '9.123.50.0/26', 'allocation_pools': [{'start': '9.123.50.2', 'end': '9.123.50.62'}], 'gateway_ip': '9.123.50.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '9.123.50.2', 'tags': [], 'project_id': 'e30bc23fdd4a4c2e8c12fdc75175aad2'}} 2026-09-01 14:50:38,032 - DEBUG - Response for create_subnet : {'subnet': {'id': '761435fd-1e48-412a-ab2b-2ab01b397323', 'name': '', 'tenant_id': 'e30bc23fdd4a4c2e8c12fdc75175aad2', 'network_id': 'aaed1e6a-ee79-4f91-93b1-72466b8899dd', 'ip_version': 6, 'cidr': '32d1:5f92:c7ea:b202:790a:4fe8::/96', 'allocation_pools': [{'start': '32d1:5f92:c7ea:b202:790a:4fe8:0:2', 'end': '32d1:5f92:c7ea:b202:790a:4fe8:ffff:fffe'}], 'gateway_ip': '32d1:5f92:c7ea:b202:790a:4fe8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32d1:5f92:c7ea:b202:790a:4fe8:0:2', 'tags': [], 'project_id': 'e30bc23fdd4a4c2e8c12fdc75175aad2'}} 2026-09-01 14:50:38,053 - INFO - Created VN ctest-vn4-51961033 2026-09-01 14:50:38,108 - DEBUG - VN ctest-vn4-51961033 UUID is aaed1e6a-ee79-4f91-93b1-72466b8899dd 2026-09-01 14:50:38,339 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aaed1e6a-ee79-4f91-93b1-72466b8899dd', 'name': 'ctest-vn4-51961033', 'tenant_id': 'e30bc23fdd4a4c2e8c12fdc75175aad2', 'project_id': 'e30bc23fdd4a4c2e8c12fdc75175aad2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['d9bbaab3-5dc4-4cad-9c9b-896074d39144', '761435fd-1e48-412a-ab2b-2ab01b397323'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67623182', 'ctest-vn4-51961033'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67623182', 'ctest-policy1-48514646']], 'subnet_ipam': [{'subnet_cidr': '9.123.50.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '32d1:5f92:c7ea:b202:790a:4fe8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-01 14:50:38,507 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-01 14:50:38,871 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-01 14:50:38,899 - DEBUG - Requesting: http://10.0.0.38:8082/domain/81a45711-b823-4410-8f2a-943302d06ce8 2026-09-01 14:50:38,915 - DEBUG - Requesting: http://10.0.0.38:8082/project/e30bc23f-dd4a-4c2e-8c12-fdc75175aad2 2026-09-01 14:50:39,001 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aaed1e6a-ee79-4f91-93b1-72466b8899dd 2026-09-01 14:50:39,016 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aaed1e6a-ee79-4f91-93b1-72466b8899dd 2026-09-01 14:50:39,027 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/238237f3-8fea-4f95-8973-1ce470ef4cb1 2026-09-01 14:50:39,034 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/238237f3-8fea-4f95-8973-1ce470ef4cb1 2026-09-01 14:50:39,042 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cbd2544d-ae65-464c-83ec-89b769f4cf02 2026-09-01 14:50:39,050 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-01 14:50:39,050 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aaed1e6a-ee79-4f91-93b1-72466b8899dd 2026-09-01 14:50:39,063 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/238237f3-8fea-4f95-8973-1ce470ef4cb1 2026-09-01 14:50:39,078 - INFO - Verified VN network id 12 for VN aaed1e6a-ee79-4f91-93b1-72466b8899dd 2026-09-01 14:50:39,078 - INFO - Verifications in API Server for VN ctest-vn4-51961033 passed 2026-09-01 14:50:39,078 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aaed1e6a-ee79-4f91-93b1-72466b8899dd 2026-09-01 14:50:39,089 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/238237f3-8fea-4f95-8973-1ce470ef4cb1 2026-09-01 14:50:39,097 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/238237f3-8fea-4f95-8973-1ce470ef4cb1 2026-09-01 14:50:39,105 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/cbd2544d-ae65-464c-83ec-89b769f4cf02 2026-09-01 14:50:39,121 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67623182:ctest-vn4-51961033', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-67623182', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12316534000544468881', 'uuid-lslong': '10642413041230584285'}, 'enable': 'true', 'created': '2026-09-01T14:50:37', 'last-modified': '2026-09-01T14:50:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.823610'} 2026-09-01 14:50:39,132 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-01 14:50:39,132 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-51961033 passed 2026-09-01 14:50:39,133 - DEBUG - ====Verifying policy data for ctest-vn4-51961033 in API_Server ====== 2026-09-01 14:50:39,133 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-01 14:50:39,141 - DEBUG - Requesting: http://10.0.0.38:8082/domain/81a45711-b823-4410-8f2a-943302d06ce8 2026-09-01 14:50:39,157 - DEBUG - Requesting: http://10.0.0.38:8082/project/e30bc23f-dd4a-4c2e-8c12-fdc75175aad2 2026-09-01 14:50:39,240 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aaed1e6a-ee79-4f91-93b1-72466b8899dd 2026-09-01 14:50:39,252 - DEBUG - ==>Verifying data for policy with id: 8ade0b54-8d46-4646-bbf3-ae2528c4070b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67623182', 'ctest-policy1-48514646'] 2026-09-01 14:50:39,252 - INFO - VN ctest-vn4-51961033 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-01 14:50:39,252 - DEBUG - Verifying the vn in opserver 2026-09-01 14:50:39,252 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67623182:ctest-vn4-51961033 virtual network link through opserver 10.0.0.38 2026-09-01 14:50:39,252 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-01 14:50:39,616 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-09-01 14:50:39,677 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67623182:ctest-vn4-51961033', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67623182:ctest-vn4-51961033?flat'} 2026-09-01 14:50:39,677 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67623182:ctest-vn4-51961033 is found in opserver 2026-09-01 14:50:39,689 - DEBUG - Do not have enough data to verify VN in agent 2026-09-01 14:50:39,696 - DEBUG - VRF ids for VN ctest-vn4-51961033: {} 2026-09-01 14:50:39,697 - DEBUG - ====Verifying data for ctest-policy1-48514646 in API_Server ====== 2026-09-01 14:50:39,697 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-01 14:50:39,703 - DEBUG - Requesting: http://10.0.0.38:8082/domain/81a45711-b823-4410-8f2a-943302d06ce8 2026-09-01 14:50:39,717 - DEBUG - Requesting: http://10.0.0.38:8082/project/e30bc23f-dd4a-4c2e-8c12-fdc75175aad2 2026-09-01 14:50:39,799 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/8ade0b54-8d46-4646-bbf3-ae2528c4070b 2026-09-01 14:50:39,811 - INFO - Verified policy ctest-policy1-48514646 in API Server, Result: True 2026-09-01 14:50:39,811 - INFO - Done with setup and verification, moving onto test .. 2026-09-01 14:50:39,822 - INFO - Deleting VN ctest-vn4-51961033 2026-09-01 14:50:39,955 - DEBUG - Response for deleting network () 2026-09-01 14:50:39,955 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/238237f3-8fea-4f95-8973-1ce470ef4cb1 2026-09-01 14:50:39,962 - DEBUG - Response Code: 404 2026-09-01 14:50:39,962 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-09-01 14:50:39,968 - DEBUG - Requesting: http://10.0.0.38:8082/domain/81a45711-b823-4410-8f2a-943302d06ce8 2026-09-01 14:50:40,022 - DEBUG - Requesting: http://10.0.0.38:8082/project/e30bc23f-dd4a-4c2e-8c12-fdc75175aad2 2026-09-01 14:50:40,100 - INFO - Validated that VN ctest-vn4-51961033 is not found in API Server 2026-09-01 14:50:40,112 - DEBUG - VN ctest-vn4-51961033 is not present in Agent 10.0.0.38 2026-09-01 14:50:40,112 - INFO - Validated that VN ctest-vn4-51961033 is not in any agent 2026-09-01 14:50:40,130 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-51961033 info 2026-09-01 14:50:40,161 - INFO - Deleted policy ctest-policy1-48514646 2026-09-01 14:50:40,331 - DEBUG - policy ctest-policy1-48514646 is not found in API Server 2026-09-01 14:50:40,600 - DEBUG - No XMPP flaps were noticed during the test