2026-01-19 02:26:18,795 - INFO - Domain Default found not creating 2026-01-19 02:26:18,972 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-32766732 not found, creating it 2026-01-19 02:26:19,441 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-32766732, ID : a3eec026-962d-448a-93f1-86a729bb6067 2026-01-19 02:26:21,001 - INFO - ================================================================================ 2026-01-19 02:26:21,001 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-19 02:26:21,253 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.129': '0'}} with 2026-01-19 02:26:21,253 - INFO - Initial checks done. Running the testcase now 2026-01-19 02:26:21,253 - INFO - 2026-01-19 02:26:21,254 - INFO - ================================================================================ 2026-01-19 02:26:21,254 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-19 02:26:21,254 - 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-01-19 02:26:21,541 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.129': '0'}} with 2026-01-19 02:26:21,542 - INFO - Initial checks done. Running the testcase now 2026-01-19 02:26:21,542 - INFO - 2026-01-19 02:26:21,905 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32766732:ctest-vn4-19244385, 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-32766732:ctest-vn4-19244385, 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-32766732:ctest-vn4-19244385, 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-32766732:ctest-vn4-19244385, 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-01-19 02:26:22,453 - DEBUG - Response for create_network : {'network': {'id': '2a436f8d-16b3-4ac4-88b8-f5b813bd07bc', 'name': 'ctest-vn4-19244385', 'tenant_id': 'a3eec026962d448a93f186a729bb6067', 'project_id': 'a3eec026962d448a93f186a729bb6067', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32766732', 'ctest-vn4-19244385'], 'port_security_enabled': True, 'description': ''}} 2026-01-19 02:26:22,628 - DEBUG - Response for create_subnet : {'subnet': {'id': '7dc288e3-7f54-486d-83a0-66a4df651e0b', 'name': '', 'tenant_id': 'a3eec026962d448a93f186a729bb6067', 'network_id': '2a436f8d-16b3-4ac4-88b8-f5b813bd07bc', 'ip_version': 4, 'cidr': '43.228.161.0/26', 'allocation_pools': [{'start': '43.228.161.2', 'end': '43.228.161.62'}], 'gateway_ip': '43.228.161.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.228.161.2', 'tags': [], 'project_id': 'a3eec026962d448a93f186a729bb6067'}} 2026-01-19 02:26:22,831 - DEBUG - Response for create_subnet : {'subnet': {'id': '7fd9712a-23d1-410f-b397-bb03e2f5f486', 'name': '', 'tenant_id': 'a3eec026962d448a93f186a729bb6067', 'network_id': '2a436f8d-16b3-4ac4-88b8-f5b813bd07bc', 'ip_version': 6, 'cidr': '3884:f50:7408:cf74:81df:2b11::/96', 'allocation_pools': [{'start': '3884:f50:7408:cf74:81df:2b11:0:2', 'end': '3884:f50:7408:cf74:81df:2b11:ffff:fffe'}], 'gateway_ip': '3884:f50:7408:cf74:81df:2b11:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3884:f50:7408:cf74:81df:2b11:0:2', 'tags': [], 'project_id': 'a3eec026962d448a93f186a729bb6067'}} 2026-01-19 02:26:22,851 - INFO - Created VN ctest-vn4-19244385 2026-01-19 02:26:22,904 - DEBUG - VN ctest-vn4-19244385 UUID is 2a436f8d-16b3-4ac4-88b8-f5b813bd07bc 2026-01-19 02:26:23,113 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a436f8d-16b3-4ac4-88b8-f5b813bd07bc', 'name': 'ctest-vn4-19244385', 'tenant_id': 'a3eec026962d448a93f186a729bb6067', 'project_id': 'a3eec026962d448a93f186a729bb6067', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7dc288e3-7f54-486d-83a0-66a4df651e0b', '7fd9712a-23d1-410f-b397-bb03e2f5f486'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32766732', 'ctest-vn4-19244385'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32766732', 'ctest-policy1-15784363']], 'subnet_ipam': [{'subnet_cidr': '43.228.161.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3884:f50:7408:cf74:81df:2b11::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-19 02:26:23,284 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-19 02:26:23,579 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-19 02:26:23,613 - DEBUG - Requesting: http://10.0.0.22:8082/domain/76718538-3a2d-4dc3-87c2-1b0a55c17d64 2026-01-19 02:26:23,627 - DEBUG - Requesting: http://10.0.0.22:8082/project/a3eec026-962d-448a-93f1-86a729bb6067 2026-01-19 02:26:23,697 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2a436f8d-16b3-4ac4-88b8-f5b813bd07bc 2026-01-19 02:26:23,709 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2a436f8d-16b3-4ac4-88b8-f5b813bd07bc 2026-01-19 02:26:23,720 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/908a6651-94db-4714-9427-ca7c692ff676 2026-01-19 02:26:23,727 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/908a6651-94db-4714-9427-ca7c692ff676 2026-01-19 02:26:23,735 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fc2957a8-35e2-4daa-9950-b983c86da62f 2026-01-19 02:26:23,742 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 02:26:23,742 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2a436f8d-16b3-4ac4-88b8-f5b813bd07bc 2026-01-19 02:26:23,752 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/908a6651-94db-4714-9427-ca7c692ff676 2026-01-19 02:26:23,768 - INFO - Verified VN network id 11 for VN 2a436f8d-16b3-4ac4-88b8-f5b813bd07bc 2026-01-19 02:26:23,768 - INFO - Verifications in API Server for VN ctest-vn4-19244385 passed 2026-01-19 02:26:23,768 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2a436f8d-16b3-4ac4-88b8-f5b813bd07bc 2026-01-19 02:26:23,779 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/908a6651-94db-4714-9427-ca7c692ff676 2026-01-19 02:26:23,787 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/908a6651-94db-4714-9427-ca7c692ff676 2026-01-19 02:26:23,796 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fc2957a8-35e2-4daa-9950-b983c86da62f 2026-01-19 02:26:23,810 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32766732:ctest-vn4-19244385', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-32766732', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3045400424794507972', 'uuid-lslong': '9851894355826902972'}, 'enable': 'true', 'created': '2026-01-19T02:26:22', 'last-modified': '2026-01-19T02:26:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.714242'} 2026-01-19 02:26:23,818 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-19 02:26:23,818 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-19244385 passed 2026-01-19 02:26:23,818 - DEBUG - ====Verifying policy data for ctest-vn4-19244385 in API_Server ====== 2026-01-19 02:26:23,818 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-19 02:26:23,825 - DEBUG - Requesting: http://10.0.0.22:8082/domain/76718538-3a2d-4dc3-87c2-1b0a55c17d64 2026-01-19 02:26:23,836 - DEBUG - Requesting: http://10.0.0.22:8082/project/a3eec026-962d-448a-93f1-86a729bb6067 2026-01-19 02:26:23,907 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2a436f8d-16b3-4ac4-88b8-f5b813bd07bc 2026-01-19 02:26:23,918 - DEBUG - ==>Verifying data for policy with id: eb5dbf9f-32ef-4a63-8e58-14f2c0eac6ba, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32766732', 'ctest-policy1-15784363'] 2026-01-19 02:26:23,918 - INFO - VN ctest-vn4-19244385 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-19 02:26:23,918 - DEBUG - Verifying the vn in opserver 2026-01-19 02:26:23,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32766732:ctest-vn4-19244385 virtual network link through opserver 10.0.0.22 2026-01-19 02:26:23,919 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-19 02:26:24,218 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-19 02:26:24,283 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32766732:ctest-vn4-19244385', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32766732:ctest-vn4-19244385?flat'} 2026-01-19 02:26:24,283 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32766732:ctest-vn4-19244385 is found in opserver 2026-01-19 02:26:24,293 - DEBUG - Do not have enough data to verify VN in agent 2026-01-19 02:26:24,297 - DEBUG - VRF ids for VN ctest-vn4-19244385: {} 2026-01-19 02:26:24,297 - DEBUG - ====Verifying data for ctest-policy1-15784363 in API_Server ====== 2026-01-19 02:26:24,297 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-19 02:26:24,303 - DEBUG - Requesting: http://10.0.0.22:8082/domain/76718538-3a2d-4dc3-87c2-1b0a55c17d64 2026-01-19 02:26:24,313 - DEBUG - Requesting: http://10.0.0.22:8082/project/a3eec026-962d-448a-93f1-86a729bb6067 2026-01-19 02:26:24,382 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/eb5dbf9f-32ef-4a63-8e58-14f2c0eac6ba 2026-01-19 02:26:24,392 - INFO - Verified policy ctest-policy1-15784363 in API Server, Result: True 2026-01-19 02:26:24,392 - INFO - Done with setup and verification, moving onto test .. 2026-01-19 02:26:24,399 - INFO - Deleting VN ctest-vn4-19244385 2026-01-19 02:26:24,516 - DEBUG - Response for deleting network () 2026-01-19 02:26:24,517 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/908a6651-94db-4714-9427-ca7c692ff676 2026-01-19 02:26:24,521 - DEBUG - Response Code: 404 2026-01-19 02:26:24,521 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-19 02:26:24,526 - DEBUG - Requesting: http://10.0.0.22:8082/domain/76718538-3a2d-4dc3-87c2-1b0a55c17d64 2026-01-19 02:26:24,576 - DEBUG - Requesting: http://10.0.0.22:8082/project/a3eec026-962d-448a-93f1-86a729bb6067 2026-01-19 02:26:24,646 - INFO - Validated that VN ctest-vn4-19244385 is not found in API Server 2026-01-19 02:26:24,656 - DEBUG - VN ctest-vn4-19244385 is not present in Agent 10.0.0.22 2026-01-19 02:26:24,656 - INFO - Validated that VN ctest-vn4-19244385 is not in any agent 2026-01-19 02:26:24,670 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-19244385 info 2026-01-19 02:26:24,692 - INFO - Deleted policy ctest-policy1-15784363 2026-01-19 02:26:24,859 - DEBUG - policy ctest-policy1-15784363 is not found in API Server 2026-01-19 02:26:25,121 - DEBUG - No XMPP flaps were noticed during the test 2026-01-19 02:26:25,121 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-19 02:26:25,121 - INFO - -------------------------------------------------------------------------------- 2026-01-19 02:26:25,417 - DEBUG - No XMPP flaps were noticed during the test 2026-01-19 02:26:25,417 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-19 02:26:25,417 - INFO - -------------------------------------------------------------------------------- 2026-01-19 02:26:26,127 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-32766732, ID : a3eec026-962d-448a-93f1-86a729bb6067