2026-02-02 08:07:22,092 - INFO - Reading existing Domain with UUID a2db6585-9c32-4c36-b884-93ce8d9f9858 2026-02-02 08:07:22,105 - INFO - Using existing domain ['admin_domain'](a2db6585-9c32-4c36-b884-93ce8d9f9858) 2026-02-02 08:07:22,344 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-50670426 not found, creating it 2026-02-02 08:07:22,975 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-50670426, ID : e8b1c1bb-cb0d-41f7-8b9c-88349f4b79f4 2026-02-02 08:07:24,953 - INFO - ================================================================================ 2026-02-02 08:07:24,953 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 08:07:25,346 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.0.0.22': '0'}} with 2026-02-02 08:07:25,346 - INFO - Initial checks done. Running the testcase now 2026-02-02 08:07:25,346 - INFO - 2026-02-02 08:07:25,346 - INFO - ================================================================================ 2026-02-02 08:07:25,346 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 08:07:25,346 - 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-02 08:07:25,746 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.0.0.22': '0'}} with 2026-02-02 08:07:25,746 - INFO - Initial checks done. Running the testcase now 2026-02-02 08:07:25,746 - INFO - 2026-02-02 08:07:26,141 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-50670426:ctest-vn4-09745297, 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-50670426:ctest-vn4-09745297, 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-50670426:ctest-vn4-09745297, 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-50670426:ctest-vn4-09745297, 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-02 08:07:26,890 - DEBUG - Response for create_network : {'network': {'id': 'c5949d89-d8af-4d9c-98e9-6f92d32ff1f2', 'name': 'ctest-vn4-09745297', 'tenant_id': 'e8b1c1bbcb0d41f78b9c88349f4b79f4', 'project_id': 'e8b1c1bbcb0d41f78b9c88349f4b79f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50670426', 'ctest-vn4-09745297'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-02-02 08:07:27,158 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d395b95-a0d3-4069-8b76-4bd84b3bd649', 'name': '', 'tenant_id': 'e8b1c1bbcb0d41f78b9c88349f4b79f4', 'network_id': 'c5949d89-d8af-4d9c-98e9-6f92d32ff1f2', 'ip_version': 4, 'cidr': '14.14.157.128/26', 'allocation_pools': [{'start': '14.14.157.130', 'end': '14.14.157.190'}], 'gateway_ip': '14.14.157.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-02T08:07:27.054937', 'updated_at': '2026-02-02T08:07:27.054937', 'dns_server_address': '14.14.157.130', 'tags': [], 'project_id': 'e8b1c1bbcb0d41f78b9c88349f4b79f4'}} 2026-02-02 08:07:27,370 - DEBUG - Response for create_subnet : {'subnet': {'id': '75081ac5-1090-4df1-a59c-950f135271a5', 'name': '', 'tenant_id': 'e8b1c1bbcb0d41f78b9c88349f4b79f4', 'network_id': 'c5949d89-d8af-4d9c-98e9-6f92d32ff1f2', 'ip_version': 6, 'cidr': '3690:4e07:8f9:4f05:267a:3c10::/96', 'allocation_pools': [{'start': '3690:4e07:8f9:4f05:267a:3c10:0:2', 'end': '3690:4e07:8f9:4f05:267a:3c10:ffff:fffe'}], 'gateway_ip': '3690:4e07:8f9:4f05:267a:3c10:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-02T08:07:27.264506', 'updated_at': '2026-02-02T08:07:27.264506', 'dns_server_address': '3690:4e07:8f9:4f05:267a:3c10:0:2', 'tags': [], 'project_id': 'e8b1c1bbcb0d41f78b9c88349f4b79f4'}} 2026-02-02 08:07:27,439 - INFO - Created VN ctest-vn4-09745297 2026-02-02 08:07:27,497 - DEBUG - VN ctest-vn4-09745297 UUID is c5949d89-d8af-4d9c-98e9-6f92d32ff1f2 2026-02-02 08:07:27,981 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c5949d89-d8af-4d9c-98e9-6f92d32ff1f2', 'name': 'ctest-vn4-09745297', 'tenant_id': 'e8b1c1bbcb0d41f78b9c88349f4b79f4', 'project_id': 'e8b1c1bbcb0d41f78b9c88349f4b79f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d395b95-a0d3-4069-8b76-4bd84b3bd649', '75081ac5-1090-4df1-a59c-950f135271a5'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50670426', 'ctest-vn4-09745297'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50670426', 'ctest-policy1-39242083']], 'subnet_ipam': [{'subnet_cidr': '14.14.157.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3690:4e07:8f9:4f05:267a:3c10::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-02-02T08:07:26.814368', 'updated_at': '2026-02-02T08:07:27.281044'}} 2026-02-02 08:07:28,161 - DEBUG - Requesting: https://10.0.0.22:8082/domains 2026-02-02 08:07:28,503 - DEBUG - Requesting: https://10.0.0.22:8082/domains 2026-02-02 08:07:28,585 - DEBUG - Requesting: https://10.0.0.22:8082/domain/a2db6585-9c32-4c36-b884-93ce8d9f9858 2026-02-02 08:07:28,646 - DEBUG - Requesting: https://10.0.0.22:8082/project/e8b1c1bb-cb0d-41f7-8b9c-88349f4b79f4 2026-02-02 08:07:28,738 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/c5949d89-d8af-4d9c-98e9-6f92d32ff1f2 2026-02-02 08:07:28,801 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/c5949d89-d8af-4d9c-98e9-6f92d32ff1f2 2026-02-02 08:07:28,859 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/ccfe9fce-91f0-4f2e-92c4-2aeb0a2a8448 2026-02-02 08:07:28,913 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/ccfe9fce-91f0-4f2e-92c4-2aeb0a2a8448 2026-02-02 08:07:28,969 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/61f55471-0585-4068-bf6c-fde9e16aeb86 2026-02-02 08:07:29,027 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 08:07:29,027 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/c5949d89-d8af-4d9c-98e9-6f92d32ff1f2 2026-02-02 08:07:29,088 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/ccfe9fce-91f0-4f2e-92c4-2aeb0a2a8448 2026-02-02 08:07:29,155 - INFO - Verified VN network id 10 for VN c5949d89-d8af-4d9c-98e9-6f92d32ff1f2 2026-02-02 08:07:29,155 - INFO - Verifications in API Server for VN ctest-vn4-09745297 passed 2026-02-02 08:07:29,155 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/c5949d89-d8af-4d9c-98e9-6f92d32ff1f2 2026-02-02 08:07:29,212 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/ccfe9fce-91f0-4f2e-92c4-2aeb0a2a8448 2026-02-02 08:07:29,266 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/ccfe9fce-91f0-4f2e-92c4-2aeb0a2a8448 2026-02-02 08:07:29,321 - DEBUG - Requesting: https://10.0.0.22:8082/route-target/61f55471-0585-4068-bf6c-fde9e16aeb86 2026-02-02 08:07:29,434 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-50670426:ctest-vn4-09745297', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-50670426', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14237177537396428188', 'uuid-lslong': '11018460639737672178'}, 'enable': 'true', 'created': '2026-02-02T08:07:26', 'last-modified': '2026-02-02T08:07:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.494875'} 2026-02-02 08:07:29,487 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 08:07:29,487 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-09745297 passed 2026-02-02 08:07:29,487 - DEBUG - ====Verifying policy data for ctest-vn4-09745297 in API_Server ====== 2026-02-02 08:07:29,487 - DEBUG - Requesting: https://10.0.0.22:8082/domains 2026-02-02 08:07:29,541 - DEBUG - Requesting: https://10.0.0.22:8082/domain/a2db6585-9c32-4c36-b884-93ce8d9f9858 2026-02-02 08:07:29,598 - DEBUG - Requesting: https://10.0.0.22:8082/project/e8b1c1bb-cb0d-41f7-8b9c-88349f4b79f4 2026-02-02 08:07:29,678 - DEBUG - Requesting: https://10.0.0.22:8082/virtual-network/c5949d89-d8af-4d9c-98e9-6f92d32ff1f2 2026-02-02 08:07:29,736 - DEBUG - ==>Verifying data for policy with id: 600e50e8-0d62-4195-984e-abaadbb808e6, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50670426', 'ctest-policy1-39242083'] 2026-02-02 08:07:29,736 - INFO - VN ctest-vn4-09745297 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-02 08:07:29,737 - DEBUG - Verifying the vn in opserver 2026-02-02 08:07:29,737 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-50670426:ctest-vn4-09745297 virtual network link through opserver 10.0.0.22 2026-02-02 08:07:29,737 - DEBUG - Requesting: https://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-02 08:07:30,086 - DEBUG - Requesting: https://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-02 08:07:30,257 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-50670426:ctest-vn4-09745297', 'href': 'https://10.0.0.22:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-50670426:ctest-vn4-09745297?flat'} 2026-02-02 08:07:30,258 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-50670426:ctest-vn4-09745297 is found in opserver 2026-02-02 08:07:30,369 - DEBUG - Do not have enough data to verify VN in agent 2026-02-02 08:07:30,429 - DEBUG - VRF ids for VN ctest-vn4-09745297: {} 2026-02-02 08:07:30,430 - DEBUG - ====Verifying data for ctest-policy1-39242083 in API_Server ====== 2026-02-02 08:07:30,430 - DEBUG - Requesting: https://10.0.0.22:8082/domains 2026-02-02 08:07:30,485 - DEBUG - Requesting: https://10.0.0.22:8082/domain/a2db6585-9c32-4c36-b884-93ce8d9f9858 2026-02-02 08:07:30,549 - DEBUG - Requesting: https://10.0.0.22:8082/project/e8b1c1bb-cb0d-41f7-8b9c-88349f4b79f4 2026-02-02 08:07:30,642 - DEBUG - Requesting: https://10.0.0.22:8082/network-policy/600e50e8-0d62-4195-984e-abaadbb808e6 2026-02-02 08:07:30,700 - INFO - Verified policy ctest-policy1-39242083 in API Server, Result: True 2026-02-02 08:07:30,700 - INFO - Done with setup and verification, moving onto test .. 2026-02-02 08:07:30,711 - INFO - Deleting VN ctest-vn4-09745297 2026-02-02 08:07:30,916 - DEBUG - Response for deleting network () 2026-02-02 08:07:30,916 - DEBUG - Requesting: https://10.0.0.22:8082/routing-instance/ccfe9fce-91f0-4f2e-92c4-2aeb0a2a8448 2026-02-02 08:07:30,969 - DEBUG - Response Code: 404 2026-02-02 08:07:30,969 - DEBUG - Requesting: https://10.0.0.22:8082/domains 2026-02-02 08:07:31,021 - DEBUG - Requesting: https://10.0.0.22:8082/domain/a2db6585-9c32-4c36-b884-93ce8d9f9858 2026-02-02 08:07:31,081 - DEBUG - Requesting: https://10.0.0.22:8082/project/e8b1c1bb-cb0d-41f7-8b9c-88349f4b79f4 2026-02-02 08:07:31,163 - INFO - Validated that VN ctest-vn4-09745297 is not found in API Server 2026-02-02 08:07:31,265 - DEBUG - VN ctest-vn4-09745297 is not present in Agent 10.0.0.22 2026-02-02 08:07:31,265 - INFO - Validated that VN ctest-vn4-09745297 is not in any agent 2026-02-02 08:07:31,417 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-09745297 info 2026-02-02 08:07:31,451 - INFO - Deleted policy ctest-policy1-39242083 2026-02-02 08:07:31,628 - DEBUG - policy ctest-policy1-39242083 is not found in API Server 2026-02-02 08:07:32,050 - DEBUG - No XMPP flaps were noticed during the test
2026-02-02 08:07:32,051 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-02-02 08:07:32,051 - INFO - -------------------------------------------------------------------------------- 2026-02-02 08:07:32,470 - DEBUG - No XMPP flaps were noticed during the test
2026-02-02 08:07:32,470 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2026-02-02 08:07:32,470 - INFO - -------------------------------------------------------------------------------- 2026-02-02 08:07:33,469 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-50670426, ID : e8b1c1bb-cb0d-41f7-8b9c-88349f4b79f4