2026-05-11 02:21:49,687 - INFO - Domain Default found not creating 2026-05-11 02:21:49,910 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40127777 not found, creating it 2026-05-11 02:21:50,428 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40127777, ID : 44452cc4-c4e4-495a-bc78-25b0414d2bf0 2026-05-11 02:21:52,128 - INFO - ================================================================================ 2026-05-11 02:21:52,129 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-11 02:21:52,404 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.25': '0'}} with 2026-05-11 02:21:52,404 - INFO - Initial checks done. Running the testcase now 2026-05-11 02:21:52,404 - INFO - 2026-05-11 02:21:52,404 - INFO - ================================================================================ 2026-05-11 02:21:52,404 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-11 02:21:52,405 - 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-11 02:21:52,700 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.25': '0'}} with 2026-05-11 02:21:52,700 - INFO - Initial checks done. Running the testcase now 2026-05-11 02:21:52,701 - INFO - 2026-05-11 02:21:53,443 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40127777:ctest-vn4-60861277, 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-40127777:ctest-vn4-60861277, 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-40127777:ctest-vn4-60861277, 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-40127777:ctest-vn4-60861277, 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-11 02:21:54,006 - DEBUG - Response for create_network : {'network': {'id': 'd5224a0e-a2d2-4024-8621-5f1f079de2cb', 'name': 'ctest-vn4-60861277', 'tenant_id': '44452cc4c4e4495abc7825b0414d2bf0', 'project_id': '44452cc4c4e4495abc7825b0414d2bf0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40127777', 'ctest-vn4-60861277'], 'port_security_enabled': True, 'description': ''}} 2026-05-11 02:21:54,239 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e1e3027-927d-4b2b-b00e-523319a6d5ca', 'name': '', 'tenant_id': '44452cc4c4e4495abc7825b0414d2bf0', 'network_id': 'd5224a0e-a2d2-4024-8621-5f1f079de2cb', 'ip_version': 4, 'cidr': '95.2.23.0/26', 'allocation_pools': [{'start': '95.2.23.2', 'end': '95.2.23.62'}], 'gateway_ip': '95.2.23.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.2.23.2', 'tags': [], 'project_id': '44452cc4c4e4495abc7825b0414d2bf0'}} 2026-05-11 02:21:54,450 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fbe39179-2b26-42cd-9b64-c401378fa7dc', 'name': '', 'tenant_id': '44452cc4c4e4495abc7825b0414d2bf0', 'network_id': 'd5224a0e-a2d2-4024-8621-5f1f079de2cb', 'ip_version': 6, 'cidr': '396b:afb6:6c7a:9653:df88:c064::/96', 'allocation_pools': [{'start': '396b:afb6:6c7a:9653:df88:c064:0:2', 'end': '396b:afb6:6c7a:9653:df88:c064:ffff:fffe'}], 'gateway_ip': '396b:afb6:6c7a:9653:df88:c064:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '396b:afb6:6c7a:9653:df88:c064:0:2', 'tags': [], 'project_id': '44452cc4c4e4495abc7825b0414d2bf0'}} 2026-05-11 02:21:54,475 - INFO - Created VN ctest-vn4-60861277 2026-05-11 02:21:54,527 - DEBUG - VN ctest-vn4-60861277 UUID is d5224a0e-a2d2-4024-8621-5f1f079de2cb 2026-05-11 02:21:54,753 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd5224a0e-a2d2-4024-8621-5f1f079de2cb', 'name': 'ctest-vn4-60861277', 'tenant_id': '44452cc4c4e4495abc7825b0414d2bf0', 'project_id': '44452cc4c4e4495abc7825b0414d2bf0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7e1e3027-927d-4b2b-b00e-523319a6d5ca', 'fbe39179-2b26-42cd-9b64-c401378fa7dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40127777', 'ctest-vn4-60861277'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40127777', 'ctest-policy1-05909023']], 'subnet_ipam': [{'subnet_cidr': '95.2.23.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '396b:afb6:6c7a:9653:df88:c064::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-11 02:21:54,931 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-11 02:21:55,241 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-11 02:21:55,275 - DEBUG - Requesting: http://10.0.0.41:8082/domain/1181a205-8da4-43c3-b887-b572a4232164 2026-05-11 02:21:55,290 - DEBUG - Requesting: http://10.0.0.41:8082/project/44452cc4-c4e4-495a-bc78-25b0414d2bf0 2026-05-11 02:21:55,366 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d5224a0e-a2d2-4024-8621-5f1f079de2cb 2026-05-11 02:21:55,380 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d5224a0e-a2d2-4024-8621-5f1f079de2cb 2026-05-11 02:21:55,392 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bba8dcc2-9502-44b2-a989-a6df4e571665 2026-05-11 02:21:55,400 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bba8dcc2-9502-44b2-a989-a6df4e571665 2026-05-11 02:21:55,407 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/922f6671-7744-46c3-81af-0a393d8bd504 2026-05-11 02:21:55,415 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-11 02:21:55,415 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d5224a0e-a2d2-4024-8621-5f1f079de2cb 2026-05-11 02:21:55,425 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bba8dcc2-9502-44b2-a989-a6df4e571665 2026-05-11 02:21:55,440 - INFO - Verified VN network id 9 for VN d5224a0e-a2d2-4024-8621-5f1f079de2cb 2026-05-11 02:21:55,441 - INFO - Verifications in API Server for VN ctest-vn4-60861277 passed 2026-05-11 02:21:55,441 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d5224a0e-a2d2-4024-8621-5f1f079de2cb 2026-05-11 02:21:55,451 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bba8dcc2-9502-44b2-a989-a6df4e571665 2026-05-11 02:21:55,458 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bba8dcc2-9502-44b2-a989-a6df4e571665 2026-05-11 02:21:55,470 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/922f6671-7744-46c3-81af-0a393d8bd504 2026-05-11 02:21:55,484 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40127777:ctest-vn4-60861277', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40127777', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15357919106008498212', 'uuid-lslong': '9665110862190207691'}, 'enable': 'true', 'created': '2026-05-11T02:21:53', 'last-modified': '2026-05-11T02:21:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.761233'} 2026-05-11 02:21:55,491 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-11 02:21:55,491 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-60861277 passed 2026-05-11 02:21:55,491 - DEBUG - ====Verifying policy data for ctest-vn4-60861277 in API_Server ====== 2026-05-11 02:21:55,491 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-11 02:21:55,497 - DEBUG - Requesting: http://10.0.0.41:8082/domain/1181a205-8da4-43c3-b887-b572a4232164 2026-05-11 02:21:55,510 - DEBUG - Requesting: http://10.0.0.41:8082/project/44452cc4-c4e4-495a-bc78-25b0414d2bf0 2026-05-11 02:21:55,585 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/d5224a0e-a2d2-4024-8621-5f1f079de2cb 2026-05-11 02:21:55,596 - DEBUG - ==>Verifying data for policy with id: 6deb2337-0bf7-4996-ac5a-a4620c9c2782, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40127777', 'ctest-policy1-05909023'] 2026-05-11 02:21:55,596 - INFO - VN ctest-vn4-60861277 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-11 02:21:55,596 - DEBUG - Verifying the vn in opserver 2026-05-11 02:21:55,596 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40127777:ctest-vn4-60861277 virtual network link through opserver 10.0.0.41 2026-05-11 02:21:55,596 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-05-11 02:21:55,903 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-05-11 02:21:55,971 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40127777:ctest-vn4-60861277', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40127777:ctest-vn4-60861277?flat'} 2026-05-11 02:21:55,971 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40127777:ctest-vn4-60861277 is found in opserver 2026-05-11 02:21:55,980 - DEBUG - Do not have enough data to verify VN in agent 2026-05-11 02:21:55,985 - DEBUG - VRF ids for VN ctest-vn4-60861277: {} 2026-05-11 02:21:55,986 - DEBUG - ====Verifying data for ctest-policy1-05909023 in API_Server ====== 2026-05-11 02:21:55,986 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-11 02:21:55,996 - DEBUG - Requesting: http://10.0.0.41:8082/domain/1181a205-8da4-43c3-b887-b572a4232164 2026-05-11 02:21:56,009 - DEBUG - Requesting: http://10.0.0.41:8082/project/44452cc4-c4e4-495a-bc78-25b0414d2bf0 2026-05-11 02:21:56,084 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/6deb2337-0bf7-4996-ac5a-a4620c9c2782 2026-05-11 02:21:56,095 - INFO - Verified policy ctest-policy1-05909023 in API Server, Result: True 2026-05-11 02:21:56,095 - INFO - Done with setup and verification, moving onto test .. 2026-05-11 02:21:56,104 - INFO - Deleting VN ctest-vn4-60861277 2026-05-11 02:21:56,237 - DEBUG - Response for deleting network () 2026-05-11 02:21:56,237 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/bba8dcc2-9502-44b2-a989-a6df4e571665 2026-05-11 02:21:56,243 - DEBUG - Response Code: 404 2026-05-11 02:21:56,244 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-05-11 02:21:56,249 - DEBUG - Requesting: http://10.0.0.41:8082/domain/1181a205-8da4-43c3-b887-b572a4232164 2026-05-11 02:21:56,304 - DEBUG - Requesting: http://10.0.0.41:8082/project/44452cc4-c4e4-495a-bc78-25b0414d2bf0 2026-05-11 02:21:56,376 - INFO - Validated that VN ctest-vn4-60861277 is not found in API Server 2026-05-11 02:21:56,390 - DEBUG - VN ctest-vn4-60861277 is not present in Agent 10.0.0.41 2026-05-11 02:21:56,390 - INFO - Validated that VN ctest-vn4-60861277 is not in any agent 2026-05-11 02:21:56,404 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-60861277 info 2026-05-11 02:21:56,434 - INFO - Deleted policy ctest-policy1-05909023 2026-05-11 02:21:56,615 - DEBUG - policy ctest-policy1-05909023 is not found in API Server 2026-05-11 02:21:56,893 - DEBUG - No XMPP flaps were noticed during the test 2026-05-11 02:21:56,893 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-11 02:21:56,893 - INFO - -------------------------------------------------------------------------------- 2026-05-11 02:21:57,197 - DEBUG - No XMPP flaps were noticed during the test 2026-05-11 02:21:57,197 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-05-11 02:21:57,197 - INFO - -------------------------------------------------------------------------------- 2026-05-11 02:21:57,955 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-40127777, ID : 44452cc4-c4e4-495a-bc78-25b0414d2bf0