2025-11-24 18:29:34,408 - INFO - Domain Default found not creating 2025-11-24 18:29:34,634 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-76300716 not found, creating it 2025-11-24 18:29:35,145 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-76300716, ID : d547673f-4a2b-4c00-802b-c349a4f96a7c 2025-11-24 18:29:36,610 - INFO - ================================================================================ 2025-11-24 18:29:36,610 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 18:29:36,870 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2025-11-24 18:29:36,870 - INFO - Initial checks done. Running the testcase now 2025-11-24 18:29:36,871 - INFO - 2025-11-24 18:29:36,871 - INFO - ================================================================================ 2025-11-24 18:29:36,871 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 18:29:36,871 - 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-11-24 18:29:37,154 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2025-11-24 18:29:37,154 - INFO - Initial checks done. Running the testcase now 2025-11-24 18:29:37,154 - INFO - 2025-11-24 18:29:37,501 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76300716:ctest-vn4-07823514, 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-76300716:ctest-vn4-07823514, 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-76300716:ctest-vn4-07823514, 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-76300716:ctest-vn4-07823514, 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-11-24 18:29:38,021 - DEBUG - Response for create_network : {'network': {'id': '7bbeba40-b21c-4a98-a893-bc48c0aa3071', 'name': 'ctest-vn4-07823514', 'tenant_id': 'd547673f4a2b4c00802bc349a4f96a7c', 'project_id': 'd547673f4a2b4c00802bc349a4f96a7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76300716', 'ctest-vn4-07823514'], 'port_security_enabled': True, 'description': ''}} 2025-11-24 18:29:38,197 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b8cf719f-189f-472b-afe3-64e0a24d5a4f', 'name': '', 'tenant_id': 'd547673f4a2b4c00802bc349a4f96a7c', 'network_id': '7bbeba40-b21c-4a98-a893-bc48c0aa3071', 'ip_version': 4, 'cidr': '19.201.69.128/26', 'allocation_pools': [{'start': '19.201.69.130', 'end': '19.201.69.190'}], 'gateway_ip': '19.201.69.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.201.69.130', 'tags': [], 'project_id': 'd547673f4a2b4c00802bc349a4f96a7c'}} 2025-11-24 18:29:38,398 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c03ea6c-5e60-4167-af58-9a354af79dea', 'name': '', 'tenant_id': 'd547673f4a2b4c00802bc349a4f96a7c', 'network_id': '7bbeba40-b21c-4a98-a893-bc48c0aa3071', 'ip_version': 6, 'cidr': '2a08:3fc9:48ae:528f:8d86:c786::/96', 'allocation_pools': [{'start': '2a08:3fc9:48ae:528f:8d86:c786:0:2', 'end': '2a08:3fc9:48ae:528f:8d86:c786:ffff:fffe'}], 'gateway_ip': '2a08:3fc9:48ae:528f:8d86:c786:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a08:3fc9:48ae:528f:8d86:c786:0:2', 'tags': [], 'project_id': 'd547673f4a2b4c00802bc349a4f96a7c'}} 2025-11-24 18:29:38,417 - INFO - Created VN ctest-vn4-07823514 2025-11-24 18:29:38,466 - DEBUG - VN ctest-vn4-07823514 UUID is 7bbeba40-b21c-4a98-a893-bc48c0aa3071 2025-11-24 18:29:38,638 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7bbeba40-b21c-4a98-a893-bc48c0aa3071', 'name': 'ctest-vn4-07823514', 'tenant_id': 'd547673f4a2b4c00802bc349a4f96a7c', 'project_id': 'd547673f4a2b4c00802bc349a4f96a7c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b8cf719f-189f-472b-afe3-64e0a24d5a4f', '4c03ea6c-5e60-4167-af58-9a354af79dea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76300716', 'ctest-vn4-07823514'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76300716', 'ctest-policy1-59427401']], 'subnet_ipam': [{'subnet_cidr': '19.201.69.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a08:3fc9:48ae:528f:8d86:c786::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-24 18:29:38,802 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-24 18:29:39,093 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-24 18:29:39,127 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2a6be0fc-0f68-4791-a0ad-065344cbbca4 2025-11-24 18:29:39,137 - DEBUG - Requesting: http://10.0.0.33:8082/project/d547673f-4a2b-4c00-802b-c349a4f96a7c 2025-11-24 18:29:39,209 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7bbeba40-b21c-4a98-a893-bc48c0aa3071 2025-11-24 18:29:39,220 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7bbeba40-b21c-4a98-a893-bc48c0aa3071 2025-11-24 18:29:39,230 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3fb43f03-8d6e-46eb-bfd0-4708822285ea 2025-11-24 18:29:39,235 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3fb43f03-8d6e-46eb-bfd0-4708822285ea 2025-11-24 18:29:39,241 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/106619cc-3ff1-41a3-ba81-a7394eb219d7 2025-11-24 18:29:39,246 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 18:29:39,247 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7bbeba40-b21c-4a98-a893-bc48c0aa3071 2025-11-24 18:29:39,255 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3fb43f03-8d6e-46eb-bfd0-4708822285ea 2025-11-24 18:29:39,267 - INFO - Verified VN network id 11 for VN 7bbeba40-b21c-4a98-a893-bc48c0aa3071 2025-11-24 18:29:39,267 - INFO - Verifications in API Server for VN ctest-vn4-07823514 passed 2025-11-24 18:29:39,267 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7bbeba40-b21c-4a98-a893-bc48c0aa3071 2025-11-24 18:29:39,275 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3fb43f03-8d6e-46eb-bfd0-4708822285ea 2025-11-24 18:29:39,281 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3fb43f03-8d6e-46eb-bfd0-4708822285ea 2025-11-24 18:29:39,286 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/106619cc-3ff1-41a3-ba81-a7394eb219d7 2025-11-24 18:29:39,297 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76300716:ctest-vn4-07823514', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-76300716', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8916769099269032600', 'uuid-lslong': '12147259640604405873'}, 'enable': 'true', 'created': '2025-11-24T18:29:37', 'last-modified': '2025-11-24T18:29:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.679278'} 2025-11-24 18:29:39,303 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 18:29:39,303 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-07823514 passed 2025-11-24 18:29:39,304 - DEBUG - ====Verifying policy data for ctest-vn4-07823514 in API_Server ====== 2025-11-24 18:29:39,304 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-24 18:29:39,319 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2a6be0fc-0f68-4791-a0ad-065344cbbca4 2025-11-24 18:29:39,331 - DEBUG - Requesting: http://10.0.0.33:8082/project/d547673f-4a2b-4c00-802b-c349a4f96a7c 2025-11-24 18:29:39,401 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/7bbeba40-b21c-4a98-a893-bc48c0aa3071 2025-11-24 18:29:39,411 - DEBUG - ==>Verifying data for policy with id: 18a35549-1dac-46af-8469-bbad4303beb5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76300716', 'ctest-policy1-59427401'] 2025-11-24 18:29:39,411 - INFO - VN ctest-vn4-07823514 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-24 18:29:39,411 - DEBUG - Verifying the vn in opserver 2025-11-24 18:29:39,411 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76300716:ctest-vn4-07823514 virtual network link through opserver 10.0.0.33 2025-11-24 18:29:39,411 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-24 18:29:39,718 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-24 18:29:39,815 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76300716:ctest-vn4-07823514', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76300716:ctest-vn4-07823514?flat'} 2025-11-24 18:29:39,815 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76300716:ctest-vn4-07823514 is found in opserver 2025-11-24 18:29:39,824 - DEBUG - Do not have enough data to verify VN in agent 2025-11-24 18:29:39,828 - DEBUG - VRF ids for VN ctest-vn4-07823514: {} 2025-11-24 18:29:39,829 - DEBUG - ====Verifying data for ctest-policy1-59427401 in API_Server ====== 2025-11-24 18:29:39,829 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-24 18:29:39,834 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2a6be0fc-0f68-4791-a0ad-065344cbbca4 2025-11-24 18:29:39,843 - DEBUG - Requesting: http://10.0.0.33:8082/project/d547673f-4a2b-4c00-802b-c349a4f96a7c 2025-11-24 18:29:39,915 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/18a35549-1dac-46af-8469-bbad4303beb5 2025-11-24 18:29:39,925 - INFO - Verified policy ctest-policy1-59427401 in API Server, Result: True 2025-11-24 18:29:39,925 - INFO - Done with setup and verification, moving onto test .. 2025-11-24 18:29:39,931 - INFO - Deleting VN ctest-vn4-07823514 2025-11-24 18:29:40,053 - DEBUG - Response for deleting network () 2025-11-24 18:29:40,054 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/3fb43f03-8d6e-46eb-bfd0-4708822285ea 2025-11-24 18:29:40,058 - DEBUG - Response Code: 404 2025-11-24 18:29:40,058 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-24 18:29:40,062 - DEBUG - Requesting: http://10.0.0.33:8082/domain/2a6be0fc-0f68-4791-a0ad-065344cbbca4 2025-11-24 18:29:40,114 - DEBUG - Requesting: http://10.0.0.33:8082/project/d547673f-4a2b-4c00-802b-c349a4f96a7c 2025-11-24 18:29:40,186 - INFO - Validated that VN ctest-vn4-07823514 is not found in API Server 2025-11-24 18:29:40,194 - DEBUG - VN ctest-vn4-07823514 is not present in Agent 10.0.0.33 2025-11-24 18:29:40,194 - INFO - Validated that VN ctest-vn4-07823514 is not in any agent 2025-11-24 18:29:40,207 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-07823514 info 2025-11-24 18:29:40,238 - INFO - Deleted policy ctest-policy1-59427401 2025-11-24 18:29:40,405 - DEBUG - policy ctest-policy1-59427401 is not found in API Server 2025-11-24 18:29:40,659 - DEBUG - No XMPP flaps were noticed during the test
2025-11-24 18:29:40,659 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-24 18:29:40,659 - INFO - -------------------------------------------------------------------------------- 2025-11-24 18:29:40,947 - DEBUG - No XMPP flaps were noticed during the test
2025-11-24 18:29:40,947 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-24 18:29:40,947 - INFO - -------------------------------------------------------------------------------- 2025-11-24 18:29:41,638 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-76300716, ID : d547673f-4a2b-4c00-802b-c349a4f96a7c