2026-05-28 02:03:31,162 - INFO - Domain Default found not creating 2026-05-28 02:03:31,335 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87057569 not found, creating it 2026-05-28 02:03:31,790 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87057569, ID : d8bb4bfa-b84d-4566-bb07-74c055cf33f4 2026-05-28 02:03:33,393 - INFO - ================================================================================ 2026-05-28 02:03:33,393 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-28 02:03:33,654 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.18': '0'}} with 2026-05-28 02:03:33,654 - INFO - Initial checks done. Running the testcase now 2026-05-28 02:03:33,654 - INFO - 2026-05-28 02:03:33,654 - INFO - ================================================================================ 2026-05-28 02:03:33,654 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-28 02:03:33,654 - 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-05-28 02:03:33,941 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.18': '0'}} with 2026-05-28 02:03:33,941 - INFO - Initial checks done. Running the testcase now 2026-05-28 02:03:33,941 - INFO - 2026-05-28 02:03:34,292 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87057569:ctest-vn4-60185752, 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-87057569:ctest-vn4-60185752, 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-87057569:ctest-vn4-60185752, 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-87057569:ctest-vn4-60185752, 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-05-28 02:03:34,798 - DEBUG - Response for create_network : {'network': {'id': 'b8b3c911-bf06-4f3c-ab31-a29004821438', 'name': 'ctest-vn4-60185752', 'tenant_id': 'd8bb4bfab84d4566bb0774c055cf33f4', 'project_id': 'd8bb4bfab84d4566bb0774c055cf33f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87057569', 'ctest-vn4-60185752'], 'port_security_enabled': True, 'description': ''}} 2026-05-28 02:03:34,968 - DEBUG - Response for create_subnet : {'subnet': {'id': '1557cebc-b5a4-4b24-9822-c1c3af43954b', 'name': '', 'tenant_id': 'd8bb4bfab84d4566bb0774c055cf33f4', 'network_id': 'b8b3c911-bf06-4f3c-ab31-a29004821438', 'ip_version': 4, 'cidr': '177.154.172.0/26', 'allocation_pools': [{'start': '177.154.172.2', 'end': '177.154.172.62'}], 'gateway_ip': '177.154.172.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.154.172.2', 'tags': [], 'project_id': 'd8bb4bfab84d4566bb0774c055cf33f4'}} 2026-05-28 02:03:35,117 - DEBUG - Response for create_subnet : {'subnet': {'id': '2475a20b-04ba-44ae-b695-c6d50500174b', 'name': '', 'tenant_id': 'd8bb4bfab84d4566bb0774c055cf33f4', 'network_id': 'b8b3c911-bf06-4f3c-ab31-a29004821438', 'ip_version': 6, 'cidr': '237a:646e:718:7f88:f2e5:33d2::/96', 'allocation_pools': [{'start': '237a:646e:718:7f88:f2e5:33d2:0:2', 'end': '237a:646e:718:7f88:f2e5:33d2:ffff:fffe'}], 'gateway_ip': '237a:646e:718:7f88:f2e5:33d2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '237a:646e:718:7f88:f2e5:33d2:0:2', 'tags': [], 'project_id': 'd8bb4bfab84d4566bb0774c055cf33f4'}} 2026-05-28 02:03:35,137 - INFO - Created VN ctest-vn4-60185752 2026-05-28 02:03:35,191 - DEBUG - VN ctest-vn4-60185752 UUID is b8b3c911-bf06-4f3c-ab31-a29004821438 2026-05-28 02:03:35,389 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8b3c911-bf06-4f3c-ab31-a29004821438', 'name': 'ctest-vn4-60185752', 'tenant_id': 'd8bb4bfab84d4566bb0774c055cf33f4', 'project_id': 'd8bb4bfab84d4566bb0774c055cf33f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1557cebc-b5a4-4b24-9822-c1c3af43954b', '2475a20b-04ba-44ae-b695-c6d50500174b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87057569', 'ctest-vn4-60185752'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87057569', 'ctest-policy1-86458602']], 'subnet_ipam': [{'subnet_cidr': '177.154.172.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '237a:646e:718:7f88:f2e5:33d2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-28 02:03:35,559 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-05-28 02:03:35,856 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-05-28 02:03:35,889 - DEBUG - Requesting: http://10.0.0.65:8082/domain/35f40dc4-ad20-4c6b-9ec4-ae6d5231740e 2026-05-28 02:03:35,901 - DEBUG - Requesting: http://10.0.0.65:8082/project/d8bb4bfa-b84d-4566-bb07-74c055cf33f4 2026-05-28 02:03:35,978 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b8b3c911-bf06-4f3c-ab31-a29004821438 2026-05-28 02:03:35,993 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b8b3c911-bf06-4f3c-ab31-a29004821438 2026-05-28 02:03:36,003 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2d16c716-a083-4b55-9225-51da71a1e95c 2026-05-28 02:03:36,010 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2d16c716-a083-4b55-9225-51da71a1e95c 2026-05-28 02:03:36,018 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/ef4381b4-4832-4c44-b9a4-85f9c9753be2 2026-05-28 02:03:36,025 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 02:03:36,025 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b8b3c911-bf06-4f3c-ab31-a29004821438 2026-05-28 02:03:36,036 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2d16c716-a083-4b55-9225-51da71a1e95c 2026-05-28 02:03:36,051 - INFO - Verified VN network id 11 for VN b8b3c911-bf06-4f3c-ab31-a29004821438 2026-05-28 02:03:36,051 - INFO - Verifications in API Server for VN ctest-vn4-60185752 passed 2026-05-28 02:03:36,051 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b8b3c911-bf06-4f3c-ab31-a29004821438 2026-05-28 02:03:36,061 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2d16c716-a083-4b55-9225-51da71a1e95c 2026-05-28 02:03:36,068 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2d16c716-a083-4b55-9225-51da71a1e95c 2026-05-28 02:03:36,074 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/ef4381b4-4832-4c44-b9a4-85f9c9753be2 2026-05-28 02:03:36,087 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87057569:ctest-vn4-60185752', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87057569', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13309202401866436412', 'uuid-lslong': '12335819593779123256'}, 'enable': 'true', 'created': '2026-05-28T02:03:34', 'last-modified': '2026-05-28T02:03:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.723516'} 2026-05-28 02:03:36,093 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 02:03:36,093 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-60185752 passed 2026-05-28 02:03:36,093 - DEBUG - ====Verifying policy data for ctest-vn4-60185752 in API_Server ====== 2026-05-28 02:03:36,093 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-05-28 02:03:36,098 - DEBUG - Requesting: http://10.0.0.65:8082/domain/35f40dc4-ad20-4c6b-9ec4-ae6d5231740e 2026-05-28 02:03:36,108 - DEBUG - Requesting: http://10.0.0.65:8082/project/d8bb4bfa-b84d-4566-bb07-74c055cf33f4 2026-05-28 02:03:36,176 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b8b3c911-bf06-4f3c-ab31-a29004821438 2026-05-28 02:03:36,186 - DEBUG - ==>Verifying data for policy with id: 3fb1ebde-a23c-404d-b22f-c43f23f98aa7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87057569', 'ctest-policy1-86458602'] 2026-05-28 02:03:36,186 - INFO - VN ctest-vn4-60185752 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-28 02:03:36,186 - DEBUG - Verifying the vn in opserver 2026-05-28 02:03:36,186 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87057569:ctest-vn4-60185752 virtual network link through opserver 10.0.0.65 2026-05-28 02:03:36,186 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-05-28 02:03:36,479 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-05-28 02:03:36,543 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87057569:ctest-vn4-60185752', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87057569:ctest-vn4-60185752?flat'} 2026-05-28 02:03:36,543 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87057569:ctest-vn4-60185752 is found in opserver 2026-05-28 02:03:36,552 - DEBUG - Do not have enough data to verify VN in agent 2026-05-28 02:03:36,557 - DEBUG - VRF ids for VN ctest-vn4-60185752: {} 2026-05-28 02:03:36,557 - DEBUG - ====Verifying data for ctest-policy1-86458602 in API_Server ====== 2026-05-28 02:03:36,557 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-05-28 02:03:36,562 - DEBUG - Requesting: http://10.0.0.65:8082/domain/35f40dc4-ad20-4c6b-9ec4-ae6d5231740e 2026-05-28 02:03:36,573 - DEBUG - Requesting: http://10.0.0.65:8082/project/d8bb4bfa-b84d-4566-bb07-74c055cf33f4 2026-05-28 02:03:36,647 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/3fb1ebde-a23c-404d-b22f-c43f23f98aa7 2026-05-28 02:03:36,659 - INFO - Verified policy ctest-policy1-86458602 in API Server, Result: True 2026-05-28 02:03:36,659 - INFO - Done with setup and verification, moving onto test .. 2026-05-28 02:03:36,667 - INFO - Deleting VN ctest-vn4-60185752 2026-05-28 02:03:36,779 - DEBUG - Response for deleting network () 2026-05-28 02:03:36,779 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/2d16c716-a083-4b55-9225-51da71a1e95c 2026-05-28 02:03:36,784 - DEBUG - Response Code: 404 2026-05-28 02:03:36,784 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2026-05-28 02:03:36,790 - DEBUG - Requesting: http://10.0.0.65:8082/domain/35f40dc4-ad20-4c6b-9ec4-ae6d5231740e 2026-05-28 02:03:36,840 - DEBUG - Requesting: http://10.0.0.65:8082/project/d8bb4bfa-b84d-4566-bb07-74c055cf33f4 2026-05-28 02:03:36,911 - INFO - Validated that VN ctest-vn4-60185752 is not found in API Server 2026-05-28 02:03:36,921 - DEBUG - VN ctest-vn4-60185752 is not present in Agent 10.0.0.65 2026-05-28 02:03:36,921 - INFO - Validated that VN ctest-vn4-60185752 is not in any agent 2026-05-28 02:03:36,936 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-60185752 info 2026-05-28 02:03:36,967 - INFO - Deleted policy ctest-policy1-86458602 2026-05-28 02:03:37,131 - DEBUG - policy ctest-policy1-86458602 is not found in API Server 2026-05-28 02:03:37,383 - DEBUG - No XMPP flaps were noticed during the test 2026-05-28 02:03:37,384 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-28 02:03:37,384 - INFO - -------------------------------------------------------------------------------- 2026-05-28 02:03:37,677 - DEBUG - No XMPP flaps were noticed during the test 2026-05-28 02:03:37,677 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-28 02:03:37,677 - INFO - -------------------------------------------------------------------------------- 2026-05-28 02:03:38,371 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-87057569, ID : d8bb4bfa-b84d-4566-bb07-74c055cf33f4