2025-10-24 01:51:38,572 - INFO - Domain Default found not creating 2025-10-24 01:51:38,689 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-09204510 not found, creating it 2025-10-24 01:51:39,116 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-09204510, ID : 2e74da60-442a-4f8b-82f6-bf7786803cb5 2025-10-24 01:51:40,423 - INFO - ================================================================================ 2025-10-24 01:51:40,423 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-24 01:51:40,680 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-24 01:51:40,680 - INFO - Initial checks done. Running the testcase now 2025-10-24 01:51:40,680 - INFO - 2025-10-24 01:51:40,680 - INFO - ================================================================================ 2025-10-24 01:51:40,680 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-24 01:51:40,680 - 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-24 01:51:40,972 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-24 01:51:40,972 - INFO - Initial checks done. Running the testcase now 2025-10-24 01:51:40,972 - INFO - 2025-10-24 01:51:41,312 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09204510:ctest-vn4-90569740, 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-09204510:ctest-vn4-90569740, 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-09204510:ctest-vn4-90569740, 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-09204510:ctest-vn4-90569740, 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-24 01:51:41,784 - DEBUG - Response for create_network : {'network': {'id': 'ce04111a-ec3b-45bb-a397-4c6b4f57982c', 'name': 'ctest-vn4-90569740', 'tenant_id': '2e74da60442a4f8b82f6bf7786803cb5', 'project_id': '2e74da60442a4f8b82f6bf7786803cb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09204510', 'ctest-vn4-90569740'], 'port_security_enabled': True, 'description': ''}} 2025-10-24 01:51:41,919 - DEBUG - Response for create_subnet : {'subnet': {'id': '92f2c120-9996-4964-94a1-b7c6acc2329f', 'name': '', 'tenant_id': '2e74da60442a4f8b82f6bf7786803cb5', 'network_id': 'ce04111a-ec3b-45bb-a397-4c6b4f57982c', 'ip_version': 4, 'cidr': '11.156.245.0/26', 'allocation_pools': [{'start': '11.156.245.2', 'end': '11.156.245.62'}], 'gateway_ip': '11.156.245.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.156.245.2', 'tags': [], 'project_id': '2e74da60442a4f8b82f6bf7786803cb5'}} 2025-10-24 01:51:42,063 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8261e0a-e18d-44f4-9353-fe4f6cb8cb75', 'name': '', 'tenant_id': '2e74da60442a4f8b82f6bf7786803cb5', 'network_id': 'ce04111a-ec3b-45bb-a397-4c6b4f57982c', 'ip_version': 6, 'cidr': '362c:e9c1:bfb1:ec70:db41:691b::/96', 'allocation_pools': [{'start': '362c:e9c1:bfb1:ec70:db41:691b:0:2', 'end': '362c:e9c1:bfb1:ec70:db41:691b:ffff:fffe'}], 'gateway_ip': '362c:e9c1:bfb1:ec70:db41:691b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '362c:e9c1:bfb1:ec70:db41:691b:0:2', 'tags': [], 'project_id': '2e74da60442a4f8b82f6bf7786803cb5'}} 2025-10-24 01:51:42,081 - INFO - Created VN ctest-vn4-90569740 2025-10-24 01:51:42,131 - DEBUG - VN ctest-vn4-90569740 UUID is ce04111a-ec3b-45bb-a397-4c6b4f57982c 2025-10-24 01:51:42,317 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ce04111a-ec3b-45bb-a397-4c6b4f57982c', 'name': 'ctest-vn4-90569740', 'tenant_id': '2e74da60442a4f8b82f6bf7786803cb5', 'project_id': '2e74da60442a4f8b82f6bf7786803cb5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['92f2c120-9996-4964-94a1-b7c6acc2329f', 'f8261e0a-e18d-44f4-9353-fe4f6cb8cb75'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09204510', 'ctest-vn4-90569740'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09204510', 'ctest-policy1-17717301']], 'subnet_ipam': [{'subnet_cidr': '11.156.245.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '362c:e9c1:bfb1:ec70:db41:691b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-24 01:51:42,475 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-24 01:51:42,764 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-24 01:51:42,793 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4e3805b8-bd72-454f-acd6-c619155d7fc7 2025-10-24 01:51:42,804 - DEBUG - Requesting: http://10.0.0.254:8082/project/2e74da60-442a-4f8b-82f6-bf7786803cb5 2025-10-24 01:51:42,873 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ce04111a-ec3b-45bb-a397-4c6b4f57982c 2025-10-24 01:51:42,883 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ce04111a-ec3b-45bb-a397-4c6b4f57982c 2025-10-24 01:51:42,891 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0501d1b5-bdd4-4501-a5c2-be6a947ad028 2025-10-24 01:51:42,897 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0501d1b5-bdd4-4501-a5c2-be6a947ad028 2025-10-24 01:51:42,903 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/45d74677-d273-4c3d-82b5-d93b5a7b7e0b 2025-10-24 01:51:42,908 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-24 01:51:42,908 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ce04111a-ec3b-45bb-a397-4c6b4f57982c 2025-10-24 01:51:42,917 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0501d1b5-bdd4-4501-a5c2-be6a947ad028 2025-10-24 01:51:42,930 - INFO - Verified VN network id 12 for VN ce04111a-ec3b-45bb-a397-4c6b4f57982c 2025-10-24 01:51:42,930 - INFO - Verifications in API Server for VN ctest-vn4-90569740 passed 2025-10-24 01:51:42,930 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ce04111a-ec3b-45bb-a397-4c6b4f57982c 2025-10-24 01:51:42,939 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0501d1b5-bdd4-4501-a5c2-be6a947ad028 2025-10-24 01:51:42,945 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0501d1b5-bdd4-4501-a5c2-be6a947ad028 2025-10-24 01:51:42,951 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/45d74677-d273-4c3d-82b5-d93b5a7b7e0b 2025-10-24 01:51:42,961 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09204510:ctest-vn4-90569740', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-09204510', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14845009079050126779', 'uuid-lslong': '11787974573441914924'}, 'enable': 'true', 'created': '2025-10-24T01:51:41', 'last-modified': '2025-10-24T01:51:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.667538'} 2025-10-24 01:51:42,970 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-24 01:51:42,970 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-90569740 passed 2025-10-24 01:51:42,970 - DEBUG - ====Verifying policy data for ctest-vn4-90569740 in API_Server ====== 2025-10-24 01:51:42,970 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-24 01:51:42,975 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4e3805b8-bd72-454f-acd6-c619155d7fc7 2025-10-24 01:51:42,986 - DEBUG - Requesting: http://10.0.0.254:8082/project/2e74da60-442a-4f8b-82f6-bf7786803cb5 2025-10-24 01:51:43,058 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ce04111a-ec3b-45bb-a397-4c6b4f57982c 2025-10-24 01:51:43,067 - DEBUG - ==>Verifying data for policy with id: 11bec541-8c04-47ea-a7af-1d5570813b17, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-09204510', 'ctest-policy1-17717301'] 2025-10-24 01:51:43,067 - INFO - VN ctest-vn4-90569740 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-24 01:51:43,067 - DEBUG - Verifying the vn in opserver 2025-10-24 01:51:43,067 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09204510:ctest-vn4-90569740 virtual network link through opserver 10.0.0.254 2025-10-24 01:51:43,067 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-24 01:51:43,356 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-24 01:51:43,408 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09204510:ctest-vn4-90569740', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09204510:ctest-vn4-90569740?flat'} 2025-10-24 01:51:43,408 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-09204510:ctest-vn4-90569740 is found in opserver 2025-10-24 01:51:43,417 - DEBUG - Do not have enough data to verify VN in agent 2025-10-24 01:51:43,421 - DEBUG - VRF ids for VN ctest-vn4-90569740: {} 2025-10-24 01:51:43,421 - DEBUG - ====Verifying data for ctest-policy1-17717301 in API_Server ====== 2025-10-24 01:51:43,421 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-24 01:51:43,426 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4e3805b8-bd72-454f-acd6-c619155d7fc7 2025-10-24 01:51:43,436 - DEBUG - Requesting: http://10.0.0.254:8082/project/2e74da60-442a-4f8b-82f6-bf7786803cb5 2025-10-24 01:51:43,503 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/11bec541-8c04-47ea-a7af-1d5570813b17 2025-10-24 01:51:43,511 - INFO - Verified policy ctest-policy1-17717301 in API Server, Result: True 2025-10-24 01:51:43,511 - INFO - Done with setup and verification, moving onto test .. 2025-10-24 01:51:43,518 - INFO - Deleting VN ctest-vn4-90569740 2025-10-24 01:51:43,624 - DEBUG - Response for deleting network () 2025-10-24 01:51:43,624 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/0501d1b5-bdd4-4501-a5c2-be6a947ad028 2025-10-24 01:51:43,629 - DEBUG - Response Code: 404 2025-10-24 01:51:43,629 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-24 01:51:43,635 - DEBUG - Requesting: http://10.0.0.254:8082/domain/4e3805b8-bd72-454f-acd6-c619155d7fc7 2025-10-24 01:51:43,688 - DEBUG - Requesting: http://10.0.0.254:8082/project/2e74da60-442a-4f8b-82f6-bf7786803cb5 2025-10-24 01:51:43,757 - INFO - Validated that VN ctest-vn4-90569740 is not found in API Server 2025-10-24 01:51:43,766 - DEBUG - VN ctest-vn4-90569740 is not present in Agent 10.0.0.254 2025-10-24 01:51:43,766 - INFO - Validated that VN ctest-vn4-90569740 is not in any agent 2025-10-24 01:51:43,779 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-90569740 info 2025-10-24 01:51:43,801 - INFO - Deleted policy ctest-policy1-17717301 2025-10-24 01:51:43,959 - DEBUG - policy ctest-policy1-17717301 is not found in API Server 2025-10-24 01:51:44,211 - DEBUG - No XMPP flaps were noticed during the test