2025-10-30 13:50:35,275 - INFO - Domain Default found not creating 2025-10-30 13:50:35,418 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-96469454 not found, creating it 2025-10-30 13:50:35,852 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-96469454, ID : 56675df8-5d16-455e-82a9-9fe299594761 2025-10-30 13:50:37,194 - INFO - ================================================================================ 2025-10-30 13:50:37,194 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 13:50:37,453 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2025-10-30 13:50:37,453 - INFO - Initial checks done. Running the testcase now 2025-10-30 13:50:37,453 - INFO - 2025-10-30 13:50:37,453 - INFO - ================================================================================ 2025-10-30 13:50:37,453 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 13:50:37,453 - 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-30 13:50:37,740 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.254': '0'}} with 2025-10-30 13:50:37,741 - INFO - Initial checks done. Running the testcase now 2025-10-30 13:50:37,741 - INFO - 2025-10-30 13:50:38,080 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96469454:ctest-vn4-97659942, 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-96469454:ctest-vn4-97659942, 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-96469454:ctest-vn4-97659942, 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-96469454:ctest-vn4-97659942, 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-30 13:50:38,575 - DEBUG - Response for create_network : {'network': {'id': '5c82484c-0f7e-42e7-b7d7-f87ab49f369e', 'name': 'ctest-vn4-97659942', 'tenant_id': '56675df85d16455e82a99fe299594761', 'project_id': '56675df85d16455e82a99fe299594761', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96469454', 'ctest-vn4-97659942'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 13:50:38,733 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0e016f2-93dc-4d0e-a1ee-1d1fdfb2694b', 'name': '', 'tenant_id': '56675df85d16455e82a99fe299594761', 'network_id': '5c82484c-0f7e-42e7-b7d7-f87ab49f369e', 'ip_version': 4, 'cidr': '210.223.110.128/26', 'allocation_pools': [{'start': '210.223.110.130', 'end': '210.223.110.190'}], 'gateway_ip': '210.223.110.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.223.110.130', 'tags': [], 'project_id': '56675df85d16455e82a99fe299594761'}} 2025-10-30 13:50:38,935 - DEBUG - Response for create_subnet : {'subnet': {'id': '03b037fb-995d-4e7b-87cf-c5fa03c8d2ee', 'name': '', 'tenant_id': '56675df85d16455e82a99fe299594761', 'network_id': '5c82484c-0f7e-42e7-b7d7-f87ab49f369e', 'ip_version': 6, 'cidr': '2cec:c567:f15d:60d6:e065:47b4::/96', 'allocation_pools': [{'start': '2cec:c567:f15d:60d6:e065:47b4:0:2', 'end': '2cec:c567:f15d:60d6:e065:47b4:ffff:fffe'}], 'gateway_ip': '2cec:c567:f15d:60d6:e065:47b4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2cec:c567:f15d:60d6:e065:47b4:0:2', 'tags': [], 'project_id': '56675df85d16455e82a99fe299594761'}} 2025-10-30 13:50:39,008 - INFO - Created VN ctest-vn4-97659942 2025-10-30 13:50:39,060 - DEBUG - VN ctest-vn4-97659942 UUID is 5c82484c-0f7e-42e7-b7d7-f87ab49f369e 2025-10-30 13:50:39,236 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c82484c-0f7e-42e7-b7d7-f87ab49f369e', 'name': 'ctest-vn4-97659942', 'tenant_id': '56675df85d16455e82a99fe299594761', 'project_id': '56675df85d16455e82a99fe299594761', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c0e016f2-93dc-4d0e-a1ee-1d1fdfb2694b', '03b037fb-995d-4e7b-87cf-c5fa03c8d2ee'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96469454', 'ctest-vn4-97659942'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96469454', 'ctest-policy1-71561573']], 'subnet_ipam': [{'subnet_cidr': '210.223.110.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2cec:c567:f15d:60d6:e065:47b4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 13:50:39,400 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-30 13:50:39,690 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-30 13:50:39,715 - DEBUG - Requesting: http://10.0.0.141:8082/domain/a96023cb-56f4-4ce0-9a62-0b2ecdfbbca8 2025-10-30 13:50:39,725 - DEBUG - Requesting: http://10.0.0.141:8082/project/56675df8-5d16-455e-82a9-9fe299594761 2025-10-30 13:50:39,793 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/5c82484c-0f7e-42e7-b7d7-f87ab49f369e 2025-10-30 13:50:39,804 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/5c82484c-0f7e-42e7-b7d7-f87ab49f369e 2025-10-30 13:50:39,813 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f1178408-56f1-4192-a360-438061703264 2025-10-30 13:50:39,819 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f1178408-56f1-4192-a360-438061703264 2025-10-30 13:50:39,825 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/4d4cc0cb-95e7-48c6-8c53-69c1d7ce963a 2025-10-30 13:50:39,830 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 13:50:39,830 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/5c82484c-0f7e-42e7-b7d7-f87ab49f369e 2025-10-30 13:50:39,837 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f1178408-56f1-4192-a360-438061703264 2025-10-30 13:50:39,849 - INFO - Verified VN network id 12 for VN 5c82484c-0f7e-42e7-b7d7-f87ab49f369e 2025-10-30 13:50:39,849 - INFO - Verifications in API Server for VN ctest-vn4-97659942 passed 2025-10-30 13:50:39,849 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/5c82484c-0f7e-42e7-b7d7-f87ab49f369e 2025-10-30 13:50:39,857 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f1178408-56f1-4192-a360-438061703264 2025-10-30 13:50:39,862 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f1178408-56f1-4192-a360-438061703264 2025-10-30 13:50:39,867 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/4d4cc0cb-95e7-48c6-8c53-69c1d7ce963a 2025-10-30 13:50:39,877 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96469454:ctest-vn4-97659942', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96469454', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6665969889976402663', 'uuid-lslong': '13247330034833634974'}, 'enable': 'true', 'created': '2025-10-30T13:50:38', 'last-modified': '2025-10-30T13:50:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.660044'} 2025-10-30 13:50:39,884 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 13:50:39,884 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-97659942 passed 2025-10-30 13:50:39,884 - DEBUG - ====Verifying policy data for ctest-vn4-97659942 in API_Server ====== 2025-10-30 13:50:39,884 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-30 13:50:39,889 - DEBUG - Requesting: http://10.0.0.141:8082/domain/a96023cb-56f4-4ce0-9a62-0b2ecdfbbca8 2025-10-30 13:50:39,899 - DEBUG - Requesting: http://10.0.0.141:8082/project/56675df8-5d16-455e-82a9-9fe299594761 2025-10-30 13:50:39,962 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/5c82484c-0f7e-42e7-b7d7-f87ab49f369e 2025-10-30 13:50:39,969 - DEBUG - ==>Verifying data for policy with id: 29cee4a9-6c8f-476f-b68c-dfeaee300622, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96469454', 'ctest-policy1-71561573'] 2025-10-30 13:50:39,969 - INFO - VN ctest-vn4-97659942 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 13:50:39,969 - DEBUG - Verifying the vn in opserver 2025-10-30 13:50:39,969 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96469454:ctest-vn4-97659942 virtual network link through opserver 10.0.0.141 2025-10-30 13:50:39,970 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-30 13:50:40,257 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-30 13:50:40,310 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96469454:ctest-vn4-97659942', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96469454:ctest-vn4-97659942?flat'} 2025-10-30 13:50:40,310 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96469454:ctest-vn4-97659942 is found in opserver 2025-10-30 13:50:40,318 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 13:50:40,323 - DEBUG - VRF ids for VN ctest-vn4-97659942: {} 2025-10-30 13:50:40,323 - DEBUG - ====Verifying data for ctest-policy1-71561573 in API_Server ====== 2025-10-30 13:50:40,323 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-30 13:50:40,329 - DEBUG - Requesting: http://10.0.0.141:8082/domain/a96023cb-56f4-4ce0-9a62-0b2ecdfbbca8 2025-10-30 13:50:40,339 - DEBUG - Requesting: http://10.0.0.141:8082/project/56675df8-5d16-455e-82a9-9fe299594761 2025-10-30 13:50:40,408 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/29cee4a9-6c8f-476f-b68c-dfeaee300622 2025-10-30 13:50:40,417 - INFO - Verified policy ctest-policy1-71561573 in API Server, Result: True 2025-10-30 13:50:40,417 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 13:50:40,424 - INFO - Deleting VN ctest-vn4-97659942 2025-10-30 13:50:40,538 - DEBUG - Response for deleting network () 2025-10-30 13:50:40,538 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f1178408-56f1-4192-a360-438061703264 2025-10-30 13:50:40,543 - DEBUG - Response Code: 404 2025-10-30 13:50:40,543 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-10-30 13:50:40,548 - DEBUG - Requesting: http://10.0.0.141:8082/domain/a96023cb-56f4-4ce0-9a62-0b2ecdfbbca8 2025-10-30 13:50:40,601 - DEBUG - Requesting: http://10.0.0.141:8082/project/56675df8-5d16-455e-82a9-9fe299594761 2025-10-30 13:50:40,667 - INFO - Validated that VN ctest-vn4-97659942 is not found in API Server 2025-10-30 13:50:40,678 - DEBUG - VN ctest-vn4-97659942 is not present in Agent 10.0.0.141 2025-10-30 13:50:40,678 - INFO - Validated that VN ctest-vn4-97659942 is not in any agent 2025-10-30 13:50:40,691 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-97659942 info 2025-10-30 13:50:40,712 - INFO - Deleted policy ctest-policy1-71561573 2025-10-30 13:50:40,876 - DEBUG - policy ctest-policy1-71561573 is not found in API Server 2025-10-30 13:50:41,129 - DEBUG - No XMPP flaps were noticed during the test 2025-10-30 13:50:41,129 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-30 13:50:41,129 - INFO - -------------------------------------------------------------------------------- 2025-10-30 13:50:41,424 - DEBUG - No XMPP flaps were noticed during the test 2025-10-30 13:50:41,424 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-30 13:50:41,425 - INFO - -------------------------------------------------------------------------------- 2025-10-30 13:50:42,071 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-96469454, ID : 56675df8-5d16-455e-82a9-9fe299594761