2026-04-17 09:01:21,040 - INFO - Domain Default found not creating 2026-04-17 09:01:21,208 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-55046415 not found, creating it 2026-04-17 09:01:21,648 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-55046415, ID : 9a8a80ec-0625-451d-9d37-cd0c4ab8199e 2026-04-17 09:01:23,051 - INFO - ================================================================================ 2026-04-17 09:01:23,051 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-17 09:01:23,321 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-17 09:01:23,321 - INFO - Initial checks done. Running the testcase now 2026-04-17 09:01:23,321 - INFO - 2026-04-17 09:01:23,321 - INFO - ================================================================================ 2026-04-17 09:01:23,321 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-17 09:01:23,321 - 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-04-17 09:01:23,608 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-17 09:01:23,609 - INFO - Initial checks done. Running the testcase now 2026-04-17 09:01:23,609 - INFO - 2026-04-17 09:01:23,956 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55046415:ctest-vn4-13202796, 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-55046415:ctest-vn4-13202796, 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-55046415:ctest-vn4-13202796, 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-55046415:ctest-vn4-13202796, 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-04-17 09:01:24,463 - DEBUG - Response for create_network : {'network': {'id': 'b92b3e2b-9950-46c9-8810-2c53fd0c47a5', 'name': 'ctest-vn4-13202796', 'tenant_id': '9a8a80ec0625451d9d37cd0c4ab8199e', 'project_id': '9a8a80ec0625451d9d37cd0c4ab8199e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55046415', 'ctest-vn4-13202796'], 'port_security_enabled': True, 'description': ''}} 2026-04-17 09:01:24,640 - DEBUG - Response for create_subnet : {'subnet': {'id': '64d3cf73-18ba-4c3c-8687-4bfdf5ef0107', 'name': '', 'tenant_id': '9a8a80ec0625451d9d37cd0c4ab8199e', 'network_id': 'b92b3e2b-9950-46c9-8810-2c53fd0c47a5', 'ip_version': 4, 'cidr': '47.20.248.128/26', 'allocation_pools': [{'start': '47.20.248.130', 'end': '47.20.248.190'}], 'gateway_ip': '47.20.248.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.20.248.130', 'tags': [], 'project_id': '9a8a80ec0625451d9d37cd0c4ab8199e'}} 2026-04-17 09:01:24,789 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f5f5c50-1e0e-4cdb-85e0-d8c5166f2c77', 'name': '', 'tenant_id': '9a8a80ec0625451d9d37cd0c4ab8199e', 'network_id': 'b92b3e2b-9950-46c9-8810-2c53fd0c47a5', 'ip_version': 6, 'cidr': '3c0b:ceb9:954:190f:720a:9bbf::/96', 'allocation_pools': [{'start': '3c0b:ceb9:954:190f:720a:9bbf:0:2', 'end': '3c0b:ceb9:954:190f:720a:9bbf:ffff:fffe'}], 'gateway_ip': '3c0b:ceb9:954:190f:720a:9bbf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c0b:ceb9:954:190f:720a:9bbf:0:2', 'tags': [], 'project_id': '9a8a80ec0625451d9d37cd0c4ab8199e'}} 2026-04-17 09:01:24,808 - INFO - Created VN ctest-vn4-13202796 2026-04-17 09:01:24,857 - DEBUG - VN ctest-vn4-13202796 UUID is b92b3e2b-9950-46c9-8810-2c53fd0c47a5 2026-04-17 09:01:25,039 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b92b3e2b-9950-46c9-8810-2c53fd0c47a5', 'name': 'ctest-vn4-13202796', 'tenant_id': '9a8a80ec0625451d9d37cd0c4ab8199e', 'project_id': '9a8a80ec0625451d9d37cd0c4ab8199e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64d3cf73-18ba-4c3c-8687-4bfdf5ef0107', '4f5f5c50-1e0e-4cdb-85e0-d8c5166f2c77'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55046415', 'ctest-vn4-13202796'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55046415', 'ctest-policy1-03547067']], 'subnet_ipam': [{'subnet_cidr': '47.20.248.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c0b:ceb9:954:190f:720a:9bbf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-17 09:01:25,193 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-17 09:01:25,483 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-17 09:01:25,512 - DEBUG - Requesting: http://10.0.0.38:8082/domain/df84e62d-899d-43fd-8497-782d411290ed 2026-04-17 09:01:25,522 - DEBUG - Requesting: http://10.0.0.38:8082/project/9a8a80ec-0625-451d-9d37-cd0c4ab8199e 2026-04-17 09:01:25,590 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b92b3e2b-9950-46c9-8810-2c53fd0c47a5 2026-04-17 09:01:25,601 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b92b3e2b-9950-46c9-8810-2c53fd0c47a5 2026-04-17 09:01:25,609 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9f5b5b0c-e172-4940-8488-c6986d2d90c6 2026-04-17 09:01:25,615 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9f5b5b0c-e172-4940-8488-c6986d2d90c6 2026-04-17 09:01:25,621 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/90aa500f-0c3a-4e96-b22c-7e308da558c6 2026-04-17 09:01:25,626 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-17 09:01:25,626 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b92b3e2b-9950-46c9-8810-2c53fd0c47a5 2026-04-17 09:01:25,634 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9f5b5b0c-e172-4940-8488-c6986d2d90c6 2026-04-17 09:01:25,646 - INFO - Verified VN network id 9 for VN b92b3e2b-9950-46c9-8810-2c53fd0c47a5 2026-04-17 09:01:25,646 - INFO - Verifications in API Server for VN ctest-vn4-13202796 passed 2026-04-17 09:01:25,646 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b92b3e2b-9950-46c9-8810-2c53fd0c47a5 2026-04-17 09:01:25,655 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9f5b5b0c-e172-4940-8488-c6986d2d90c6 2026-04-17 09:01:25,661 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9f5b5b0c-e172-4940-8488-c6986d2d90c6 2026-04-17 09:01:25,666 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/90aa500f-0c3a-4e96-b22c-7e308da558c6 2026-04-17 09:01:25,676 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55046415:ctest-vn4-13202796', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-55046415', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13342826677991917257', 'uuid-lslong': '9804385128024917925'}, 'enable': 'true', 'created': '2026-04-17T09:01:24', 'last-modified': '2026-04-17T09:01:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.661363'} 2026-04-17 09:01:25,681 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-17 09:01:25,681 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-13202796 passed 2026-04-17 09:01:25,682 - DEBUG - ====Verifying policy data for ctest-vn4-13202796 in API_Server ====== 2026-04-17 09:01:25,682 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-17 09:01:25,686 - DEBUG - Requesting: http://10.0.0.38:8082/domain/df84e62d-899d-43fd-8497-782d411290ed 2026-04-17 09:01:25,695 - DEBUG - Requesting: http://10.0.0.38:8082/project/9a8a80ec-0625-451d-9d37-cd0c4ab8199e 2026-04-17 09:01:25,759 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b92b3e2b-9950-46c9-8810-2c53fd0c47a5 2026-04-17 09:01:25,771 - DEBUG - ==>Verifying data for policy with id: 9161a7c0-2132-4491-bdae-d7b190d9d2d5, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55046415', 'ctest-policy1-03547067'] 2026-04-17 09:01:25,771 - INFO - VN ctest-vn4-13202796 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-17 09:01:25,771 - DEBUG - Verifying the vn in opserver 2026-04-17 09:01:25,771 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55046415:ctest-vn4-13202796 virtual network link through opserver 10.0.0.38 2026-04-17 09:01:25,771 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-17 09:01:26,070 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-17 09:01:26,123 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55046415:ctest-vn4-13202796', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55046415:ctest-vn4-13202796?flat'} 2026-04-17 09:01:26,123 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55046415:ctest-vn4-13202796 is found in opserver 2026-04-17 09:01:26,131 - DEBUG - Do not have enough data to verify VN in agent 2026-04-17 09:01:26,135 - DEBUG - VRF ids for VN ctest-vn4-13202796: {} 2026-04-17 09:01:26,135 - DEBUG - ====Verifying data for ctest-policy1-03547067 in API_Server ====== 2026-04-17 09:01:26,135 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-17 09:01:26,140 - DEBUG - Requesting: http://10.0.0.38:8082/domain/df84e62d-899d-43fd-8497-782d411290ed 2026-04-17 09:01:26,150 - DEBUG - Requesting: http://10.0.0.38:8082/project/9a8a80ec-0625-451d-9d37-cd0c4ab8199e 2026-04-17 09:01:26,214 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/9161a7c0-2132-4491-bdae-d7b190d9d2d5 2026-04-17 09:01:26,222 - INFO - Verified policy ctest-policy1-03547067 in API Server, Result: True 2026-04-17 09:01:26,222 - INFO - Done with setup and verification, moving onto test .. 2026-04-17 09:01:26,228 - INFO - Deleting VN ctest-vn4-13202796 2026-04-17 09:01:26,325 - DEBUG - Response for deleting network () 2026-04-17 09:01:26,326 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9f5b5b0c-e172-4940-8488-c6986d2d90c6 2026-04-17 09:01:26,330 - DEBUG - Response Code: 404 2026-04-17 09:01:26,330 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-17 09:01:26,334 - DEBUG - Requesting: http://10.0.0.38:8082/domain/df84e62d-899d-43fd-8497-782d411290ed 2026-04-17 09:01:26,389 - DEBUG - Requesting: http://10.0.0.38:8082/project/9a8a80ec-0625-451d-9d37-cd0c4ab8199e 2026-04-17 09:01:26,458 - INFO - Validated that VN ctest-vn4-13202796 is not found in API Server 2026-04-17 09:01:26,468 - DEBUG - VN ctest-vn4-13202796 is not present in Agent 10.0.0.38 2026-04-17 09:01:26,468 - INFO - Validated that VN ctest-vn4-13202796 is not in any agent 2026-04-17 09:01:26,480 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-13202796 info 2026-04-17 09:01:26,504 - INFO - Deleted policy ctest-policy1-03547067 2026-04-17 09:01:26,668 - DEBUG - policy ctest-policy1-03547067 is not found in API Server 2026-04-17 09:01:26,924 - DEBUG - No XMPP flaps were noticed during the test
2026-04-17 09:01:26,925 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-04-17 09:01:26,925 - INFO - -------------------------------------------------------------------------------- 2026-04-17 09:01:27,215 - DEBUG - No XMPP flaps were noticed during the test
2026-04-17 09:01:27,215 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-17 09:01:27,215 - INFO - -------------------------------------------------------------------------------- 2026-04-17 09:01:27,874 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-55046415, ID : 9a8a80ec-0625-451d-9d37-cd0c4ab8199e