2025-10-23 06:08:48,177 - INFO - Domain Default found not creating 2025-10-23 06:08:48,347 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70506989 not found, creating it 2025-10-23 06:08:48,828 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70506989, ID : aacf3117-8233-4d01-8009-ffce37ce2dcf 2025-10-23 06:08:50,316 - INFO - ================================================================================ 2025-10-23 06:08:50,317 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 06:08:50,571 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-23 06:08:50,571 - INFO - Initial checks done. Running the testcase now 2025-10-23 06:08:50,571 - INFO - 2025-10-23 06:08:50,571 - INFO - ================================================================================ 2025-10-23 06:08:50,571 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 06:08:50,571 - 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-23 06:08:50,858 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-10-23 06:08:50,858 - INFO - Initial checks done. Running the testcase now 2025-10-23 06:08:50,858 - INFO - 2025-10-23 06:08:51,252 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70506989:ctest-vn4-66626120, 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-70506989:ctest-vn4-66626120, 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-70506989:ctest-vn4-66626120, 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-70506989:ctest-vn4-66626120, 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-23 06:08:51,875 - DEBUG - Response for create_network : {'network': {'id': '0ee743f1-786c-4cb9-b64e-333598b95dd7', 'name': 'ctest-vn4-66626120', 'tenant_id': 'aacf311782334d018009ffce37ce2dcf', 'project_id': 'aacf311782334d018009ffce37ce2dcf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70506989', 'ctest-vn4-66626120'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 06:08:52,038 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a2078cb-2709-4fbf-81ea-a13d20ccb055', 'name': '', 'tenant_id': 'aacf311782334d018009ffce37ce2dcf', 'network_id': '0ee743f1-786c-4cb9-b64e-333598b95dd7', 'ip_version': 4, 'cidr': '141.166.126.0/26', 'allocation_pools': [{'start': '141.166.126.2', 'end': '141.166.126.62'}], 'gateway_ip': '141.166.126.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.166.126.2', 'tags': [], 'project_id': 'aacf311782334d018009ffce37ce2dcf'}} 2025-10-23 06:08:52,211 - DEBUG - Response for create_subnet : {'subnet': {'id': '2caee149-ef1f-45be-a9be-f56a105a3c85', 'name': '', 'tenant_id': 'aacf311782334d018009ffce37ce2dcf', 'network_id': '0ee743f1-786c-4cb9-b64e-333598b95dd7', 'ip_version': 6, 'cidr': '3d8c:2650:2754:238b:b51c:bd60::/96', 'allocation_pools': [{'start': '3d8c:2650:2754:238b:b51c:bd60:0:2', 'end': '3d8c:2650:2754:238b:b51c:bd60:ffff:fffe'}], 'gateway_ip': '3d8c:2650:2754:238b:b51c:bd60:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d8c:2650:2754:238b:b51c:bd60:0:2', 'tags': [], 'project_id': 'aacf311782334d018009ffce37ce2dcf'}} 2025-10-23 06:08:52,235 - INFO - Created VN ctest-vn4-66626120 2025-10-23 06:08:52,288 - DEBUG - VN ctest-vn4-66626120 UUID is 0ee743f1-786c-4cb9-b64e-333598b95dd7 2025-10-23 06:08:52,516 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0ee743f1-786c-4cb9-b64e-333598b95dd7', 'name': 'ctest-vn4-66626120', 'tenant_id': 'aacf311782334d018009ffce37ce2dcf', 'project_id': 'aacf311782334d018009ffce37ce2dcf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a2078cb-2709-4fbf-81ea-a13d20ccb055', '2caee149-ef1f-45be-a9be-f56a105a3c85'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70506989', 'ctest-vn4-66626120'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70506989', 'ctest-policy1-99212508']], 'subnet_ipam': [{'subnet_cidr': '141.166.126.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d8c:2650:2754:238b:b51c:bd60::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 06:08:52,693 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 06:08:52,987 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 06:08:53,017 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0cd7756f-200e-4216-8aae-3b741f6fa611 2025-10-23 06:08:53,031 - DEBUG - Requesting: http://10.0.0.254:8082/project/aacf3117-8233-4d01-8009-ffce37ce2dcf 2025-10-23 06:08:53,110 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ee743f1-786c-4cb9-b64e-333598b95dd7 2025-10-23 06:08:53,122 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ee743f1-786c-4cb9-b64e-333598b95dd7 2025-10-23 06:08:53,132 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/df27828d-a0af-4041-ae70-1355f6bcf538 2025-10-23 06:08:53,139 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/df27828d-a0af-4041-ae70-1355f6bcf538 2025-10-23 06:08:53,146 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0a70acec-5c34-4e10-b36c-ad86df00c5f9 2025-10-23 06:08:53,153 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 06:08:53,153 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ee743f1-786c-4cb9-b64e-333598b95dd7 2025-10-23 06:08:53,163 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/df27828d-a0af-4041-ae70-1355f6bcf538 2025-10-23 06:08:53,178 - INFO - Verified VN network id 11 for VN 0ee743f1-786c-4cb9-b64e-333598b95dd7 2025-10-23 06:08:53,178 - INFO - Verifications in API Server for VN ctest-vn4-66626120 passed 2025-10-23 06:08:53,178 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ee743f1-786c-4cb9-b64e-333598b95dd7 2025-10-23 06:08:53,188 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/df27828d-a0af-4041-ae70-1355f6bcf538 2025-10-23 06:08:53,196 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/df27828d-a0af-4041-ae70-1355f6bcf538 2025-10-23 06:08:53,205 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0a70acec-5c34-4e10-b36c-ad86df00c5f9 2025-10-23 06:08:53,217 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70506989:ctest-vn4-66626120', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70506989', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1073901740537695417', 'uuid-lslong': '13136493468374883799'}, 'enable': 'true', 'created': '2025-10-23T06:08:51', 'last-modified': '2025-10-23T06:08:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.718391'} 2025-10-23 06:08:53,223 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 06:08:53,223 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-66626120 passed 2025-10-23 06:08:53,223 - DEBUG - ====Verifying policy data for ctest-vn4-66626120 in API_Server ====== 2025-10-23 06:08:53,223 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 06:08:53,230 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0cd7756f-200e-4216-8aae-3b741f6fa611 2025-10-23 06:08:53,240 - DEBUG - Requesting: http://10.0.0.254:8082/project/aacf3117-8233-4d01-8009-ffce37ce2dcf 2025-10-23 06:08:53,312 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0ee743f1-786c-4cb9-b64e-333598b95dd7 2025-10-23 06:08:53,325 - DEBUG - ==>Verifying data for policy with id: a5eed487-a457-4d43-8f4d-47e0ba62d432, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70506989', 'ctest-policy1-99212508'] 2025-10-23 06:08:53,325 - INFO - VN ctest-vn4-66626120 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 06:08:53,325 - DEBUG - Verifying the vn in opserver 2025-10-23 06:08:53,325 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70506989:ctest-vn4-66626120 virtual network link through opserver 10.0.0.254 2025-10-23 06:08:53,325 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-23 06:08:53,616 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-23 06:08:53,676 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70506989:ctest-vn4-66626120', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70506989:ctest-vn4-66626120?flat'} 2025-10-23 06:08:53,676 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70506989:ctest-vn4-66626120 is found in opserver 2025-10-23 06:08:53,689 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 06:08:53,696 - DEBUG - VRF ids for VN ctest-vn4-66626120: {} 2025-10-23 06:08:53,697 - DEBUG - ====Verifying data for ctest-policy1-99212508 in API_Server ====== 2025-10-23 06:08:53,697 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 06:08:53,704 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0cd7756f-200e-4216-8aae-3b741f6fa611 2025-10-23 06:08:53,715 - DEBUG - Requesting: http://10.0.0.254:8082/project/aacf3117-8233-4d01-8009-ffce37ce2dcf 2025-10-23 06:08:53,812 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/a5eed487-a457-4d43-8f4d-47e0ba62d432 2025-10-23 06:08:53,822 - INFO - Verified policy ctest-policy1-99212508 in API Server, Result: True 2025-10-23 06:08:53,822 - INFO - Done with setup and verification, moving onto test .. 2025-10-23 06:08:53,831 - INFO - Deleting VN ctest-vn4-66626120 2025-10-23 06:08:53,951 - DEBUG - Response for deleting network () 2025-10-23 06:08:53,951 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/df27828d-a0af-4041-ae70-1355f6bcf538 2025-10-23 06:08:53,956 - DEBUG - Response Code: 404 2025-10-23 06:08:53,957 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-23 06:08:53,962 - DEBUG - Requesting: http://10.0.0.254:8082/domain/0cd7756f-200e-4216-8aae-3b741f6fa611 2025-10-23 06:08:54,015 - DEBUG - Requesting: http://10.0.0.254:8082/project/aacf3117-8233-4d01-8009-ffce37ce2dcf 2025-10-23 06:08:54,088 - INFO - Validated that VN ctest-vn4-66626120 is not found in API Server 2025-10-23 06:08:54,100 - DEBUG - VN ctest-vn4-66626120 is not present in Agent 10.0.0.254 2025-10-23 06:08:54,100 - INFO - Validated that VN ctest-vn4-66626120 is not in any agent 2025-10-23 06:08:54,116 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-66626120 info 2025-10-23 06:08:54,142 - INFO - Deleted policy ctest-policy1-99212508 2025-10-23 06:08:54,312 - DEBUG - policy ctest-policy1-99212508 is not found in API Server 2025-10-23 06:08:54,576 - DEBUG - No XMPP flaps were noticed during the test