2025-12-10 17:06:24,992 - INFO - Domain Default found not creating 2025-12-10 17:06:25,151 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-45666642 not found, creating it 2025-12-10 17:06:25,606 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-45666642, ID : 2de781ae-1bf2-44a7-9348-f15d09a488f4 2025-12-10 17:06:27,088 - INFO - ================================================================================ 2025-12-10 17:06:27,088 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-10 17:06:27,349 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.25': '0'}} with 2025-12-10 17:06:27,349 - INFO - Initial checks done. Running the testcase now 2025-12-10 17:06:27,349 - INFO - 2025-12-10 17:06:27,349 - INFO - ================================================================================ 2025-12-10 17:06:27,349 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-10 17:06:27,349 - 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-10 17:06:27,641 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.25': '0'}} with 2025-12-10 17:06:27,641 - INFO - Initial checks done. Running the testcase now 2025-12-10 17:06:27,641 - INFO - 2025-12-10 17:06:28,058 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45666642:ctest-vn4-42674378, 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-45666642:ctest-vn4-42674378, 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-45666642:ctest-vn4-42674378, 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-45666642:ctest-vn4-42674378, 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-10 17:06:28,585 - DEBUG - Response for create_network : {'network': {'id': 'e6aee6cd-815e-4853-91ef-06aa84f139de', 'name': 'ctest-vn4-42674378', 'tenant_id': '2de781ae1bf244a79348f15d09a488f4', 'project_id': '2de781ae1bf244a79348f15d09a488f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45666642', 'ctest-vn4-42674378'], 'port_security_enabled': True, 'description': ''}} 2025-12-10 17:06:28,763 - DEBUG - Response for create_subnet : {'subnet': {'id': '5dcac431-85cb-457e-9e66-9d83096984a8', 'name': '', 'tenant_id': '2de781ae1bf244a79348f15d09a488f4', 'network_id': 'e6aee6cd-815e-4853-91ef-06aa84f139de', 'ip_version': 4, 'cidr': '38.239.222.0/26', 'allocation_pools': [{'start': '38.239.222.2', 'end': '38.239.222.62'}], 'gateway_ip': '38.239.222.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.239.222.2', 'tags': [], 'project_id': '2de781ae1bf244a79348f15d09a488f4'}} 2025-12-10 17:06:28,960 - DEBUG - Response for create_subnet : {'subnet': {'id': '91f20f0f-f849-49f7-b352-b552975b4523', 'name': '', 'tenant_id': '2de781ae1bf244a79348f15d09a488f4', 'network_id': 'e6aee6cd-815e-4853-91ef-06aa84f139de', 'ip_version': 6, 'cidr': '222e:8f92:89b:da0c:8f85:37a5::/96', 'allocation_pools': [{'start': '222e:8f92:89b:da0c:8f85:37a5:0:2', 'end': '222e:8f92:89b:da0c:8f85:37a5:ffff:fffe'}], 'gateway_ip': '222e:8f92:89b:da0c:8f85:37a5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222e:8f92:89b:da0c:8f85:37a5:0:2', 'tags': [], 'project_id': '2de781ae1bf244a79348f15d09a488f4'}} 2025-12-10 17:06:28,978 - INFO - Created VN ctest-vn4-42674378 2025-12-10 17:06:29,032 - DEBUG - VN ctest-vn4-42674378 UUID is e6aee6cd-815e-4853-91ef-06aa84f139de 2025-12-10 17:06:29,225 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e6aee6cd-815e-4853-91ef-06aa84f139de', 'name': 'ctest-vn4-42674378', 'tenant_id': '2de781ae1bf244a79348f15d09a488f4', 'project_id': '2de781ae1bf244a79348f15d09a488f4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5dcac431-85cb-457e-9e66-9d83096984a8', '91f20f0f-f849-49f7-b352-b552975b4523'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45666642', 'ctest-vn4-42674378'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45666642', 'ctest-policy1-06789463']], 'subnet_ipam': [{'subnet_cidr': '38.239.222.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '222e:8f92:89b:da0c:8f85:37a5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-10 17:06:29,396 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-12-10 17:06:29,687 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-12-10 17:06:29,718 - DEBUG - Requesting: http://10.0.0.41:8082/domain/3442661e-287c-4b37-bca3-67be7280b8c9 2025-12-10 17:06:29,730 - DEBUG - Requesting: http://10.0.0.41:8082/project/2de781ae-1bf2-44a7-9348-f15d09a488f4 2025-12-10 17:06:29,802 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e6aee6cd-815e-4853-91ef-06aa84f139de 2025-12-10 17:06:29,813 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e6aee6cd-815e-4853-91ef-06aa84f139de 2025-12-10 17:06:29,822 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/81c98391-7bc3-4eea-be41-2306233dfa97 2025-12-10 17:06:29,828 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/81c98391-7bc3-4eea-be41-2306233dfa97 2025-12-10 17:06:29,833 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/aab79f66-2912-4ef9-9f17-a6d3545f41e3 2025-12-10 17:06:29,839 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-10 17:06:29,839 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e6aee6cd-815e-4853-91ef-06aa84f139de 2025-12-10 17:06:29,848 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/81c98391-7bc3-4eea-be41-2306233dfa97 2025-12-10 17:06:29,861 - INFO - Verified VN network id 11 for VN e6aee6cd-815e-4853-91ef-06aa84f139de 2025-12-10 17:06:29,861 - INFO - Verifications in API Server for VN ctest-vn4-42674378 passed 2025-12-10 17:06:29,861 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e6aee6cd-815e-4853-91ef-06aa84f139de 2025-12-10 17:06:29,870 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/81c98391-7bc3-4eea-be41-2306233dfa97 2025-12-10 17:06:29,876 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/81c98391-7bc3-4eea-be41-2306233dfa97 2025-12-10 17:06:29,882 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/aab79f66-2912-4ef9-9f17-a6d3545f41e3 2025-12-10 17:06:29,893 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45666642:ctest-vn4-42674378', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45666642', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16622477044984203347', 'uuid-lslong': '10515630984378005982'}, 'enable': 'true', 'created': '2025-12-10T17:06:28', 'last-modified': '2025-12-10T17:06:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.689392'} 2025-12-10 17:06:29,902 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-10 17:06:29,902 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42674378 passed 2025-12-10 17:06:29,902 - DEBUG - ====Verifying policy data for ctest-vn4-42674378 in API_Server ====== 2025-12-10 17:06:29,902 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-12-10 17:06:29,908 - DEBUG - Requesting: http://10.0.0.41:8082/domain/3442661e-287c-4b37-bca3-67be7280b8c9 2025-12-10 17:06:29,918 - DEBUG - Requesting: http://10.0.0.41:8082/project/2de781ae-1bf2-44a7-9348-f15d09a488f4 2025-12-10 17:06:29,989 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/e6aee6cd-815e-4853-91ef-06aa84f139de 2025-12-10 17:06:29,999 - DEBUG - ==>Verifying data for policy with id: ff3da429-70cc-4d7c-a705-970c3bdbfb64, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45666642', 'ctest-policy1-06789463'] 2025-12-10 17:06:29,999 - INFO - VN ctest-vn4-42674378 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-10 17:06:29,999 - DEBUG - Verifying the vn in opserver 2025-12-10 17:06:29,999 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45666642:ctest-vn4-42674378 virtual network link through opserver 10.0.0.41 2025-12-10 17:06:29,999 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-12-10 17:06:30,292 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-12-10 17:06:30,354 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45666642:ctest-vn4-42674378', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45666642:ctest-vn4-42674378?flat'} 2025-12-10 17:06:30,354 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45666642:ctest-vn4-42674378 is found in opserver 2025-12-10 17:06:30,364 - DEBUG - Do not have enough data to verify VN in agent 2025-12-10 17:06:30,368 - DEBUG - VRF ids for VN ctest-vn4-42674378: {} 2025-12-10 17:06:30,369 - DEBUG - ====Verifying data for ctest-policy1-06789463 in API_Server ====== 2025-12-10 17:06:30,369 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-12-10 17:06:30,374 - DEBUG - Requesting: http://10.0.0.41:8082/domain/3442661e-287c-4b37-bca3-67be7280b8c9 2025-12-10 17:06:30,384 - DEBUG - Requesting: http://10.0.0.41:8082/project/2de781ae-1bf2-44a7-9348-f15d09a488f4 2025-12-10 17:06:30,453 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/ff3da429-70cc-4d7c-a705-970c3bdbfb64 2025-12-10 17:06:30,462 - INFO - Verified policy ctest-policy1-06789463 in API Server, Result: True 2025-12-10 17:06:30,462 - INFO - Done with setup and verification, moving onto test .. 2025-12-10 17:06:30,469 - INFO - Deleting VN ctest-vn4-42674378 2025-12-10 17:06:30,579 - DEBUG - Response for deleting network () 2025-12-10 17:06:30,579 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/81c98391-7bc3-4eea-be41-2306233dfa97 2025-12-10 17:06:30,584 - DEBUG - Response Code: 404 2025-12-10 17:06:30,584 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-12-10 17:06:30,589 - DEBUG - Requesting: http://10.0.0.41:8082/domain/3442661e-287c-4b37-bca3-67be7280b8c9 2025-12-10 17:06:30,641 - DEBUG - Requesting: http://10.0.0.41:8082/project/2de781ae-1bf2-44a7-9348-f15d09a488f4 2025-12-10 17:06:30,711 - INFO - Validated that VN ctest-vn4-42674378 is not found in API Server 2025-12-10 17:06:30,721 - DEBUG - VN ctest-vn4-42674378 is not present in Agent 10.0.0.41 2025-12-10 17:06:30,721 - INFO - Validated that VN ctest-vn4-42674378 is not in any agent 2025-12-10 17:06:30,737 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42674378 info 2025-12-10 17:06:30,758 - INFO - Deleted policy ctest-policy1-06789463 2025-12-10 17:06:30,924 - DEBUG - policy ctest-policy1-06789463 is not found in API Server 2025-12-10 17:06:31,177 - DEBUG - No XMPP flaps were noticed during the test 2025-12-10 17:06:31,177 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-10 17:06:31,177 - INFO - -------------------------------------------------------------------------------- 2025-12-10 17:06:31,469 - DEBUG - No XMPP flaps were noticed during the test 2025-12-10 17:06:31,469 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-10 17:06:31,469 - INFO - -------------------------------------------------------------------------------- 2025-12-10 17:06:32,143 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-45666642, ID : 2de781ae-1bf2-44a7-9348-f15d09a488f4