2026-11-02 02:22:30,905 - INFO - Domain Default found not creating 2026-11-02 02:22:31,070 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-15903378 not found, creating it 2026-11-02 02:22:31,552 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-15903378, ID : 4f4eda70-718a-4042-99b8-c8bf549da6a7 2026-11-02 02:22:33,237 - INFO - ================================================================================ 2026-11-02 02:22:33,237 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-02 02:22:33,511 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-11-02 02:22:33,511 - INFO - Initial checks done. Running the testcase now 2026-11-02 02:22:33,511 - INFO - 2026-11-02 02:22:33,511 - INFO - ================================================================================ 2026-11-02 02:22:33,511 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-02 02:22:33,511 - 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-02 02:22:33,792 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.25': '0'}} with 2026-11-02 02:22:33,792 - INFO - Initial checks done. Running the testcase now 2026-11-02 02:22:33,792 - INFO - 2026-11-02 02:22:34,213 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15903378:ctest-vn4-14177446, 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-15903378:ctest-vn4-14177446, 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-15903378:ctest-vn4-14177446, 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-15903378:ctest-vn4-14177446, 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-02 02:22:34,708 - DEBUG - Response for create_network : {'network': {'id': '2e98b33a-a15a-4bbd-89e5-c697d3e1d7f7', 'name': 'ctest-vn4-14177446', 'tenant_id': '4f4eda70718a404299b8c8bf549da6a7', 'project_id': '4f4eda70718a404299b8c8bf549da6a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15903378', 'ctest-vn4-14177446'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-11-02 02:22:34,881 - DEBUG - Response for create_subnet : {'subnet': {'id': '7f6d9149-5627-4df6-9a29-500a1e8cdba5', 'name': '', 'tenant_id': '4f4eda70718a404299b8c8bf549da6a7', 'network_id': '2e98b33a-a15a-4bbd-89e5-c697d3e1d7f7', 'ip_version': 4, 'cidr': '183.158.165.64/26', 'allocation_pools': [{'start': '183.158.165.66', 'end': '183.158.165.126'}], 'gateway_ip': '183.158.165.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-11-02T02:22:34.831180', 'updated_at': '2026-11-02T02:22:34.831180', 'dns_server_address': '183.158.165.66', 'tags': [], 'project_id': '4f4eda70718a404299b8c8bf549da6a7'}} 2026-11-02 02:22:35,056 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c679cc09-9d89-4b6b-8775-3654725ddb7b', 'name': '', 'tenant_id': '4f4eda70718a404299b8c8bf549da6a7', 'network_id': '2e98b33a-a15a-4bbd-89e5-c697d3e1d7f7', 'ip_version': 6, 'cidr': '3e52:e9bd:6800:c4a7:f8b9:1846::/96', 'allocation_pools': [{'start': '3e52:e9bd:6800:c4a7:f8b9:1846:0:2', 'end': '3e52:e9bd:6800:c4a7:f8b9:1846:ffff:fffe'}], 'gateway_ip': '3e52:e9bd:6800:c4a7:f8b9:1846:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-11-02T02:22:35.009396', 'updated_at': '2026-11-02T02:22:35.009396', 'dns_server_address': '3e52:e9bd:6800:c4a7:f8b9:1846:0:2', 'tags': [], 'project_id': '4f4eda70718a404299b8c8bf549da6a7'}} 2026-11-02 02:22:35,072 - INFO - Created VN ctest-vn4-14177446 2026-11-02 02:22:35,122 - DEBUG - VN ctest-vn4-14177446 UUID is 2e98b33a-a15a-4bbd-89e5-c697d3e1d7f7 2026-11-02 02:22:35,305 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e98b33a-a15a-4bbd-89e5-c697d3e1d7f7', 'name': 'ctest-vn4-14177446', 'tenant_id': '4f4eda70718a404299b8c8bf549da6a7', 'project_id': '4f4eda70718a404299b8c8bf549da6a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['7f6d9149-5627-4df6-9a29-500a1e8cdba5', 'c679cc09-9d89-4b6b-8775-3654725ddb7b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15903378', 'ctest-vn4-14177446'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15903378', 'ctest-policy1-59414671']], 'subnet_ipam': [{'subnet_cidr': '183.158.165.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e52:e9bd:6800:c4a7:f8b9:1846::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-11-02T02:22:34.681375', 'updated_at': '2026-11-02T02:22:35.022011'}} 2026-11-02 02:22:35,470 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-02 02:22:35,843 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-02 02:22:35,868 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c01ed095-7ad8-46a9-91c3-c9c005d4f498 2026-11-02 02:22:35,880 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f4eda70-718a-4042-99b8-c8bf549da6a7 2026-11-02 02:22:35,952 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2e98b33a-a15a-4bbd-89e5-c697d3e1d7f7 2026-11-02 02:22:35,963 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2e98b33a-a15a-4bbd-89e5-c697d3e1d7f7 2026-11-02 02:22:35,971 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/21fd60bf-4664-40e5-a441-0d223517d977 2026-11-02 02:22:35,977 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/21fd60bf-4664-40e5-a441-0d223517d977 2026-11-02 02:22:35,982 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3a6c5827-1e29-4fbc-9757-c9ea9cddcd73 2026-11-02 02:22:35,987 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-02 02:22:35,987 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2e98b33a-a15a-4bbd-89e5-c697d3e1d7f7 2026-11-02 02:22:35,996 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/21fd60bf-4664-40e5-a441-0d223517d977 2026-11-02 02:22:36,007 - INFO - Verified VN network id 11 for VN 2e98b33a-a15a-4bbd-89e5-c697d3e1d7f7 2026-11-02 02:22:36,007 - INFO - Verifications in API Server for VN ctest-vn4-14177446 passed 2026-11-02 02:22:36,007 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2e98b33a-a15a-4bbd-89e5-c697d3e1d7f7 2026-11-02 02:22:36,015 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/21fd60bf-4664-40e5-a441-0d223517d977 2026-11-02 02:22:36,020 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/21fd60bf-4664-40e5-a441-0d223517d977 2026-11-02 02:22:36,025 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3a6c5827-1e29-4fbc-9757-c9ea9cddcd73 2026-11-02 02:22:36,036 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15903378:ctest-vn4-14177446', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-15903378', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3357630586601229245', 'uuid-lslong': '9936566508260022263'}, 'enable': 'true', 'created': '2026-11-02T02:22:34', 'last-modified': '2026-11-02T02:22:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.755862'} 2026-11-02 02:22:36,043 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-02 02:22:36,043 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-14177446 passed 2026-11-02 02:22:36,043 - DEBUG - ====Verifying policy data for ctest-vn4-14177446 in API_Server ====== 2026-11-02 02:22:36,043 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-02 02:22:36,048 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c01ed095-7ad8-46a9-91c3-c9c005d4f498 2026-11-02 02:22:36,057 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f4eda70-718a-4042-99b8-c8bf549da6a7 2026-11-02 02:22:36,124 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/2e98b33a-a15a-4bbd-89e5-c697d3e1d7f7 2026-11-02 02:22:36,133 - DEBUG - ==>Verifying data for policy with id: 3b0d8b19-87dc-4403-b0f8-a157568d7242, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15903378', 'ctest-policy1-59414671'] 2026-11-02 02:22:36,133 - INFO - VN ctest-vn4-14177446 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-02 02:22:36,133 - DEBUG - Verifying the vn in opserver 2026-11-02 02:22:36,133 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15903378:ctest-vn4-14177446 virtual network link through opserver 10.0.0.38 2026-11-02 02:22:36,133 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-11-02 02:22:36,494 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-11-02 02:22:36,543 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15903378:ctest-vn4-14177446', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15903378:ctest-vn4-14177446?flat'} 2026-11-02 02:22:36,543 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15903378:ctest-vn4-14177446 is found in opserver 2026-11-02 02:22:36,553 - DEBUG - Do not have enough data to verify VN in agent 2026-11-02 02:22:36,558 - DEBUG - VRF ids for VN ctest-vn4-14177446: {} 2026-11-02 02:22:36,559 - DEBUG - ====Verifying data for ctest-policy1-59414671 in API_Server ====== 2026-11-02 02:22:36,559 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-02 02:22:36,564 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c01ed095-7ad8-46a9-91c3-c9c005d4f498 2026-11-02 02:22:36,573 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f4eda70-718a-4042-99b8-c8bf549da6a7 2026-11-02 02:22:36,649 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/3b0d8b19-87dc-4403-b0f8-a157568d7242 2026-11-02 02:22:36,658 - INFO - Verified policy ctest-policy1-59414671 in API Server, Result: True 2026-11-02 02:22:36,658 - INFO - Done with setup and verification, moving onto test .. 2026-11-02 02:22:36,664 - INFO - Deleting VN ctest-vn4-14177446 2026-11-02 02:22:36,767 - DEBUG - Response for deleting network () 2026-11-02 02:22:36,767 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/21fd60bf-4664-40e5-a441-0d223517d977 2026-11-02 02:22:36,771 - DEBUG - Response Code: 404 2026-11-02 02:22:36,772 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-11-02 02:22:36,777 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c01ed095-7ad8-46a9-91c3-c9c005d4f498 2026-11-02 02:22:36,832 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f4eda70-718a-4042-99b8-c8bf549da6a7 2026-11-02 02:22:36,903 - INFO - Validated that VN ctest-vn4-14177446 is not found in API Server 2026-11-02 02:22:36,913 - DEBUG - VN ctest-vn4-14177446 is not present in Agent 10.0.0.38 2026-11-02 02:22:36,913 - INFO - Validated that VN ctest-vn4-14177446 is not in any agent 2026-11-02 02:22:36,927 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-14177446 info 2026-11-02 02:22:36,947 - INFO - Deleted policy ctest-policy1-59414671 2026-11-02 02:22:37,114 - DEBUG - policy ctest-policy1-59414671 is not found in API Server 2026-11-02 02:22:37,371 - DEBUG - No XMPP flaps were noticed during the test 2026-11-02 02:22:37,371 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-02 02:22:37,371 - INFO - -------------------------------------------------------------------------------- 2026-11-02 02:22:37,679 - DEBUG - No XMPP flaps were noticed during the test 2026-11-02 02:22:37,679 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-11-02 02:22:37,679 - INFO - -------------------------------------------------------------------------------- 2026-11-02 02:22:38,446 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-15903378, ID : 4f4eda70-718a-4042-99b8-c8bf549da6a7