2025-12-08 02:37:47,401 - INFO - Domain Default found not creating 2025-12-08 02:37:47,617 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-60038930 not found, creating it 2025-12-08 02:37:48,141 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-60038930, ID : 51289ad4-dd82-412a-8cf2-b89bfa448631 2025-12-08 02:37:50,058 - INFO - ================================================================================ 2025-12-08 02:37:50,058 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 02:37:50,333 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.130': '0'}} with 2025-12-08 02:37:50,333 - INFO - Initial checks done. Running the testcase now 2025-12-08 02:37:50,333 - INFO - 2025-12-08 02:37:50,333 - INFO - ================================================================================ 2025-12-08 02:37:50,333 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 02:37:50,333 - 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-08 02:37:50,618 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.130': '0'}} with 2025-12-08 02:37:50,618 - INFO - Initial checks done. Running the testcase now 2025-12-08 02:37:50,618 - INFO - 2025-12-08 02:37:51,057 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60038930:ctest-vn4-94671207, 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-60038930:ctest-vn4-94671207, 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-60038930:ctest-vn4-94671207, 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-60038930:ctest-vn4-94671207, 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-08 02:37:51,652 - DEBUG - Response for create_network : {'network': {'id': '67708029-f00f-4a14-bbfc-e5b199b2aed3', 'name': 'ctest-vn4-94671207', 'tenant_id': '51289ad4dd82412a8cf2b89bfa448631', 'project_id': '51289ad4dd82412a8cf2b89bfa448631', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60038930', 'ctest-vn4-94671207'], 'port_security_enabled': True, 'description': ''}} 2025-12-08 02:37:51,832 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba51e26f-107e-48df-9f3c-537f3d2f3525', 'name': '', 'tenant_id': '51289ad4dd82412a8cf2b89bfa448631', 'network_id': '67708029-f00f-4a14-bbfc-e5b199b2aed3', 'ip_version': 4, 'cidr': '179.243.226.192/26', 'allocation_pools': [{'start': '179.243.226.194', 'end': '179.243.226.254'}], 'gateway_ip': '179.243.226.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.243.226.194', 'tags': [], 'project_id': '51289ad4dd82412a8cf2b89bfa448631'}} 2025-12-08 02:37:52,002 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c14f2cc2-8d86-4a1a-8459-be5e21a01042', 'name': '', 'tenant_id': '51289ad4dd82412a8cf2b89bfa448631', 'network_id': '67708029-f00f-4a14-bbfc-e5b199b2aed3', 'ip_version': 6, 'cidr': '2472:bdce:c1eb:6850:ddd2:37fb::/96', 'allocation_pools': [{'start': '2472:bdce:c1eb:6850:ddd2:37fb:0:2', 'end': '2472:bdce:c1eb:6850:ddd2:37fb:ffff:fffe'}], 'gateway_ip': '2472:bdce:c1eb:6850:ddd2:37fb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2472:bdce:c1eb:6850:ddd2:37fb:0:2', 'tags': [], 'project_id': '51289ad4dd82412a8cf2b89bfa448631'}} 2025-12-08 02:37:52,028 - INFO - Created VN ctest-vn4-94671207 2025-12-08 02:37:52,083 - DEBUG - VN ctest-vn4-94671207 UUID is 67708029-f00f-4a14-bbfc-e5b199b2aed3 2025-12-08 02:37:52,328 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '67708029-f00f-4a14-bbfc-e5b199b2aed3', 'name': 'ctest-vn4-94671207', 'tenant_id': '51289ad4dd82412a8cf2b89bfa448631', 'project_id': '51289ad4dd82412a8cf2b89bfa448631', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ba51e26f-107e-48df-9f3c-537f3d2f3525', 'c14f2cc2-8d86-4a1a-8459-be5e21a01042'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60038930', 'ctest-vn4-94671207'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60038930', 'ctest-policy1-28387320']], 'subnet_ipam': [{'subnet_cidr': '179.243.226.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2472:bdce:c1eb:6850:ddd2:37fb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-08 02:37:52,491 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-12-08 02:37:52,852 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-12-08 02:37:52,897 - DEBUG - Requesting: http://10.0.0.73:8082/domain/bdb80538-3a76-4907-b398-c529616d0886 2025-12-08 02:37:52,912 - DEBUG - Requesting: http://10.0.0.73:8082/project/51289ad4-dd82-412a-8cf2-b89bfa448631 2025-12-08 02:37:52,995 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/67708029-f00f-4a14-bbfc-e5b199b2aed3 2025-12-08 02:37:53,015 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/67708029-f00f-4a14-bbfc-e5b199b2aed3 2025-12-08 02:37:53,028 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/7d70db19-df7d-4c42-9664-ec929bf2f464 2025-12-08 02:37:53,038 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/7d70db19-df7d-4c42-9664-ec929bf2f464 2025-12-08 02:37:53,048 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/87a52b1e-b5bd-4e3b-80e1-766ed4ededb1 2025-12-08 02:37:53,058 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 02:37:53,058 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/67708029-f00f-4a14-bbfc-e5b199b2aed3 2025-12-08 02:37:53,070 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/7d70db19-df7d-4c42-9664-ec929bf2f464 2025-12-08 02:37:53,089 - INFO - Verified VN network id 12 for VN 67708029-f00f-4a14-bbfc-e5b199b2aed3 2025-12-08 02:37:53,090 - INFO - Verifications in API Server for VN ctest-vn4-94671207 passed 2025-12-08 02:37:53,090 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/67708029-f00f-4a14-bbfc-e5b199b2aed3 2025-12-08 02:37:53,103 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/7d70db19-df7d-4c42-9664-ec929bf2f464 2025-12-08 02:37:53,111 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/7d70db19-df7d-4c42-9664-ec929bf2f464 2025-12-08 02:37:53,119 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/87a52b1e-b5bd-4e3b-80e1-766ed4ededb1 2025-12-08 02:37:53,134 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60038930:ctest-vn4-94671207', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-60038930', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7453598300907719188', 'uuid-lslong': '13545954330174205651'}, 'enable': 'true', 'created': '2025-12-08T02:37:51', 'last-modified': '2025-12-08T02:37:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.840275'} 2025-12-08 02:37:53,144 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 02:37:53,144 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94671207 passed 2025-12-08 02:37:53,144 - DEBUG - ====Verifying policy data for ctest-vn4-94671207 in API_Server ====== 2025-12-08 02:37:53,144 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-12-08 02:37:53,153 - DEBUG - Requesting: http://10.0.0.73:8082/domain/bdb80538-3a76-4907-b398-c529616d0886 2025-12-08 02:37:53,166 - DEBUG - Requesting: http://10.0.0.73:8082/project/51289ad4-dd82-412a-8cf2-b89bfa448631 2025-12-08 02:37:53,239 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/67708029-f00f-4a14-bbfc-e5b199b2aed3 2025-12-08 02:37:53,251 - DEBUG - ==>Verifying data for policy with id: 818b50b4-3d35-408e-8408-2242e607c801, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-60038930', 'ctest-policy1-28387320'] 2025-12-08 02:37:53,251 - INFO - VN ctest-vn4-94671207 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-08 02:37:53,251 - DEBUG - Verifying the vn in opserver 2025-12-08 02:37:53,251 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60038930:ctest-vn4-94671207 virtual network link through opserver 10.0.0.73 2025-12-08 02:37:53,251 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-12-08 02:37:53,592 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-12-08 02:37:53,675 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60038930:ctest-vn4-94671207', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60038930:ctest-vn4-94671207?flat'} 2025-12-08 02:37:53,675 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-60038930:ctest-vn4-94671207 is found in opserver 2025-12-08 02:37:53,686 - DEBUG - Do not have enough data to verify VN in agent 2025-12-08 02:37:53,691 - DEBUG - VRF ids for VN ctest-vn4-94671207: {} 2025-12-08 02:37:53,691 - DEBUG - ====Verifying data for ctest-policy1-28387320 in API_Server ====== 2025-12-08 02:37:53,691 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-12-08 02:37:53,698 - DEBUG - Requesting: http://10.0.0.73:8082/domain/bdb80538-3a76-4907-b398-c529616d0886 2025-12-08 02:37:53,713 - DEBUG - Requesting: http://10.0.0.73:8082/project/51289ad4-dd82-412a-8cf2-b89bfa448631 2025-12-08 02:37:53,791 - DEBUG - Requesting: http://10.0.0.73:8082/network-policy/818b50b4-3d35-408e-8408-2242e607c801 2025-12-08 02:37:53,803 - INFO - Verified policy ctest-policy1-28387320 in API Server, Result: True 2025-12-08 02:37:53,803 - INFO - Done with setup and verification, moving onto test .. 2025-12-08 02:37:53,814 - INFO - Deleting VN ctest-vn4-94671207 2025-12-08 02:37:53,957 - DEBUG - Response for deleting network () 2025-12-08 02:37:53,957 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/7d70db19-df7d-4c42-9664-ec929bf2f464 2025-12-08 02:37:53,964 - DEBUG - Response Code: 404 2025-12-08 02:37:53,964 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-12-08 02:37:53,971 - DEBUG - Requesting: http://10.0.0.73:8082/domain/bdb80538-3a76-4907-b398-c529616d0886 2025-12-08 02:37:54,024 - DEBUG - Requesting: http://10.0.0.73:8082/project/51289ad4-dd82-412a-8cf2-b89bfa448631 2025-12-08 02:37:54,104 - INFO - Validated that VN ctest-vn4-94671207 is not found in API Server 2025-12-08 02:37:54,115 - DEBUG - VN ctest-vn4-94671207 is not present in Agent 10.0.0.73 2025-12-08 02:37:54,115 - INFO - Validated that VN ctest-vn4-94671207 is not in any agent 2025-12-08 02:37:54,131 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94671207 info 2025-12-08 02:37:54,165 - INFO - Deleted policy ctest-policy1-28387320 2025-12-08 02:37:54,339 - DEBUG - policy ctest-policy1-28387320 is not found in API Server 2025-12-08 02:37:54,616 - DEBUG - No XMPP flaps were noticed during the test 2025-12-08 02:37:54,616 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-08 02:37:54,616 - INFO - -------------------------------------------------------------------------------- 2025-12-08 02:37:54,900 - DEBUG - No XMPP flaps were noticed during the test 2025-12-08 02:37:54,900 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-12-08 02:37:54,900 - INFO - -------------------------------------------------------------------------------- 2025-12-08 02:37:56,409 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-60038930, ID : 51289ad4-dd82-412a-8cf2-b89bfa448631