2025-12-08 02:10:39,500 - INFO - Domain Default found not creating 2025-12-08 02:10:39,677 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-45029473 not found, creating it 2025-12-08 02:10:40,151 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-45029473, ID : 92dabcbb-2e5a-42a4-9b8d-8d27b2d33575 2025-12-08 02:10:41,803 - INFO - ================================================================================ 2025-12-08 02:10:41,804 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 02:10:42,056 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.129': '0'}} with 2025-12-08 02:10:42,056 - INFO - Initial checks done. Running the testcase now 2025-12-08 02:10:42,056 - INFO - 2025-12-08 02:10:42,056 - INFO - ================================================================================ 2025-12-08 02:10:42,056 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 02:10:42,056 - 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. 2025-12-08 02:10:42,349 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.129': '0'}} with 2025-12-08 02:10:42,349 - INFO - Initial checks done. Running the testcase now 2025-12-08 02:10:42,349 - INFO - 2025-12-08 02:10:42,710 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45029473:ctest-vn4-81474600, 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-45029473:ctest-vn4-81474600, 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-45029473:ctest-vn4-81474600, 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-45029473:ctest-vn4-81474600, 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] 2025-12-08 02:10:43,217 - DEBUG - Response for create_network : {'network': {'id': '83f1dac5-7829-41a3-82b5-9113b6181dee', 'name': 'ctest-vn4-81474600', 'tenant_id': '92dabcbb2e5a42a49b8d8d27b2d33575', 'project_id': '92dabcbb2e5a42a49b8d8d27b2d33575', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45029473', 'ctest-vn4-81474600'], 'port_security_enabled': True, 'description': ''}} 2025-12-08 02:10:43,350 - DEBUG - Response for create_subnet : {'subnet': {'id': '295003f4-9dfa-4ce3-a3af-04ee80e98653', 'name': '', 'tenant_id': '92dabcbb2e5a42a49b8d8d27b2d33575', 'network_id': '83f1dac5-7829-41a3-82b5-9113b6181dee', 'ip_version': 4, 'cidr': '15.92.163.128/26', 'allocation_pools': [{'start': '15.92.163.130', 'end': '15.92.163.190'}], 'gateway_ip': '15.92.163.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.92.163.130', 'tags': [], 'project_id': '92dabcbb2e5a42a49b8d8d27b2d33575'}} 2025-12-08 02:10:43,511 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f8fbf07-345e-4a10-9a06-cd231a29cfa3', 'name': '', 'tenant_id': '92dabcbb2e5a42a49b8d8d27b2d33575', 'network_id': '83f1dac5-7829-41a3-82b5-9113b6181dee', 'ip_version': 6, 'cidr': '3762:4eb3:6621:e560:4555:b091::/96', 'allocation_pools': [{'start': '3762:4eb3:6621:e560:4555:b091:0:2', 'end': '3762:4eb3:6621:e560:4555:b091:ffff:fffe'}], 'gateway_ip': '3762:4eb3:6621:e560:4555:b091:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3762:4eb3:6621:e560:4555:b091:0:2', 'tags': [], 'project_id': '92dabcbb2e5a42a49b8d8d27b2d33575'}} 2025-12-08 02:10:43,532 - INFO - Created VN ctest-vn4-81474600 2025-12-08 02:10:43,587 - DEBUG - VN ctest-vn4-81474600 UUID is 83f1dac5-7829-41a3-82b5-9113b6181dee 2025-12-08 02:10:43,790 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '83f1dac5-7829-41a3-82b5-9113b6181dee', 'name': 'ctest-vn4-81474600', 'tenant_id': '92dabcbb2e5a42a49b8d8d27b2d33575', 'project_id': '92dabcbb2e5a42a49b8d8d27b2d33575', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['295003f4-9dfa-4ce3-a3af-04ee80e98653', '5f8fbf07-345e-4a10-9a06-cd231a29cfa3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45029473', 'ctest-vn4-81474600'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45029473', 'ctest-policy1-02841900']], 'subnet_ipam': [{'subnet_cidr': '15.92.163.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3762:4eb3:6621:e560:4555:b091::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-08 02:10:43,947 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-08 02:10:44,245 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-08 02:10:44,282 - DEBUG - Requesting: http://10.0.0.27:8082/domain/855bbf38-d17a-4108-aa38-8bbcfb0e93f3 2025-12-08 02:10:44,296 - DEBUG - Requesting: http://10.0.0.27:8082/project/92dabcbb-2e5a-42a4-9b8d-8d27b2d33575 2025-12-08 02:10:44,366 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/83f1dac5-7829-41a3-82b5-9113b6181dee 2025-12-08 02:10:44,391 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/83f1dac5-7829-41a3-82b5-9113b6181dee 2025-12-08 02:10:44,401 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1c5f284e-b7bc-4537-a72d-b162e4f44d8b 2025-12-08 02:10:44,408 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1c5f284e-b7bc-4537-a72d-b162e4f44d8b 2025-12-08 02:10:44,416 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/1095a6af-6696-47fb-b197-286ef2a7b3a8 2025-12-08 02:10:44,423 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 02:10:44,423 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/83f1dac5-7829-41a3-82b5-9113b6181dee 2025-12-08 02:10:44,432 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1c5f284e-b7bc-4537-a72d-b162e4f44d8b 2025-12-08 02:10:44,444 - INFO - Verified VN network id 10 for VN 83f1dac5-7829-41a3-82b5-9113b6181dee 2025-12-08 02:10:44,444 - INFO - Verifications in API Server for VN ctest-vn4-81474600 passed 2025-12-08 02:10:44,445 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/83f1dac5-7829-41a3-82b5-9113b6181dee 2025-12-08 02:10:44,453 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1c5f284e-b7bc-4537-a72d-b162e4f44d8b 2025-12-08 02:10:44,459 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1c5f284e-b7bc-4537-a72d-b162e4f44d8b 2025-12-08 02:10:44,467 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/1095a6af-6696-47fb-b197-286ef2a7b3a8 2025-12-08 02:10:44,477 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45029473:ctest-vn4-81474600', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45029473', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9507620830015209891', 'uuid-lslong': '9418593709560700398'}, 'enable': 'true', 'created': '2025-12-08T02:10:43', 'last-modified': '2025-12-08T02:10:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.716679'} 2025-12-08 02:10:44,483 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 02:10:44,483 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-81474600 passed 2025-12-08 02:10:44,483 - DEBUG - ====Verifying policy data for ctest-vn4-81474600 in API_Server ====== 2025-12-08 02:10:44,483 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-08 02:10:44,492 - DEBUG - Requesting: http://10.0.0.27:8082/domain/855bbf38-d17a-4108-aa38-8bbcfb0e93f3 2025-12-08 02:10:44,502 - DEBUG - Requesting: http://10.0.0.27:8082/project/92dabcbb-2e5a-42a4-9b8d-8d27b2d33575 2025-12-08 02:10:44,573 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/83f1dac5-7829-41a3-82b5-9113b6181dee 2025-12-08 02:10:44,582 - DEBUG - ==>Verifying data for policy with id: 2ec1044a-3aff-4064-aece-951ad7f5584f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45029473', 'ctest-policy1-02841900'] 2025-12-08 02:10:44,582 - INFO - VN ctest-vn4-81474600 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-08 02:10:44,582 - DEBUG - Verifying the vn in opserver 2025-12-08 02:10:44,582 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45029473:ctest-vn4-81474600 virtual network link through opserver 10.0.0.27 2025-12-08 02:10:44,583 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-08 02:10:44,875 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-08 02:10:44,940 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45029473:ctest-vn4-81474600', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45029473:ctest-vn4-81474600?flat'} 2025-12-08 02:10:44,940 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45029473:ctest-vn4-81474600 is found in opserver 2025-12-08 02:10:44,950 - DEBUG - Do not have enough data to verify VN in agent 2025-12-08 02:10:44,955 - DEBUG - VRF ids for VN ctest-vn4-81474600: {} 2025-12-08 02:10:44,956 - DEBUG - ====Verifying data for ctest-policy1-02841900 in API_Server ====== 2025-12-08 02:10:44,956 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-08 02:10:44,961 - DEBUG - Requesting: http://10.0.0.27:8082/domain/855bbf38-d17a-4108-aa38-8bbcfb0e93f3 2025-12-08 02:10:44,971 - DEBUG - Requesting: http://10.0.0.27:8082/project/92dabcbb-2e5a-42a4-9b8d-8d27b2d33575 2025-12-08 02:10:45,043 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/2ec1044a-3aff-4064-aece-951ad7f5584f 2025-12-08 02:10:45,052 - INFO - Verified policy ctest-policy1-02841900 in API Server, Result: True 2025-12-08 02:10:45,053 - INFO - Done with setup and verification, moving onto test .. 2025-12-08 02:10:45,059 - INFO - Deleting VN ctest-vn4-81474600 2025-12-08 02:10:45,169 - DEBUG - Response for deleting network () 2025-12-08 02:10:45,169 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/1c5f284e-b7bc-4537-a72d-b162e4f44d8b 2025-12-08 02:10:45,173 - DEBUG - Response Code: 404 2025-12-08 02:10:45,174 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-08 02:10:45,178 - DEBUG - Requesting: http://10.0.0.27:8082/domain/855bbf38-d17a-4108-aa38-8bbcfb0e93f3 2025-12-08 02:10:45,236 - DEBUG - Requesting: http://10.0.0.27:8082/project/92dabcbb-2e5a-42a4-9b8d-8d27b2d33575 2025-12-08 02:10:45,305 - INFO - Validated that VN ctest-vn4-81474600 is not found in API Server 2025-12-08 02:10:45,315 - DEBUG - VN ctest-vn4-81474600 is not present in Agent 10.0.0.27 2025-12-08 02:10:45,315 - INFO - Validated that VN ctest-vn4-81474600 is not in any agent 2025-12-08 02:10:45,330 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-81474600 info 2025-12-08 02:10:45,358 - INFO - Deleted policy ctest-policy1-02841900 2025-12-08 02:10:45,527 - DEBUG - policy ctest-policy1-02841900 is not found in API Server 2025-12-08 02:10:45,781 - DEBUG - No XMPP flaps were noticed during the test 2025-12-08 02:10:45,781 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-12-08 02:10:45,781 - INFO - -------------------------------------------------------------------------------- 2025-12-08 02:10:46,069 - DEBUG - No XMPP flaps were noticed during the test 2025-12-08 02:10:46,069 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-12-08 02:10:46,069 - INFO - -------------------------------------------------------------------------------- 2025-12-08 02:10:47,281 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-45029473, ID : 92dabcbb-2e5a-42a4-9b8d-8d27b2d33575