2026-05-27 13:34:27,294 - INFO - Domain Default found not creating 2026-05-27 13:34:27,505 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-50255496 not found, creating it 2026-05-27 13:34:28,029 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-50255496, ID : c1484872-a2af-4220-a4f0-282c06e4cad7 2026-05-27 13:34:29,916 - INFO - ================================================================================ 2026-05-27 13:34:29,916 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-27 13:34:30,195 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-05-27 13:34:30,195 - INFO - Initial checks done. Running the testcase now 2026-05-27 13:34:30,195 - INFO - 2026-05-27 13:34:30,195 - INFO - ================================================================================ 2026-05-27 13:34:30,195 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-27 13:34:30,195 - 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-27 13:34:30,489 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-05-27 13:34:30,489 - INFO - Initial checks done. Running the testcase now 2026-05-27 13:34:30,489 - INFO - 2026-05-27 13:34:30,908 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50255496:ctest-vn4-06754494, 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-50255496:ctest-vn4-06754494, 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-50255496:ctest-vn4-06754494, 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-50255496:ctest-vn4-06754494, 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-27 13:34:31,506 - DEBUG - Response for create_network : {'network': {'id': 'c1719d40-7a30-44ee-99c8-df9ef4b8ad94', 'name': 'ctest-vn4-06754494', 'tenant_id': 'c1484872a2af4220a4f0282c06e4cad7', 'project_id': 'c1484872a2af4220a4f0282c06e4cad7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50255496', 'ctest-vn4-06754494'], 'port_security_enabled': True, 'description': ''}} 2026-05-27 13:34:31,678 - DEBUG - Response for create_subnet : {'subnet': {'id': '6bdb7e17-ed03-4252-bb9c-4c2c40b32e42', 'name': '', 'tenant_id': 'c1484872a2af4220a4f0282c06e4cad7', 'network_id': 'c1719d40-7a30-44ee-99c8-df9ef4b8ad94', 'ip_version': 4, 'cidr': '161.78.174.192/26', 'allocation_pools': [{'start': '161.78.174.194', 'end': '161.78.174.254'}], 'gateway_ip': '161.78.174.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.78.174.194', 'tags': [], 'project_id': 'c1484872a2af4220a4f0282c06e4cad7'}} 2026-05-27 13:34:31,988 - DEBUG - Response for create_subnet : {'subnet': {'id': '2abce3cc-2b16-4227-a8f9-196575b86ae6', 'name': '', 'tenant_id': 'c1484872a2af4220a4f0282c06e4cad7', 'network_id': 'c1719d40-7a30-44ee-99c8-df9ef4b8ad94', 'ip_version': 6, 'cidr': '3bb0:ae46:23f7:6479:2005:5911::/96', 'allocation_pools': [{'start': '3bb0:ae46:23f7:6479:2005:5911:0:2', 'end': '3bb0:ae46:23f7:6479:2005:5911:ffff:fffe'}], 'gateway_ip': '3bb0:ae46:23f7:6479:2005:5911:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3bb0:ae46:23f7:6479:2005:5911:0:2', 'tags': [], 'project_id': 'c1484872a2af4220a4f0282c06e4cad7'}} 2026-05-27 13:34:32,023 - INFO - Created VN ctest-vn4-06754494 2026-05-27 13:34:32,081 - DEBUG - VN ctest-vn4-06754494 UUID is c1719d40-7a30-44ee-99c8-df9ef4b8ad94 2026-05-27 13:34:32,398 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c1719d40-7a30-44ee-99c8-df9ef4b8ad94', 'name': 'ctest-vn4-06754494', 'tenant_id': 'c1484872a2af4220a4f0282c06e4cad7', 'project_id': 'c1484872a2af4220a4f0282c06e4cad7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6bdb7e17-ed03-4252-bb9c-4c2c40b32e42', '2abce3cc-2b16-4227-a8f9-196575b86ae6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50255496', 'ctest-vn4-06754494'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50255496', 'ctest-policy1-02137476']], 'subnet_ipam': [{'subnet_cidr': '161.78.174.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3bb0:ae46:23f7:6479:2005:5911::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-27 13:34:32,569 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-27 13:34:32,914 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-27 13:34:32,951 - DEBUG - Requesting: http://10.0.0.242:8082/domain/fb3a4903-63b4-49fa-8a08-6e7d69533a1e 2026-05-27 13:34:32,965 - DEBUG - Requesting: http://10.0.0.242:8082/project/c1484872-a2af-4220-a4f0-282c06e4cad7 2026-05-27 13:34:33,042 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c1719d40-7a30-44ee-99c8-df9ef4b8ad94 2026-05-27 13:34:33,055 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c1719d40-7a30-44ee-99c8-df9ef4b8ad94 2026-05-27 13:34:33,066 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3981b7eb-3c58-4a88-8664-2df7d11e544e 2026-05-27 13:34:33,073 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3981b7eb-3c58-4a88-8664-2df7d11e544e 2026-05-27 13:34:33,081 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6f7e8ac1-8170-42fc-9180-d951cbe5dac6 2026-05-27 13:34:33,089 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 13:34:33,089 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c1719d40-7a30-44ee-99c8-df9ef4b8ad94 2026-05-27 13:34:33,100 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3981b7eb-3c58-4a88-8664-2df7d11e544e 2026-05-27 13:34:33,114 - INFO - Verified VN network id 12 for VN c1719d40-7a30-44ee-99c8-df9ef4b8ad94 2026-05-27 13:34:33,115 - INFO - Verifications in API Server for VN ctest-vn4-06754494 passed 2026-05-27 13:34:33,115 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c1719d40-7a30-44ee-99c8-df9ef4b8ad94 2026-05-27 13:34:33,125 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3981b7eb-3c58-4a88-8664-2df7d11e544e 2026-05-27 13:34:33,132 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3981b7eb-3c58-4a88-8664-2df7d11e544e 2026-05-27 13:34:33,140 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/6f7e8ac1-8170-42fc-9180-d951cbe5dac6 2026-05-27 13:34:33,153 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50255496:ctest-vn4-06754494', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-50255496', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13939095221941847278', 'uuid-lslong': '11081352756948675988'}, 'enable': 'true', 'created': '2026-05-27T13:34:31', 'last-modified': '2026-05-27T13:34:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.778579'} 2026-05-27 13:34:33,160 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 13:34:33,160 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-06754494 passed 2026-05-27 13:34:33,161 - DEBUG - ====Verifying policy data for ctest-vn4-06754494 in API_Server ====== 2026-05-27 13:34:33,161 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-27 13:34:33,168 - DEBUG - Requesting: http://10.0.0.242:8082/domain/fb3a4903-63b4-49fa-8a08-6e7d69533a1e 2026-05-27 13:34:33,180 - DEBUG - Requesting: http://10.0.0.242:8082/project/c1484872-a2af-4220-a4f0-282c06e4cad7 2026-05-27 13:34:33,255 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/c1719d40-7a30-44ee-99c8-df9ef4b8ad94 2026-05-27 13:34:33,266 - DEBUG - ==>Verifying data for policy with id: 7eef7bfd-8dd9-4725-becf-7a74adce179f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-50255496', 'ctest-policy1-02137476'] 2026-05-27 13:34:33,266 - INFO - VN ctest-vn4-06754494 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-27 13:34:33,266 - DEBUG - Verifying the vn in opserver 2026-05-27 13:34:33,266 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50255496:ctest-vn4-06754494 virtual network link through opserver 10.0.0.242 2026-05-27 13:34:33,266 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-05-27 13:34:33,614 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-05-27 13:34:33,693 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50255496:ctest-vn4-06754494', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50255496:ctest-vn4-06754494?flat'} 2026-05-27 13:34:33,693 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-50255496:ctest-vn4-06754494 is found in opserver 2026-05-27 13:34:33,705 - DEBUG - Do not have enough data to verify VN in agent 2026-05-27 13:34:33,712 - DEBUG - VRF ids for VN ctest-vn4-06754494: {} 2026-05-27 13:34:33,712 - DEBUG - ====Verifying data for ctest-policy1-02137476 in API_Server ====== 2026-05-27 13:34:33,712 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-27 13:34:33,720 - DEBUG - Requesting: http://10.0.0.242:8082/domain/fb3a4903-63b4-49fa-8a08-6e7d69533a1e 2026-05-27 13:34:33,733 - DEBUG - Requesting: http://10.0.0.242:8082/project/c1484872-a2af-4220-a4f0-282c06e4cad7 2026-05-27 13:34:33,816 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/7eef7bfd-8dd9-4725-becf-7a74adce179f 2026-05-27 13:34:33,827 - INFO - Verified policy ctest-policy1-02137476 in API Server, Result: True 2026-05-27 13:34:33,827 - INFO - Done with setup and verification, moving onto test .. 2026-05-27 13:34:33,836 - INFO - Deleting VN ctest-vn4-06754494 2026-05-27 13:34:33,975 - DEBUG - Response for deleting network () 2026-05-27 13:34:33,975 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/3981b7eb-3c58-4a88-8664-2df7d11e544e 2026-05-27 13:34:33,981 - DEBUG - Response Code: 404 2026-05-27 13:34:33,982 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-27 13:34:33,987 - DEBUG - Requesting: http://10.0.0.242:8082/domain/fb3a4903-63b4-49fa-8a08-6e7d69533a1e 2026-05-27 13:34:34,046 - DEBUG - Requesting: http://10.0.0.242:8082/project/c1484872-a2af-4220-a4f0-282c06e4cad7 2026-05-27 13:34:34,131 - INFO - Validated that VN ctest-vn4-06754494 is not found in API Server 2026-05-27 13:34:34,140 - DEBUG - VN ctest-vn4-06754494 is not present in Agent 10.0.0.242 2026-05-27 13:34:34,140 - INFO - Validated that VN ctest-vn4-06754494 is not in any agent 2026-05-27 13:34:34,153 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-06754494 info 2026-05-27 13:34:34,183 - INFO - Deleted policy ctest-policy1-02137476 2026-05-27 13:34:34,352 - DEBUG - policy ctest-policy1-02137476 is not found in API Server 2026-05-27 13:34:34,624 - DEBUG - No XMPP flaps were noticed during the test