2026-09-30 13:32:25,828 - INFO - Domain Default found not creating 2026-09-30 13:32:25,977 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-13571642 not found, creating it 2026-09-30 13:32:26,450 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-13571642, ID : 45f8815b-7a5a-4abb-827f-65c38bbed2ff 2026-09-30 13:32:27,921 - INFO - ================================================================================ 2026-09-30 13:32:27,921 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-30 13:32:28,178 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.29': '0'}} with 2026-09-30 13:32:28,178 - INFO - Initial checks done. Running the testcase now 2026-09-30 13:32:28,178 - INFO - 2026-09-30 13:32:28,178 - INFO - ================================================================================ 2026-09-30 13:32:28,178 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-30 13:32:28,178 - 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-09-30 13:32:28,464 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.29': '0'}} with 2026-09-30 13:32:28,464 - INFO - Initial checks done. Running the testcase now 2026-09-30 13:32:28,464 - INFO - 2026-09-30 13:32:28,855 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13571642:ctest-vn4-43060447, 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-13571642:ctest-vn4-43060447, 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-13571642:ctest-vn4-43060447, 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-13571642:ctest-vn4-43060447, 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-09-30 13:32:29,375 - DEBUG - Response for create_network : {'network': {'id': 'a6e322de-a920-466c-b84a-78ac1efcc95d', 'name': 'ctest-vn4-43060447', 'tenant_id': '45f8815b7a5a4abb827f65c38bbed2ff', 'project_id': '45f8815b7a5a4abb827f65c38bbed2ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13571642', 'ctest-vn4-43060447'], 'port_security_enabled': True, 'description': ''}} 2026-09-30 13:32:29,533 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ea5e687-1a23-4f56-bef5-d77e9840e385', 'name': '', 'tenant_id': '45f8815b7a5a4abb827f65c38bbed2ff', 'network_id': 'a6e322de-a920-466c-b84a-78ac1efcc95d', 'ip_version': 4, 'cidr': '121.13.78.192/26', 'allocation_pools': [{'start': '121.13.78.194', 'end': '121.13.78.254'}], 'gateway_ip': '121.13.78.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.13.78.194', 'tags': [], 'project_id': '45f8815b7a5a4abb827f65c38bbed2ff'}} 2026-09-30 13:32:29,711 - DEBUG - Response for create_subnet : {'subnet': {'id': '8e32467a-6ae2-4c32-82c9-93f900152ffc', 'name': '', 'tenant_id': '45f8815b7a5a4abb827f65c38bbed2ff', 'network_id': 'a6e322de-a920-466c-b84a-78ac1efcc95d', 'ip_version': 6, 'cidr': '34db:1723:4621:13e9:664:45d6::/96', 'allocation_pools': [{'start': '34db:1723:4621:13e9:664:45d6:0:2', 'end': '34db:1723:4621:13e9:664:45d6:ffff:fffe'}], 'gateway_ip': '34db:1723:4621:13e9:664:45d6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34db:1723:4621:13e9:664:45d6:0:2', 'tags': [], 'project_id': '45f8815b7a5a4abb827f65c38bbed2ff'}} 2026-09-30 13:32:29,729 - INFO - Created VN ctest-vn4-43060447 2026-09-30 13:32:29,780 - DEBUG - VN ctest-vn4-43060447 UUID is a6e322de-a920-466c-b84a-78ac1efcc95d 2026-09-30 13:32:29,966 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a6e322de-a920-466c-b84a-78ac1efcc95d', 'name': 'ctest-vn4-43060447', 'tenant_id': '45f8815b7a5a4abb827f65c38bbed2ff', 'project_id': '45f8815b7a5a4abb827f65c38bbed2ff', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['4ea5e687-1a23-4f56-bef5-d77e9840e385', '8e32467a-6ae2-4c32-82c9-93f900152ffc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13571642', 'ctest-vn4-43060447'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13571642', 'ctest-policy1-21667297']], 'subnet_ipam': [{'subnet_cidr': '121.13.78.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34db:1723:4621:13e9:664:45d6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-30 13:32:30,132 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-30 13:32:30,457 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-30 13:32:30,483 - DEBUG - Requesting: http://10.0.0.161:8082/domain/47341e43-0511-4f76-9ecd-df372f557a9b 2026-09-30 13:32:30,494 - DEBUG - Requesting: http://10.0.0.161:8082/project/45f8815b-7a5a-4abb-827f-65c38bbed2ff 2026-09-30 13:32:30,562 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/a6e322de-a920-466c-b84a-78ac1efcc95d 2026-09-30 13:32:30,574 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/a6e322de-a920-466c-b84a-78ac1efcc95d 2026-09-30 13:32:30,585 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/179c7ac1-1fd1-45fc-bea6-f5a78335e30d 2026-09-30 13:32:30,593 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/179c7ac1-1fd1-45fc-bea6-f5a78335e30d 2026-09-30 13:32:30,601 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/60d1cf50-50ca-4c8b-b503-768388212f56 2026-09-30 13:32:30,608 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-30 13:32:30,608 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/a6e322de-a920-466c-b84a-78ac1efcc95d 2026-09-30 13:32:30,619 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/179c7ac1-1fd1-45fc-bea6-f5a78335e30d 2026-09-30 13:32:30,634 - INFO - Verified VN network id 12 for VN a6e322de-a920-466c-b84a-78ac1efcc95d 2026-09-30 13:32:30,634 - INFO - Verifications in API Server for VN ctest-vn4-43060447 passed 2026-09-30 13:32:30,634 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/a6e322de-a920-466c-b84a-78ac1efcc95d 2026-09-30 13:32:30,644 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/179c7ac1-1fd1-45fc-bea6-f5a78335e30d 2026-09-30 13:32:30,651 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/179c7ac1-1fd1-45fc-bea6-f5a78335e30d 2026-09-30 13:32:30,657 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/60d1cf50-50ca-4c8b-b503-768388212f56 2026-09-30 13:32:30,669 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13571642:ctest-vn4-43060447', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-13571642', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12025493769724905068', 'uuid-lslong': '13279559131904919901'}, 'enable': 'true', 'created': '2026-09-30T13:32:29', 'last-modified': '2026-09-30T13:32:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722163'} 2026-09-30 13:32:30,675 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-30 13:32:30,675 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43060447 passed 2026-09-30 13:32:30,675 - DEBUG - ====Verifying policy data for ctest-vn4-43060447 in API_Server ====== 2026-09-30 13:32:30,675 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-30 13:32:30,681 - DEBUG - Requesting: http://10.0.0.161:8082/domain/47341e43-0511-4f76-9ecd-df372f557a9b 2026-09-30 13:32:30,691 - DEBUG - Requesting: http://10.0.0.161:8082/project/45f8815b-7a5a-4abb-827f-65c38bbed2ff 2026-09-30 13:32:30,765 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/a6e322de-a920-466c-b84a-78ac1efcc95d 2026-09-30 13:32:30,774 - DEBUG - ==>Verifying data for policy with id: 929bd67e-43b5-4891-8504-a5e289d5ffb1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13571642', 'ctest-policy1-21667297'] 2026-09-30 13:32:30,774 - INFO - VN ctest-vn4-43060447 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-30 13:32:30,774 - DEBUG - Verifying the vn in opserver 2026-09-30 13:32:30,774 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13571642:ctest-vn4-43060447 virtual network link through opserver 10.0.0.161 2026-09-30 13:32:30,774 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-09-30 13:32:31,091 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-09-30 13:32:31,140 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13571642:ctest-vn4-43060447', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13571642:ctest-vn4-43060447?flat'} 2026-09-30 13:32:31,140 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13571642:ctest-vn4-43060447 is found in opserver 2026-09-30 13:32:31,149 - DEBUG - Do not have enough data to verify VN in agent 2026-09-30 13:32:31,154 - DEBUG - VRF ids for VN ctest-vn4-43060447: {} 2026-09-30 13:32:31,154 - DEBUG - ====Verifying data for ctest-policy1-21667297 in API_Server ====== 2026-09-30 13:32:31,154 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-30 13:32:31,159 - DEBUG - Requesting: http://10.0.0.161:8082/domain/47341e43-0511-4f76-9ecd-df372f557a9b 2026-09-30 13:32:31,170 - DEBUG - Requesting: http://10.0.0.161:8082/project/45f8815b-7a5a-4abb-827f-65c38bbed2ff 2026-09-30 13:32:31,240 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/929bd67e-43b5-4891-8504-a5e289d5ffb1 2026-09-30 13:32:31,248 - INFO - Verified policy ctest-policy1-21667297 in API Server, Result: True 2026-09-30 13:32:31,248 - INFO - Done with setup and verification, moving onto test .. 2026-09-30 13:32:31,256 - INFO - Deleting VN ctest-vn4-43060447 2026-09-30 13:32:31,370 - DEBUG - Response for deleting network () 2026-09-30 13:32:31,371 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/179c7ac1-1fd1-45fc-bea6-f5a78335e30d 2026-09-30 13:32:31,375 - DEBUG - Response Code: 404 2026-09-30 13:32:31,375 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-30 13:32:31,380 - DEBUG - Requesting: http://10.0.0.161:8082/domain/47341e43-0511-4f76-9ecd-df372f557a9b 2026-09-30 13:32:31,432 - DEBUG - Requesting: http://10.0.0.161:8082/project/45f8815b-7a5a-4abb-827f-65c38bbed2ff 2026-09-30 13:32:31,502 - INFO - Validated that VN ctest-vn4-43060447 is not found in API Server 2026-09-30 13:32:31,512 - DEBUG - VN ctest-vn4-43060447 is not present in Agent 10.0.0.161 2026-09-30 13:32:31,512 - INFO - Validated that VN ctest-vn4-43060447 is not in any agent 2026-09-30 13:32:31,524 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43060447 info 2026-09-30 13:32:31,546 - INFO - Deleted policy ctest-policy1-21667297 2026-09-30 13:32:31,708 - DEBUG - policy ctest-policy1-21667297 is not found in API Server 2026-09-30 13:32:31,965 - DEBUG - No XMPP flaps were noticed during the test