2026-10-01 06:40:55,956 - INFO - Domain Default found not creating 2026-10-01 06:40:56,135 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-42493115 not found, creating it 2026-10-01 06:40:56,638 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-42493115, ID : de0bf98b-2a98-4560-946e-2a3435a29242 2026-10-01 06:40:58,656 - INFO - ================================================================================ 2026-10-01 06:40:58,656 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-01 06:40:58,926 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-10-01 06:40:58,926 - INFO - Initial checks done. Running the testcase now 2026-10-01 06:40:58,926 - INFO - 2026-10-01 06:40:58,926 - INFO - ================================================================================ 2026-10-01 06:40:58,926 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-01 06:40:58,927 - 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-01 06:40:59,214 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-10-01 06:40:59,214 - INFO - Initial checks done. Running the testcase now 2026-10-01 06:40:59,214 - INFO - 2026-10-01 06:40:59,662 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42493115:ctest-vn4-81860958, 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-42493115:ctest-vn4-81860958, 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-42493115:ctest-vn4-81860958, 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-42493115:ctest-vn4-81860958, 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-01 06:41:00,241 - DEBUG - Response for create_network : {'network': {'id': '206cdd0e-eeec-4417-820f-2f7021967ad5', 'name': 'ctest-vn4-81860958', 'tenant_id': 'de0bf98b2a984560946e2a3435a29242', 'project_id': 'de0bf98b2a984560946e2a3435a29242', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42493115', 'ctest-vn4-81860958'], 'port_security_enabled': True, 'description': ''}} 2026-10-01 06:41:00,413 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c8a4c107-7a77-486e-bd9c-7f7b102ba2f7', 'name': '', 'tenant_id': 'de0bf98b2a984560946e2a3435a29242', 'network_id': '206cdd0e-eeec-4417-820f-2f7021967ad5', 'ip_version': 4, 'cidr': '73.19.102.192/26', 'allocation_pools': [{'start': '73.19.102.194', 'end': '73.19.102.254'}], 'gateway_ip': '73.19.102.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.19.102.194', 'tags': [], 'project_id': 'de0bf98b2a984560946e2a3435a29242'}} 2026-10-01 06:41:00,634 - DEBUG - Response for create_subnet : {'subnet': {'id': '66b12570-2d03-45e1-a632-1cf07d8c6670', 'name': '', 'tenant_id': 'de0bf98b2a984560946e2a3435a29242', 'network_id': '206cdd0e-eeec-4417-820f-2f7021967ad5', 'ip_version': 6, 'cidr': '3d0d:672d:5d8b:567:59ab:6780::/96', 'allocation_pools': [{'start': '3d0d:672d:5d8b:567:59ab:6780:0:2', 'end': '3d0d:672d:5d8b:567:59ab:6780:ffff:fffe'}], 'gateway_ip': '3d0d:672d:5d8b:567:59ab:6780:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d0d:672d:5d8b:567:59ab:6780:0:2', 'tags': [], 'project_id': 'de0bf98b2a984560946e2a3435a29242'}} 2026-10-01 06:41:00,656 - INFO - Created VN ctest-vn4-81860958 2026-10-01 06:41:00,709 - DEBUG - VN ctest-vn4-81860958 UUID is 206cdd0e-eeec-4417-820f-2f7021967ad5 2026-10-01 06:41:00,921 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '206cdd0e-eeec-4417-820f-2f7021967ad5', 'name': 'ctest-vn4-81860958', 'tenant_id': 'de0bf98b2a984560946e2a3435a29242', 'project_id': 'de0bf98b2a984560946e2a3435a29242', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['c8a4c107-7a77-486e-bd9c-7f7b102ba2f7', '66b12570-2d03-45e1-a632-1cf07d8c6670'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42493115', 'ctest-vn4-81860958'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42493115', 'ctest-policy1-40671562']], 'subnet_ipam': [{'subnet_cidr': '73.19.102.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d0d:672d:5d8b:567:59ab:6780::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-01 06:41:01,085 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-01 06:41:01,455 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-01 06:41:01,485 - DEBUG - Requesting: http://10.0.0.161:8082/domain/bf0642f3-7204-464b-80fa-ee5df683c7fe 2026-10-01 06:41:01,498 - DEBUG - Requesting: http://10.0.0.161:8082/project/de0bf98b-2a98-4560-946e-2a3435a29242 2026-10-01 06:41:01,583 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/206cdd0e-eeec-4417-820f-2f7021967ad5 2026-10-01 06:41:01,601 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/206cdd0e-eeec-4417-820f-2f7021967ad5 2026-10-01 06:41:01,615 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/ff9e8983-c9d0-487d-a88f-0f289530480b 2026-10-01 06:41:01,625 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/ff9e8983-c9d0-487d-a88f-0f289530480b 2026-10-01 06:41:01,634 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/3479ece8-afca-44c3-a1d8-392476da7c6b 2026-10-01 06:41:01,644 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-01 06:41:01,644 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/206cdd0e-eeec-4417-820f-2f7021967ad5 2026-10-01 06:41:01,655 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/ff9e8983-c9d0-487d-a88f-0f289530480b 2026-10-01 06:41:01,672 - INFO - Verified VN network id 11 for VN 206cdd0e-eeec-4417-820f-2f7021967ad5 2026-10-01 06:41:01,672 - INFO - Verifications in API Server for VN ctest-vn4-81860958 passed 2026-10-01 06:41:01,672 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/206cdd0e-eeec-4417-820f-2f7021967ad5 2026-10-01 06:41:01,684 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/ff9e8983-c9d0-487d-a88f-0f289530480b 2026-10-01 06:41:01,692 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/ff9e8983-c9d0-487d-a88f-0f289530480b 2026-10-01 06:41:01,702 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/3479ece8-afca-44c3-a1d8-392476da7c6b 2026-10-01 06:41:01,720 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42493115:ctest-vn4-81860958', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42493115', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2336485362906186775', 'uuid-lslong': '9371761508227644117'}, 'enable': 'true', 'created': '2026-10-01T06:41:00', 'last-modified': '2026-10-01T06:41:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.831333'} 2026-10-01 06:41:01,730 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-01 06:41:01,730 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-81860958 passed 2026-10-01 06:41:01,730 - DEBUG - ====Verifying policy data for ctest-vn4-81860958 in API_Server ====== 2026-10-01 06:41:01,730 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-01 06:41:01,737 - DEBUG - Requesting: http://10.0.0.161:8082/domain/bf0642f3-7204-464b-80fa-ee5df683c7fe 2026-10-01 06:41:01,751 - DEBUG - Requesting: http://10.0.0.161:8082/project/de0bf98b-2a98-4560-946e-2a3435a29242 2026-10-01 06:41:01,830 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/206cdd0e-eeec-4417-820f-2f7021967ad5 2026-10-01 06:41:01,841 - DEBUG - ==>Verifying data for policy with id: 7b8657bc-fd80-4950-a137-6bf836559119, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42493115', 'ctest-policy1-40671562'] 2026-10-01 06:41:01,841 - INFO - VN ctest-vn4-81860958 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-01 06:41:01,841 - DEBUG - Verifying the vn in opserver 2026-10-01 06:41:01,841 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42493115:ctest-vn4-81860958 virtual network link through opserver 10.0.0.161 2026-10-01 06:41:01,842 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-10-01 06:41:02,210 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-10-01 06:41:02,277 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42493115:ctest-vn4-81860958', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42493115:ctest-vn4-81860958?flat'} 2026-10-01 06:41:02,278 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42493115:ctest-vn4-81860958 is found in opserver 2026-10-01 06:41:02,292 - DEBUG - Do not have enough data to verify VN in agent 2026-10-01 06:41:02,299 - DEBUG - VRF ids for VN ctest-vn4-81860958: {} 2026-10-01 06:41:02,299 - DEBUG - ====Verifying data for ctest-policy1-40671562 in API_Server ====== 2026-10-01 06:41:02,299 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-01 06:41:02,307 - DEBUG - Requesting: http://10.0.0.161:8082/domain/bf0642f3-7204-464b-80fa-ee5df683c7fe 2026-10-01 06:41:02,322 - DEBUG - Requesting: http://10.0.0.161:8082/project/de0bf98b-2a98-4560-946e-2a3435a29242 2026-10-01 06:41:02,403 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/7b8657bc-fd80-4950-a137-6bf836559119 2026-10-01 06:41:02,414 - INFO - Verified policy ctest-policy1-40671562 in API Server, Result: True 2026-10-01 06:41:02,414 - INFO - Done with setup and verification, moving onto test .. 2026-10-01 06:41:02,424 - INFO - Deleting VN ctest-vn4-81860958 2026-10-01 06:41:02,560 - DEBUG - Response for deleting network () 2026-10-01 06:41:02,560 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/ff9e8983-c9d0-487d-a88f-0f289530480b 2026-10-01 06:41:02,567 - DEBUG - Response Code: 404 2026-10-01 06:41:02,567 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-10-01 06:41:02,574 - DEBUG - Requesting: http://10.0.0.161:8082/domain/bf0642f3-7204-464b-80fa-ee5df683c7fe 2026-10-01 06:41:02,630 - DEBUG - Requesting: http://10.0.0.161:8082/project/de0bf98b-2a98-4560-946e-2a3435a29242 2026-10-01 06:41:02,717 - INFO - Validated that VN ctest-vn4-81860958 is not found in API Server 2026-10-01 06:41:02,729 - DEBUG - VN ctest-vn4-81860958 is not present in Agent 10.0.0.161 2026-10-01 06:41:02,729 - INFO - Validated that VN ctest-vn4-81860958 is not in any agent 2026-10-01 06:41:02,750 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-81860958 info 2026-10-01 06:41:02,781 - INFO - Deleted policy ctest-policy1-40671562 2026-10-01 06:41:02,948 - DEBUG - policy ctest-policy1-40671562 is not found in API Server 2026-10-01 06:41:03,217 - DEBUG - No XMPP flaps were noticed during the test
2026-10-01 06:41:03,217 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-10-01 06:41:03,217 - INFO - -------------------------------------------------------------------------------- 2026-10-01 06:41:03,503 - DEBUG - No XMPP flaps were noticed during the test
2026-10-01 06:41:03,503 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-10-01 06:41:03,503 - INFO - -------------------------------------------------------------------------------- 2026-10-01 06:41:04,282 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-42493115, ID : de0bf98b-2a98-4560-946e-2a3435a29242