2026-11-05 15:58:21,975 - INFO - Domain Default found not creating 2026-11-05 15:58:22,141 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-45931906 not found, creating it 2026-11-05 15:58:22,624 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-45931906, ID : 25137f03-8bb1-4d0d-a501-f7c5183a85ab 2026-11-05 15:58:24,345 - INFO - ================================================================================ 2026-11-05 15:58:24,346 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-05 15:58:24,604 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-11-05 15:58:24,604 - INFO - Initial checks done. Running the testcase now 2026-11-05 15:58:24,604 - INFO - 2026-11-05 15:58:24,604 - INFO - ================================================================================ 2026-11-05 15:58:24,604 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-05 15:58:24,604 - 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-11-05 15:58:24,891 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.25': '0'}} with 2026-11-05 15:58:24,891 - INFO - Initial checks done. Running the testcase now 2026-11-05 15:58:24,891 - INFO - 2026-11-05 15:58:25,309 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45931906:ctest-vn4-56931517, 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-45931906:ctest-vn4-56931517, 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-45931906:ctest-vn4-56931517, 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-45931906:ctest-vn4-56931517, 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-11-05 15:58:25,811 - DEBUG - Response for create_network : {'network': {'id': '173ec84b-f8c7-4c5d-a0fd-743cabcc620d', 'name': 'ctest-vn4-56931517', 'tenant_id': '25137f038bb14d0da501f7c5183a85ab', 'project_id': '25137f038bb14d0da501f7c5183a85ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45931906', 'ctest-vn4-56931517'], 'port_security_enabled': True, 'description': ''}} 2026-11-05 15:58:25,982 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cd7cf7a5-adfd-4750-937d-3d1f8874b544', 'name': '', 'tenant_id': '25137f038bb14d0da501f7c5183a85ab', 'network_id': '173ec84b-f8c7-4c5d-a0fd-743cabcc620d', 'ip_version': 4, 'cidr': '77.214.185.64/26', 'allocation_pools': [{'start': '77.214.185.66', 'end': '77.214.185.126'}], 'gateway_ip': '77.214.185.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.214.185.66', 'tags': [], 'project_id': '25137f038bb14d0da501f7c5183a85ab'}} 2026-11-05 15:58:26,158 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb7448bb-0a29-4868-8e52-e4ea591e3ca3', 'name': '', 'tenant_id': '25137f038bb14d0da501f7c5183a85ab', 'network_id': '173ec84b-f8c7-4c5d-a0fd-743cabcc620d', 'ip_version': 6, 'cidr': '2d60:7006:cafe:b151:2d01:6316::/96', 'allocation_pools': [{'start': '2d60:7006:cafe:b151:2d01:6316:0:2', 'end': '2d60:7006:cafe:b151:2d01:6316:ffff:fffe'}], 'gateway_ip': '2d60:7006:cafe:b151:2d01:6316:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d60:7006:cafe:b151:2d01:6316:0:2', 'tags': [], 'project_id': '25137f038bb14d0da501f7c5183a85ab'}} 2026-11-05 15:58:26,173 - INFO - Created VN ctest-vn4-56931517 2026-11-05 15:58:26,225 - DEBUG - VN ctest-vn4-56931517 UUID is 173ec84b-f8c7-4c5d-a0fd-743cabcc620d 2026-11-05 15:58:26,414 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '173ec84b-f8c7-4c5d-a0fd-743cabcc620d', 'name': 'ctest-vn4-56931517', 'tenant_id': '25137f038bb14d0da501f7c5183a85ab', 'project_id': '25137f038bb14d0da501f7c5183a85ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['cd7cf7a5-adfd-4750-937d-3d1f8874b544', 'bb7448bb-0a29-4868-8e52-e4ea591e3ca3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45931906', 'ctest-vn4-56931517'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45931906', 'ctest-policy1-34034316']], 'subnet_ipam': [{'subnet_cidr': '77.214.185.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d60:7006:cafe:b151:2d01:6316::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-05 15:58:26,570 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-05 15:58:26,936 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-05 15:58:26,962 - DEBUG - Requesting: http://10.0.0.161:8082/domain/c4ef23e1-032f-44cc-ad5a-c4ee94ff7d5b 2026-11-05 15:58:26,974 - DEBUG - Requesting: http://10.0.0.161:8082/project/25137f03-8bb1-4d0d-a501-f7c5183a85ab 2026-11-05 15:58:27,045 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/173ec84b-f8c7-4c5d-a0fd-743cabcc620d 2026-11-05 15:58:27,058 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/173ec84b-f8c7-4c5d-a0fd-743cabcc620d 2026-11-05 15:58:27,068 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/97c4fbd7-857e-49cd-bb20-0e0c19ffe08b 2026-11-05 15:58:27,074 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/97c4fbd7-857e-49cd-bb20-0e0c19ffe08b 2026-11-05 15:58:27,081 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/914c521d-e30b-45da-8f79-8df0f971b1a5 2026-11-05 15:58:27,086 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-05 15:58:27,086 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/173ec84b-f8c7-4c5d-a0fd-743cabcc620d 2026-11-05 15:58:27,095 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/97c4fbd7-857e-49cd-bb20-0e0c19ffe08b 2026-11-05 15:58:27,108 - INFO - Verified VN network id 12 for VN 173ec84b-f8c7-4c5d-a0fd-743cabcc620d 2026-11-05 15:58:27,108 - INFO - Verifications in API Server for VN ctest-vn4-56931517 passed 2026-11-05 15:58:27,108 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/173ec84b-f8c7-4c5d-a0fd-743cabcc620d 2026-11-05 15:58:27,117 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/97c4fbd7-857e-49cd-bb20-0e0c19ffe08b 2026-11-05 15:58:27,123 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/97c4fbd7-857e-49cd-bb20-0e0c19ffe08b 2026-11-05 15:58:27,129 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/914c521d-e30b-45da-8f79-8df0f971b1a5 2026-11-05 15:58:27,140 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45931906:ctest-vn4-56931517', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45931906', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1674996340050316381', 'uuid-lslong': '11600556019105423885'}, 'enable': 'true', 'created': '2026-11-05T15:58:25', 'last-modified': '2026-11-05T15:58:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.753495'} 2026-11-05 15:58:27,147 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-05 15:58:27,147 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-56931517 passed 2026-11-05 15:58:27,147 - DEBUG - ====Verifying policy data for ctest-vn4-56931517 in API_Server ====== 2026-11-05 15:58:27,147 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-05 15:58:27,152 - DEBUG - Requesting: http://10.0.0.161:8082/domain/c4ef23e1-032f-44cc-ad5a-c4ee94ff7d5b 2026-11-05 15:58:27,161 - DEBUG - Requesting: http://10.0.0.161:8082/project/25137f03-8bb1-4d0d-a501-f7c5183a85ab 2026-11-05 15:58:27,236 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/173ec84b-f8c7-4c5d-a0fd-743cabcc620d 2026-11-05 15:58:27,245 - DEBUG - ==>Verifying data for policy with id: 0f295091-2474-422e-b82b-0a8a4e6e326b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45931906', 'ctest-policy1-34034316'] 2026-11-05 15:58:27,246 - INFO - VN ctest-vn4-56931517 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-05 15:58:27,246 - DEBUG - Verifying the vn in opserver 2026-11-05 15:58:27,246 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45931906:ctest-vn4-56931517 virtual network link through opserver 10.0.0.161 2026-11-05 15:58:27,246 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-11-05 15:58:27,612 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-11-05 15:58:27,663 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45931906:ctest-vn4-56931517', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45931906:ctest-vn4-56931517?flat'} 2026-11-05 15:58:27,663 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45931906:ctest-vn4-56931517 is found in opserver 2026-11-05 15:58:27,676 - DEBUG - Do not have enough data to verify VN in agent 2026-11-05 15:58:27,682 - DEBUG - VRF ids for VN ctest-vn4-56931517: {} 2026-11-05 15:58:27,683 - DEBUG - ====Verifying data for ctest-policy1-34034316 in API_Server ====== 2026-11-05 15:58:27,683 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-05 15:58:27,689 - DEBUG - Requesting: http://10.0.0.161:8082/domain/c4ef23e1-032f-44cc-ad5a-c4ee94ff7d5b 2026-11-05 15:58:27,700 - DEBUG - Requesting: http://10.0.0.161:8082/project/25137f03-8bb1-4d0d-a501-f7c5183a85ab 2026-11-05 15:58:27,772 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/0f295091-2474-422e-b82b-0a8a4e6e326b 2026-11-05 15:58:27,781 - INFO - Verified policy ctest-policy1-34034316 in API Server, Result: True 2026-11-05 15:58:27,781 - INFO - Done with setup and verification, moving onto test .. 2026-11-05 15:58:27,788 - INFO - Deleting VN ctest-vn4-56931517 2026-11-05 15:58:27,911 - DEBUG - Response for deleting network () 2026-11-05 15:58:27,912 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/97c4fbd7-857e-49cd-bb20-0e0c19ffe08b 2026-11-05 15:58:27,916 - DEBUG - Response Code: 404 2026-11-05 15:58:27,916 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-05 15:58:27,920 - DEBUG - Requesting: http://10.0.0.161:8082/domain/c4ef23e1-032f-44cc-ad5a-c4ee94ff7d5b 2026-11-05 15:58:27,971 - DEBUG - Requesting: http://10.0.0.161:8082/project/25137f03-8bb1-4d0d-a501-f7c5183a85ab 2026-11-05 15:58:28,047 - INFO - Validated that VN ctest-vn4-56931517 is not found in API Server 2026-11-05 15:58:28,059 - DEBUG - VN ctest-vn4-56931517 is not present in Agent 10.0.0.161 2026-11-05 15:58:28,059 - INFO - Validated that VN ctest-vn4-56931517 is not in any agent 2026-11-05 15:58:28,076 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-56931517 info 2026-11-05 15:58:28,100 - INFO - Deleted policy ctest-policy1-34034316 2026-11-05 15:58:28,261 - DEBUG - policy ctest-policy1-34034316 is not found in API Server 2026-11-05 15:58:28,519 - DEBUG - No XMPP flaps were noticed during the test