2025-10-26 22:38:33,463 - INFO - Domain Default found not creating 2025-10-26 22:38:33,622 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71759293 not found, creating it 2025-10-26 22:38:34,080 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71759293, ID : a4f92029-aedd-4971-92ed-310b4de53811 2025-10-26 22:38:36,124 - INFO - ================================================================================ 2025-10-26 22:38:36,124 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-26 22:38:36,393 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-10-26 22:38:36,393 - INFO - Initial checks done. Running the testcase now 2025-10-26 22:38:36,393 - INFO - 2025-10-26 22:38:36,393 - INFO - ================================================================================ 2025-10-26 22:38:36,393 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-26 22:38:36,393 - 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-26 22:38:36,685 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-10-26 22:38:36,685 - INFO - Initial checks done. Running the testcase now 2025-10-26 22:38:36,685 - INFO - 2025-10-26 22:38:37,011 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71759293:ctest-vn4-15496064, 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-71759293:ctest-vn4-15496064, 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-71759293:ctest-vn4-15496064, 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-71759293:ctest-vn4-15496064, 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-26 22:38:37,544 - DEBUG - Response for create_network : {'network': {'id': '1230097a-cd7f-4e6b-a45e-d2ba70c3bc11', 'name': 'ctest-vn4-15496064', 'tenant_id': 'a4f92029aedd497192ed310b4de53811', 'project_id': 'a4f92029aedd497192ed310b4de53811', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71759293', 'ctest-vn4-15496064'], 'port_security_enabled': True, 'description': ''}} 2025-10-26 22:38:37,771 - DEBUG - Response for create_subnet : {'subnet': {'id': '66b67e5a-76b5-46ef-a077-e2950bf0048b', 'name': '', 'tenant_id': 'a4f92029aedd497192ed310b4de53811', 'network_id': '1230097a-cd7f-4e6b-a45e-d2ba70c3bc11', 'ip_version': 4, 'cidr': '17.55.203.192/26', 'allocation_pools': [{'start': '17.55.203.194', 'end': '17.55.203.254'}], 'gateway_ip': '17.55.203.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.55.203.194', 'tags': [], 'project_id': 'a4f92029aedd497192ed310b4de53811'}} 2025-10-26 22:38:37,980 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d7e0e34-3a8a-4b56-abec-ec8fcf47f741', 'name': '', 'tenant_id': 'a4f92029aedd497192ed310b4de53811', 'network_id': '1230097a-cd7f-4e6b-a45e-d2ba70c3bc11', 'ip_version': 6, 'cidr': '298d:9fc:a5eb:937b:c731:147f::/96', 'allocation_pools': [{'start': '298d:9fc:a5eb:937b:c731:147f:0:2', 'end': '298d:9fc:a5eb:937b:c731:147f:ffff:fffe'}], 'gateway_ip': '298d:9fc:a5eb:937b:c731:147f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '298d:9fc:a5eb:937b:c731:147f:0:2', 'tags': [], 'project_id': 'a4f92029aedd497192ed310b4de53811'}} 2025-10-26 22:38:38,004 - INFO - Created VN ctest-vn4-15496064 2025-10-26 22:38:38,056 - DEBUG - VN ctest-vn4-15496064 UUID is 1230097a-cd7f-4e6b-a45e-d2ba70c3bc11 2025-10-26 22:38:38,321 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1230097a-cd7f-4e6b-a45e-d2ba70c3bc11', 'name': 'ctest-vn4-15496064', 'tenant_id': 'a4f92029aedd497192ed310b4de53811', 'project_id': 'a4f92029aedd497192ed310b4de53811', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['66b67e5a-76b5-46ef-a077-e2950bf0048b', '2d7e0e34-3a8a-4b56-abec-ec8fcf47f741'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71759293', 'ctest-vn4-15496064'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71759293', 'ctest-policy1-38160445']], 'subnet_ipam': [{'subnet_cidr': '17.55.203.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '298d:9fc:a5eb:937b:c731:147f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-26 22:38:38,488 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-26 22:38:38,781 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-26 22:38:38,811 - DEBUG - Requesting: http://10.0.0.249:8082/domain/2d2bfb5d-c5e2-4403-93cc-972873279e5f 2025-10-26 22:38:38,822 - DEBUG - Requesting: http://10.0.0.249:8082/project/a4f92029-aedd-4971-92ed-310b4de53811 2025-10-26 22:38:38,899 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1230097a-cd7f-4e6b-a45e-d2ba70c3bc11 2025-10-26 22:38:38,911 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1230097a-cd7f-4e6b-a45e-d2ba70c3bc11 2025-10-26 22:38:38,919 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1acd50c1-cfaa-415d-bfd9-7e2a9715fb1f 2025-10-26 22:38:38,925 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1acd50c1-cfaa-415d-bfd9-7e2a9715fb1f 2025-10-26 22:38:38,932 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/87f6a0e1-2225-4f6d-b4a1-8874c10fc061 2025-10-26 22:38:38,938 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-26 22:38:38,938 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1230097a-cd7f-4e6b-a45e-d2ba70c3bc11 2025-10-26 22:38:38,948 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1acd50c1-cfaa-415d-bfd9-7e2a9715fb1f 2025-10-26 22:38:38,961 - INFO - Verified VN network id 11 for VN 1230097a-cd7f-4e6b-a45e-d2ba70c3bc11 2025-10-26 22:38:38,961 - INFO - Verifications in API Server for VN ctest-vn4-15496064 passed 2025-10-26 22:38:38,961 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1230097a-cd7f-4e6b-a45e-d2ba70c3bc11 2025-10-26 22:38:38,971 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1acd50c1-cfaa-415d-bfd9-7e2a9715fb1f 2025-10-26 22:38:38,976 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1acd50c1-cfaa-415d-bfd9-7e2a9715fb1f 2025-10-26 22:38:38,982 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/87f6a0e1-2225-4f6d-b4a1-8874c10fc061 2025-10-26 22:38:38,991 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71759293:ctest-vn4-15496064', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71759293', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1310557914603146859', 'uuid-lslong': '11844135768228609041'}, 'enable': 'true', 'created': '2025-10-26T22:38:37', 'last-modified': '2025-10-26T22:38:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.702284'} 2025-10-26 22:38:38,997 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-26 22:38:38,999 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15496064 passed 2025-10-26 22:38:38,999 - DEBUG - ====Verifying policy data for ctest-vn4-15496064 in API_Server ====== 2025-10-26 22:38:38,999 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-26 22:38:39,007 - DEBUG - Requesting: http://10.0.0.249:8082/domain/2d2bfb5d-c5e2-4403-93cc-972873279e5f 2025-10-26 22:38:39,016 - DEBUG - Requesting: http://10.0.0.249:8082/project/a4f92029-aedd-4971-92ed-310b4de53811 2025-10-26 22:38:39,086 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/1230097a-cd7f-4e6b-a45e-d2ba70c3bc11 2025-10-26 22:38:39,095 - DEBUG - ==>Verifying data for policy with id: 125fa5ad-3d85-49ac-8d4e-1859d6737383, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71759293', 'ctest-policy1-38160445'] 2025-10-26 22:38:39,095 - INFO - VN ctest-vn4-15496064 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-26 22:38:39,096 - DEBUG - Verifying the vn in opserver 2025-10-26 22:38:39,096 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71759293:ctest-vn4-15496064 virtual network link through opserver 10.0.0.249 2025-10-26 22:38:39,096 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-26 22:38:39,384 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-26 22:38:39,437 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71759293:ctest-vn4-15496064', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71759293:ctest-vn4-15496064?flat'} 2025-10-26 22:38:39,438 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71759293:ctest-vn4-15496064 is found in opserver 2025-10-26 22:38:39,448 - DEBUG - Do not have enough data to verify VN in agent 2025-10-26 22:38:39,452 - DEBUG - VRF ids for VN ctest-vn4-15496064: {} 2025-10-26 22:38:39,452 - DEBUG - ====Verifying data for ctest-policy1-38160445 in API_Server ====== 2025-10-26 22:38:39,452 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-26 22:38:39,457 - DEBUG - Requesting: http://10.0.0.249:8082/domain/2d2bfb5d-c5e2-4403-93cc-972873279e5f 2025-10-26 22:38:39,468 - DEBUG - Requesting: http://10.0.0.249:8082/project/a4f92029-aedd-4971-92ed-310b4de53811 2025-10-26 22:38:39,540 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/125fa5ad-3d85-49ac-8d4e-1859d6737383 2025-10-26 22:38:39,549 - INFO - Verified policy ctest-policy1-38160445 in API Server, Result: True 2025-10-26 22:38:39,549 - INFO - Done with setup and verification, moving onto test .. 2025-10-26 22:38:39,559 - INFO - Deleting VN ctest-vn4-15496064 2025-10-26 22:38:39,678 - DEBUG - Response for deleting network () 2025-10-26 22:38:39,678 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/1acd50c1-cfaa-415d-bfd9-7e2a9715fb1f 2025-10-26 22:38:39,683 - DEBUG - Response Code: 404 2025-10-26 22:38:39,683 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-26 22:38:39,688 - DEBUG - Requesting: http://10.0.0.249:8082/domain/2d2bfb5d-c5e2-4403-93cc-972873279e5f 2025-10-26 22:38:39,741 - DEBUG - Requesting: http://10.0.0.249:8082/project/a4f92029-aedd-4971-92ed-310b4de53811 2025-10-26 22:38:39,809 - INFO - Validated that VN ctest-vn4-15496064 is not found in API Server 2025-10-26 22:38:39,818 - DEBUG - VN ctest-vn4-15496064 is not present in Agent 10.0.0.249 2025-10-26 22:38:39,819 - INFO - Validated that VN ctest-vn4-15496064 is not in any agent 2025-10-26 22:38:39,831 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15496064 info 2025-10-26 22:38:39,856 - INFO - Deleted policy ctest-policy1-38160445 2025-10-26 22:38:40,028 - DEBUG - policy ctest-policy1-38160445 is not found in API Server 2025-10-26 22:38:40,285 - DEBUG - No XMPP flaps were noticed during the test 2025-10-26 22:38:40,285 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-26 22:38:40,285 - INFO - -------------------------------------------------------------------------------- 2025-10-26 22:38:40,573 - DEBUG - No XMPP flaps were noticed during the test 2025-10-26 22:38:40,573 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-26 22:38:40,573 - INFO - -------------------------------------------------------------------------------- 2025-10-26 22:38:41,234 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-71759293, ID : a4f92029-aedd-4971-92ed-310b4de53811