2026-02-07 11:37:03,395 - INFO - Domain Default found not creating 2026-02-07 11:37:03,696 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-09334021 not found, creating it 2026-02-07 11:37:04,204 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-09334021, ID : 962ec07a-fad7-4716-8c76-3a8a0c8a0a7c 2026-02-07 11:37:06,388 - INFO - ================================================================================ 2026-02-07 11:37:06,389 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-07 11:37:06,721 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-07 11:37:06,721 - INFO - Initial checks done. Running the testcase now 2026-02-07 11:37:06,721 - INFO - 2026-02-07 11:37:06,722 - INFO - ================================================================================ 2026-02-07 11:37:06,722 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-07 11:37:06,722 - 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-02-07 11:37:07,049 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-07 11:37:07,049 - INFO - Initial checks done. Running the testcase now 2026-02-07 11:37:07,049 - INFO - 2026-02-07 11:37:07,499 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09334021:ctest-vn4-42179429, 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-09334021:ctest-vn4-42179429, 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-09334021:ctest-vn4-42179429, 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-09334021:ctest-vn4-42179429, 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-02-07 11:37:08,227 - DEBUG - Response for create_network : {'network': {'id': '138cf339-b7dd-4cfa-ab58-420a46e9bba8', 'name': 'ctest-vn4-42179429', 'tenant_id': '962ec07afad747168c763a8a0c8a0a7c', 'project_id': '962ec07afad747168c763a8a0c8a0a7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09334021', 'ctest-vn4-42179429'], 'port_security_enabled': True, 'description': ''}} 2026-02-07 11:37:08,527 - DEBUG - Response for create_subnet : {'subnet': {'id': '3949e92a-13ca-4520-a40d-6d89ce8a24df', 'name': '', 'tenant_id': '962ec07afad747168c763a8a0c8a0a7c', 'network_id': '138cf339-b7dd-4cfa-ab58-420a46e9bba8', 'ip_version': 4, 'cidr': '173.6.78.192/26', 'allocation_pools': [{'start': '173.6.78.194', 'end': '173.6.78.254'}], 'gateway_ip': '173.6.78.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.6.78.194', 'tags': [], 'project_id': '962ec07afad747168c763a8a0c8a0a7c'}} 2026-02-07 11:37:08,717 - DEBUG - Response for create_subnet : {'subnet': {'id': '9c7b6430-f4b3-4fac-a682-b9f064a8426a', 'name': '', 'tenant_id': '962ec07afad747168c763a8a0c8a0a7c', 'network_id': '138cf339-b7dd-4cfa-ab58-420a46e9bba8', 'ip_version': 6, 'cidr': '3070:6860:9042:8ead:9e43:614::/96', 'allocation_pools': [{'start': '3070:6860:9042:8ead:9e43:614:0:2', 'end': '3070:6860:9042:8ead:9e43:614:ffff:fffe'}], 'gateway_ip': '3070:6860:9042:8ead:9e43:614:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3070:6860:9042:8ead:9e43:614:0:2', 'tags': [], 'project_id': '962ec07afad747168c763a8a0c8a0a7c'}} 2026-02-07 11:37:08,745 - INFO - Created VN ctest-vn4-42179429 2026-02-07 11:37:08,807 - DEBUG - VN ctest-vn4-42179429 UUID is 138cf339-b7dd-4cfa-ab58-420a46e9bba8 2026-02-07 11:37:09,110 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '138cf339-b7dd-4cfa-ab58-420a46e9bba8', 'name': 'ctest-vn4-42179429', 'tenant_id': '962ec07afad747168c763a8a0c8a0a7c', 'project_id': '962ec07afad747168c763a8a0c8a0a7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3949e92a-13ca-4520-a40d-6d89ce8a24df', '9c7b6430-f4b3-4fac-a682-b9f064a8426a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09334021', 'ctest-vn4-42179429'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09334021', 'ctest-policy1-85639169']], 'subnet_ipam': [{'subnet_cidr': '173.6.78.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3070:6860:9042:8ead:9e43:614::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-07 11:37:09,305 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-07 11:37:09,661 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-07 11:37:09,736 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6f9aac57-0177-49f6-ac0e-7162fee2631b 2026-02-07 11:37:09,779 - DEBUG - Requesting: http://10.0.0.38:8082/project/962ec07a-fad7-4716-8c76-3a8a0c8a0a7c 2026-02-07 11:37:09,917 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/138cf339-b7dd-4cfa-ab58-420a46e9bba8 2026-02-07 11:37:09,954 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/138cf339-b7dd-4cfa-ab58-420a46e9bba8 2026-02-07 11:37:09,981 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c4d5e63-5b29-4d41-a223-4bda42c269a7 2026-02-07 11:37:10,000 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c4d5e63-5b29-4d41-a223-4bda42c269a7 2026-02-07 11:37:10,021 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fd3924a4-efed-4f9e-8909-427d58abeee4 2026-02-07 11:37:10,040 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-07 11:37:10,040 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/138cf339-b7dd-4cfa-ab58-420a46e9bba8 2026-02-07 11:37:10,072 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c4d5e63-5b29-4d41-a223-4bda42c269a7 2026-02-07 11:37:10,114 - INFO - Verified VN network id 11 for VN 138cf339-b7dd-4cfa-ab58-420a46e9bba8 2026-02-07 11:37:10,114 - INFO - Verifications in API Server for VN ctest-vn4-42179429 passed 2026-02-07 11:37:10,114 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/138cf339-b7dd-4cfa-ab58-420a46e9bba8 2026-02-07 11:37:10,147 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c4d5e63-5b29-4d41-a223-4bda42c269a7 2026-02-07 11:37:10,167 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c4d5e63-5b29-4d41-a223-4bda42c269a7 2026-02-07 11:37:10,183 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/fd3924a4-efed-4f9e-8909-427d58abeee4 2026-02-07 11:37:10,212 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09334021:ctest-vn4-42179429', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-09334021', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1408768212683541754', 'uuid-lslong': '12346690990343044008'}, 'enable': 'true', 'created': '2026-02-07T11:37:08', 'last-modified': '2026-02-07T11:37:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.155614'} 2026-02-07 11:37:10,229 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-07 11:37:10,230 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42179429 passed 2026-02-07 11:37:10,230 - DEBUG - ====Verifying policy data for ctest-vn4-42179429 in API_Server ====== 2026-02-07 11:37:10,231 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-07 11:37:10,245 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6f9aac57-0177-49f6-ac0e-7162fee2631b 2026-02-07 11:37:10,280 - DEBUG - Requesting: http://10.0.0.38:8082/project/962ec07a-fad7-4716-8c76-3a8a0c8a0a7c 2026-02-07 11:37:10,390 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/138cf339-b7dd-4cfa-ab58-420a46e9bba8 2026-02-07 11:37:10,412 - DEBUG - ==>Verifying data for policy with id: 8f9a0e14-87b8-42a3-b7b1-a06a0d9f1a22, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09334021', 'ctest-policy1-85639169'] 2026-02-07 11:37:10,413 - INFO - VN ctest-vn4-42179429 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-07 11:37:10,413 - DEBUG - Verifying the vn in opserver 2026-02-07 11:37:10,413 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09334021:ctest-vn4-42179429 virtual network link through opserver 10.0.0.38 2026-02-07 11:37:10,413 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-07 11:37:10,739 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-07 11:37:10,857 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09334021:ctest-vn4-42179429', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09334021:ctest-vn4-42179429?flat'} 2026-02-07 11:37:10,857 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09334021:ctest-vn4-42179429 is found in opserver 2026-02-07 11:37:10,876 - DEBUG - Do not have enough data to verify VN in agent 2026-02-07 11:37:10,885 - DEBUG - VRF ids for VN ctest-vn4-42179429: {} 2026-02-07 11:37:10,886 - DEBUG - ====Verifying data for ctest-policy1-85639169 in API_Server ====== 2026-02-07 11:37:10,886 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-07 11:37:10,896 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6f9aac57-0177-49f6-ac0e-7162fee2631b 2026-02-07 11:37:10,920 - DEBUG - Requesting: http://10.0.0.38:8082/project/962ec07a-fad7-4716-8c76-3a8a0c8a0a7c 2026-02-07 11:37:11,028 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/8f9a0e14-87b8-42a3-b7b1-a06a0d9f1a22 2026-02-07 11:37:11,052 - INFO - Verified policy ctest-policy1-85639169 in API Server, Result: True 2026-02-07 11:37:11,052 - INFO - Done with setup and verification, moving onto test .. 2026-02-07 11:37:11,068 - INFO - Deleting VN ctest-vn4-42179429 2026-02-07 11:37:11,255 - DEBUG - Response for deleting network () 2026-02-07 11:37:11,255 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3c4d5e63-5b29-4d41-a223-4bda42c269a7 2026-02-07 11:37:11,262 - DEBUG - Response Code: 404 2026-02-07 11:37:11,263 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-07 11:37:11,271 - DEBUG - Requesting: http://10.0.0.38:8082/domain/6f9aac57-0177-49f6-ac0e-7162fee2631b 2026-02-07 11:37:11,335 - DEBUG - Requesting: http://10.0.0.38:8082/project/962ec07a-fad7-4716-8c76-3a8a0c8a0a7c 2026-02-07 11:37:11,427 - INFO - Validated that VN ctest-vn4-42179429 is not found in API Server 2026-02-07 11:37:11,447 - DEBUG - VN ctest-vn4-42179429 is not present in Agent 10.0.0.38 2026-02-07 11:37:11,447 - INFO - Validated that VN ctest-vn4-42179429 is not in any agent 2026-02-07 11:37:11,478 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42179429 info 2026-02-07 11:37:11,532 - INFO - Deleted policy ctest-policy1-85639169 2026-02-07 11:37:11,737 - DEBUG - policy ctest-policy1-85639169 is not found in API Server 2026-02-07 11:37:12,073 - DEBUG - No XMPP flaps were noticed during the test