2026-06-17 12:47:01,825 - INFO - Domain Default found not creating 2026-06-17 12:47:02,002 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29737940 not found, creating it 2026-06-17 12:47:02,455 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29737940, ID : ebd15988-a427-4954-8bf7-35f808c5f48e 2026-06-17 12:47:04,306 - INFO - ================================================================================ 2026-06-17 12:47:04,306 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-17 12:47:04,564 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2026-06-17 12:47:04,564 - INFO - Initial checks done. Running the testcase now 2026-06-17 12:47:04,564 - INFO - 2026-06-17 12:47:04,564 - INFO - ================================================================================ 2026-06-17 12:47:04,564 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-17 12:47:04,564 - 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-06-17 12:47:04,855 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.14': '0'}} with 2026-06-17 12:47:04,855 - INFO - Initial checks done. Running the testcase now 2026-06-17 12:47:04,855 - INFO - 2026-06-17 12:47:05,203 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29737940:ctest-vn4-72372130, 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-29737940:ctest-vn4-72372130, 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-29737940:ctest-vn4-72372130, 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-29737940:ctest-vn4-72372130, 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-06-17 12:47:05,733 - DEBUG - Response for create_network : {'network': {'id': 'f48413ba-37b1-4263-a5d6-c92bd07dfb8a', 'name': 'ctest-vn4-72372130', 'tenant_id': 'ebd15988a42749548bf735f808c5f48e', 'project_id': 'ebd15988a42749548bf735f808c5f48e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29737940', 'ctest-vn4-72372130'], 'port_security_enabled': True, 'description': ''}} 2026-06-17 12:47:05,919 - DEBUG - Response for create_subnet : {'subnet': {'id': '908f4a36-505c-401c-b880-083f0200cd01', 'name': '', 'tenant_id': 'ebd15988a42749548bf735f808c5f48e', 'network_id': 'f48413ba-37b1-4263-a5d6-c92bd07dfb8a', 'ip_version': 4, 'cidr': '90.165.159.128/26', 'allocation_pools': [{'start': '90.165.159.130', 'end': '90.165.159.190'}], 'gateway_ip': '90.165.159.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.165.159.130', 'tags': [], 'project_id': 'ebd15988a42749548bf735f808c5f48e'}} 2026-06-17 12:47:06,093 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d77f186-d4f8-435c-aaab-a76e202c6cb8', 'name': '', 'tenant_id': 'ebd15988a42749548bf735f808c5f48e', 'network_id': 'f48413ba-37b1-4263-a5d6-c92bd07dfb8a', 'ip_version': 6, 'cidr': '3dd1:3cc7:197e:5dd0:dc0d:46c1::/96', 'allocation_pools': [{'start': '3dd1:3cc7:197e:5dd0:dc0d:46c1:0:2', 'end': '3dd1:3cc7:197e:5dd0:dc0d:46c1:ffff:fffe'}], 'gateway_ip': '3dd1:3cc7:197e:5dd0:dc0d:46c1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3dd1:3cc7:197e:5dd0:dc0d:46c1:0:2', 'tags': [], 'project_id': 'ebd15988a42749548bf735f808c5f48e'}} 2026-06-17 12:47:06,110 - INFO - Created VN ctest-vn4-72372130 2026-06-17 12:47:06,163 - DEBUG - VN ctest-vn4-72372130 UUID is f48413ba-37b1-4263-a5d6-c92bd07dfb8a 2026-06-17 12:47:06,358 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f48413ba-37b1-4263-a5d6-c92bd07dfb8a', 'name': 'ctest-vn4-72372130', 'tenant_id': 'ebd15988a42749548bf735f808c5f48e', 'project_id': 'ebd15988a42749548bf735f808c5f48e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['908f4a36-505c-401c-b880-083f0200cd01', '0d77f186-d4f8-435c-aaab-a76e202c6cb8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29737940', 'ctest-vn4-72372130'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29737940', 'ctest-policy1-68292175']], 'subnet_ipam': [{'subnet_cidr': '90.165.159.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3dd1:3cc7:197e:5dd0:dc0d:46c1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-17 12:47:06,523 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-17 12:47:06,844 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-17 12:47:06,874 - DEBUG - Requesting: http://10.0.0.19:8082/domain/092df93f-d3cb-4142-b010-2e86adaf872e 2026-06-17 12:47:06,885 - DEBUG - Requesting: http://10.0.0.19:8082/project/ebd15988-a427-4954-8bf7-35f808c5f48e 2026-06-17 12:47:06,956 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f48413ba-37b1-4263-a5d6-c92bd07dfb8a 2026-06-17 12:47:06,968 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f48413ba-37b1-4263-a5d6-c92bd07dfb8a 2026-06-17 12:47:06,976 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/378c623b-d952-4353-9d18-12540f4b40e6 2026-06-17 12:47:06,983 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/378c623b-d952-4353-9d18-12540f4b40e6 2026-06-17 12:47:06,989 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/38a1ea07-a3af-4e24-a047-df05e991dbd5 2026-06-17 12:47:06,994 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-17 12:47:06,995 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f48413ba-37b1-4263-a5d6-c92bd07dfb8a 2026-06-17 12:47:07,003 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/378c623b-d952-4353-9d18-12540f4b40e6 2026-06-17 12:47:07,016 - INFO - Verified VN network id 12 for VN f48413ba-37b1-4263-a5d6-c92bd07dfb8a 2026-06-17 12:47:07,016 - INFO - Verifications in API Server for VN ctest-vn4-72372130 passed 2026-06-17 12:47:07,016 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f48413ba-37b1-4263-a5d6-c92bd07dfb8a 2026-06-17 12:47:07,024 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/378c623b-d952-4353-9d18-12540f4b40e6 2026-06-17 12:47:07,029 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/378c623b-d952-4353-9d18-12540f4b40e6 2026-06-17 12:47:07,035 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/38a1ea07-a3af-4e24-a047-df05e991dbd5 2026-06-17 12:47:07,046 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29737940:ctest-vn4-72372130', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29737940', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17619229332699431523', 'uuid-lslong': '11949959851292883850'}, 'enable': 'true', 'created': '2026-06-17T12:47:05', 'last-modified': '2026-06-17T12:47:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.718499'} 2026-06-17 12:47:07,052 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-17 12:47:07,053 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-72372130 passed 2026-06-17 12:47:07,053 - DEBUG - ====Verifying policy data for ctest-vn4-72372130 in API_Server ====== 2026-06-17 12:47:07,054 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-17 12:47:07,059 - DEBUG - Requesting: http://10.0.0.19:8082/domain/092df93f-d3cb-4142-b010-2e86adaf872e 2026-06-17 12:47:07,070 - DEBUG - Requesting: http://10.0.0.19:8082/project/ebd15988-a427-4954-8bf7-35f808c5f48e 2026-06-17 12:47:07,144 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/f48413ba-37b1-4263-a5d6-c92bd07dfb8a 2026-06-17 12:47:07,154 - DEBUG - ==>Verifying data for policy with id: 1953a581-b38c-445c-8898-0ab17cbaf36a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29737940', 'ctest-policy1-68292175'] 2026-06-17 12:47:07,154 - INFO - VN ctest-vn4-72372130 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-17 12:47:07,154 - DEBUG - Verifying the vn in opserver 2026-06-17 12:47:07,154 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29737940:ctest-vn4-72372130 virtual network link through opserver 10.0.0.19 2026-06-17 12:47:07,154 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-06-17 12:47:07,479 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-06-17 12:47:07,525 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29737940:ctest-vn4-72372130', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29737940:ctest-vn4-72372130?flat'} 2026-06-17 12:47:07,525 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29737940:ctest-vn4-72372130 is found in opserver 2026-06-17 12:47:07,533 - DEBUG - Do not have enough data to verify VN in agent 2026-06-17 12:47:07,537 - DEBUG - VRF ids for VN ctest-vn4-72372130: {} 2026-06-17 12:47:07,538 - DEBUG - ====Verifying data for ctest-policy1-68292175 in API_Server ====== 2026-06-17 12:47:07,538 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-17 12:47:07,543 - DEBUG - Requesting: http://10.0.0.19:8082/domain/092df93f-d3cb-4142-b010-2e86adaf872e 2026-06-17 12:47:07,576 - DEBUG - Requesting: http://10.0.0.19:8082/project/ebd15988-a427-4954-8bf7-35f808c5f48e 2026-06-17 12:47:07,652 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/1953a581-b38c-445c-8898-0ab17cbaf36a 2026-06-17 12:47:07,660 - INFO - Verified policy ctest-policy1-68292175 in API Server, Result: True 2026-06-17 12:47:07,660 - INFO - Done with setup and verification, moving onto test .. 2026-06-17 12:47:07,668 - INFO - Deleting VN ctest-vn4-72372130 2026-06-17 12:47:07,794 - DEBUG - Response for deleting network () 2026-06-17 12:47:07,794 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/378c623b-d952-4353-9d18-12540f4b40e6 2026-06-17 12:47:07,798 - DEBUG - Response Code: 404 2026-06-17 12:47:07,798 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-06-17 12:47:07,803 - DEBUG - Requesting: http://10.0.0.19:8082/domain/092df93f-d3cb-4142-b010-2e86adaf872e 2026-06-17 12:47:07,856 - DEBUG - Requesting: http://10.0.0.19:8082/project/ebd15988-a427-4954-8bf7-35f808c5f48e 2026-06-17 12:47:07,925 - INFO - Validated that VN ctest-vn4-72372130 is not found in API Server 2026-06-17 12:47:07,935 - DEBUG - VN ctest-vn4-72372130 is not present in Agent 10.0.0.19 2026-06-17 12:47:07,935 - INFO - Validated that VN ctest-vn4-72372130 is not in any agent 2026-06-17 12:47:07,948 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-72372130 info 2026-06-17 12:47:07,975 - INFO - Deleted policy ctest-policy1-68292175 2026-06-17 12:47:08,139 - DEBUG - policy ctest-policy1-68292175 is not found in API Server 2026-06-17 12:47:08,391 - DEBUG - No XMPP flaps were noticed during the test