2025-10-29 15:42:34,657 - INFO - Domain Default found not creating 2025-10-29 15:42:34,794 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11093424 not found, creating it 2025-10-29 15:42:35,281 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11093424, ID : 99933f61-7aaa-45de-8f16-c769dfa3d82a 2025-10-29 15:42:36,716 - INFO - ================================================================================ 2025-10-29 15:42:36,716 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-29 15:42:36,990 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.18': '0'}} with 2025-10-29 15:42:36,990 - INFO - Initial checks done. Running the testcase now 2025-10-29 15:42:36,990 - INFO - 2025-10-29 15:42:36,990 - INFO - ================================================================================ 2025-10-29 15:42:36,990 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-29 15:42:36,990 - 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-29 15:42:37,277 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.18': '0'}} with 2025-10-29 15:42:37,277 - INFO - Initial checks done. Running the testcase now 2025-10-29 15:42:37,277 - INFO - 2025-10-29 15:42:37,646 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11093424:ctest-vn4-40102551, 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-11093424:ctest-vn4-40102551, 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-11093424:ctest-vn4-40102551, 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-11093424:ctest-vn4-40102551, 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-29 15:42:38,145 - DEBUG - Response for create_network : {'network': {'id': 'b8c9cd93-87ab-49a0-b0bf-b5e1416a2868', 'name': 'ctest-vn4-40102551', 'tenant_id': '99933f617aaa45de8f16c769dfa3d82a', 'project_id': '99933f617aaa45de8f16c769dfa3d82a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11093424', 'ctest-vn4-40102551'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 15:42:38,350 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a2edbe8d-b0c0-42d8-8f13-8882d2aa9102', 'name': '', 'tenant_id': '99933f617aaa45de8f16c769dfa3d82a', 'network_id': 'b8c9cd93-87ab-49a0-b0bf-b5e1416a2868', 'ip_version': 4, 'cidr': '209.140.95.192/26', 'allocation_pools': [{'start': '209.140.95.194', 'end': '209.140.95.254'}], 'gateway_ip': '209.140.95.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.140.95.194', 'tags': [], 'project_id': '99933f617aaa45de8f16c769dfa3d82a'}} 2025-10-29 15:42:38,494 - DEBUG - Response for create_subnet : {'subnet': {'id': '1187c6a4-9ede-41fe-9c71-dc405d2971b7', 'name': '', 'tenant_id': '99933f617aaa45de8f16c769dfa3d82a', 'network_id': 'b8c9cd93-87ab-49a0-b0bf-b5e1416a2868', 'ip_version': 6, 'cidr': '2d70:53c:3eef:6a97:3d6b:40b2::/96', 'allocation_pools': [{'start': '2d70:53c:3eef:6a97:3d6b:40b2:0:2', 'end': '2d70:53c:3eef:6a97:3d6b:40b2:ffff:fffe'}], 'gateway_ip': '2d70:53c:3eef:6a97:3d6b:40b2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d70:53c:3eef:6a97:3d6b:40b2:0:2', 'tags': [], 'project_id': '99933f617aaa45de8f16c769dfa3d82a'}} 2025-10-29 15:42:38,514 - INFO - Created VN ctest-vn4-40102551 2025-10-29 15:42:38,567 - DEBUG - VN ctest-vn4-40102551 UUID is b8c9cd93-87ab-49a0-b0bf-b5e1416a2868 2025-10-29 15:42:38,757 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8c9cd93-87ab-49a0-b0bf-b5e1416a2868', 'name': 'ctest-vn4-40102551', 'tenant_id': '99933f617aaa45de8f16c769dfa3d82a', 'project_id': '99933f617aaa45de8f16c769dfa3d82a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a2edbe8d-b0c0-42d8-8f13-8882d2aa9102', '1187c6a4-9ede-41fe-9c71-dc405d2971b7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11093424', 'ctest-vn4-40102551'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11093424', 'ctest-policy1-28675599']], 'subnet_ipam': [{'subnet_cidr': '209.140.95.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d70:53c:3eef:6a97:3d6b:40b2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-29 15:42:38,891 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-29 15:42:39,179 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-29 15:42:39,204 - DEBUG - Requesting: http://10.0.0.73:8082/domain/58d33886-8d31-4b0c-9981-c122a8670336 2025-10-29 15:42:39,215 - DEBUG - Requesting: http://10.0.0.73:8082/project/99933f61-7aaa-45de-8f16-c769dfa3d82a 2025-10-29 15:42:39,287 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/b8c9cd93-87ab-49a0-b0bf-b5e1416a2868 2025-10-29 15:42:39,297 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/b8c9cd93-87ab-49a0-b0bf-b5e1416a2868 2025-10-29 15:42:39,306 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/cfe7a326-9c27-470d-a35d-8f5b8e01bca0 2025-10-29 15:42:39,311 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/cfe7a326-9c27-470d-a35d-8f5b8e01bca0 2025-10-29 15:42:39,316 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/392ea97d-83e6-4513-bb9f-5c7026ec3b72 2025-10-29 15:42:39,321 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 15:42:39,321 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/b8c9cd93-87ab-49a0-b0bf-b5e1416a2868 2025-10-29 15:42:39,328 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/cfe7a326-9c27-470d-a35d-8f5b8e01bca0 2025-10-29 15:42:39,339 - INFO - Verified VN network id 12 for VN b8c9cd93-87ab-49a0-b0bf-b5e1416a2868 2025-10-29 15:42:39,339 - INFO - Verifications in API Server for VN ctest-vn4-40102551 passed 2025-10-29 15:42:39,339 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/b8c9cd93-87ab-49a0-b0bf-b5e1416a2868 2025-10-29 15:42:39,346 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/cfe7a326-9c27-470d-a35d-8f5b8e01bca0 2025-10-29 15:42:39,352 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/cfe7a326-9c27-470d-a35d-8f5b8e01bca0 2025-10-29 15:42:39,358 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/392ea97d-83e6-4513-bb9f-5c7026ec3b72 2025-10-29 15:42:39,368 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11093424:ctest-vn4-40102551', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11093424', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13315399806817618336', 'uuid-lslong': '12736098250296797288'}, 'enable': 'true', 'created': '2025-10-29T15:42:38', 'last-modified': '2025-10-29T15:42:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.633883'} 2025-10-29 15:42:39,373 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 15:42:39,373 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-40102551 passed 2025-10-29 15:42:39,373 - DEBUG - ====Verifying policy data for ctest-vn4-40102551 in API_Server ====== 2025-10-29 15:42:39,373 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-29 15:42:39,377 - DEBUG - Requesting: http://10.0.0.73:8082/domain/58d33886-8d31-4b0c-9981-c122a8670336 2025-10-29 15:42:39,387 - DEBUG - Requesting: http://10.0.0.73:8082/project/99933f61-7aaa-45de-8f16-c769dfa3d82a 2025-10-29 15:42:39,454 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/b8c9cd93-87ab-49a0-b0bf-b5e1416a2868 2025-10-29 15:42:39,462 - DEBUG - ==>Verifying data for policy with id: d0b2195c-2058-4522-bab2-1a1e4f449c77, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11093424', 'ctest-policy1-28675599'] 2025-10-29 15:42:39,463 - INFO - VN ctest-vn4-40102551 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-29 15:42:39,463 - DEBUG - Verifying the vn in opserver 2025-10-29 15:42:39,463 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11093424:ctest-vn4-40102551 virtual network link through opserver 10.0.0.73 2025-10-29 15:42:39,463 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-10-29 15:42:39,751 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-10-29 15:42:39,804 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11093424:ctest-vn4-40102551', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11093424:ctest-vn4-40102551?flat'} 2025-10-29 15:42:39,804 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11093424:ctest-vn4-40102551 is found in opserver 2025-10-29 15:42:39,814 - DEBUG - Do not have enough data to verify VN in agent 2025-10-29 15:42:39,819 - DEBUG - VRF ids for VN ctest-vn4-40102551: {} 2025-10-29 15:42:39,820 - DEBUG - ====Verifying data for ctest-policy1-28675599 in API_Server ====== 2025-10-29 15:42:39,820 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-29 15:42:39,826 - DEBUG - Requesting: http://10.0.0.73:8082/domain/58d33886-8d31-4b0c-9981-c122a8670336 2025-10-29 15:42:39,836 - DEBUG - Requesting: http://10.0.0.73:8082/project/99933f61-7aaa-45de-8f16-c769dfa3d82a 2025-10-29 15:42:39,906 - DEBUG - Requesting: http://10.0.0.73:8082/network-policy/d0b2195c-2058-4522-bab2-1a1e4f449c77 2025-10-29 15:42:39,916 - INFO - Verified policy ctest-policy1-28675599 in API Server, Result: True 2025-10-29 15:42:39,916 - INFO - Done with setup and verification, moving onto test .. 2025-10-29 15:42:39,923 - INFO - Deleting VN ctest-vn4-40102551 2025-10-29 15:42:40,050 - DEBUG - Response for deleting network () 2025-10-29 15:42:40,050 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/cfe7a326-9c27-470d-a35d-8f5b8e01bca0 2025-10-29 15:42:40,055 - DEBUG - Response Code: 404 2025-10-29 15:42:40,055 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-29 15:42:40,060 - DEBUG - Requesting: http://10.0.0.73:8082/domain/58d33886-8d31-4b0c-9981-c122a8670336 2025-10-29 15:42:40,115 - DEBUG - Requesting: http://10.0.0.73:8082/project/99933f61-7aaa-45de-8f16-c769dfa3d82a 2025-10-29 15:42:40,185 - INFO - Validated that VN ctest-vn4-40102551 is not found in API Server 2025-10-29 15:42:40,195 - DEBUG - VN ctest-vn4-40102551 is not present in Agent 10.0.0.73 2025-10-29 15:42:40,195 - INFO - Validated that VN ctest-vn4-40102551 is not in any agent 2025-10-29 15:42:40,209 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-40102551 info 2025-10-29 15:42:40,231 - INFO - Deleted policy ctest-policy1-28675599 2025-10-29 15:42:40,399 - DEBUG - policy ctest-policy1-28675599 is not found in API Server 2025-10-29 15:42:40,652 - DEBUG - No XMPP flaps were noticed during the test
2025-10-29 15:42:40,652 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-29 15:42:40,652 - INFO - -------------------------------------------------------------------------------- 2025-10-29 15:42:40,944 - DEBUG - No XMPP flaps were noticed during the test
2025-10-29 15:42:40,944 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-29 15:42:40,944 - INFO - -------------------------------------------------------------------------------- 2025-10-29 15:42:41,724 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-11093424, ID : 99933f61-7aaa-45de-8f16-c769dfa3d82a