2026-02-10 18:22:11,748 - INFO - Domain Default found not creating 2026-02-10 18:22:12,102 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-04701799 not found, creating it 2026-02-10 18:22:12,693 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-04701799, ID : a5e1d18a-6746-40ec-8b24-c29712a02b7d 2026-02-10 18:22:15,078 - INFO - ================================================================================ 2026-02-10 18:22:15,078 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 18:22:15,405 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2026-02-10 18:22:15,405 - INFO - Initial checks done. Running the testcase now 2026-02-10 18:22:15,405 - INFO - 2026-02-10 18:22:15,405 - INFO - ================================================================================ 2026-02-10 18:22:15,405 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 18:22:15,406 - 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-10 18:22:15,756 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2026-02-10 18:22:15,756 - INFO - Initial checks done. Running the testcase now 2026-02-10 18:22:15,757 - INFO - 2026-02-10 18:22:16,214 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04701799:ctest-vn4-21732675, 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-04701799:ctest-vn4-21732675, 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-04701799:ctest-vn4-21732675, 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-04701799:ctest-vn4-21732675, 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-10 18:22:16,961 - DEBUG - Response for create_network : {'network': {'id': '88071e2c-8538-4a92-8547-2bd11df28549', 'name': 'ctest-vn4-21732675', 'tenant_id': 'a5e1d18a674640ec8b24c29712a02b7d', 'project_id': 'a5e1d18a674640ec8b24c29712a02b7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04701799', 'ctest-vn4-21732675'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 18:22:17,238 - DEBUG - Response for create_subnet : {'subnet': {'id': '4645c318-d5d7-401e-8d99-aaff5d6e37d5', 'name': '', 'tenant_id': 'a5e1d18a674640ec8b24c29712a02b7d', 'network_id': '88071e2c-8538-4a92-8547-2bd11df28549', 'ip_version': 4, 'cidr': '141.52.137.64/26', 'allocation_pools': [{'start': '141.52.137.66', 'end': '141.52.137.126'}], 'gateway_ip': '141.52.137.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.52.137.66', 'tags': [], 'project_id': 'a5e1d18a674640ec8b24c29712a02b7d'}} 2026-02-10 18:22:17,552 - DEBUG - Response for create_subnet : {'subnet': {'id': '35f50909-e3b8-4806-b3f4-1565b513f1d6', 'name': '', 'tenant_id': 'a5e1d18a674640ec8b24c29712a02b7d', 'network_id': '88071e2c-8538-4a92-8547-2bd11df28549', 'ip_version': 6, 'cidr': '21f8:ac77:f2fb:a157:4557:56e5::/96', 'allocation_pools': [{'start': '21f8:ac77:f2fb:a157:4557:56e5:0:2', 'end': '21f8:ac77:f2fb:a157:4557:56e5:ffff:fffe'}], 'gateway_ip': '21f8:ac77:f2fb:a157:4557:56e5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21f8:ac77:f2fb:a157:4557:56e5:0:2', 'tags': [], 'project_id': 'a5e1d18a674640ec8b24c29712a02b7d'}} 2026-02-10 18:22:17,595 - INFO - Created VN ctest-vn4-21732675 2026-02-10 18:22:17,669 - DEBUG - VN ctest-vn4-21732675 UUID is 88071e2c-8538-4a92-8547-2bd11df28549 2026-02-10 18:22:18,018 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '88071e2c-8538-4a92-8547-2bd11df28549', 'name': 'ctest-vn4-21732675', 'tenant_id': 'a5e1d18a674640ec8b24c29712a02b7d', 'project_id': 'a5e1d18a674640ec8b24c29712a02b7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4645c318-d5d7-401e-8d99-aaff5d6e37d5', '35f50909-e3b8-4806-b3f4-1565b513f1d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04701799', 'ctest-vn4-21732675'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04701799', 'ctest-policy1-40884800']], 'subnet_ipam': [{'subnet_cidr': '141.52.137.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21f8:ac77:f2fb:a157:4557:56e5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 18:22:18,198 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-10 18:22:18,529 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-10 18:22:18,604 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d3aa0490-5e83-4562-bbf1-3a9306597ed6 2026-02-10 18:22:18,627 - DEBUG - Requesting: http://10.0.0.242:8082/project/a5e1d18a-6746-40ec-8b24-c29712a02b7d 2026-02-10 18:22:18,722 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/88071e2c-8538-4a92-8547-2bd11df28549 2026-02-10 18:22:18,745 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/88071e2c-8538-4a92-8547-2bd11df28549 2026-02-10 18:22:18,758 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b63f5c13-956f-4a3c-bd6d-66146ad54bba 2026-02-10 18:22:18,767 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b63f5c13-956f-4a3c-bd6d-66146ad54bba 2026-02-10 18:22:18,780 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/28fcb7b6-39f2-4f46-93cb-342f3bc81b6e 2026-02-10 18:22:18,792 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 18:22:18,792 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/88071e2c-8538-4a92-8547-2bd11df28549 2026-02-10 18:22:18,807 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b63f5c13-956f-4a3c-bd6d-66146ad54bba 2026-02-10 18:22:18,830 - INFO - Verified VN network id 11 for VN 88071e2c-8538-4a92-8547-2bd11df28549 2026-02-10 18:22:18,830 - INFO - Verifications in API Server for VN ctest-vn4-21732675 passed 2026-02-10 18:22:18,831 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/88071e2c-8538-4a92-8547-2bd11df28549 2026-02-10 18:22:18,846 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b63f5c13-956f-4a3c-bd6d-66146ad54bba 2026-02-10 18:22:18,855 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b63f5c13-956f-4a3c-bd6d-66146ad54bba 2026-02-10 18:22:18,866 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/28fcb7b6-39f2-4f46-93cb-342f3bc81b6e 2026-02-10 18:22:18,881 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04701799:ctest-vn4-21732675', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04701799', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9801836290557627026', 'uuid-lslong': '9603692907541464393'}, 'enable': 'true', 'created': '2026-02-10T18:22:16', 'last-modified': '2026-02-10T18:22:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.904392'} 2026-02-10 18:22:18,889 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 18:22:18,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-21732675 passed 2026-02-10 18:22:18,889 - DEBUG - ====Verifying policy data for ctest-vn4-21732675 in API_Server ====== 2026-02-10 18:22:18,889 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-10 18:22:18,896 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d3aa0490-5e83-4562-bbf1-3a9306597ed6 2026-02-10 18:22:18,910 - DEBUG - Requesting: http://10.0.0.242:8082/project/a5e1d18a-6746-40ec-8b24-c29712a02b7d 2026-02-10 18:22:18,992 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/88071e2c-8538-4a92-8547-2bd11df28549 2026-02-10 18:22:19,012 - DEBUG - ==>Verifying data for policy with id: bc54c9b4-d6ce-496e-ae0f-505f2d3a2f42, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04701799', 'ctest-policy1-40884800'] 2026-02-10 18:22:19,013 - INFO - VN ctest-vn4-21732675 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 18:22:19,013 - DEBUG - Verifying the vn in opserver 2026-02-10 18:22:19,013 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04701799:ctest-vn4-21732675 virtual network link through opserver 10.0.0.242 2026-02-10 18:22:19,013 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-10 18:22:19,340 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-10 18:22:19,478 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04701799:ctest-vn4-21732675', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04701799:ctest-vn4-21732675?flat'} 2026-02-10 18:22:19,478 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04701799:ctest-vn4-21732675 is found in opserver 2026-02-10 18:22:19,498 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 18:22:19,511 - DEBUG - VRF ids for VN ctest-vn4-21732675: {} 2026-02-10 18:22:19,512 - DEBUG - ====Verifying data for ctest-policy1-40884800 in API_Server ====== 2026-02-10 18:22:19,513 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-10 18:22:19,526 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d3aa0490-5e83-4562-bbf1-3a9306597ed6 2026-02-10 18:22:19,547 - DEBUG - Requesting: http://10.0.0.242:8082/project/a5e1d18a-6746-40ec-8b24-c29712a02b7d 2026-02-10 18:22:19,660 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/bc54c9b4-d6ce-496e-ae0f-505f2d3a2f42 2026-02-10 18:22:19,675 - INFO - Verified policy ctest-policy1-40884800 in API Server, Result: True 2026-02-10 18:22:19,675 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 18:22:19,690 - INFO - Deleting VN ctest-vn4-21732675 2026-02-10 18:22:19,846 - DEBUG - Response for deleting network () 2026-02-10 18:22:19,847 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b63f5c13-956f-4a3c-bd6d-66146ad54bba 2026-02-10 18:22:19,852 - DEBUG - Response Code: 404 2026-02-10 18:22:19,852 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-10 18:22:19,857 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d3aa0490-5e83-4562-bbf1-3a9306597ed6 2026-02-10 18:22:19,911 - DEBUG - Requesting: http://10.0.0.242:8082/project/a5e1d18a-6746-40ec-8b24-c29712a02b7d 2026-02-10 18:22:19,995 - INFO - Validated that VN ctest-vn4-21732675 is not found in API Server 2026-02-10 18:22:20,010 - DEBUG - VN ctest-vn4-21732675 is not present in Agent 10.0.0.242 2026-02-10 18:22:20,010 - INFO - Validated that VN ctest-vn4-21732675 is not in any agent 2026-02-10 18:22:20,031 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-21732675 info 2026-02-10 18:22:20,063 - INFO - Deleted policy ctest-policy1-40884800 2026-02-10 18:22:20,244 - DEBUG - policy ctest-policy1-40884800 is not found in API Server 2026-02-10 18:22:20,567 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 18:22:20,567 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-10 18:22:20,568 - INFO - -------------------------------------------------------------------------------- 2026-02-10 18:22:20,919 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 18:22:20,920 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-10 18:22:20,920 - INFO - -------------------------------------------------------------------------------- 2026-02-10 18:22:21,770 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-04701799, ID : a5e1d18a-6746-40ec-8b24-c29712a02b7d