2026-03-05 12:24:01,774 - INFO - Domain Default found not creating 2026-03-05 12:24:01,956 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33852952 not found, creating it 2026-03-05 12:24:02,401 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33852952, ID : 1386ce1e-d82a-4da6-b6e3-977090e745b8 2026-03-05 12:24:03,842 - INFO - ================================================================================ 2026-03-05 12:24:03,842 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 12:24:04,094 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-03-05 12:24:04,094 - INFO - Initial checks done. Running the testcase now 2026-03-05 12:24:04,094 - INFO - 2026-03-05 12:24:04,094 - INFO - ================================================================================ 2026-03-05 12:24:04,094 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-05 12:24:04,094 - 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-03-05 12:24:04,382 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2026-03-05 12:24:04,382 - INFO - Initial checks done. Running the testcase now 2026-03-05 12:24:04,382 - INFO - 2026-03-05 12:24:04,737 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33852952:ctest-vn4-25481789, 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-33852952:ctest-vn4-25481789, 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-33852952:ctest-vn4-25481789, 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-33852952:ctest-vn4-25481789, 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-03-05 12:24:05,231 - DEBUG - Response for create_network : {'network': {'id': '3bc631c4-19f3-462c-be78-4395cf8c9d90', 'name': 'ctest-vn4-25481789', 'tenant_id': '1386ce1ed82a4da6b6e3977090e745b8', 'project_id': '1386ce1ed82a4da6b6e3977090e745b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33852952', 'ctest-vn4-25481789'], 'port_security_enabled': True, 'description': ''}} 2026-03-05 12:24:05,392 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e64ebc70-f888-4351-af0f-db19332a08e2', 'name': '', 'tenant_id': '1386ce1ed82a4da6b6e3977090e745b8', 'network_id': '3bc631c4-19f3-462c-be78-4395cf8c9d90', 'ip_version': 4, 'cidr': '173.154.153.0/26', 'allocation_pools': [{'start': '173.154.153.2', 'end': '173.154.153.62'}], 'gateway_ip': '173.154.153.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.154.153.2', 'tags': [], 'project_id': '1386ce1ed82a4da6b6e3977090e745b8'}} 2026-03-05 12:24:05,526 - DEBUG - Response for create_subnet : {'subnet': {'id': '50d370dc-f005-44dc-a5d2-537cc9d98503', 'name': '', 'tenant_id': '1386ce1ed82a4da6b6e3977090e745b8', 'network_id': '3bc631c4-19f3-462c-be78-4395cf8c9d90', 'ip_version': 6, 'cidr': '3e35:7aa:df87:8e81:91de:d6e9::/96', 'allocation_pools': [{'start': '3e35:7aa:df87:8e81:91de:d6e9:0:2', 'end': '3e35:7aa:df87:8e81:91de:d6e9:ffff:fffe'}], 'gateway_ip': '3e35:7aa:df87:8e81:91de:d6e9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e35:7aa:df87:8e81:91de:d6e9:0:2', 'tags': [], 'project_id': '1386ce1ed82a4da6b6e3977090e745b8'}} 2026-03-05 12:24:05,545 - INFO - Created VN ctest-vn4-25481789 2026-03-05 12:24:05,597 - DEBUG - VN ctest-vn4-25481789 UUID is 3bc631c4-19f3-462c-be78-4395cf8c9d90 2026-03-05 12:24:05,794 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3bc631c4-19f3-462c-be78-4395cf8c9d90', 'name': 'ctest-vn4-25481789', 'tenant_id': '1386ce1ed82a4da6b6e3977090e745b8', 'project_id': '1386ce1ed82a4da6b6e3977090e745b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e64ebc70-f888-4351-af0f-db19332a08e2', '50d370dc-f005-44dc-a5d2-537cc9d98503'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33852952', 'ctest-vn4-25481789'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33852952', 'ctest-policy1-57788475']], 'subnet_ipam': [{'subnet_cidr': '173.154.153.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e35:7aa:df87:8e81:91de:d6e9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-05 12:24:05,949 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-05 12:24:06,240 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-05 12:24:06,273 - DEBUG - Requesting: http://10.0.0.141:8082/domain/af2d3857-6f89-42ce-b84d-fde6738531e5 2026-03-05 12:24:06,284 - DEBUG - Requesting: http://10.0.0.141:8082/project/1386ce1e-d82a-4da6-b6e3-977090e745b8 2026-03-05 12:24:06,355 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3bc631c4-19f3-462c-be78-4395cf8c9d90 2026-03-05 12:24:06,367 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3bc631c4-19f3-462c-be78-4395cf8c9d90 2026-03-05 12:24:06,376 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f274c4d7-6191-42c8-a202-2a723b073a55 2026-03-05 12:24:06,383 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f274c4d7-6191-42c8-a202-2a723b073a55 2026-03-05 12:24:06,389 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/b2a7688f-a702-4638-a0d4-3e2be17ff31e 2026-03-05 12:24:06,395 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 12:24:06,395 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3bc631c4-19f3-462c-be78-4395cf8c9d90 2026-03-05 12:24:06,403 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f274c4d7-6191-42c8-a202-2a723b073a55 2026-03-05 12:24:06,415 - INFO - Verified VN network id 12 for VN 3bc631c4-19f3-462c-be78-4395cf8c9d90 2026-03-05 12:24:06,415 - INFO - Verifications in API Server for VN ctest-vn4-25481789 passed 2026-03-05 12:24:06,416 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3bc631c4-19f3-462c-be78-4395cf8c9d90 2026-03-05 12:24:06,426 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f274c4d7-6191-42c8-a202-2a723b073a55 2026-03-05 12:24:06,432 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f274c4d7-6191-42c8-a202-2a723b073a55 2026-03-05 12:24:06,441 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/b2a7688f-a702-4638-a0d4-3e2be17ff31e 2026-03-05 12:24:06,453 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33852952:ctest-vn4-25481789', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33852952', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4307184811945182764', 'uuid-lslong': '13724794175122873744'}, 'enable': 'true', 'created': '2026-03-05T12:24:05', 'last-modified': '2026-03-05T12:24:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690396'} 2026-03-05 12:24:06,459 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-05 12:24:06,459 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-25481789 passed 2026-03-05 12:24:06,459 - DEBUG - ====Verifying policy data for ctest-vn4-25481789 in API_Server ====== 2026-03-05 12:24:06,459 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-05 12:24:06,464 - DEBUG - Requesting: http://10.0.0.141:8082/domain/af2d3857-6f89-42ce-b84d-fde6738531e5 2026-03-05 12:24:06,473 - DEBUG - Requesting: http://10.0.0.141:8082/project/1386ce1e-d82a-4da6-b6e3-977090e745b8 2026-03-05 12:24:06,541 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3bc631c4-19f3-462c-be78-4395cf8c9d90 2026-03-05 12:24:06,551 - DEBUG - ==>Verifying data for policy with id: ffa6a639-9e66-473c-85c9-51c14cbaf200, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33852952', 'ctest-policy1-57788475'] 2026-03-05 12:24:06,552 - INFO - VN ctest-vn4-25481789 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-05 12:24:06,552 - DEBUG - Verifying the vn in opserver 2026-03-05 12:24:06,552 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33852952:ctest-vn4-25481789 virtual network link through opserver 10.0.0.141 2026-03-05 12:24:06,552 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-03-05 12:24:06,847 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-03-05 12:24:06,908 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33852952:ctest-vn4-25481789', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33852952:ctest-vn4-25481789?flat'} 2026-03-05 12:24:06,908 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33852952:ctest-vn4-25481789 is found in opserver 2026-03-05 12:24:06,917 - DEBUG - Do not have enough data to verify VN in agent 2026-03-05 12:24:06,921 - DEBUG - VRF ids for VN ctest-vn4-25481789: {} 2026-03-05 12:24:06,922 - DEBUG - ====Verifying data for ctest-policy1-57788475 in API_Server ====== 2026-03-05 12:24:06,922 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-05 12:24:06,927 - DEBUG - Requesting: http://10.0.0.141:8082/domain/af2d3857-6f89-42ce-b84d-fde6738531e5 2026-03-05 12:24:06,937 - DEBUG - Requesting: http://10.0.0.141:8082/project/1386ce1e-d82a-4da6-b6e3-977090e745b8 2026-03-05 12:24:07,009 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/ffa6a639-9e66-473c-85c9-51c14cbaf200 2026-03-05 12:24:07,021 - INFO - Verified policy ctest-policy1-57788475 in API Server, Result: True 2026-03-05 12:24:07,021 - INFO - Done with setup and verification, moving onto test .. 2026-03-05 12:24:07,031 - INFO - Deleting VN ctest-vn4-25481789 2026-03-05 12:24:07,133 - DEBUG - Response for deleting network () 2026-03-05 12:24:07,133 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/f274c4d7-6191-42c8-a202-2a723b073a55 2026-03-05 12:24:07,138 - DEBUG - Response Code: 404 2026-03-05 12:24:07,138 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-03-05 12:24:07,145 - DEBUG - Requesting: http://10.0.0.141:8082/domain/af2d3857-6f89-42ce-b84d-fde6738531e5 2026-03-05 12:24:07,198 - DEBUG - Requesting: http://10.0.0.141:8082/project/1386ce1e-d82a-4da6-b6e3-977090e745b8 2026-03-05 12:24:07,265 - INFO - Validated that VN ctest-vn4-25481789 is not found in API Server 2026-03-05 12:24:07,274 - DEBUG - VN ctest-vn4-25481789 is not present in Agent 10.0.0.141 2026-03-05 12:24:07,274 - INFO - Validated that VN ctest-vn4-25481789 is not in any agent 2026-03-05 12:24:07,287 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-25481789 info 2026-03-05 12:24:07,311 - INFO - Deleted policy ctest-policy1-57788475 2026-03-05 12:24:07,472 - DEBUG - policy ctest-policy1-57788475 is not found in API Server 2026-03-05 12:24:07,726 - DEBUG - No XMPP flaps were noticed during the test 2026-03-05 12:24:07,726 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-03-05 12:24:07,726 - INFO - -------------------------------------------------------------------------------- 2026-03-05 12:24:08,012 - DEBUG - No XMPP flaps were noticed during the test 2026-03-05 12:24:08,013 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-03-05 12:24:08,013 - INFO - -------------------------------------------------------------------------------- 2026-03-05 12:24:08,678 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-33852952, ID : 1386ce1e-d82a-4da6-b6e3-977090e745b8