2025-12-01 02:06:14,647 - INFO - Domain Default found not creating 2025-12-01 02:06:14,802 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-32899989 not found, creating it 2025-12-01 02:06:15,266 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-32899989, ID : 6495e9a9-0c8f-4f21-b2b8-05dca35a5eb2 2025-12-01 02:06:17,383 - INFO - ================================================================================ 2025-12-01 02:06:17,383 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-01 02:06:17,642 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2025-12-01 02:06:17,642 - INFO - Initial checks done. Running the testcase now 2025-12-01 02:06:17,642 - INFO - 2025-12-01 02:06:17,642 - INFO - ================================================================================ 2025-12-01 02:06:17,642 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-01 02:06:17,642 - 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-01 02:06:17,938 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2025-12-01 02:06:17,938 - INFO - Initial checks done. Running the testcase now 2025-12-01 02:06:17,938 - INFO - 2025-12-01 02:06:18,294 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32899989:ctest-vn4-01124491, 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-32899989:ctest-vn4-01124491, 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-32899989:ctest-vn4-01124491, 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-32899989:ctest-vn4-01124491, 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-01 02:06:18,813 - DEBUG - Response for create_network : {'network': {'id': '2e23e523-31b0-4129-bd9f-3eaef8e726e1', 'name': 'ctest-vn4-01124491', 'tenant_id': '6495e9a90c8f4f21b2b805dca35a5eb2', 'project_id': '6495e9a90c8f4f21b2b805dca35a5eb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32899989', 'ctest-vn4-01124491'], 'port_security_enabled': True, 'description': ''}} 2025-12-01 02:06:19,003 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c955d8c7-b8b9-4d28-be0f-e2dd39d11762', 'name': '', 'tenant_id': '6495e9a90c8f4f21b2b805dca35a5eb2', 'network_id': '2e23e523-31b0-4129-bd9f-3eaef8e726e1', 'ip_version': 4, 'cidr': '163.210.245.64/26', 'allocation_pools': [{'start': '163.210.245.66', 'end': '163.210.245.126'}], 'gateway_ip': '163.210.245.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '163.210.245.66', 'tags': [], 'project_id': '6495e9a90c8f4f21b2b805dca35a5eb2'}} 2025-12-01 02:06:19,205 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f210819-c70d-41d9-8435-00850391ee02', 'name': '', 'tenant_id': '6495e9a90c8f4f21b2b805dca35a5eb2', 'network_id': '2e23e523-31b0-4129-bd9f-3eaef8e726e1', 'ip_version': 6, 'cidr': '36a8:50ab:68b9:e198:ebd3:f55c::/96', 'allocation_pools': [{'start': '36a8:50ab:68b9:e198:ebd3:f55c:0:2', 'end': '36a8:50ab:68b9:e198:ebd3:f55c:ffff:fffe'}], 'gateway_ip': '36a8:50ab:68b9:e198:ebd3:f55c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36a8:50ab:68b9:e198:ebd3:f55c:0:2', 'tags': [], 'project_id': '6495e9a90c8f4f21b2b805dca35a5eb2'}} 2025-12-01 02:06:19,224 - INFO - Created VN ctest-vn4-01124491 2025-12-01 02:06:19,273 - DEBUG - VN ctest-vn4-01124491 UUID is 2e23e523-31b0-4129-bd9f-3eaef8e726e1 2025-12-01 02:06:19,468 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2e23e523-31b0-4129-bd9f-3eaef8e726e1', 'name': 'ctest-vn4-01124491', 'tenant_id': '6495e9a90c8f4f21b2b805dca35a5eb2', 'project_id': '6495e9a90c8f4f21b2b805dca35a5eb2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c955d8c7-b8b9-4d28-be0f-e2dd39d11762', '1f210819-c70d-41d9-8435-00850391ee02'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32899989', 'ctest-vn4-01124491'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32899989', 'ctest-policy1-78924122']], 'subnet_ipam': [{'subnet_cidr': '163.210.245.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '36a8:50ab:68b9:e198:ebd3:f55c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-01 02:06:19,629 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-01 02:06:19,926 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-01 02:06:19,954 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cb29309f-860f-49bf-a2e1-481fa9c348c7 2025-12-01 02:06:19,966 - DEBUG - Requesting: http://10.0.0.19:8082/project/6495e9a9-0c8f-4f21-b2b8-05dca35a5eb2 2025-12-01 02:06:20,034 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2e23e523-31b0-4129-bd9f-3eaef8e726e1 2025-12-01 02:06:20,045 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2e23e523-31b0-4129-bd9f-3eaef8e726e1 2025-12-01 02:06:20,053 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e2a718b3-b833-49fe-a001-7b89d8442a8b 2025-12-01 02:06:20,059 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e2a718b3-b833-49fe-a001-7b89d8442a8b 2025-12-01 02:06:20,064 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/a0653e88-19a7-425e-a5ae-308283d2c495 2025-12-01 02:06:20,069 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-01 02:06:20,069 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2e23e523-31b0-4129-bd9f-3eaef8e726e1 2025-12-01 02:06:20,077 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e2a718b3-b833-49fe-a001-7b89d8442a8b 2025-12-01 02:06:20,088 - INFO - Verified VN network id 11 for VN 2e23e523-31b0-4129-bd9f-3eaef8e726e1 2025-12-01 02:06:20,088 - INFO - Verifications in API Server for VN ctest-vn4-01124491 passed 2025-12-01 02:06:20,088 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2e23e523-31b0-4129-bd9f-3eaef8e726e1 2025-12-01 02:06:20,097 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e2a718b3-b833-49fe-a001-7b89d8442a8b 2025-12-01 02:06:20,102 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e2a718b3-b833-49fe-a001-7b89d8442a8b 2025-12-01 02:06:20,108 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/a0653e88-19a7-425e-a5ae-308283d2c495 2025-12-01 02:06:20,117 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32899989:ctest-vn4-01124491', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-32899989', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3324752889249808681', 'uuid-lslong': '13663708715686504161'}, 'enable': 'true', 'created': '2025-12-01T02:06:18', 'last-modified': '2025-12-01T02:06:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.679256'} 2025-12-01 02:06:20,123 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-01 02:06:20,123 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-01124491 passed 2025-12-01 02:06:20,123 - DEBUG - ====Verifying policy data for ctest-vn4-01124491 in API_Server ====== 2025-12-01 02:06:20,123 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-01 02:06:20,128 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cb29309f-860f-49bf-a2e1-481fa9c348c7 2025-12-01 02:06:20,137 - DEBUG - Requesting: http://10.0.0.19:8082/project/6495e9a9-0c8f-4f21-b2b8-05dca35a5eb2 2025-12-01 02:06:20,213 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2e23e523-31b0-4129-bd9f-3eaef8e726e1 2025-12-01 02:06:20,222 - DEBUG - ==>Verifying data for policy with id: 5f1178a2-681b-4967-97f6-0babd7e0ba80, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32899989', 'ctest-policy1-78924122'] 2025-12-01 02:06:20,222 - INFO - VN ctest-vn4-01124491 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-01 02:06:20,222 - DEBUG - Verifying the vn in opserver 2025-12-01 02:06:20,222 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32899989:ctest-vn4-01124491 virtual network link through opserver 10.0.0.19 2025-12-01 02:06:20,222 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-12-01 02:06:20,517 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-12-01 02:06:20,582 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32899989:ctest-vn4-01124491', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32899989:ctest-vn4-01124491?flat'} 2025-12-01 02:06:20,582 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32899989:ctest-vn4-01124491 is found in opserver 2025-12-01 02:06:20,590 - DEBUG - Do not have enough data to verify VN in agent 2025-12-01 02:06:20,597 - DEBUG - VRF ids for VN ctest-vn4-01124491: {} 2025-12-01 02:06:20,597 - DEBUG - ====Verifying data for ctest-policy1-78924122 in API_Server ====== 2025-12-01 02:06:20,597 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-01 02:06:20,603 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cb29309f-860f-49bf-a2e1-481fa9c348c7 2025-12-01 02:06:20,613 - DEBUG - Requesting: http://10.0.0.19:8082/project/6495e9a9-0c8f-4f21-b2b8-05dca35a5eb2 2025-12-01 02:06:20,680 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/5f1178a2-681b-4967-97f6-0babd7e0ba80 2025-12-01 02:06:20,689 - INFO - Verified policy ctest-policy1-78924122 in API Server, Result: True 2025-12-01 02:06:20,689 - INFO - Done with setup and verification, moving onto test .. 2025-12-01 02:06:20,696 - INFO - Deleting VN ctest-vn4-01124491 2025-12-01 02:06:20,800 - DEBUG - Response for deleting network () 2025-12-01 02:06:20,800 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/e2a718b3-b833-49fe-a001-7b89d8442a8b 2025-12-01 02:06:20,805 - DEBUG - Response Code: 404 2025-12-01 02:06:20,805 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-12-01 02:06:20,809 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cb29309f-860f-49bf-a2e1-481fa9c348c7 2025-12-01 02:06:20,861 - DEBUG - Requesting: http://10.0.0.19:8082/project/6495e9a9-0c8f-4f21-b2b8-05dca35a5eb2 2025-12-01 02:06:20,936 - INFO - Validated that VN ctest-vn4-01124491 is not found in API Server 2025-12-01 02:06:20,945 - DEBUG - VN ctest-vn4-01124491 is not present in Agent 10.0.0.19 2025-12-01 02:06:20,945 - INFO - Validated that VN ctest-vn4-01124491 is not in any agent 2025-12-01 02:06:20,958 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-01124491 info 2025-12-01 02:06:20,982 - INFO - Deleted policy ctest-policy1-78924122 2025-12-01 02:06:21,157 - DEBUG - policy ctest-policy1-78924122 is not found in API Server 2025-12-01 02:06:21,411 - DEBUG - No XMPP flaps were noticed during the test 2025-12-01 02:06:21,411 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-01 02:06:21,411 - INFO - -------------------------------------------------------------------------------- 2025-12-01 02:06:21,708 - DEBUG - No XMPP flaps were noticed during the test 2025-12-01 02:06:21,708 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-01 02:06:21,708 - INFO - -------------------------------------------------------------------------------- 2025-12-01 02:06:22,386 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-32899989, ID : 6495e9a9-0c8f-4f21-b2b8-05dca35a5eb2