2026-05-26 13:42:16,283 - INFO - Domain Default found not creating 2026-05-26 13:42:16,467 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-73244699 not found, creating it 2026-05-26 13:42:16,944 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-73244699, ID : ce35d425-abaf-478d-b8ad-7bf9d766fb0d 2026-05-26 13:42:18,501 - INFO - ================================================================================ 2026-05-26 13:42:18,501 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-26 13:42:18,754 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-05-26 13:42:18,754 - INFO - Initial checks done. Running the testcase now 2026-05-26 13:42:18,754 - INFO - 2026-05-26 13:42:18,754 - INFO - ================================================================================ 2026-05-26 13:42:18,754 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-26 13:42:18,754 - 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-26 13:42:19,043 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-05-26 13:42:19,043 - INFO - Initial checks done. Running the testcase now 2026-05-26 13:42:19,043 - INFO - 2026-05-26 13:42:19,399 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73244699:ctest-vn4-04618355, 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-73244699:ctest-vn4-04618355, 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-73244699:ctest-vn4-04618355, 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-73244699:ctest-vn4-04618355, 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-26 13:42:19,925 - DEBUG - Response for create_network : {'network': {'id': '1d8d3837-5445-4e87-9b89-1c2609c3c131', 'name': 'ctest-vn4-04618355', 'tenant_id': 'ce35d425abaf478db8ad7bf9d766fb0d', 'project_id': 'ce35d425abaf478db8ad7bf9d766fb0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73244699', 'ctest-vn4-04618355'], 'port_security_enabled': True, 'description': ''}} 2026-05-26 13:42:20,098 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b17e3bd7-bc6d-4f65-a889-9f633e734b8c', 'name': '', 'tenant_id': 'ce35d425abaf478db8ad7bf9d766fb0d', 'network_id': '1d8d3837-5445-4e87-9b89-1c2609c3c131', 'ip_version': 4, 'cidr': '204.51.177.128/26', 'allocation_pools': [{'start': '204.51.177.130', 'end': '204.51.177.190'}], 'gateway_ip': '204.51.177.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.51.177.130', 'tags': [], 'project_id': 'ce35d425abaf478db8ad7bf9d766fb0d'}} 2026-05-26 13:42:20,274 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b385dd1a-1281-4976-b750-ad6f1ab6532d', 'name': '', 'tenant_id': 'ce35d425abaf478db8ad7bf9d766fb0d', 'network_id': '1d8d3837-5445-4e87-9b89-1c2609c3c131', 'ip_version': 6, 'cidr': '34b1:5474:c71c:384f:ebb8:be19::/96', 'allocation_pools': [{'start': '34b1:5474:c71c:384f:ebb8:be19:0:2', 'end': '34b1:5474:c71c:384f:ebb8:be19:ffff:fffe'}], 'gateway_ip': '34b1:5474:c71c:384f:ebb8:be19:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34b1:5474:c71c:384f:ebb8:be19:0:2', 'tags': [], 'project_id': 'ce35d425abaf478db8ad7bf9d766fb0d'}} 2026-05-26 13:42:20,295 - INFO - Created VN ctest-vn4-04618355 2026-05-26 13:42:20,349 - DEBUG - VN ctest-vn4-04618355 UUID is 1d8d3837-5445-4e87-9b89-1c2609c3c131 2026-05-26 13:42:20,554 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1d8d3837-5445-4e87-9b89-1c2609c3c131', 'name': 'ctest-vn4-04618355', 'tenant_id': 'ce35d425abaf478db8ad7bf9d766fb0d', 'project_id': 'ce35d425abaf478db8ad7bf9d766fb0d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b17e3bd7-bc6d-4f65-a889-9f633e734b8c', 'b385dd1a-1281-4976-b750-ad6f1ab6532d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73244699', 'ctest-vn4-04618355'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73244699', 'ctest-policy1-75885210']], 'subnet_ipam': [{'subnet_cidr': '204.51.177.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34b1:5474:c71c:384f:ebb8:be19::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-26 13:42:20,709 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-26 13:42:21,006 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-26 13:42:21,042 - DEBUG - Requesting: http://10.0.0.38:8082/domain/035d733e-05f5-4803-ad66-87517d2f7e7e 2026-05-26 13:42:21,054 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce35d425-abaf-478d-b8ad-7bf9d766fb0d 2026-05-26 13:42:21,123 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1d8d3837-5445-4e87-9b89-1c2609c3c131 2026-05-26 13:42:21,135 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1d8d3837-5445-4e87-9b89-1c2609c3c131 2026-05-26 13:42:21,146 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad04077c-fb8c-4a5b-a984-c75a27f4f69d 2026-05-26 13:42:21,153 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad04077c-fb8c-4a5b-a984-c75a27f4f69d 2026-05-26 13:42:21,161 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8334655f-fe9a-4cd8-a517-17a29fe60148 2026-05-26 13:42:21,169 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-26 13:42:21,169 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1d8d3837-5445-4e87-9b89-1c2609c3c131 2026-05-26 13:42:21,178 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad04077c-fb8c-4a5b-a984-c75a27f4f69d 2026-05-26 13:42:21,193 - INFO - Verified VN network id 11 for VN 1d8d3837-5445-4e87-9b89-1c2609c3c131 2026-05-26 13:42:21,194 - INFO - Verifications in API Server for VN ctest-vn4-04618355 passed 2026-05-26 13:42:21,194 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1d8d3837-5445-4e87-9b89-1c2609c3c131 2026-05-26 13:42:21,210 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad04077c-fb8c-4a5b-a984-c75a27f4f69d 2026-05-26 13:42:21,218 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad04077c-fb8c-4a5b-a984-c75a27f4f69d 2026-05-26 13:42:21,227 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8334655f-fe9a-4cd8-a517-17a29fe60148 2026-05-26 13:42:21,240 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73244699:ctest-vn4-04618355', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-73244699', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2129420009104297607', 'uuid-lslong': '11207520097386348849'}, 'enable': 'true', 'created': '2026-05-26T13:42:19', 'last-modified': '2026-05-26T13:42:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.710899'} 2026-05-26 13:42:21,246 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-26 13:42:21,246 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-04618355 passed 2026-05-26 13:42:21,246 - DEBUG - ====Verifying policy data for ctest-vn4-04618355 in API_Server ====== 2026-05-26 13:42:21,246 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-26 13:42:21,252 - DEBUG - Requesting: http://10.0.0.38:8082/domain/035d733e-05f5-4803-ad66-87517d2f7e7e 2026-05-26 13:42:21,263 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce35d425-abaf-478d-b8ad-7bf9d766fb0d 2026-05-26 13:42:21,333 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1d8d3837-5445-4e87-9b89-1c2609c3c131 2026-05-26 13:42:21,344 - DEBUG - ==>Verifying data for policy with id: 469db990-fa5e-4ad0-921c-fa575ba5a7ed, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73244699', 'ctest-policy1-75885210'] 2026-05-26 13:42:21,344 - INFO - VN ctest-vn4-04618355 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-26 13:42:21,344 - DEBUG - Verifying the vn in opserver 2026-05-26 13:42:21,344 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73244699:ctest-vn4-04618355 virtual network link through opserver 10.0.0.38 2026-05-26 13:42:21,344 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-05-26 13:42:21,636 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-05-26 13:42:21,699 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73244699:ctest-vn4-04618355', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73244699:ctest-vn4-04618355?flat'} 2026-05-26 13:42:21,699 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73244699:ctest-vn4-04618355 is found in opserver 2026-05-26 13:42:21,709 - DEBUG - Do not have enough data to verify VN in agent 2026-05-26 13:42:21,714 - DEBUG - VRF ids for VN ctest-vn4-04618355: {} 2026-05-26 13:42:21,714 - DEBUG - ====Verifying data for ctest-policy1-75885210 in API_Server ====== 2026-05-26 13:42:21,714 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-26 13:42:21,719 - DEBUG - Requesting: http://10.0.0.38:8082/domain/035d733e-05f5-4803-ad66-87517d2f7e7e 2026-05-26 13:42:21,731 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce35d425-abaf-478d-b8ad-7bf9d766fb0d 2026-05-26 13:42:21,804 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/469db990-fa5e-4ad0-921c-fa575ba5a7ed 2026-05-26 13:42:21,814 - INFO - Verified policy ctest-policy1-75885210 in API Server, Result: True 2026-05-26 13:42:21,814 - INFO - Done with setup and verification, moving onto test .. 2026-05-26 13:42:21,823 - INFO - Deleting VN ctest-vn4-04618355 2026-05-26 13:42:21,943 - DEBUG - Response for deleting network () 2026-05-26 13:42:21,943 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/ad04077c-fb8c-4a5b-a984-c75a27f4f69d 2026-05-26 13:42:21,948 - DEBUG - Response Code: 404 2026-05-26 13:42:21,948 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-05-26 13:42:21,953 - DEBUG - Requesting: http://10.0.0.38:8082/domain/035d733e-05f5-4803-ad66-87517d2f7e7e 2026-05-26 13:42:22,005 - DEBUG - Requesting: http://10.0.0.38:8082/project/ce35d425-abaf-478d-b8ad-7bf9d766fb0d 2026-05-26 13:42:22,076 - INFO - Validated that VN ctest-vn4-04618355 is not found in API Server 2026-05-26 13:42:22,087 - DEBUG - VN ctest-vn4-04618355 is not present in Agent 10.0.0.38 2026-05-26 13:42:22,087 - INFO - Validated that VN ctest-vn4-04618355 is not in any agent 2026-05-26 13:42:22,101 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-04618355 info 2026-05-26 13:42:22,124 - INFO - Deleted policy ctest-policy1-75885210 2026-05-26 13:42:22,288 - DEBUG - policy ctest-policy1-75885210 is not found in API Server 2026-05-26 13:42:22,541 - DEBUG - No XMPP flaps were noticed during the test