2026-05-07 02:22:11,184 - INFO - Domain Default found not creating 2026-05-07 02:22:11,397 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85173834 not found, creating it 2026-05-07 02:22:11,887 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85173834, ID : f5fc36b4-4af3-4d75-a45c-20206a41bd3f 2026-05-07 02:22:13,797 - INFO - ================================================================================ 2026-05-07 02:22:13,798 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-07 02:22:14,058 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-07 02:22:14,058 - INFO - Initial checks done. Running the testcase now 2026-05-07 02:22:14,058 - INFO - 2026-05-07 02:22:14,058 - INFO - ================================================================================ 2026-05-07 02:22:14,058 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-07 02:22:14,058 - 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. 2026-05-07 02:22:14,372 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-07 02:22:14,372 - INFO - Initial checks done. Running the testcase now 2026-05-07 02:22:14,372 - INFO - 2026-05-07 02:22:14,804 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85173834:ctest-vn4-32635017, 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-85173834:ctest-vn4-32635017, 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-85173834:ctest-vn4-32635017, 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-85173834:ctest-vn4-32635017, 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] 2026-05-07 02:22:15,414 - DEBUG - Response for create_network : {'network': {'id': '379b5915-61ed-4025-b9fc-311f8b85a886', 'name': 'ctest-vn4-32635017', 'tenant_id': 'f5fc36b44af34d75a45c20206a41bd3f', 'project_id': 'f5fc36b44af34d75a45c20206a41bd3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85173834', 'ctest-vn4-32635017'], 'port_security_enabled': True, 'description': ''}} 2026-05-07 02:22:15,643 - DEBUG - Response for create_subnet : {'subnet': {'id': '437faf9c-5959-4f7f-86d7-951533a5f0d2', 'name': '', 'tenant_id': 'f5fc36b44af34d75a45c20206a41bd3f', 'network_id': '379b5915-61ed-4025-b9fc-311f8b85a886', 'ip_version': 4, 'cidr': '55.115.122.0/26', 'allocation_pools': [{'start': '55.115.122.2', 'end': '55.115.122.62'}], 'gateway_ip': '55.115.122.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.115.122.2', 'tags': [], 'project_id': 'f5fc36b44af34d75a45c20206a41bd3f'}} 2026-05-07 02:22:15,894 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf7086bb-e7c1-4f9a-9e12-7d0a4e5b6170', 'name': '', 'tenant_id': 'f5fc36b44af34d75a45c20206a41bd3f', 'network_id': '379b5915-61ed-4025-b9fc-311f8b85a886', 'ip_version': 6, 'cidr': '39d1:89ac:d7ba:5b6f:2948:f824::/96', 'allocation_pools': [{'start': '39d1:89ac:d7ba:5b6f:2948:f824:0:2', 'end': '39d1:89ac:d7ba:5b6f:2948:f824:ffff:fffe'}], 'gateway_ip': '39d1:89ac:d7ba:5b6f:2948:f824:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39d1:89ac:d7ba:5b6f:2948:f824:0:2', 'tags': [], 'project_id': 'f5fc36b44af34d75a45c20206a41bd3f'}} 2026-05-07 02:22:15,924 - INFO - Created VN ctest-vn4-32635017 2026-05-07 02:22:15,982 - DEBUG - VN ctest-vn4-32635017 UUID is 379b5915-61ed-4025-b9fc-311f8b85a886 2026-05-07 02:22:16,227 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '379b5915-61ed-4025-b9fc-311f8b85a886', 'name': 'ctest-vn4-32635017', 'tenant_id': 'f5fc36b44af34d75a45c20206a41bd3f', 'project_id': 'f5fc36b44af34d75a45c20206a41bd3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['437faf9c-5959-4f7f-86d7-951533a5f0d2', 'bf7086bb-e7c1-4f9a-9e12-7d0a4e5b6170'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85173834', 'ctest-vn4-32635017'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85173834', 'ctest-policy1-70143415']], 'subnet_ipam': [{'subnet_cidr': '55.115.122.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '39d1:89ac:d7ba:5b6f:2948:f824::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-07 02:22:16,405 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-07 02:22:16,759 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-07 02:22:16,806 - DEBUG - Requesting: http://10.0.0.50:8082/domain/35085c46-8415-4125-83b8-01affb86dc32 2026-05-07 02:22:16,820 - DEBUG - Requesting: http://10.0.0.50:8082/project/f5fc36b4-4af3-4d75-a45c-20206a41bd3f 2026-05-07 02:22:16,903 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/379b5915-61ed-4025-b9fc-311f8b85a886 2026-05-07 02:22:16,918 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/379b5915-61ed-4025-b9fc-311f8b85a886 2026-05-07 02:22:16,932 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/db407aa6-ee24-4eaf-8ad1-6766a52dc505 2026-05-07 02:22:16,942 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/db407aa6-ee24-4eaf-8ad1-6766a52dc505 2026-05-07 02:22:16,951 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f95169b7-7af3-4a9a-88b7-15c2b9f5f9cf 2026-05-07 02:22:16,958 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-07 02:22:16,958 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/379b5915-61ed-4025-b9fc-311f8b85a886 2026-05-07 02:22:16,969 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/db407aa6-ee24-4eaf-8ad1-6766a52dc505 2026-05-07 02:22:16,988 - INFO - Verified VN network id 9 for VN 379b5915-61ed-4025-b9fc-311f8b85a886 2026-05-07 02:22:16,988 - INFO - Verifications in API Server for VN ctest-vn4-32635017 passed 2026-05-07 02:22:16,988 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/379b5915-61ed-4025-b9fc-311f8b85a886 2026-05-07 02:22:16,998 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/db407aa6-ee24-4eaf-8ad1-6766a52dc505 2026-05-07 02:22:17,006 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/db407aa6-ee24-4eaf-8ad1-6766a52dc505 2026-05-07 02:22:17,013 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f95169b7-7af3-4a9a-88b7-15c2b9f5f9cf 2026-05-07 02:22:17,027 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85173834:ctest-vn4-32635017', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85173834', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4006894241848311845', 'uuid-lslong': '13401640602702293126'}, 'enable': 'true', 'created': '2026-05-07T02:22:15', 'last-modified': '2026-05-07T02:22:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.827469'} 2026-05-07 02:22:17,034 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-07 02:22:17,034 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-32635017 passed 2026-05-07 02:22:17,034 - DEBUG - ====Verifying policy data for ctest-vn4-32635017 in API_Server ====== 2026-05-07 02:22:17,034 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-07 02:22:17,041 - DEBUG - Requesting: http://10.0.0.50:8082/domain/35085c46-8415-4125-83b8-01affb86dc32 2026-05-07 02:22:17,054 - DEBUG - Requesting: http://10.0.0.50:8082/project/f5fc36b4-4af3-4d75-a45c-20206a41bd3f 2026-05-07 02:22:17,129 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/379b5915-61ed-4025-b9fc-311f8b85a886 2026-05-07 02:22:17,140 - DEBUG - ==>Verifying data for policy with id: db3af5ab-2822-4cec-96f9-5cbd0935d2f8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85173834', 'ctest-policy1-70143415'] 2026-05-07 02:22:17,140 - INFO - VN ctest-vn4-32635017 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-07 02:22:17,140 - DEBUG - Verifying the vn in opserver 2026-05-07 02:22:17,141 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85173834:ctest-vn4-32635017 virtual network link through opserver 10.0.0.50 2026-05-07 02:22:17,141 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-07 02:22:17,488 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-07 02:22:17,562 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85173834:ctest-vn4-32635017', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85173834:ctest-vn4-32635017?flat'} 2026-05-07 02:22:17,562 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85173834:ctest-vn4-32635017 is found in opserver 2026-05-07 02:22:17,572 - DEBUG - Do not have enough data to verify VN in agent 2026-05-07 02:22:17,577 - DEBUG - VRF ids for VN ctest-vn4-32635017: {} 2026-05-07 02:22:17,577 - DEBUG - ====Verifying data for ctest-policy1-70143415 in API_Server ====== 2026-05-07 02:22:17,577 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-07 02:22:17,583 - DEBUG - Requesting: http://10.0.0.50:8082/domain/35085c46-8415-4125-83b8-01affb86dc32 2026-05-07 02:22:17,595 - DEBUG - Requesting: http://10.0.0.50:8082/project/f5fc36b4-4af3-4d75-a45c-20206a41bd3f 2026-05-07 02:22:17,668 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/db3af5ab-2822-4cec-96f9-5cbd0935d2f8 2026-05-07 02:22:17,678 - INFO - Verified policy ctest-policy1-70143415 in API Server, Result: True 2026-05-07 02:22:17,679 - INFO - Done with setup and verification, moving onto test .. 2026-05-07 02:22:17,687 - INFO - Deleting VN ctest-vn4-32635017 2026-05-07 02:22:17,831 - DEBUG - Response for deleting network () 2026-05-07 02:22:17,831 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/db407aa6-ee24-4eaf-8ad1-6766a52dc505 2026-05-07 02:22:17,837 - DEBUG - Response Code: 404 2026-05-07 02:22:17,837 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-07 02:22:17,843 - DEBUG - Requesting: http://10.0.0.50:8082/domain/35085c46-8415-4125-83b8-01affb86dc32 2026-05-07 02:22:17,896 - DEBUG - Requesting: http://10.0.0.50:8082/project/f5fc36b4-4af3-4d75-a45c-20206a41bd3f 2026-05-07 02:22:17,971 - INFO - Validated that VN ctest-vn4-32635017 is not found in API Server 2026-05-07 02:22:17,982 - DEBUG - VN ctest-vn4-32635017 is not present in Agent 10.0.0.50 2026-05-07 02:22:17,982 - INFO - Validated that VN ctest-vn4-32635017 is not in any agent 2026-05-07 02:22:17,996 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-32635017 info 2026-05-07 02:22:18,028 - INFO - Deleted policy ctest-policy1-70143415 2026-05-07 02:22:18,201 - DEBUG - policy ctest-policy1-70143415 is not found in API Server 2026-05-07 02:22:18,477 - DEBUG - No XMPP flaps were noticed during the test 2026-05-07 02:22:18,478 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-07 02:22:18,478 - INFO - -------------------------------------------------------------------------------- 2026-05-07 02:22:18,764 - DEBUG - No XMPP flaps were noticed during the test 2026-05-07 02:22:18,764 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-05-07 02:22:18,765 - INFO - -------------------------------------------------------------------------------- 2026-05-07 02:22:19,544 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-85173834, ID : f5fc36b4-4af3-4d75-a45c-20206a41bd3f