2026-08-18 07:34:26,999 - INFO - Domain Default found not creating 2026-08-18 07:34:27,175 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02675483 not found, creating it 2026-08-18 07:34:27,692 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02675483, ID : 6e2a05ee-7739-4e16-8a7d-811d2cfad40d 2026-08-18 07:34:29,534 - INFO - ================================================================================ 2026-08-18 07:34:29,534 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-18 07:34:29,811 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with 2026-08-18 07:34:29,811 - INFO - Initial checks done. Running the testcase now 2026-08-18 07:34:29,811 - INFO - 2026-08-18 07:34:29,811 - INFO - ================================================================================ 2026-08-18 07:34:29,811 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-18 07:34:29,811 - 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-08-18 07:34:30,102 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with 2026-08-18 07:34:30,102 - INFO - Initial checks done. Running the testcase now 2026-08-18 07:34:30,102 - INFO - 2026-08-18 07:34:30,564 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02675483:ctest-vn4-06014560, 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-02675483:ctest-vn4-06014560, 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-02675483:ctest-vn4-06014560, 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-02675483:ctest-vn4-06014560, 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-08-18 07:34:31,153 - DEBUG - Response for create_network : {'network': {'id': 'e1834bdb-cf49-4b8f-9d59-bbfddb0e26d7', 'name': 'ctest-vn4-06014560', 'tenant_id': '6e2a05ee77394e168a7d811d2cfad40d', 'project_id': '6e2a05ee77394e168a7d811d2cfad40d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02675483', 'ctest-vn4-06014560'], 'port_security_enabled': True, 'description': ''}} 2026-08-18 07:34:31,404 - DEBUG - Response for create_subnet : {'subnet': {'id': '842f8715-47a2-4676-92e2-936a7ed3cf8c', 'name': '', 'tenant_id': '6e2a05ee77394e168a7d811d2cfad40d', 'network_id': 'e1834bdb-cf49-4b8f-9d59-bbfddb0e26d7', 'ip_version': 4, 'cidr': '202.221.45.192/26', 'allocation_pools': [{'start': '202.221.45.194', 'end': '202.221.45.254'}], 'gateway_ip': '202.221.45.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202.221.45.194', 'tags': [], 'project_id': '6e2a05ee77394e168a7d811d2cfad40d'}} 2026-08-18 07:34:31,585 - DEBUG - Response for create_subnet : {'subnet': {'id': '7a593e5d-4442-4ed9-a1d7-29a36a91a1b4', 'name': '', 'tenant_id': '6e2a05ee77394e168a7d811d2cfad40d', 'network_id': 'e1834bdb-cf49-4b8f-9d59-bbfddb0e26d7', 'ip_version': 6, 'cidr': '3558:29fd:849f:b27d:a73b:de6c::/96', 'allocation_pools': [{'start': '3558:29fd:849f:b27d:a73b:de6c:0:2', 'end': '3558:29fd:849f:b27d:a73b:de6c:ffff:fffe'}], 'gateway_ip': '3558:29fd:849f:b27d:a73b:de6c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3558:29fd:849f:b27d:a73b:de6c:0:2', 'tags': [], 'project_id': '6e2a05ee77394e168a7d811d2cfad40d'}} 2026-08-18 07:34:31,606 - INFO - Created VN ctest-vn4-06014560 2026-08-18 07:34:31,661 - DEBUG - VN ctest-vn4-06014560 UUID is e1834bdb-cf49-4b8f-9d59-bbfddb0e26d7 2026-08-18 07:34:31,895 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1834bdb-cf49-4b8f-9d59-bbfddb0e26d7', 'name': 'ctest-vn4-06014560', 'tenant_id': '6e2a05ee77394e168a7d811d2cfad40d', 'project_id': '6e2a05ee77394e168a7d811d2cfad40d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['842f8715-47a2-4676-92e2-936a7ed3cf8c', '7a593e5d-4442-4ed9-a1d7-29a36a91a1b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02675483', 'ctest-vn4-06014560'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02675483', 'ctest-policy1-34876804']], 'subnet_ipam': [{'subnet_cidr': '202.221.45.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3558:29fd:849f:b27d:a73b:de6c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-18 07:34:32,073 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-08-18 07:34:32,447 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-08-18 07:34:32,480 - DEBUG - Requesting: http://10.0.0.129:8082/domain/051093c5-de7f-420f-be52-9c3da7faa100 2026-08-18 07:34:32,497 - DEBUG - Requesting: http://10.0.0.129:8082/project/6e2a05ee-7739-4e16-8a7d-811d2cfad40d 2026-08-18 07:34:32,579 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/e1834bdb-cf49-4b8f-9d59-bbfddb0e26d7 2026-08-18 07:34:32,593 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/e1834bdb-cf49-4b8f-9d59-bbfddb0e26d7 2026-08-18 07:34:32,603 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c6584307-b278-49ac-b6ee-0be9ef2cd42b 2026-08-18 07:34:32,613 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c6584307-b278-49ac-b6ee-0be9ef2cd42b 2026-08-18 07:34:32,621 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/d9eb4324-0a9b-4918-909e-ae4a503a8056 2026-08-18 07:34:32,629 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-18 07:34:32,629 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/e1834bdb-cf49-4b8f-9d59-bbfddb0e26d7 2026-08-18 07:34:32,640 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c6584307-b278-49ac-b6ee-0be9ef2cd42b 2026-08-18 07:34:32,657 - INFO - Verified VN network id 11 for VN e1834bdb-cf49-4b8f-9d59-bbfddb0e26d7 2026-08-18 07:34:32,657 - INFO - Verifications in API Server for VN ctest-vn4-06014560 passed 2026-08-18 07:34:32,657 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/e1834bdb-cf49-4b8f-9d59-bbfddb0e26d7 2026-08-18 07:34:32,669 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c6584307-b278-49ac-b6ee-0be9ef2cd42b 2026-08-18 07:34:32,678 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c6584307-b278-49ac-b6ee-0be9ef2cd42b 2026-08-18 07:34:32,687 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/d9eb4324-0a9b-4918-909e-ae4a503a8056 2026-08-18 07:34:32,703 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02675483:ctest-vn4-06014560', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02675483', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16249915287930489743', 'uuid-lslong': '11338300235858192087'}, 'enable': 'true', 'created': '2026-08-18T07:34:31', 'last-modified': '2026-08-18T07:34:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.830628'} 2026-08-18 07:34:32,713 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-18 07:34:32,713 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-06014560 passed 2026-08-18 07:34:32,713 - DEBUG - ====Verifying policy data for ctest-vn4-06014560 in API_Server ====== 2026-08-18 07:34:32,713 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-08-18 07:34:32,719 - DEBUG - Requesting: http://10.0.0.129:8082/domain/051093c5-de7f-420f-be52-9c3da7faa100 2026-08-18 07:34:32,732 - DEBUG - Requesting: http://10.0.0.129:8082/project/6e2a05ee-7739-4e16-8a7d-811d2cfad40d 2026-08-18 07:34:32,806 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/e1834bdb-cf49-4b8f-9d59-bbfddb0e26d7 2026-08-18 07:34:32,818 - DEBUG - ==>Verifying data for policy with id: 6440a192-dc65-4b09-8126-af755559abe4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02675483', 'ctest-policy1-34876804'] 2026-08-18 07:34:32,818 - INFO - VN ctest-vn4-06014560 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-18 07:34:32,818 - DEBUG - Verifying the vn in opserver 2026-08-18 07:34:32,818 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02675483:ctest-vn4-06014560 virtual network link through opserver 10.0.0.129 2026-08-18 07:34:32,818 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-08-18 07:34:33,194 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-08-18 07:34:33,261 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02675483:ctest-vn4-06014560', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02675483:ctest-vn4-06014560?flat'} 2026-08-18 07:34:33,262 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02675483:ctest-vn4-06014560 is found in opserver 2026-08-18 07:34:33,274 - DEBUG - Do not have enough data to verify VN in agent 2026-08-18 07:34:33,280 - DEBUG - VRF ids for VN ctest-vn4-06014560: {} 2026-08-18 07:34:33,281 - DEBUG - ====Verifying data for ctest-policy1-34876804 in API_Server ====== 2026-08-18 07:34:33,281 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-08-18 07:34:33,288 - DEBUG - Requesting: http://10.0.0.129:8082/domain/051093c5-de7f-420f-be52-9c3da7faa100 2026-08-18 07:34:33,303 - DEBUG - Requesting: http://10.0.0.129:8082/project/6e2a05ee-7739-4e16-8a7d-811d2cfad40d 2026-08-18 07:34:33,379 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/6440a192-dc65-4b09-8126-af755559abe4 2026-08-18 07:34:33,392 - INFO - Verified policy ctest-policy1-34876804 in API Server, Result: True 2026-08-18 07:34:33,392 - INFO - Done with setup and verification, moving onto test .. 2026-08-18 07:34:33,402 - INFO - Deleting VN ctest-vn4-06014560 2026-08-18 07:34:33,569 - DEBUG - Response for deleting network () 2026-08-18 07:34:33,569 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/c6584307-b278-49ac-b6ee-0be9ef2cd42b 2026-08-18 07:34:33,576 - DEBUG - Response Code: 404 2026-08-18 07:34:33,576 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-08-18 07:34:33,583 - DEBUG - Requesting: http://10.0.0.129:8082/domain/051093c5-de7f-420f-be52-9c3da7faa100 2026-08-18 07:34:33,642 - DEBUG - Requesting: http://10.0.0.129:8082/project/6e2a05ee-7739-4e16-8a7d-811d2cfad40d 2026-08-18 07:34:33,720 - INFO - Validated that VN ctest-vn4-06014560 is not found in API Server 2026-08-18 07:34:33,739 - DEBUG - VN ctest-vn4-06014560 is not present in Agent 10.0.0.129 2026-08-18 07:34:33,739 - INFO - Validated that VN ctest-vn4-06014560 is not in any agent 2026-08-18 07:34:33,757 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-06014560 info 2026-08-18 07:34:33,796 - INFO - Deleted policy ctest-policy1-34876804 2026-08-18 07:34:33,960 - DEBUG - policy ctest-policy1-34876804 is not found in API Server 2026-08-18 07:34:34,230 - DEBUG - No XMPP flaps were noticed during the test 2026-08-18 07:34:34,230 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-18 07:34:34,230 - INFO - -------------------------------------------------------------------------------- 2026-08-18 07:34:34,530 - DEBUG - No XMPP flaps were noticed during the test 2026-08-18 07:34:34,530 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-18 07:34:34,530 - INFO - -------------------------------------------------------------------------------- 2026-08-18 07:34:35,332 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-02675483, ID : 6e2a05ee-7739-4e16-8a7d-811d2cfad40d