2026-04-30 02:13:00,313 - INFO - Reading existing Domain with UUID 54f544c9-c831-4d04-9bb9-e86845e32e36 2026-04-30 02:13:00,326 - INFO - Using existing domain ['admin_domain'](54f544c9-c831-4d04-9bb9-e86845e32e36) 2026-04-30 02:13:00,580 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06941095 not found, creating it 2026-04-30 02:13:01,205 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06941095, ID : 6535b194-c3f0-4f19-be4a-4ac015dd91f5 2026-04-30 02:13:03,242 - INFO - ================================================================================ 2026-04-30 02:13:03,242 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-30 02:13:03,662 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.0.0.27': '0'}} with 2026-04-30 02:13:03,662 - INFO - Initial checks done. Running the testcase now 2026-04-30 02:13:03,662 - INFO - 2026-04-30 02:13:03,662 - INFO - ================================================================================ 2026-04-30 02:13:03,662 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-30 02:13:03,662 - 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-04-30 02:13:04,054 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.0.0.27': '0'}} with 2026-04-30 02:13:04,054 - INFO - Initial checks done. Running the testcase now 2026-04-30 02:13:04,054 - INFO - 2026-04-30 02:13:04,479 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-06941095:ctest-vn4-56312656, 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-06941095:ctest-vn4-56312656, 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-06941095:ctest-vn4-56312656, 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-06941095:ctest-vn4-56312656, 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-04-30 02:13:05,258 - DEBUG - Response for create_network : {'network': {'id': '1fdf99d0-c684-43c3-8d3c-af9710fd6208', 'name': 'ctest-vn4-56312656', 'tenant_id': '6535b194c3f04f19be4a4ac015dd91f5', 'project_id': '6535b194c3f04f19be4a4ac015dd91f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06941095', 'ctest-vn4-56312656'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-04-30 02:13:05,498 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd02c03d4-f43f-4a37-bd4d-25dd22ca2244', 'name': '', 'tenant_id': '6535b194c3f04f19be4a4ac015dd91f5', 'network_id': '1fdf99d0-c684-43c3-8d3c-af9710fd6208', 'ip_version': 4, 'cidr': '44.39.160.0/26', 'allocation_pools': [{'start': '44.39.160.2', 'end': '44.39.160.62'}], 'gateway_ip': '44.39.160.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-04-30T02:13:05.386341', 'updated_at': '2026-04-30T02:13:05.386341', 'dns_server_address': '44.39.160.2', 'tags': [], 'project_id': '6535b194c3f04f19be4a4ac015dd91f5'}} 2026-04-30 02:13:05,710 - DEBUG - Response for create_subnet : {'subnet': {'id': '91317afd-5bc5-4999-b3fd-954731e179bb', 'name': '', 'tenant_id': '6535b194c3f04f19be4a4ac015dd91f5', 'network_id': '1fdf99d0-c684-43c3-8d3c-af9710fd6208', 'ip_version': 6, 'cidr': '38fc:6ab0:a386:a404:9911:6272::/96', 'allocation_pools': [{'start': '38fc:6ab0:a386:a404:9911:6272:0:2', 'end': '38fc:6ab0:a386:a404:9911:6272:ffff:fffe'}], 'gateway_ip': '38fc:6ab0:a386:a404:9911:6272:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-04-30T02:13:05.591112', 'updated_at': '2026-04-30T02:13:05.591112', 'dns_server_address': '38fc:6ab0:a386:a404:9911:6272:0:2', 'tags': [], 'project_id': '6535b194c3f04f19be4a4ac015dd91f5'}} 2026-04-30 02:13:05,781 - INFO - Created VN ctest-vn4-56312656 2026-04-30 02:13:05,845 - DEBUG - VN ctest-vn4-56312656 UUID is 1fdf99d0-c684-43c3-8d3c-af9710fd6208 2026-04-30 02:13:06,348 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1fdf99d0-c684-43c3-8d3c-af9710fd6208', 'name': 'ctest-vn4-56312656', 'tenant_id': '6535b194c3f04f19be4a4ac015dd91f5', 'project_id': '6535b194c3f04f19be4a4ac015dd91f5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d02c03d4-f43f-4a37-bd4d-25dd22ca2244', '91317afd-5bc5-4999-b3fd-954731e179bb'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06941095', 'ctest-vn4-56312656'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06941095', 'ctest-policy1-42905427']], 'subnet_ipam': [{'subnet_cidr': '44.39.160.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '38fc:6ab0:a386:a404:9911:6272::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-04-30T02:13:05.174065', 'updated_at': '2026-04-30T02:13:05.610124'}} 2026-04-30 02:13:06,537 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2026-04-30 02:13:06,892 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2026-04-30 02:13:06,977 - DEBUG - Requesting: https://10.0.0.27:8082/domain/54f544c9-c831-4d04-9bb9-e86845e32e36 2026-04-30 02:13:07,038 - DEBUG - Requesting: https://10.0.0.27:8082/project/6535b194-c3f0-4f19-be4a-4ac015dd91f5 2026-04-30 02:13:07,126 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/1fdf99d0-c684-43c3-8d3c-af9710fd6208 2026-04-30 02:13:07,185 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/1fdf99d0-c684-43c3-8d3c-af9710fd6208 2026-04-30 02:13:07,247 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/238c9715-e35d-42df-aa60-893c18c09d3b 2026-04-30 02:13:07,302 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/238c9715-e35d-42df-aa60-893c18c09d3b 2026-04-30 02:13:07,358 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/c42f2c36-8e97-4f72-ba80-258412320f6e 2026-04-30 02:13:07,414 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-30 02:13:07,414 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/1fdf99d0-c684-43c3-8d3c-af9710fd6208 2026-04-30 02:13:07,477 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/238c9715-e35d-42df-aa60-893c18c09d3b 2026-04-30 02:13:07,544 - INFO - Verified VN network id 11 for VN 1fdf99d0-c684-43c3-8d3c-af9710fd6208 2026-04-30 02:13:07,545 - INFO - Verifications in API Server for VN ctest-vn4-56312656 passed 2026-04-30 02:13:07,545 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/1fdf99d0-c684-43c3-8d3c-af9710fd6208 2026-04-30 02:13:07,609 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/238c9715-e35d-42df-aa60-893c18c09d3b 2026-04-30 02:13:07,670 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/238c9715-e35d-42df-aa60-893c18c09d3b 2026-04-30 02:13:07,734 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/c42f2c36-8e97-4f72-ba80-258412320f6e 2026-04-30 02:13:07,842 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-06941095:ctest-vn4-56312656', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06941095', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2296723456945046467', 'uuid-lslong': '10177202321310441992'}, 'enable': 'true', 'created': '2026-04-30T02:13:05', 'last-modified': '2026-04-30T02:13:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.542982'} 2026-04-30 02:13:07,899 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-30 02:13:07,899 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-56312656 passed 2026-04-30 02:13:07,899 - DEBUG - ====Verifying policy data for ctest-vn4-56312656 in API_Server ====== 2026-04-30 02:13:07,899 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2026-04-30 02:13:07,953 - DEBUG - Requesting: https://10.0.0.27:8082/domain/54f544c9-c831-4d04-9bb9-e86845e32e36 2026-04-30 02:13:08,018 - DEBUG - Requesting: https://10.0.0.27:8082/project/6535b194-c3f0-4f19-be4a-4ac015dd91f5 2026-04-30 02:13:08,106 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/1fdf99d0-c684-43c3-8d3c-af9710fd6208 2026-04-30 02:13:08,163 - DEBUG - ==>Verifying data for policy with id: 0433f4e8-56cf-4345-b20d-785f1141351e, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06941095', 'ctest-policy1-42905427'] 2026-04-30 02:13:08,164 - INFO - VN ctest-vn4-56312656 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-30 02:13:08,164 - DEBUG - Verifying the vn in opserver 2026-04-30 02:13:08,164 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-06941095:ctest-vn4-56312656 virtual network link through opserver 10.0.0.27 2026-04-30 02:13:08,164 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks 2026-04-30 02:13:08,513 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks 2026-04-30 02:13:08,634 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-06941095:ctest-vn4-56312656', 'href': 'https://10.0.0.27:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-06941095:ctest-vn4-56312656?flat'} 2026-04-30 02:13:08,634 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-06941095:ctest-vn4-56312656 is found in opserver 2026-04-30 02:13:08,733 - DEBUG - Do not have enough data to verify VN in agent 2026-04-30 02:13:08,789 - DEBUG - VRF ids for VN ctest-vn4-56312656: {} 2026-04-30 02:13:08,790 - DEBUG - ====Verifying data for ctest-policy1-42905427 in API_Server ====== 2026-04-30 02:13:08,790 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2026-04-30 02:13:08,845 - DEBUG - Requesting: https://10.0.0.27:8082/domain/54f544c9-c831-4d04-9bb9-e86845e32e36 2026-04-30 02:13:08,910 - DEBUG - Requesting: https://10.0.0.27:8082/project/6535b194-c3f0-4f19-be4a-4ac015dd91f5 2026-04-30 02:13:08,997 - DEBUG - Requesting: https://10.0.0.27:8082/network-policy/0433f4e8-56cf-4345-b20d-785f1141351e 2026-04-30 02:13:09,056 - INFO - Verified policy ctest-policy1-42905427 in API Server, Result: True 2026-04-30 02:13:09,056 - INFO - Done with setup and verification, moving onto test .. 2026-04-30 02:13:09,066 - INFO - Deleting VN ctest-vn4-56312656 2026-04-30 02:13:09,307 - DEBUG - Response for deleting network () 2026-04-30 02:13:09,307 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/238c9715-e35d-42df-aa60-893c18c09d3b 2026-04-30 02:13:09,361 - DEBUG - Response Code: 404 2026-04-30 02:13:09,361 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2026-04-30 02:13:09,417 - DEBUG - Requesting: https://10.0.0.27:8082/domain/54f544c9-c831-4d04-9bb9-e86845e32e36 2026-04-30 02:13:09,474 - DEBUG - Requesting: https://10.0.0.27:8082/project/6535b194-c3f0-4f19-be4a-4ac015dd91f5 2026-04-30 02:13:09,554 - INFO - Validated that VN ctest-vn4-56312656 is not found in API Server 2026-04-30 02:13:09,649 - DEBUG - VN ctest-vn4-56312656 is not present in Agent 10.0.0.27 2026-04-30 02:13:09,649 - INFO - Validated that VN ctest-vn4-56312656 is not in any agent 2026-04-30 02:13:09,802 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-56312656 info 2026-04-30 02:13:09,833 - INFO - Deleted policy ctest-policy1-42905427 2026-04-30 02:13:10,012 - DEBUG - policy ctest-policy1-42905427 is not found in API Server 2026-04-30 02:13:10,402 - DEBUG - No XMPP flaps were noticed during the test 2026-04-30 02:13:10,402 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-04-30 02:13:10,402 - INFO - -------------------------------------------------------------------------------- 2026-04-30 02:13:10,802 - DEBUG - No XMPP flaps were noticed during the test 2026-04-30 02:13:10,802 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-04-30 02:13:10,802 - INFO - -------------------------------------------------------------------------------- 2026-04-30 02:13:11,582 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-06941095, ID : 6535b194-c3f0-4f19-be4a-4ac015dd91f5