2026-02-13 15:52:02,115 - INFO - Domain Default found not creating 2026-02-13 15:52:02,288 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-60578979 not found, creating it 2026-02-13 15:52:02,816 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-60578979, ID : 5de363c6-dd55-401d-a617-843b4fd7c309 2026-02-13 15:52:04,436 - INFO - ================================================================================ 2026-02-13 15:52:04,436 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-13 15:52:04,694 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2026-02-13 15:52:04,694 - INFO - Initial checks done. Running the testcase now 2026-02-13 15:52:04,694 - INFO - 2026-02-13 15:52:04,694 - INFO - ================================================================================ 2026-02-13 15:52:04,694 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-13 15:52:04,694 - 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-13 15:52:04,980 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with 2026-02-13 15:52:04,980 - INFO - Initial checks done. Running the testcase now 2026-02-13 15:52:04,980 - INFO - 2026-02-13 15:52:05,376 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60578979:ctest-vn4-51241993, 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-60578979:ctest-vn4-51241993, 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-60578979:ctest-vn4-51241993, 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-60578979:ctest-vn4-51241993, 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-13 15:52:05,887 - DEBUG - Response for create_network : {'network': {'id': '525def81-3ea7-49ce-a2e8-0b5f7015a522', 'name': 'ctest-vn4-51241993', 'tenant_id': '5de363c6dd55401da617843b4fd7c309', 'project_id': '5de363c6dd55401da617843b4fd7c309', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60578979', 'ctest-vn4-51241993'], 'port_security_enabled': True, 'description': ''}} 2026-02-13 15:52:06,081 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d38e52b-62c4-4b40-aa38-4ba8079ac590', 'name': '', 'tenant_id': '5de363c6dd55401da617843b4fd7c309', 'network_id': '525def81-3ea7-49ce-a2e8-0b5f7015a522', 'ip_version': 4, 'cidr': '23.47.174.0/26', 'allocation_pools': [{'start': '23.47.174.2', 'end': '23.47.174.62'}], 'gateway_ip': '23.47.174.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.47.174.2', 'tags': [], 'project_id': '5de363c6dd55401da617843b4fd7c309'}} 2026-02-13 15:52:06,264 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e7b4cc4f-0792-4b12-89a7-9e6e995d2d6a', 'name': '', 'tenant_id': '5de363c6dd55401da617843b4fd7c309', 'network_id': '525def81-3ea7-49ce-a2e8-0b5f7015a522', 'ip_version': 6, 'cidr': '29a0:6c63:31f6:eb18:6211:937b::/96', 'allocation_pools': [{'start': '29a0:6c63:31f6:eb18:6211:937b:0:2', 'end': '29a0:6c63:31f6:eb18:6211:937b:ffff:fffe'}], 'gateway_ip': '29a0:6c63:31f6:eb18:6211:937b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29a0:6c63:31f6:eb18:6211:937b:0:2', 'tags': [], 'project_id': '5de363c6dd55401da617843b4fd7c309'}} 2026-02-13 15:52:06,293 - INFO - Created VN ctest-vn4-51241993 2026-02-13 15:52:06,347 - DEBUG - VN ctest-vn4-51241993 UUID is 525def81-3ea7-49ce-a2e8-0b5f7015a522 2026-02-13 15:52:06,551 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '525def81-3ea7-49ce-a2e8-0b5f7015a522', 'name': 'ctest-vn4-51241993', 'tenant_id': '5de363c6dd55401da617843b4fd7c309', 'project_id': '5de363c6dd55401da617843b4fd7c309', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d38e52b-62c4-4b40-aa38-4ba8079ac590', 'e7b4cc4f-0792-4b12-89a7-9e6e995d2d6a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60578979', 'ctest-vn4-51241993'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60578979', 'ctest-policy1-83997322']], 'subnet_ipam': [{'subnet_cidr': '23.47.174.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '29a0:6c63:31f6:eb18:6211:937b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-13 15:52:06,715 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-13 15:52:07,053 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-13 15:52:07,085 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a7a198eb-3549-4178-a90c-88c6afd240a2 2026-02-13 15:52:07,098 - DEBUG - Requesting: http://10.0.0.27:8082/project/5de363c6-dd55-401d-a617-843b4fd7c309 2026-02-13 15:52:07,176 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/525def81-3ea7-49ce-a2e8-0b5f7015a522 2026-02-13 15:52:07,188 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/525def81-3ea7-49ce-a2e8-0b5f7015a522 2026-02-13 15:52:07,197 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/59d76ccf-989c-4d8e-b5a2-c5d09222984e 2026-02-13 15:52:07,204 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/59d76ccf-989c-4d8e-b5a2-c5d09222984e 2026-02-13 15:52:07,211 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/351a3211-597c-4ed4-878c-6c80ea8df580 2026-02-13 15:52:07,217 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-13 15:52:07,217 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/525def81-3ea7-49ce-a2e8-0b5f7015a522 2026-02-13 15:52:07,226 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/59d76ccf-989c-4d8e-b5a2-c5d09222984e 2026-02-13 15:52:07,239 - INFO - Verified VN network id 9 for VN 525def81-3ea7-49ce-a2e8-0b5f7015a522 2026-02-13 15:52:07,239 - INFO - Verifications in API Server for VN ctest-vn4-51241993 passed 2026-02-13 15:52:07,239 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/525def81-3ea7-49ce-a2e8-0b5f7015a522 2026-02-13 15:52:07,247 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/59d76ccf-989c-4d8e-b5a2-c5d09222984e 2026-02-13 15:52:07,253 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/59d76ccf-989c-4d8e-b5a2-c5d09222984e 2026-02-13 15:52:07,258 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/351a3211-597c-4ed4-878c-6c80ea8df580 2026-02-13 15:52:07,272 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60578979:ctest-vn4-51241993', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-60578979', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5935163222325152206', 'uuid-lslong': '11738644933271463202'}, 'enable': 'true', 'created': '2026-02-13T15:52:05', 'last-modified': '2026-02-13T15:52:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.745369'} 2026-02-13 15:52:07,278 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-13 15:52:07,278 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-51241993 passed 2026-02-13 15:52:07,278 - DEBUG - ====Verifying policy data for ctest-vn4-51241993 in API_Server ====== 2026-02-13 15:52:07,279 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-13 15:52:07,285 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a7a198eb-3549-4178-a90c-88c6afd240a2 2026-02-13 15:52:07,297 - DEBUG - Requesting: http://10.0.0.27:8082/project/5de363c6-dd55-401d-a617-843b4fd7c309 2026-02-13 15:52:07,366 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/525def81-3ea7-49ce-a2e8-0b5f7015a522 2026-02-13 15:52:07,376 - DEBUG - ==>Verifying data for policy with id: 133d3024-d1cf-47c7-a9da-c069f7ec0286, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60578979', 'ctest-policy1-83997322'] 2026-02-13 15:52:07,376 - INFO - VN ctest-vn4-51241993 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-13 15:52:07,376 - DEBUG - Verifying the vn in opserver 2026-02-13 15:52:07,376 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60578979:ctest-vn4-51241993 virtual network link through opserver 10.0.0.27 2026-02-13 15:52:07,376 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-02-13 15:52:07,711 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-02-13 15:52:07,774 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60578979:ctest-vn4-51241993', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60578979:ctest-vn4-51241993?flat'} 2026-02-13 15:52:07,774 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60578979:ctest-vn4-51241993 is found in opserver 2026-02-13 15:52:07,784 - DEBUG - Do not have enough data to verify VN in agent 2026-02-13 15:52:07,789 - DEBUG - VRF ids for VN ctest-vn4-51241993: {} 2026-02-13 15:52:07,789 - DEBUG - ====Verifying data for ctest-policy1-83997322 in API_Server ====== 2026-02-13 15:52:07,789 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-13 15:52:07,795 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a7a198eb-3549-4178-a90c-88c6afd240a2 2026-02-13 15:52:07,805 - DEBUG - Requesting: http://10.0.0.27:8082/project/5de363c6-dd55-401d-a617-843b4fd7c309 2026-02-13 15:52:07,877 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/133d3024-d1cf-47c7-a9da-c069f7ec0286 2026-02-13 15:52:07,887 - INFO - Verified policy ctest-policy1-83997322 in API Server, Result: True 2026-02-13 15:52:07,887 - INFO - Done with setup and verification, moving onto test .. 2026-02-13 15:52:07,895 - INFO - Deleting VN ctest-vn4-51241993 2026-02-13 15:52:08,014 - DEBUG - Response for deleting network () 2026-02-13 15:52:08,014 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/59d76ccf-989c-4d8e-b5a2-c5d09222984e 2026-02-13 15:52:08,019 - DEBUG - Response Code: 404 2026-02-13 15:52:08,019 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-02-13 15:52:08,024 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a7a198eb-3549-4178-a90c-88c6afd240a2 2026-02-13 15:52:08,076 - DEBUG - Requesting: http://10.0.0.27:8082/project/5de363c6-dd55-401d-a617-843b4fd7c309 2026-02-13 15:52:08,149 - INFO - Validated that VN ctest-vn4-51241993 is not found in API Server 2026-02-13 15:52:08,159 - DEBUG - VN ctest-vn4-51241993 is not present in Agent 10.0.0.27 2026-02-13 15:52:08,159 - INFO - Validated that VN ctest-vn4-51241993 is not in any agent 2026-02-13 15:52:08,174 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-51241993 info 2026-02-13 15:52:08,209 - INFO - Deleted policy ctest-policy1-83997322 2026-02-13 15:52:08,375 - DEBUG - policy ctest-policy1-83997322 is not found in API Server 2026-02-13 15:52:08,629 - DEBUG - No XMPP flaps were noticed during the test 2026-02-13 15:52:08,629 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-13 15:52:08,629 - INFO - -------------------------------------------------------------------------------- 2026-02-13 15:52:08,920 - DEBUG - No XMPP flaps were noticed during the test 2026-02-13 15:52:08,920 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-13 15:52:08,920 - INFO - -------------------------------------------------------------------------------- 2026-02-13 15:52:09,636 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-60578979, ID : 5de363c6-dd55-401d-a617-843b4fd7c309