2026-08-25 11:17:56,845 - INFO - Domain Default found not creating 2026-08-25 11:17:57,049 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-18228630 not found, creating it 2026-08-25 11:17:57,556 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-18228630, ID : 1616a71e-f997-4e07-ae63-5dbca6f640ba 2026-08-25 11:17:59,176 - INFO - ================================================================================ 2026-08-25 11:17:59,176 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 11:17:59,445 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-08-25 11:17:59,445 - INFO - Initial checks done. Running the testcase now 2026-08-25 11:17:59,445 - INFO - 2026-08-25 11:17:59,445 - INFO - ================================================================================ 2026-08-25 11:17:59,445 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 11:17:59,445 - 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-08-25 11:17:59,744 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-08-25 11:17:59,744 - INFO - Initial checks done. Running the testcase now 2026-08-25 11:17:59,744 - INFO - 2026-08-25 11:18:00,175 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18228630:ctest-vn4-42845365, 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-18228630:ctest-vn4-42845365, 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-18228630:ctest-vn4-42845365, 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-18228630:ctest-vn4-42845365, 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-08-25 11:18:00,755 - DEBUG - Response for create_network : {'network': {'id': '0b40338a-76a1-4db2-bdc3-a2c6de4bea82', 'name': 'ctest-vn4-42845365', 'tenant_id': '1616a71ef9974e07ae635dbca6f640ba', 'project_id': '1616a71ef9974e07ae635dbca6f640ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18228630', 'ctest-vn4-42845365'], 'port_security_enabled': True, 'description': ''}} 2026-08-25 11:18:00,930 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e19c6b39-165b-43d3-a304-348315053925', 'name': '', 'tenant_id': '1616a71ef9974e07ae635dbca6f640ba', 'network_id': '0b40338a-76a1-4db2-bdc3-a2c6de4bea82', 'ip_version': 4, 'cidr': '207.87.221.128/26', 'allocation_pools': [{'start': '207.87.221.130', 'end': '207.87.221.190'}], 'gateway_ip': '207.87.221.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '207.87.221.130', 'tags': [], 'project_id': '1616a71ef9974e07ae635dbca6f640ba'}} 2026-08-25 11:18:01,116 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e07d6962-64e3-422a-9dde-c7787cfebdcf', 'name': '', 'tenant_id': '1616a71ef9974e07ae635dbca6f640ba', 'network_id': '0b40338a-76a1-4db2-bdc3-a2c6de4bea82', 'ip_version': 6, 'cidr': '2a09:7f30:9a5c:25d8:11cf:1d40::/96', 'allocation_pools': [{'start': '2a09:7f30:9a5c:25d8:11cf:1d40:0:2', 'end': '2a09:7f30:9a5c:25d8:11cf:1d40:ffff:fffe'}], 'gateway_ip': '2a09:7f30:9a5c:25d8:11cf:1d40:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a09:7f30:9a5c:25d8:11cf:1d40:0:2', 'tags': [], 'project_id': '1616a71ef9974e07ae635dbca6f640ba'}} 2026-08-25 11:18:01,139 - INFO - Created VN ctest-vn4-42845365 2026-08-25 11:18:01,196 - DEBUG - VN ctest-vn4-42845365 UUID is 0b40338a-76a1-4db2-bdc3-a2c6de4bea82 2026-08-25 11:18:01,456 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0b40338a-76a1-4db2-bdc3-a2c6de4bea82', 'name': 'ctest-vn4-42845365', 'tenant_id': '1616a71ef9974e07ae635dbca6f640ba', 'project_id': '1616a71ef9974e07ae635dbca6f640ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e19c6b39-165b-43d3-a304-348315053925', 'e07d6962-64e3-422a-9dde-c7787cfebdcf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18228630', 'ctest-vn4-42845365'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18228630', 'ctest-policy1-98084205']], 'subnet_ipam': [{'subnet_cidr': '207.87.221.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a09:7f30:9a5c:25d8:11cf:1d40::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-25 11:18:01,628 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-25 11:18:01,963 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-25 11:18:02,002 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8e0d2948-d88f-437d-8312-ce82ce751feb 2026-08-25 11:18:02,020 - DEBUG - Requesting: http://10.0.0.38:8082/project/1616a71e-f997-4e07-ae63-5dbca6f640ba 2026-08-25 11:18:02,109 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b40338a-76a1-4db2-bdc3-a2c6de4bea82 2026-08-25 11:18:02,127 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b40338a-76a1-4db2-bdc3-a2c6de4bea82 2026-08-25 11:18:02,140 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6c230d91-d948-419a-ba64-b6f527cb4e4f 2026-08-25 11:18:02,151 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6c230d91-d948-419a-ba64-b6f527cb4e4f 2026-08-25 11:18:02,160 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a1e95111-3d8a-4b88-8424-bcf5bd379644 2026-08-25 11:18:02,171 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 11:18:02,171 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b40338a-76a1-4db2-bdc3-a2c6de4bea82 2026-08-25 11:18:02,187 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6c230d91-d948-419a-ba64-b6f527cb4e4f 2026-08-25 11:18:02,208 - INFO - Verified VN network id 11 for VN 0b40338a-76a1-4db2-bdc3-a2c6de4bea82 2026-08-25 11:18:02,208 - INFO - Verifications in API Server for VN ctest-vn4-42845365 passed 2026-08-25 11:18:02,209 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b40338a-76a1-4db2-bdc3-a2c6de4bea82 2026-08-25 11:18:02,221 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6c230d91-d948-419a-ba64-b6f527cb4e4f 2026-08-25 11:18:02,230 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6c230d91-d948-419a-ba64-b6f527cb4e4f 2026-08-25 11:18:02,238 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/a1e95111-3d8a-4b88-8424-bcf5bd379644 2026-08-25 11:18:02,255 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18228630:ctest-vn4-42845365', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18228630', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '810704602715475378', 'uuid-lslong': '13673951868643699330'}, 'enable': 'true', 'created': '2026-08-25T11:18:00', 'last-modified': '2026-08-25T11:18:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.840772'} 2026-08-25 11:18:02,264 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 11:18:02,265 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42845365 passed 2026-08-25 11:18:02,265 - DEBUG - ====Verifying policy data for ctest-vn4-42845365 in API_Server ====== 2026-08-25 11:18:02,265 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-25 11:18:02,273 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8e0d2948-d88f-437d-8312-ce82ce751feb 2026-08-25 11:18:02,285 - DEBUG - Requesting: http://10.0.0.38:8082/project/1616a71e-f997-4e07-ae63-5dbca6f640ba 2026-08-25 11:18:02,367 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0b40338a-76a1-4db2-bdc3-a2c6de4bea82 2026-08-25 11:18:02,380 - DEBUG - ==>Verifying data for policy with id: 8c42b586-2932-4490-9ab2-e4e7b4061073, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18228630', 'ctest-policy1-98084205'] 2026-08-25 11:18:02,380 - INFO - VN ctest-vn4-42845365 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-25 11:18:02,380 - DEBUG - Verifying the vn in opserver 2026-08-25 11:18:02,380 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18228630:ctest-vn4-42845365 virtual network link through opserver 10.0.0.38 2026-08-25 11:18:02,380 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-25 11:18:02,699 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-25 11:18:02,756 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18228630:ctest-vn4-42845365', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18228630:ctest-vn4-42845365?flat'} 2026-08-25 11:18:02,756 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18228630:ctest-vn4-42845365 is found in opserver 2026-08-25 11:18:02,770 - DEBUG - Do not have enough data to verify VN in agent 2026-08-25 11:18:02,776 - DEBUG - VRF ids for VN ctest-vn4-42845365: {} 2026-08-25 11:18:02,777 - DEBUG - ====Verifying data for ctest-policy1-98084205 in API_Server ====== 2026-08-25 11:18:02,777 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-25 11:18:02,785 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8e0d2948-d88f-437d-8312-ce82ce751feb 2026-08-25 11:18:02,804 - DEBUG - Requesting: http://10.0.0.38:8082/project/1616a71e-f997-4e07-ae63-5dbca6f640ba 2026-08-25 11:18:02,889 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/8c42b586-2932-4490-9ab2-e4e7b4061073 2026-08-25 11:18:02,901 - INFO - Verified policy ctest-policy1-98084205 in API Server, Result: True 2026-08-25 11:18:02,901 - INFO - Done with setup and verification, moving onto test .. 2026-08-25 11:18:02,913 - INFO - Deleting VN ctest-vn4-42845365 2026-08-25 11:18:03,076 - DEBUG - Response for deleting network () 2026-08-25 11:18:03,076 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6c230d91-d948-419a-ba64-b6f527cb4e4f 2026-08-25 11:18:03,083 - DEBUG - Response Code: 404 2026-08-25 11:18:03,083 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-25 11:18:03,091 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8e0d2948-d88f-437d-8312-ce82ce751feb 2026-08-25 11:18:03,150 - DEBUG - Requesting: http://10.0.0.38:8082/project/1616a71e-f997-4e07-ae63-5dbca6f640ba 2026-08-25 11:18:03,232 - INFO - Validated that VN ctest-vn4-42845365 is not found in API Server 2026-08-25 11:18:03,248 - DEBUG - VN ctest-vn4-42845365 is not present in Agent 10.0.0.38 2026-08-25 11:18:03,248 - INFO - Validated that VN ctest-vn4-42845365 is not in any agent 2026-08-25 11:18:03,268 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42845365 info 2026-08-25 11:18:03,297 - INFO - Deleted policy ctest-policy1-98084205 2026-08-25 11:18:03,479 - DEBUG - policy ctest-policy1-98084205 is not found in API Server 2026-08-25 11:18:03,737 - DEBUG - No XMPP flaps were noticed during the test 2026-08-25 11:18:03,738 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-08-25 11:18:03,738 - INFO - -------------------------------------------------------------------------------- 2026-08-25 11:18:04,035 - DEBUG - No XMPP flaps were noticed during the test 2026-08-25 11:18:04,035 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-25 11:18:04,035 - INFO - -------------------------------------------------------------------------------- 2026-08-25 11:18:04,810 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-18228630, ID : 1616a71e-f997-4e07-ae63-5dbca6f640ba