2026-03-06 13:13:47,399 - INFO - Reading existing Domain with UUID 18ce25eb-0c3f-4af5-9f79-0fc6a509b3f1 2026-03-06 13:13:47,411 - INFO - Using existing domain ['admin_domain'](18ce25eb-0c3f-4af5-9f79-0fc6a509b3f1) 2026-03-06 13:13:47,665 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-30948767 not found, creating it 2026-03-06 13:13:48,195 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-30948767, ID : 38976d4d-ba56-4167-90a5-adfcc8d4a5a3 2026-03-06 13:13:49,982 - INFO - ================================================================================ 2026-03-06 13:13:49,982 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-06 13:13:50,373 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.0.0.41': '0'}} with 2026-03-06 13:13:50,373 - INFO - Initial checks done. Running the testcase now 2026-03-06 13:13:50,373 - INFO - 2026-03-06 13:13:50,373 - INFO - ================================================================================ 2026-03-06 13:13:50,374 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-06 13:13:50,374 - 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-03-06 13:13:50,773 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.0.0.41': '0'}} with 2026-03-06 13:13:50,773 - INFO - Initial checks done. Running the testcase now 2026-03-06 13:13:50,773 - INFO - 2026-03-06 13:13:51,163 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-30948767:ctest-vn4-05933641, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-30948767:ctest-vn4-05933641, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-30948767:ctest-vn4-05933641, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-30948767:ctest-vn4-05933641, 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-03-06 13:13:51,909 - DEBUG - Response for create_network : {'network': {'id': '27ea8fa1-38a6-4c1f-989c-2a84b33b7035', 'name': 'ctest-vn4-05933641', 'tenant_id': '38976d4dba56416790a5adfcc8d4a5a3', 'project_id': '38976d4dba56416790a5adfcc8d4a5a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30948767', 'ctest-vn4-05933641'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-03-06 13:13:52,161 - DEBUG - Response for create_subnet : {'subnet': {'id': 'acfca042-29bd-4130-a6f3-d00c23f6e963', 'name': '', 'tenant_id': '38976d4dba56416790a5adfcc8d4a5a3', 'network_id': '27ea8fa1-38a6-4c1f-989c-2a84b33b7035', 'ip_version': 4, 'cidr': '51.202.12.128/26', 'allocation_pools': [{'start': '51.202.12.130', 'end': '51.202.12.190'}], 'gateway_ip': '51.202.12.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-03-06T13:13:52.054837', 'updated_at': '2026-03-06T13:13:52.054837', 'dns_server_address': '51.202.12.130', 'tags': [], 'project_id': '38976d4dba56416790a5adfcc8d4a5a3'}} 2026-03-06 13:13:52,422 - DEBUG - Response for create_subnet : {'subnet': {'id': '5c0f73d8-2251-4f7c-96aa-fb04d7e68de7', 'name': '', 'tenant_id': '38976d4dba56416790a5adfcc8d4a5a3', 'network_id': '27ea8fa1-38a6-4c1f-989c-2a84b33b7035', 'ip_version': 6, 'cidr': '350a:84e2:3c87:d614:1c9f:ed33::/96', 'allocation_pools': [{'start': '350a:84e2:3c87:d614:1c9f:ed33:0:2', 'end': '350a:84e2:3c87:d614:1c9f:ed33:ffff:fffe'}], 'gateway_ip': '350a:84e2:3c87:d614:1c9f:ed33:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-03-06T13:13:52.301952', 'updated_at': '2026-03-06T13:13:52.301952', 'dns_server_address': '350a:84e2:3c87:d614:1c9f:ed33:0:2', 'tags': [], 'project_id': '38976d4dba56416790a5adfcc8d4a5a3'}} 2026-03-06 13:13:52,495 - INFO - Created VN ctest-vn4-05933641 2026-03-06 13:13:52,552 - DEBUG - VN ctest-vn4-05933641 UUID is 27ea8fa1-38a6-4c1f-989c-2a84b33b7035 2026-03-06 13:13:53,037 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '27ea8fa1-38a6-4c1f-989c-2a84b33b7035', 'name': 'ctest-vn4-05933641', 'tenant_id': '38976d4dba56416790a5adfcc8d4a5a3', 'project_id': '38976d4dba56416790a5adfcc8d4a5a3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['acfca042-29bd-4130-a6f3-d00c23f6e963', '5c0f73d8-2251-4f7c-96aa-fb04d7e68de7'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30948767', 'ctest-vn4-05933641'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30948767', 'ctest-policy1-79689904']], 'subnet_ipam': [{'subnet_cidr': '51.202.12.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '350a:84e2:3c87:d614:1c9f:ed33::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-03-06T13:13:51.827569', 'updated_at': '2026-03-06T13:13:52.319096'}} 2026-03-06 13:13:53,220 - DEBUG - Requesting: https://10.0.0.41:8082/domains 2026-03-06 13:13:53,574 - DEBUG - Requesting: https://10.0.0.41:8082/domains 2026-03-06 13:13:53,668 - DEBUG - Requesting: https://10.0.0.41:8082/domain/18ce25eb-0c3f-4af5-9f79-0fc6a509b3f1 2026-03-06 13:13:53,729 - DEBUG - Requesting: https://10.0.0.41:8082/project/38976d4d-ba56-4167-90a5-adfcc8d4a5a3 2026-03-06 13:13:53,809 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/27ea8fa1-38a6-4c1f-989c-2a84b33b7035 2026-03-06 13:13:53,872 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/27ea8fa1-38a6-4c1f-989c-2a84b33b7035 2026-03-06 13:13:53,938 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/65b4a550-e67a-4a7f-98c0-7566ca736d6c 2026-03-06 13:13:53,993 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/65b4a550-e67a-4a7f-98c0-7566ca736d6c 2026-03-06 13:13:54,049 - DEBUG - Requesting: https://10.0.0.41:8082/route-target/b98ee7c7-9e50-47ab-8ee1-09ddedf29f92 2026-03-06 13:13:54,108 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-06 13:13:54,108 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/27ea8fa1-38a6-4c1f-989c-2a84b33b7035 2026-03-06 13:13:54,167 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/65b4a550-e67a-4a7f-98c0-7566ca736d6c 2026-03-06 13:13:54,238 - INFO - Verified VN network id 11 for VN 27ea8fa1-38a6-4c1f-989c-2a84b33b7035 2026-03-06 13:13:54,238 - INFO - Verifications in API Server for VN ctest-vn4-05933641 passed 2026-03-06 13:13:54,239 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/27ea8fa1-38a6-4c1f-989c-2a84b33b7035 2026-03-06 13:13:54,298 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/65b4a550-e67a-4a7f-98c0-7566ca736d6c 2026-03-06 13:13:54,353 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/65b4a550-e67a-4a7f-98c0-7566ca736d6c 2026-03-06 13:13:54,409 - DEBUG - Requesting: https://10.0.0.41:8082/route-target/b98ee7c7-9e50-47ab-8ee1-09ddedf29f92 2026-03-06 13:13:54,517 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-30948767:ctest-vn4-05933641', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30948767', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2876269234632412191', 'uuid-lslong': '10996711139562975285'}, 'enable': 'true', 'created': '2026-03-06T13:13:51', 'last-modified': '2026-03-06T13:13:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.520644'} 2026-03-06 13:13:54,570 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-06 13:13:54,570 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05933641 passed 2026-03-06 13:13:54,570 - DEBUG - ====Verifying policy data for ctest-vn4-05933641 in API_Server ====== 2026-03-06 13:13:54,570 - DEBUG - Requesting: https://10.0.0.41:8082/domains 2026-03-06 13:13:54,624 - DEBUG - Requesting: https://10.0.0.41:8082/domain/18ce25eb-0c3f-4af5-9f79-0fc6a509b3f1 2026-03-06 13:13:54,685 - DEBUG - Requesting: https://10.0.0.41:8082/project/38976d4d-ba56-4167-90a5-adfcc8d4a5a3 2026-03-06 13:13:54,773 - DEBUG - Requesting: https://10.0.0.41:8082/virtual-network/27ea8fa1-38a6-4c1f-989c-2a84b33b7035 2026-03-06 13:13:54,838 - DEBUG - ==>Verifying data for policy with id: 9e1aea0a-8903-4adb-9b0d-1818ec11ee46, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30948767', 'ctest-policy1-79689904'] 2026-03-06 13:13:54,838 - INFO - VN ctest-vn4-05933641 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-06 13:13:54,838 - DEBUG - Verifying the vn in opserver 2026-03-06 13:13:54,838 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-30948767:ctest-vn4-05933641 virtual network link through opserver 10.0.0.41 2026-03-06 13:13:54,838 - DEBUG - Requesting: https://10.0.0.41:8081/analytics/uves/virtual-networks 2026-03-06 13:13:55,182 - DEBUG - Requesting: https://10.0.0.41:8081/analytics/uves/virtual-networks 2026-03-06 13:13:55,304 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-30948767:ctest-vn4-05933641', 'href': 'https://10.0.0.41:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-30948767:ctest-vn4-05933641?flat'} 2026-03-06 13:13:55,304 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-30948767:ctest-vn4-05933641 is found in opserver 2026-03-06 13:13:55,405 - DEBUG - Do not have enough data to verify VN in agent 2026-03-06 13:13:55,457 - DEBUG - VRF ids for VN ctest-vn4-05933641: {} 2026-03-06 13:13:55,457 - DEBUG - ====Verifying data for ctest-policy1-79689904 in API_Server ====== 2026-03-06 13:13:55,457 - DEBUG - Requesting: https://10.0.0.41:8082/domains 2026-03-06 13:13:55,512 - DEBUG - Requesting: https://10.0.0.41:8082/domain/18ce25eb-0c3f-4af5-9f79-0fc6a509b3f1 2026-03-06 13:13:55,573 - DEBUG - Requesting: https://10.0.0.41:8082/project/38976d4d-ba56-4167-90a5-adfcc8d4a5a3 2026-03-06 13:13:55,657 - DEBUG - Requesting: https://10.0.0.41:8082/network-policy/9e1aea0a-8903-4adb-9b0d-1818ec11ee46 2026-03-06 13:13:55,715 - INFO - Verified policy ctest-policy1-79689904 in API Server, Result: True 2026-03-06 13:13:55,716 - INFO - Done with setup and verification, moving onto test .. 2026-03-06 13:13:55,727 - INFO - Deleting VN ctest-vn4-05933641 2026-03-06 13:13:55,936 - DEBUG - Response for deleting network () 2026-03-06 13:13:55,936 - DEBUG - Requesting: https://10.0.0.41:8082/routing-instance/65b4a550-e67a-4a7f-98c0-7566ca736d6c 2026-03-06 13:13:55,988 - DEBUG - Response Code: 404 2026-03-06 13:13:55,988 - DEBUG - Requesting: https://10.0.0.41:8082/domains 2026-03-06 13:13:56,040 - DEBUG - Requesting: https://10.0.0.41:8082/domain/18ce25eb-0c3f-4af5-9f79-0fc6a509b3f1 2026-03-06 13:13:56,096 - DEBUG - Requesting: https://10.0.0.41:8082/project/38976d4d-ba56-4167-90a5-adfcc8d4a5a3 2026-03-06 13:13:56,181 - INFO - Validated that VN ctest-vn4-05933641 is not found in API Server 2026-03-06 13:13:56,284 - DEBUG - VN ctest-vn4-05933641 is not present in Agent 10.0.0.41 2026-03-06 13:13:56,284 - INFO - Validated that VN ctest-vn4-05933641 is not in any agent 2026-03-06 13:13:56,440 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05933641 info 2026-03-06 13:13:56,483 - INFO - Deleted policy ctest-policy1-79689904 2026-03-06 13:13:56,667 - DEBUG - policy ctest-policy1-79689904 is not found in API Server 2026-03-06 13:13:57,065 - DEBUG - No XMPP flaps were noticed during the test