2026-02-23 02:00:30,548 - INFO - Domain Default found not creating 2026-02-23 02:00:30,739 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35305848 not found, creating it 2026-02-23 02:00:31,222 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35305848, ID : f037ab39-1fc5-4a48-bf64-03ea455fe9b8 2026-02-23 02:00:32,788 - INFO - ================================================================================ 2026-02-23 02:00:32,788 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-23 02:00:33,057 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with 2026-02-23 02:00:33,057 - INFO - Initial checks done. Running the testcase now 2026-02-23 02:00:33,057 - INFO - 2026-02-23 02:00:33,057 - INFO - ================================================================================ 2026-02-23 02:00:33,057 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-23 02:00:33,057 - 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-23 02:00:33,340 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with 2026-02-23 02:00:33,340 - INFO - Initial checks done. Running the testcase now 2026-02-23 02:00:33,340 - INFO - 2026-02-23 02:00:33,700 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35305848:ctest-vn4-55655446, 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-35305848:ctest-vn4-55655446, 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-35305848:ctest-vn4-55655446, 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-35305848:ctest-vn4-55655446, 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-23 02:00:34,228 - DEBUG - Response for create_network : {'network': {'id': 'da757060-a7da-4068-b7c3-14fb8cbc220e', 'name': 'ctest-vn4-55655446', 'tenant_id': 'f037ab391fc54a48bf6403ea455fe9b8', 'project_id': 'f037ab391fc54a48bf6403ea455fe9b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35305848', 'ctest-vn4-55655446'], 'port_security_enabled': True, 'description': ''}} 2026-02-23 02:00:34,408 - DEBUG - Response for create_subnet : {'subnet': {'id': '47127f20-4da4-4a00-b00c-9f287def5156', 'name': '', 'tenant_id': 'f037ab391fc54a48bf6403ea455fe9b8', 'network_id': 'da757060-a7da-4068-b7c3-14fb8cbc220e', 'ip_version': 4, 'cidr': '199.219.248.64/26', 'allocation_pools': [{'start': '199.219.248.66', 'end': '199.219.248.126'}], 'gateway_ip': '199.219.248.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.219.248.66', 'tags': [], 'project_id': 'f037ab391fc54a48bf6403ea455fe9b8'}} 2026-02-23 02:00:34,552 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a7118bb0-34db-4c61-bba2-b8e628e98dd2', 'name': '', 'tenant_id': 'f037ab391fc54a48bf6403ea455fe9b8', 'network_id': 'da757060-a7da-4068-b7c3-14fb8cbc220e', 'ip_version': 6, 'cidr': '2a48:82e4:32b1:94bd:394f:24a5::/96', 'allocation_pools': [{'start': '2a48:82e4:32b1:94bd:394f:24a5:0:2', 'end': '2a48:82e4:32b1:94bd:394f:24a5:ffff:fffe'}], 'gateway_ip': '2a48:82e4:32b1:94bd:394f:24a5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a48:82e4:32b1:94bd:394f:24a5:0:2', 'tags': [], 'project_id': 'f037ab391fc54a48bf6403ea455fe9b8'}} 2026-02-23 02:00:34,572 - INFO - Created VN ctest-vn4-55655446 2026-02-23 02:00:34,628 - DEBUG - VN ctest-vn4-55655446 UUID is da757060-a7da-4068-b7c3-14fb8cbc220e 2026-02-23 02:00:34,840 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'da757060-a7da-4068-b7c3-14fb8cbc220e', 'name': 'ctest-vn4-55655446', 'tenant_id': 'f037ab391fc54a48bf6403ea455fe9b8', 'project_id': 'f037ab391fc54a48bf6403ea455fe9b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47127f20-4da4-4a00-b00c-9f287def5156', 'a7118bb0-34db-4c61-bba2-b8e628e98dd2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35305848', 'ctest-vn4-55655446'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35305848', 'ctest-policy1-49217945']], 'subnet_ipam': [{'subnet_cidr': '199.219.248.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a48:82e4:32b1:94bd:394f:24a5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-23 02:00:35,008 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-23 02:00:35,310 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-23 02:00:35,627 - DEBUG - Requesting: http://10.0.0.41:8082/domain/39e639d9-c827-4853-b1af-cd594887292a 2026-02-23 02:00:35,641 - DEBUG - Requesting: http://10.0.0.41:8082/project/f037ab39-1fc5-4a48-bf64-03ea455fe9b8 2026-02-23 02:00:35,721 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/da757060-a7da-4068-b7c3-14fb8cbc220e 2026-02-23 02:00:35,733 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/da757060-a7da-4068-b7c3-14fb8cbc220e 2026-02-23 02:00:35,742 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bd2c88b0-fe93-4b40-8396-722a6147a158 2026-02-23 02:00:35,750 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bd2c88b0-fe93-4b40-8396-722a6147a158 2026-02-23 02:00:35,757 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/0bb3d8a5-3f8b-4dc6-96fc-ea222c588e6d 2026-02-23 02:00:35,763 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 02:00:35,763 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/da757060-a7da-4068-b7c3-14fb8cbc220e 2026-02-23 02:00:35,773 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bd2c88b0-fe93-4b40-8396-722a6147a158 2026-02-23 02:00:35,787 - INFO - Verified VN network id 11 for VN da757060-a7da-4068-b7c3-14fb8cbc220e 2026-02-23 02:00:35,787 - INFO - Verifications in API Server for VN ctest-vn4-55655446 passed 2026-02-23 02:00:35,787 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/da757060-a7da-4068-b7c3-14fb8cbc220e 2026-02-23 02:00:35,798 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bd2c88b0-fe93-4b40-8396-722a6147a158 2026-02-23 02:00:35,807 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bd2c88b0-fe93-4b40-8396-722a6147a158 2026-02-23 02:00:35,815 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/0bb3d8a5-3f8b-4dc6-96fc-ea222c588e6d 2026-02-23 02:00:35,828 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35305848:ctest-vn4-55655446', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35305848', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15741611632978706536', 'uuid-lslong': '13241450400029876750'}, 'enable': 'true', 'created': '2026-02-23T02:00:34', 'last-modified': '2026-02-23T02:00:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014068'} 2026-02-23 02:00:35,835 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-23 02:00:35,835 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55655446 passed 2026-02-23 02:00:35,835 - DEBUG - ====Verifying policy data for ctest-vn4-55655446 in API_Server ====== 2026-02-23 02:00:35,835 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-23 02:00:35,841 - DEBUG - Requesting: http://10.0.0.41:8082/domain/39e639d9-c827-4853-b1af-cd594887292a 2026-02-23 02:00:35,852 - DEBUG - Requesting: http://10.0.0.41:8082/project/f037ab39-1fc5-4a48-bf64-03ea455fe9b8 2026-02-23 02:00:35,928 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/da757060-a7da-4068-b7c3-14fb8cbc220e 2026-02-23 02:00:35,938 - DEBUG - ==>Verifying data for policy with id: 8660daf8-ded9-4b6c-9233-8dc708250864, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35305848', 'ctest-policy1-49217945'] 2026-02-23 02:00:35,938 - INFO - VN ctest-vn4-55655446 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-23 02:00:35,938 - DEBUG - Verifying the vn in opserver 2026-02-23 02:00:35,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35305848:ctest-vn4-55655446 virtual network link through opserver 10.0.0.41 2026-02-23 02:00:35,938 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-02-23 02:00:36,277 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-02-23 02:00:36,369 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35305848:ctest-vn4-55655446', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35305848:ctest-vn4-55655446?flat'} 2026-02-23 02:00:36,369 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35305848:ctest-vn4-55655446 is found in opserver 2026-02-23 02:00:36,379 - DEBUG - Do not have enough data to verify VN in agent 2026-02-23 02:00:36,384 - DEBUG - VRF ids for VN ctest-vn4-55655446: {} 2026-02-23 02:00:36,384 - DEBUG - ====Verifying data for ctest-policy1-49217945 in API_Server ====== 2026-02-23 02:00:36,385 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-23 02:00:36,391 - DEBUG - Requesting: http://10.0.0.41:8082/domain/39e639d9-c827-4853-b1af-cd594887292a 2026-02-23 02:00:36,402 - DEBUG - Requesting: http://10.0.0.41:8082/project/f037ab39-1fc5-4a48-bf64-03ea455fe9b8 2026-02-23 02:00:36,477 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/8660daf8-ded9-4b6c-9233-8dc708250864 2026-02-23 02:00:36,488 - INFO - Verified policy ctest-policy1-49217945 in API Server, Result: True 2026-02-23 02:00:36,488 - INFO - Done with setup and verification, moving onto test .. 2026-02-23 02:00:36,496 - INFO - Deleting VN ctest-vn4-55655446 2026-02-23 02:00:36,623 - DEBUG - Response for deleting network () 2026-02-23 02:00:36,623 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bd2c88b0-fe93-4b40-8396-722a6147a158 2026-02-23 02:00:36,629 - DEBUG - Response Code: 404 2026-02-23 02:00:36,629 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-23 02:00:36,634 - DEBUG - Requesting: http://10.0.0.41:8082/domain/39e639d9-c827-4853-b1af-cd594887292a 2026-02-23 02:00:36,688 - DEBUG - Requesting: http://10.0.0.41:8082/project/f037ab39-1fc5-4a48-bf64-03ea455fe9b8 2026-02-23 02:00:36,760 - INFO - Validated that VN ctest-vn4-55655446 is not found in API Server 2026-02-23 02:00:36,771 - DEBUG - VN ctest-vn4-55655446 is not present in Agent 10.0.0.41 2026-02-23 02:00:36,771 - INFO - Validated that VN ctest-vn4-55655446 is not in any agent 2026-02-23 02:00:36,785 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55655446 info 2026-02-23 02:00:36,810 - INFO - Deleted policy ctest-policy1-49217945 2026-02-23 02:00:36,975 - DEBUG - policy ctest-policy1-49217945 is not found in API Server 2026-02-23 02:00:37,229 - DEBUG - No XMPP flaps were noticed during the test 2026-02-23 02:00:37,229 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-23 02:00:37,229 - INFO - -------------------------------------------------------------------------------- 2026-02-23 02:00:37,517 - DEBUG - No XMPP flaps were noticed during the test 2026-02-23 02:00:37,517 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-23 02:00:37,517 - INFO - -------------------------------------------------------------------------------- 2026-02-23 02:00:38,224 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-35305848, ID : f037ab39-1fc5-4a48-bf64-03ea455fe9b8