2026-11-24 19:03:22,420 - INFO - Domain Default found not creating 2026-11-24 19:03:22,574 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-13762325 not found, creating it 2026-11-24 19:03:23,003 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-13762325, ID : 8fb6c8cd-12bd-4c77-b145-a4996e8cf3fc 2026-11-24 19:03:24,574 - INFO - ================================================================================ 2026-11-24 19:03:24,574 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-24 19:03:24,828 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.29': '0'}} with 2026-11-24 19:03:24,828 - INFO - Initial checks done. Running the testcase now 2026-11-24 19:03:24,828 - INFO - 2026-11-24 19:03:24,828 - INFO - ================================================================================ 2026-11-24 19:03:24,828 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-24 19:03:24,828 - 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-24 19:03:25,114 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.29': '0'}} with 2026-11-24 19:03:25,115 - INFO - Initial checks done. Running the testcase now 2026-11-24 19:03:25,115 - INFO - 2026-11-24 19:03:25,521 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13762325:ctest-vn4-11298992, 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-13762325:ctest-vn4-11298992, 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-13762325:ctest-vn4-11298992, 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-13762325:ctest-vn4-11298992, 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-24 19:03:26,293 - DEBUG - Response for create_network : {'network': {'id': '5eabaadf-42ba-41c3-88fa-2eb692cea896', 'name': 'ctest-vn4-11298992', 'tenant_id': '8fb6c8cd12bd4c77b145a4996e8cf3fc', 'project_id': '8fb6c8cd12bd4c77b145a4996e8cf3fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13762325', 'ctest-vn4-11298992'], 'port_security_enabled': True, 'description': ''}} 2026-11-24 19:03:26,470 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce73c897-2fe0-43c2-9f94-7bae347893e0', 'name': '', 'tenant_id': '8fb6c8cd12bd4c77b145a4996e8cf3fc', 'network_id': '5eabaadf-42ba-41c3-88fa-2eb692cea896', 'ip_version': 4, 'cidr': '6.210.179.64/26', 'allocation_pools': [{'start': '6.210.179.66', 'end': '6.210.179.126'}], 'gateway_ip': '6.210.179.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.210.179.66', 'tags': [], 'project_id': '8fb6c8cd12bd4c77b145a4996e8cf3fc'}} 2026-11-24 19:03:26,679 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ed5549ad-9549-44e1-a994-f223783f6176', 'name': '', 'tenant_id': '8fb6c8cd12bd4c77b145a4996e8cf3fc', 'network_id': '5eabaadf-42ba-41c3-88fa-2eb692cea896', 'ip_version': 6, 'cidr': '223c:715b:43a8:744c:21ad:90a::/96', 'allocation_pools': [{'start': '223c:715b:43a8:744c:21ad:90a:0:2', 'end': '223c:715b:43a8:744c:21ad:90a:ffff:fffe'}], 'gateway_ip': '223c:715b:43a8:744c:21ad:90a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223c:715b:43a8:744c:21ad:90a:0:2', 'tags': [], 'project_id': '8fb6c8cd12bd4c77b145a4996e8cf3fc'}} 2026-11-24 19:03:26,695 - INFO - Created VN ctest-vn4-11298992 2026-11-24 19:03:26,750 - DEBUG - VN ctest-vn4-11298992 UUID is 5eabaadf-42ba-41c3-88fa-2eb692cea896 2026-11-24 19:03:26,919 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5eabaadf-42ba-41c3-88fa-2eb692cea896', 'name': 'ctest-vn4-11298992', 'tenant_id': '8fb6c8cd12bd4c77b145a4996e8cf3fc', 'project_id': '8fb6c8cd12bd4c77b145a4996e8cf3fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['ce73c897-2fe0-43c2-9f94-7bae347893e0', 'ed5549ad-9549-44e1-a994-f223783f6176'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13762325', 'ctest-vn4-11298992'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13762325', 'ctest-policy1-47717539']], 'subnet_ipam': [{'subnet_cidr': '6.210.179.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '223c:715b:43a8:744c:21ad:90a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-24 19:03:27,078 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-24 19:03:27,436 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-24 19:03:27,459 - DEBUG - Requesting: http://10.0.0.161:8082/domain/d0d2e718-64c7-4d4f-a618-699040af3b1b 2026-11-24 19:03:27,471 - DEBUG - Requesting: http://10.0.0.161:8082/project/8fb6c8cd-12bd-4c77-b145-a4996e8cf3fc 2026-11-24 19:03:27,546 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/5eabaadf-42ba-41c3-88fa-2eb692cea896 2026-11-24 19:03:27,557 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/5eabaadf-42ba-41c3-88fa-2eb692cea896 2026-11-24 19:03:27,565 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/90359293-822b-4e9a-b16a-635a575d2d95 2026-11-24 19:03:27,571 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/90359293-822b-4e9a-b16a-635a575d2d95 2026-11-24 19:03:27,578 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/79269b89-c32d-4409-b04c-d3a3b86d2339 2026-11-24 19:03:27,584 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-24 19:03:27,584 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/5eabaadf-42ba-41c3-88fa-2eb692cea896 2026-11-24 19:03:27,593 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/90359293-822b-4e9a-b16a-635a575d2d95 2026-11-24 19:03:27,605 - INFO - Verified VN network id 12 for VN 5eabaadf-42ba-41c3-88fa-2eb692cea896 2026-11-24 19:03:27,605 - INFO - Verifications in API Server for VN ctest-vn4-11298992 passed 2026-11-24 19:03:27,606 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/5eabaadf-42ba-41c3-88fa-2eb692cea896 2026-11-24 19:03:27,614 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/90359293-822b-4e9a-b16a-635a575d2d95 2026-11-24 19:03:27,620 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/90359293-822b-4e9a-b16a-635a575d2d95 2026-11-24 19:03:27,626 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/79269b89-c32d-4409-b04c-d3a3b86d2339 2026-11-24 19:03:27,639 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13762325:ctest-vn4-11298992', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-13762325', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6821733936456679875', 'uuid-lslong': '9870252895017805974'}, 'enable': 'true', 'created': '2026-11-24T19:03:26', 'last-modified': '2026-11-24T19:03:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.730575'} 2026-11-24 19:03:27,646 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-24 19:03:27,647 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-11298992 passed 2026-11-24 19:03:27,647 - DEBUG - ====Verifying policy data for ctest-vn4-11298992 in API_Server ====== 2026-11-24 19:03:27,647 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-24 19:03:27,651 - DEBUG - Requesting: http://10.0.0.161:8082/domain/d0d2e718-64c7-4d4f-a618-699040af3b1b 2026-11-24 19:03:27,659 - DEBUG - Requesting: http://10.0.0.161:8082/project/8fb6c8cd-12bd-4c77-b145-a4996e8cf3fc 2026-11-24 19:03:27,732 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/5eabaadf-42ba-41c3-88fa-2eb692cea896 2026-11-24 19:03:27,743 - DEBUG - ==>Verifying data for policy with id: 16819753-91ea-4cfa-aac5-d61296cfa63c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-13762325', 'ctest-policy1-47717539'] 2026-11-24 19:03:27,743 - INFO - VN ctest-vn4-11298992 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-24 19:03:27,743 - DEBUG - Verifying the vn in opserver 2026-11-24 19:03:27,743 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13762325:ctest-vn4-11298992 virtual network link through opserver 10.0.0.161 2026-11-24 19:03:27,743 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-11-24 19:03:28,105 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-11-24 19:03:28,148 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13762325:ctest-vn4-11298992', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13762325:ctest-vn4-11298992?flat'} 2026-11-24 19:03:28,149 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-13762325:ctest-vn4-11298992 is found in opserver 2026-11-24 19:03:28,159 - DEBUG - Do not have enough data to verify VN in agent 2026-11-24 19:03:28,164 - DEBUG - VRF ids for VN ctest-vn4-11298992: {} 2026-11-24 19:03:28,164 - DEBUG - ====Verifying data for ctest-policy1-47717539 in API_Server ====== 2026-11-24 19:03:28,164 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-24 19:03:28,169 - DEBUG - Requesting: http://10.0.0.161:8082/domain/d0d2e718-64c7-4d4f-a618-699040af3b1b 2026-11-24 19:03:28,178 - DEBUG - Requesting: http://10.0.0.161:8082/project/8fb6c8cd-12bd-4c77-b145-a4996e8cf3fc 2026-11-24 19:03:28,251 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/16819753-91ea-4cfa-aac5-d61296cfa63c 2026-11-24 19:03:28,262 - INFO - Verified policy ctest-policy1-47717539 in API Server, Result: True 2026-11-24 19:03:28,262 - INFO - Done with setup and verification, moving onto test .. 2026-11-24 19:03:28,272 - INFO - Deleting VN ctest-vn4-11298992 2026-11-24 19:03:28,393 - DEBUG - Response for deleting network () 2026-11-24 19:03:28,393 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/90359293-822b-4e9a-b16a-635a575d2d95 2026-11-24 19:03:28,397 - DEBUG - Response Code: 404 2026-11-24 19:03:28,397 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-11-24 19:03:28,401 - DEBUG - Requesting: http://10.0.0.161:8082/domain/d0d2e718-64c7-4d4f-a618-699040af3b1b 2026-11-24 19:03:28,450 - DEBUG - Requesting: http://10.0.0.161:8082/project/8fb6c8cd-12bd-4c77-b145-a4996e8cf3fc 2026-11-24 19:03:28,519 - INFO - Validated that VN ctest-vn4-11298992 is not found in API Server 2026-11-24 19:03:28,528 - DEBUG - VN ctest-vn4-11298992 is not present in Agent 10.0.0.161 2026-11-24 19:03:28,528 - INFO - Validated that VN ctest-vn4-11298992 is not in any agent 2026-11-24 19:03:28,546 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-11298992 info 2026-11-24 19:03:28,568 - INFO - Deleted policy ctest-policy1-47717539 2026-11-24 19:03:28,730 - DEBUG - policy ctest-policy1-47717539 is not found in API Server 2026-11-24 19:03:28,987 - DEBUG - No XMPP flaps were noticed during the test 2026-11-24 19:03:28,987 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-24 19:03:28,987 - INFO - -------------------------------------------------------------------------------- 2026-11-24 19:03:29,311 - DEBUG - No XMPP flaps were noticed during the test 2026-11-24 19:03:29,311 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-11-24 19:03:29,311 - INFO - -------------------------------------------------------------------------------- 2026-11-24 19:03:30,072 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-13762325, ID : 8fb6c8cd-12bd-4c77-b145-a4996e8cf3fc