2026-02-10 18:10:44,704 - INFO - Domain Default found not creating 2026-02-10 18:10:44,874 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-50038367 not found, creating it 2026-02-10 18:10:45,341 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-50038367, ID : cbfacac6-ee39-4bf6-b795-a3c78af343cd 2026-02-10 18:10:46,883 - INFO - ================================================================================ 2026-02-10 18:10:46,883 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 18:10:47,139 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.18': '0'}} with 2026-02-10 18:10:47,139 - INFO - Initial checks done. Running the testcase now 2026-02-10 18:10:47,139 - INFO - 2026-02-10 18:10:47,139 - INFO - ================================================================================ 2026-02-10 18:10:47,139 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 18:10:47,139 - 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-02-10 18:10:47,432 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.18': '0'}} with 2026-02-10 18:10:47,432 - INFO - Initial checks done. Running the testcase now 2026-02-10 18:10:47,432 - INFO - 2026-02-10 18:10:47,781 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50038367:ctest-vn4-37906212, 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-50038367:ctest-vn4-37906212, 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-50038367:ctest-vn4-37906212, 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-50038367:ctest-vn4-37906212, 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-02-10 18:10:48,324 - DEBUG - Response for create_network : {'network': {'id': '17b178b0-1156-47e4-866d-14c4e952bf5a', 'name': 'ctest-vn4-37906212', 'tenant_id': 'cbfacac6ee394bf6b795a3c78af343cd', 'project_id': 'cbfacac6ee394bf6b795a3c78af343cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50038367', 'ctest-vn4-37906212'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 18:10:48,505 - DEBUG - Response for create_subnet : {'subnet': {'id': '373985d0-6543-410a-b5cf-e1b072585c2f', 'name': '', 'tenant_id': 'cbfacac6ee394bf6b795a3c78af343cd', 'network_id': '17b178b0-1156-47e4-866d-14c4e952bf5a', 'ip_version': 4, 'cidr': '45.208.44.0/26', 'allocation_pools': [{'start': '45.208.44.2', 'end': '45.208.44.62'}], 'gateway_ip': '45.208.44.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.208.44.2', 'tags': [], 'project_id': 'cbfacac6ee394bf6b795a3c78af343cd'}} 2026-02-10 18:10:48,713 - DEBUG - Response for create_subnet : {'subnet': {'id': '11711d4e-6987-410f-8239-d338a3f5a44a', 'name': '', 'tenant_id': 'cbfacac6ee394bf6b795a3c78af343cd', 'network_id': '17b178b0-1156-47e4-866d-14c4e952bf5a', 'ip_version': 6, 'cidr': '2e9a:1147:4e33:f723:a74b:7a75::/96', 'allocation_pools': [{'start': '2e9a:1147:4e33:f723:a74b:7a75:0:2', 'end': '2e9a:1147:4e33:f723:a74b:7a75:ffff:fffe'}], 'gateway_ip': '2e9a:1147:4e33:f723:a74b:7a75:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e9a:1147:4e33:f723:a74b:7a75:0:2', 'tags': [], 'project_id': 'cbfacac6ee394bf6b795a3c78af343cd'}} 2026-02-10 18:10:48,733 - INFO - Created VN ctest-vn4-37906212 2026-02-10 18:10:48,786 - DEBUG - VN ctest-vn4-37906212 UUID is 17b178b0-1156-47e4-866d-14c4e952bf5a 2026-02-10 18:10:49,002 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '17b178b0-1156-47e4-866d-14c4e952bf5a', 'name': 'ctest-vn4-37906212', 'tenant_id': 'cbfacac6ee394bf6b795a3c78af343cd', 'project_id': 'cbfacac6ee394bf6b795a3c78af343cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['373985d0-6543-410a-b5cf-e1b072585c2f', '11711d4e-6987-410f-8239-d338a3f5a44a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50038367', 'ctest-vn4-37906212'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50038367', 'ctest-policy1-81651094']], 'subnet_ipam': [{'subnet_cidr': '45.208.44.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e9a:1147:4e33:f723:a74b:7a75::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 18:10:49,174 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 18:10:49,467 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 18:10:49,498 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b969c1c7-b83d-445c-9eb1-a57a80fd4d1b 2026-02-10 18:10:49,509 - DEBUG - Requesting: http://10.0.0.33:8082/project/cbfacac6-ee39-4bf6-b795-a3c78af343cd 2026-02-10 18:10:49,594 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/17b178b0-1156-47e4-866d-14c4e952bf5a 2026-02-10 18:10:49,606 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/17b178b0-1156-47e4-866d-14c4e952bf5a 2026-02-10 18:10:49,615 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/09e04e7a-0171-455b-a370-c3d99e9294b0 2026-02-10 18:10:49,622 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/09e04e7a-0171-455b-a370-c3d99e9294b0 2026-02-10 18:10:49,628 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9beefe42-b16e-4d43-bc4f-bc60eba06a85 2026-02-10 18:10:49,635 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 18:10:49,635 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/17b178b0-1156-47e4-866d-14c4e952bf5a 2026-02-10 18:10:49,643 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/09e04e7a-0171-455b-a370-c3d99e9294b0 2026-02-10 18:10:49,657 - INFO - Verified VN network id 12 for VN 17b178b0-1156-47e4-866d-14c4e952bf5a 2026-02-10 18:10:49,657 - INFO - Verifications in API Server for VN ctest-vn4-37906212 passed 2026-02-10 18:10:49,657 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/17b178b0-1156-47e4-866d-14c4e952bf5a 2026-02-10 18:10:49,666 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/09e04e7a-0171-455b-a370-c3d99e9294b0 2026-02-10 18:10:49,673 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/09e04e7a-0171-455b-a370-c3d99e9294b0 2026-02-10 18:10:49,680 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9beefe42-b16e-4d43-bc4f-bc60eba06a85 2026-02-10 18:10:49,692 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50038367:ctest-vn4-37906212', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-50038367', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1707278431350573028', 'uuid-lslong': '9686421209504464730'}, 'enable': 'true', 'created': '2026-02-10T18:10:48', 'last-modified': '2026-02-10T18:10:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.716440'} 2026-02-10 18:10:49,699 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 18:10:49,699 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-37906212 passed 2026-02-10 18:10:49,699 - DEBUG - ====Verifying policy data for ctest-vn4-37906212 in API_Server ====== 2026-02-10 18:10:49,699 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 18:10:49,704 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b969c1c7-b83d-445c-9eb1-a57a80fd4d1b 2026-02-10 18:10:49,714 - DEBUG - Requesting: http://10.0.0.33:8082/project/cbfacac6-ee39-4bf6-b795-a3c78af343cd 2026-02-10 18:10:49,784 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/17b178b0-1156-47e4-866d-14c4e952bf5a 2026-02-10 18:10:49,794 - DEBUG - ==>Verifying data for policy with id: e6c01e1b-dad7-4510-8491-593b5c4b3207, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50038367', 'ctest-policy1-81651094'] 2026-02-10 18:10:49,794 - INFO - VN ctest-vn4-37906212 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 18:10:49,794 - DEBUG - Verifying the vn in opserver 2026-02-10 18:10:49,794 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50038367:ctest-vn4-37906212 virtual network link through opserver 10.0.0.33 2026-02-10 18:10:49,794 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-10 18:10:50,084 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-10 18:10:50,145 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50038367:ctest-vn4-37906212', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50038367:ctest-vn4-37906212?flat'} 2026-02-10 18:10:50,145 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50038367:ctest-vn4-37906212 is found in opserver 2026-02-10 18:10:50,155 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 18:10:50,159 - DEBUG - VRF ids for VN ctest-vn4-37906212: {} 2026-02-10 18:10:50,159 - DEBUG - ====Verifying data for ctest-policy1-81651094 in API_Server ====== 2026-02-10 18:10:50,160 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 18:10:50,165 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b969c1c7-b83d-445c-9eb1-a57a80fd4d1b 2026-02-10 18:10:50,176 - DEBUG - Requesting: http://10.0.0.33:8082/project/cbfacac6-ee39-4bf6-b795-a3c78af343cd 2026-02-10 18:10:50,243 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/e6c01e1b-dad7-4510-8491-593b5c4b3207 2026-02-10 18:10:50,252 - INFO - Verified policy ctest-policy1-81651094 in API Server, Result: True 2026-02-10 18:10:50,252 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 18:10:50,260 - INFO - Deleting VN ctest-vn4-37906212 2026-02-10 18:10:50,385 - DEBUG - Response for deleting network () 2026-02-10 18:10:50,385 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/09e04e7a-0171-455b-a370-c3d99e9294b0 2026-02-10 18:10:50,390 - DEBUG - Response Code: 404 2026-02-10 18:10:50,390 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-10 18:10:50,396 - DEBUG - Requesting: http://10.0.0.33:8082/domain/b969c1c7-b83d-445c-9eb1-a57a80fd4d1b 2026-02-10 18:10:50,447 - DEBUG - Requesting: http://10.0.0.33:8082/project/cbfacac6-ee39-4bf6-b795-a3c78af343cd 2026-02-10 18:10:50,514 - INFO - Validated that VN ctest-vn4-37906212 is not found in API Server 2026-02-10 18:10:50,522 - DEBUG - VN ctest-vn4-37906212 is not present in Agent 10.0.0.33 2026-02-10 18:10:50,523 - INFO - Validated that VN ctest-vn4-37906212 is not in any agent 2026-02-10 18:10:50,536 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-37906212 info 2026-02-10 18:10:50,558 - INFO - Deleted policy ctest-policy1-81651094 2026-02-10 18:10:50,722 - DEBUG - policy ctest-policy1-81651094 is not found in API Server 2026-02-10 18:10:50,975 - DEBUG - No XMPP flaps were noticed during the test 2026-02-10 18:10:50,975 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-02-10 18:10:50,975 - INFO - -------------------------------------------------------------------------------- 2026-02-10 18:10:51,264 - DEBUG - No XMPP flaps were noticed during the test 2026-02-10 18:10:51,264 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-10 18:10:51,264 - INFO - -------------------------------------------------------------------------------- 2026-02-10 18:10:51,947 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-50038367, ID : cbfacac6-ee39-4bf6-b795-a3c78af343cd