2025-10-22 14:08:33,923 - INFO - Domain Default found not creating 2025-10-22 14:08:34,212 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-59308582 not found, creating it 2025-10-22 14:08:34,774 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-59308582, ID : 7085c5a8-c044-4663-9be2-7630a351d920 2025-10-22 14:08:36,763 - INFO - ================================================================================ 2025-10-22 14:08:36,763 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 14:08:37,044 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2025-10-22 14:08:37,044 - INFO - Initial checks done. Running the testcase now 2025-10-22 14:08:37,044 - INFO - 2025-10-22 14:08:37,044 - INFO - ================================================================================ 2025-10-22 14:08:37,044 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 14:08:37,044 - 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-10-22 14:08:37,352 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2025-10-22 14:08:37,353 - INFO - Initial checks done. Running the testcase now 2025-10-22 14:08:37,353 - INFO - 2025-10-22 14:08:37,794 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59308582:ctest-vn4-67723603, 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-59308582:ctest-vn4-67723603, 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-59308582:ctest-vn4-67723603, 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-59308582:ctest-vn4-67723603, 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-10-22 14:08:38,418 - DEBUG - Response for create_network : {'network': {'id': 'cce67610-1b80-4e33-ae67-50e7f341b751', 'name': 'ctest-vn4-67723603', 'tenant_id': '7085c5a8c04446639be27630a351d920', 'project_id': '7085c5a8c04446639be27630a351d920', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59308582', 'ctest-vn4-67723603'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 14:08:38,654 - DEBUG - Response for create_subnet : {'subnet': {'id': '94188d2f-4fb0-44a1-8d50-0ab97739dc72', 'name': '', 'tenant_id': '7085c5a8c04446639be27630a351d920', 'network_id': 'cce67610-1b80-4e33-ae67-50e7f341b751', 'ip_version': 4, 'cidr': '185.143.160.0/26', 'allocation_pools': [{'start': '185.143.160.2', 'end': '185.143.160.62'}], 'gateway_ip': '185.143.160.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.143.160.2', 'tags': [], 'project_id': '7085c5a8c04446639be27630a351d920'}} 2025-10-22 14:08:38,837 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c259b250-18a7-4a3d-9950-081e04850949', 'name': '', 'tenant_id': '7085c5a8c04446639be27630a351d920', 'network_id': 'cce67610-1b80-4e33-ae67-50e7f341b751', 'ip_version': 6, 'cidr': '337b:d654:7897:de4:4678:effd::/96', 'allocation_pools': [{'start': '337b:d654:7897:de4:4678:effd:0:2', 'end': '337b:d654:7897:de4:4678:effd:ffff:fffe'}], 'gateway_ip': '337b:d654:7897:de4:4678:effd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '337b:d654:7897:de4:4678:effd:0:2', 'tags': [], 'project_id': '7085c5a8c04446639be27630a351d920'}} 2025-10-22 14:08:38,862 - INFO - Created VN ctest-vn4-67723603 2025-10-22 14:08:38,920 - DEBUG - VN ctest-vn4-67723603 UUID is cce67610-1b80-4e33-ae67-50e7f341b751 2025-10-22 14:08:39,185 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cce67610-1b80-4e33-ae67-50e7f341b751', 'name': 'ctest-vn4-67723603', 'tenant_id': '7085c5a8c04446639be27630a351d920', 'project_id': '7085c5a8c04446639be27630a351d920', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94188d2f-4fb0-44a1-8d50-0ab97739dc72', 'c259b250-18a7-4a3d-9950-081e04850949'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59308582', 'ctest-vn4-67723603'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59308582', 'ctest-policy1-09561652']], 'subnet_ipam': [{'subnet_cidr': '185.143.160.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '337b:d654:7897:de4:4678:effd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 14:08:39,364 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-22 14:08:39,699 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-22 14:08:39,753 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e71dc404-88de-4b9d-9aaf-b9cae211d205 2025-10-22 14:08:39,793 - DEBUG - Requesting: http://10.0.0.130:8082/project/7085c5a8-c044-4663-9be2-7630a351d920 2025-10-22 14:08:39,909 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/cce67610-1b80-4e33-ae67-50e7f341b751 2025-10-22 14:08:39,937 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/cce67610-1b80-4e33-ae67-50e7f341b751 2025-10-22 14:08:39,961 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e6ad3317-2aec-411d-a069-1131a3cbb3ab 2025-10-22 14:08:39,980 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e6ad3317-2aec-411d-a069-1131a3cbb3ab 2025-10-22 14:08:39,998 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/201645d5-bca8-4ee1-b58f-7cb1986c6cde 2025-10-22 14:08:40,010 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 14:08:40,011 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/cce67610-1b80-4e33-ae67-50e7f341b751 2025-10-22 14:08:40,028 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e6ad3317-2aec-411d-a069-1131a3cbb3ab 2025-10-22 14:08:40,048 - INFO - Verified VN network id 11 for VN cce67610-1b80-4e33-ae67-50e7f341b751 2025-10-22 14:08:40,049 - INFO - Verifications in API Server for VN ctest-vn4-67723603 passed 2025-10-22 14:08:40,049 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/cce67610-1b80-4e33-ae67-50e7f341b751 2025-10-22 14:08:40,066 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e6ad3317-2aec-411d-a069-1131a3cbb3ab 2025-10-22 14:08:40,078 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e6ad3317-2aec-411d-a069-1131a3cbb3ab 2025-10-22 14:08:40,091 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/201645d5-bca8-4ee1-b58f-7cb1986c6cde 2025-10-22 14:08:40,109 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59308582:ctest-vn4-67723603', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-59308582', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14764618239933697587', 'uuid-lslong': '12567102242349496145'}, 'enable': 'true', 'created': '2025-10-22T14:08:38', 'last-modified': '2025-10-22T14:08:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.955284'} 2025-10-22 14:08:40,118 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 14:08:40,118 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-67723603 passed 2025-10-22 14:08:40,119 - DEBUG - ====Verifying policy data for ctest-vn4-67723603 in API_Server ====== 2025-10-22 14:08:40,119 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-22 14:08:40,126 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e71dc404-88de-4b9d-9aaf-b9cae211d205 2025-10-22 14:08:40,141 - DEBUG - Requesting: http://10.0.0.130:8082/project/7085c5a8-c044-4663-9be2-7630a351d920 2025-10-22 14:08:40,244 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/cce67610-1b80-4e33-ae67-50e7f341b751 2025-10-22 14:08:40,266 - DEBUG - ==>Verifying data for policy with id: 253bb81d-330d-4744-8005-f363590a461a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59308582', 'ctest-policy1-09561652'] 2025-10-22 14:08:40,266 - INFO - VN ctest-vn4-67723603 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 14:08:40,266 - DEBUG - Verifying the vn in opserver 2025-10-22 14:08:40,266 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59308582:ctest-vn4-67723603 virtual network link through opserver 10.0.0.130 2025-10-22 14:08:40,267 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-10-22 14:08:40,596 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-10-22 14:08:40,726 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59308582:ctest-vn4-67723603', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59308582:ctest-vn4-67723603?flat'} 2025-10-22 14:08:40,726 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59308582:ctest-vn4-67723603 is found in opserver 2025-10-22 14:08:40,743 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 14:08:40,751 - DEBUG - VRF ids for VN ctest-vn4-67723603: {} 2025-10-22 14:08:40,751 - DEBUG - ====Verifying data for ctest-policy1-09561652 in API_Server ====== 2025-10-22 14:08:40,752 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-22 14:08:40,761 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e71dc404-88de-4b9d-9aaf-b9cae211d205 2025-10-22 14:08:40,779 - DEBUG - Requesting: http://10.0.0.130:8082/project/7085c5a8-c044-4663-9be2-7630a351d920 2025-10-22 14:08:40,863 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/253bb81d-330d-4744-8005-f363590a461a 2025-10-22 14:08:40,880 - INFO - Verified policy ctest-policy1-09561652 in API Server, Result: True 2025-10-22 14:08:40,881 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 14:08:40,896 - INFO - Deleting VN ctest-vn4-67723603 2025-10-22 14:08:41,088 - DEBUG - Response for deleting network () 2025-10-22 14:08:41,088 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/e6ad3317-2aec-411d-a069-1131a3cbb3ab 2025-10-22 14:08:41,095 - DEBUG - Response Code: 404 2025-10-22 14:08:41,095 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-22 14:08:41,103 - DEBUG - Requesting: http://10.0.0.130:8082/domain/e71dc404-88de-4b9d-9aaf-b9cae211d205 2025-10-22 14:08:41,162 - DEBUG - Requesting: http://10.0.0.130:8082/project/7085c5a8-c044-4663-9be2-7630a351d920 2025-10-22 14:08:41,245 - INFO - Validated that VN ctest-vn4-67723603 is not found in API Server 2025-10-22 14:08:41,264 - DEBUG - VN ctest-vn4-67723603 is not present in Agent 10.0.0.130 2025-10-22 14:08:41,265 - INFO - Validated that VN ctest-vn4-67723603 is not in any agent 2025-10-22 14:08:41,296 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-67723603 info 2025-10-22 14:08:41,342 - INFO - Deleted policy ctest-policy1-09561652 2025-10-22 14:08:41,524 - DEBUG - policy ctest-policy1-09561652 is not found in API Server 2025-10-22 14:08:41,824 - DEBUG - No XMPP flaps were noticed during the test