2026-02-20 09:33:11,581 - INFO - Domain Default found not creating 2026-02-20 09:33:11,764 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-38397685 not found, creating it 2026-02-20 09:33:12,307 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-38397685, ID : 8f0c9c09-aa12-4b12-955a-ad9f20435a1c 2026-02-20 09:33:13,885 - INFO - ================================================================================ 2026-02-20 09:33:13,885 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 09:33:14,144 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2026-02-20 09:33:14,144 - INFO - Initial checks done. Running the testcase now 2026-02-20 09:33:14,144 - INFO - 2026-02-20 09:33:14,144 - INFO - ================================================================================ 2026-02-20 09:33:14,144 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-20 09:33:14,144 - 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-02-20 09:33:14,433 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2026-02-20 09:33:14,433 - INFO - Initial checks done. Running the testcase now 2026-02-20 09:33:14,433 - INFO - 2026-02-20 09:33:14,833 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38397685:ctest-vn4-01625547, 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-38397685:ctest-vn4-01625547, 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-38397685:ctest-vn4-01625547, 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-38397685:ctest-vn4-01625547, 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-02-20 09:33:15,383 - DEBUG - Response for create_network : {'network': {'id': 'fadb84de-fe12-446f-a8bc-1614a5848033', 'name': 'ctest-vn4-01625547', 'tenant_id': '8f0c9c09aa124b12955aad9f20435a1c', 'project_id': '8f0c9c09aa124b12955aad9f20435a1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38397685', 'ctest-vn4-01625547'], 'port_security_enabled': True, 'description': ''}} 2026-02-20 09:33:15,583 - DEBUG - Response for create_subnet : {'subnet': {'id': '38f61786-e2cd-4a54-84d2-000fd2377c40', 'name': '', 'tenant_id': '8f0c9c09aa124b12955aad9f20435a1c', 'network_id': 'fadb84de-fe12-446f-a8bc-1614a5848033', 'ip_version': 4, 'cidr': '96.132.216.0/26', 'allocation_pools': [{'start': '96.132.216.2', 'end': '96.132.216.62'}], 'gateway_ip': '96.132.216.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.132.216.2', 'tags': [], 'project_id': '8f0c9c09aa124b12955aad9f20435a1c'}} 2026-02-20 09:33:15,736 - DEBUG - Response for create_subnet : {'subnet': {'id': '3cf2619f-7817-42b5-9ef0-d62522ad3640', 'name': '', 'tenant_id': '8f0c9c09aa124b12955aad9f20435a1c', 'network_id': 'fadb84de-fe12-446f-a8bc-1614a5848033', 'ip_version': 6, 'cidr': '2304:b166:f08:43c8:2921:fe68::/96', 'allocation_pools': [{'start': '2304:b166:f08:43c8:2921:fe68:0:2', 'end': '2304:b166:f08:43c8:2921:fe68:ffff:fffe'}], 'gateway_ip': '2304:b166:f08:43c8:2921:fe68:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2304:b166:f08:43c8:2921:fe68:0:2', 'tags': [], 'project_id': '8f0c9c09aa124b12955aad9f20435a1c'}} 2026-02-20 09:33:15,757 - INFO - Created VN ctest-vn4-01625547 2026-02-20 09:33:15,809 - DEBUG - VN ctest-vn4-01625547 UUID is fadb84de-fe12-446f-a8bc-1614a5848033 2026-02-20 09:33:16,017 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fadb84de-fe12-446f-a8bc-1614a5848033', 'name': 'ctest-vn4-01625547', 'tenant_id': '8f0c9c09aa124b12955aad9f20435a1c', 'project_id': '8f0c9c09aa124b12955aad9f20435a1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['38f61786-e2cd-4a54-84d2-000fd2377c40', '3cf2619f-7817-42b5-9ef0-d62522ad3640'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38397685', 'ctest-vn4-01625547'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38397685', 'ctest-policy1-86015883']], 'subnet_ipam': [{'subnet_cidr': '96.132.216.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2304:b166:f08:43c8:2921:fe68::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-20 09:33:16,177 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-20 09:33:16,480 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-20 09:33:16,519 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9c20daa2-f050-4b90-9348-6482f27d9eaf 2026-02-20 09:33:16,533 - DEBUG - Requesting: http://10.0.0.242:8082/project/8f0c9c09-aa12-4b12-955a-ad9f20435a1c 2026-02-20 09:33:16,611 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fadb84de-fe12-446f-a8bc-1614a5848033 2026-02-20 09:33:16,623 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fadb84de-fe12-446f-a8bc-1614a5848033 2026-02-20 09:33:16,635 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cbee353a-ed36-4dee-92e0-ff934e5a8c61 2026-02-20 09:33:16,644 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cbee353a-ed36-4dee-92e0-ff934e5a8c61 2026-02-20 09:33:16,654 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/cea56216-4061-4b13-8320-e3fa0f0d77dd 2026-02-20 09:33:16,662 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 09:33:16,662 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fadb84de-fe12-446f-a8bc-1614a5848033 2026-02-20 09:33:16,673 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cbee353a-ed36-4dee-92e0-ff934e5a8c61 2026-02-20 09:33:16,689 - INFO - Verified VN network id 12 for VN fadb84de-fe12-446f-a8bc-1614a5848033 2026-02-20 09:33:16,689 - INFO - Verifications in API Server for VN ctest-vn4-01625547 passed 2026-02-20 09:33:16,689 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fadb84de-fe12-446f-a8bc-1614a5848033 2026-02-20 09:33:16,699 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cbee353a-ed36-4dee-92e0-ff934e5a8c61 2026-02-20 09:33:16,706 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cbee353a-ed36-4dee-92e0-ff934e5a8c61 2026-02-20 09:33:16,715 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/cea56216-4061-4b13-8320-e3fa0f0d77dd 2026-02-20 09:33:16,728 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38397685:ctest-vn4-01625547', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-38397685', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18076187622661833839', 'uuid-lslong': '12158617371925577779'}, 'enable': 'true', 'created': '2026-02-20T09:33:15', 'last-modified': '2026-02-20T09:33:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.739944'} 2026-02-20 09:33:16,733 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-20 09:33:16,734 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-01625547 passed 2026-02-20 09:33:16,734 - DEBUG - ====Verifying policy data for ctest-vn4-01625547 in API_Server ====== 2026-02-20 09:33:16,734 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-20 09:33:16,739 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9c20daa2-f050-4b90-9348-6482f27d9eaf 2026-02-20 09:33:16,751 - DEBUG - Requesting: http://10.0.0.242:8082/project/8f0c9c09-aa12-4b12-955a-ad9f20435a1c 2026-02-20 09:33:16,827 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/fadb84de-fe12-446f-a8bc-1614a5848033 2026-02-20 09:33:16,836 - DEBUG - ==>Verifying data for policy with id: 87fd75d6-083d-48dd-b901-9f67dbae77dc, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38397685', 'ctest-policy1-86015883'] 2026-02-20 09:33:16,837 - INFO - VN ctest-vn4-01625547 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-20 09:33:16,837 - DEBUG - Verifying the vn in opserver 2026-02-20 09:33:16,837 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38397685:ctest-vn4-01625547 virtual network link through opserver 10.0.0.242 2026-02-20 09:33:16,837 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-20 09:33:17,138 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-20 09:33:17,206 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38397685:ctest-vn4-01625547', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38397685:ctest-vn4-01625547?flat'} 2026-02-20 09:33:17,206 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38397685:ctest-vn4-01625547 is found in opserver 2026-02-20 09:33:17,217 - DEBUG - Do not have enough data to verify VN in agent 2026-02-20 09:33:17,223 - DEBUG - VRF ids for VN ctest-vn4-01625547: {} 2026-02-20 09:33:17,223 - DEBUG - ====Verifying data for ctest-policy1-86015883 in API_Server ====== 2026-02-20 09:33:17,223 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-20 09:33:17,229 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9c20daa2-f050-4b90-9348-6482f27d9eaf 2026-02-20 09:33:17,240 - DEBUG - Requesting: http://10.0.0.242:8082/project/8f0c9c09-aa12-4b12-955a-ad9f20435a1c 2026-02-20 09:33:17,311 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/87fd75d6-083d-48dd-b901-9f67dbae77dc 2026-02-20 09:33:17,322 - INFO - Verified policy ctest-policy1-86015883 in API Server, Result: True 2026-02-20 09:33:17,322 - INFO - Done with setup and verification, moving onto test .. 2026-02-20 09:33:17,331 - INFO - Deleting VN ctest-vn4-01625547 2026-02-20 09:33:17,446 - DEBUG - Response for deleting network () 2026-02-20 09:33:17,446 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/cbee353a-ed36-4dee-92e0-ff934e5a8c61 2026-02-20 09:33:17,452 - DEBUG - Response Code: 404 2026-02-20 09:33:17,453 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-20 09:33:17,458 - DEBUG - Requesting: http://10.0.0.242:8082/domain/9c20daa2-f050-4b90-9348-6482f27d9eaf 2026-02-20 09:33:17,514 - DEBUG - Requesting: http://10.0.0.242:8082/project/8f0c9c09-aa12-4b12-955a-ad9f20435a1c 2026-02-20 09:33:17,587 - INFO - Validated that VN ctest-vn4-01625547 is not found in API Server 2026-02-20 09:33:17,598 - DEBUG - VN ctest-vn4-01625547 is not present in Agent 10.0.0.242 2026-02-20 09:33:17,598 - INFO - Validated that VN ctest-vn4-01625547 is not in any agent 2026-02-20 09:33:17,611 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-01625547 info 2026-02-20 09:33:17,634 - INFO - Deleted policy ctest-policy1-86015883 2026-02-20 09:33:17,797 - DEBUG - policy ctest-policy1-86015883 is not found in API Server 2026-02-20 09:33:18,050 - DEBUG - No XMPP flaps were noticed during the test
2026-02-20 09:33:18,050 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-20 09:33:18,050 - INFO - -------------------------------------------------------------------------------- 2026-02-20 09:33:18,338 - DEBUG - No XMPP flaps were noticed during the test
2026-02-20 09:33:18,339 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-20 09:33:18,339 - INFO - -------------------------------------------------------------------------------- 2026-02-20 09:33:19,044 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-38397685, ID : 8f0c9c09-aa12-4b12-955a-ad9f20435a1c