2026-03-26 02:41:11,712 - INFO - Domain Default found not creating 2026-03-26 02:41:11,925 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-63687248 not found, creating it 2026-03-26 02:41:12,557 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-63687248, ID : 36a2c17a-7c1a-448a-94ee-8c92b2ee1627 2026-03-26 02:41:14,641 - INFO - ================================================================================ 2026-03-26 02:41:14,641 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-26 02:41:15,911 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0', '10.20.0.14': '0'}, '10.0.0.23': {'10.20.0.254': '0', '10.20.0.18': '0'}} with 2026-03-26 02:41:15,911 - INFO - Initial checks done. Running the testcase now 2026-03-26 02:41:15,911 - INFO - 2026-03-26 02:41:15,911 - INFO - ================================================================================ 2026-03-26 02:41:15,911 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-26 02:41:15,911 - 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-26 02:41:17,174 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0', '10.20.0.14': '0'}, '10.0.0.23': {'10.20.0.254': '0', '10.20.0.18': '0'}} with 2026-03-26 02:41:17,174 - INFO - Initial checks done. Running the testcase now 2026-03-26 02:41:17,174 - INFO - 2026-03-26 02:41:17,565 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63687248:ctest-vn4-88515768, 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-63687248:ctest-vn4-88515768, 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-63687248:ctest-vn4-88515768, 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-63687248:ctest-vn4-88515768, 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-26 02:41:18,154 - DEBUG - Response for create_network : {'network': {'id': 'c10308d3-0914-4cca-a3ae-7f9b0b075494', 'name': 'ctest-vn4-88515768', 'tenant_id': '36a2c17a7c1a448a94ee8c92b2ee1627', 'project_id': '36a2c17a7c1a448a94ee8c92b2ee1627', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63687248', 'ctest-vn4-88515768'], 'port_security_enabled': True, 'description': ''}} 2026-03-26 02:41:18,465 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b2fb24a-946d-444b-8faf-62d158d657c4', 'name': '', 'tenant_id': '36a2c17a7c1a448a94ee8c92b2ee1627', 'network_id': 'c10308d3-0914-4cca-a3ae-7f9b0b075494', 'ip_version': 4, 'cidr': '22.234.236.128/26', 'allocation_pools': [{'start': '22.234.236.130', 'end': '22.234.236.190'}], 'gateway_ip': '22.234.236.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.234.236.130', 'tags': [], 'project_id': '36a2c17a7c1a448a94ee8c92b2ee1627'}} 2026-03-26 02:41:18,648 - DEBUG - Response for create_subnet : {'subnet': {'id': '7d3d242c-900a-4737-a24e-2fff058cc3f8', 'name': '', 'tenant_id': '36a2c17a7c1a448a94ee8c92b2ee1627', 'network_id': 'c10308d3-0914-4cca-a3ae-7f9b0b075494', 'ip_version': 6, 'cidr': '3ae0:57d2:3cd8:2cff:87ae:9f03::/96', 'allocation_pools': [{'start': '3ae0:57d2:3cd8:2cff:87ae:9f03:0:2', 'end': '3ae0:57d2:3cd8:2cff:87ae:9f03:ffff:fffe'}], 'gateway_ip': '3ae0:57d2:3cd8:2cff:87ae:9f03:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ae0:57d2:3cd8:2cff:87ae:9f03:0:2', 'tags': [], 'project_id': '36a2c17a7c1a448a94ee8c92b2ee1627'}} 2026-03-26 02:41:18,672 - INFO - Created VN ctest-vn4-88515768 2026-03-26 02:41:18,682 - DEBUG - VN ctest-vn4-88515768 UUID is c10308d3-0914-4cca-a3ae-7f9b0b075494 2026-03-26 02:41:18,917 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c10308d3-0914-4cca-a3ae-7f9b0b075494', 'name': 'ctest-vn4-88515768', 'tenant_id': '36a2c17a7c1a448a94ee8c92b2ee1627', 'project_id': '36a2c17a7c1a448a94ee8c92b2ee1627', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b2fb24a-946d-444b-8faf-62d158d657c4', '7d3d242c-900a-4737-a24e-2fff058cc3f8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63687248', 'ctest-vn4-88515768'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63687248', 'ctest-policy1-47452885']], 'subnet_ipam': [{'subnet_cidr': '22.234.236.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ae0:57d2:3cd8:2cff:87ae:9f03::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-26 02:41:19,001 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-03-26 02:41:19,335 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-03-26 02:41:19,367 - DEBUG - Requesting: http://10.0.0.240:8082/domain/b07ef41d-f358-4169-a694-2c6c20158c87 2026-03-26 02:41:19,383 - DEBUG - Requesting: http://10.0.0.240:8082/project/36a2c17a-7c1a-448a-94ee-8c92b2ee1627 2026-03-26 02:41:19,491 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/c10308d3-0914-4cca-a3ae-7f9b0b075494 2026-03-26 02:41:19,509 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/c10308d3-0914-4cca-a3ae-7f9b0b075494 2026-03-26 02:41:19,520 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/813fb63b-5f02-48a1-886b-64c748bac4c6 2026-03-26 02:41:19,531 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/813fb63b-5f02-48a1-886b-64c748bac4c6 2026-03-26 02:41:19,540 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/b0a81b45-0adf-45d2-973e-ec7a9637130a 2026-03-26 02:41:19,547 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-26 02:41:19,547 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/c10308d3-0914-4cca-a3ae-7f9b0b075494 2026-03-26 02:41:19,559 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/813fb63b-5f02-48a1-886b-64c748bac4c6 2026-03-26 02:41:19,580 - INFO - Verified VN network id 16 for VN c10308d3-0914-4cca-a3ae-7f9b0b075494 2026-03-26 02:41:19,580 - INFO - Verifications in API Server for VN ctest-vn4-88515768 passed 2026-03-26 02:41:19,580 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/c10308d3-0914-4cca-a3ae-7f9b0b075494 2026-03-26 02:41:19,597 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/813fb63b-5f02-48a1-886b-64c748bac4c6 2026-03-26 02:41:19,609 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/813fb63b-5f02-48a1-886b-64c748bac4c6 2026-03-26 02:41:19,617 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/b0a81b45-0adf-45d2-973e-ec7a9637130a 2026-03-26 02:41:19,631 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63687248:ctest-vn4-88515768', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-63687248', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13907969776733670602', 'uuid-lslong': '11794504778011595924'}, 'enable': 'true', 'created': '2026-03-26T02:41:18', 'last-modified': '2026-03-26T02:41:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.778800'} 2026-03-26 02:41:19,637 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-26 02:41:19,643 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63687248:ctest-vn4-88515768', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-63687248', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13907969776733670602', 'uuid-lslong': '11794504778011595924'}, 'enable': 'true', 'created': '2026-03-26T02:41:18', 'last-modified': '2026-03-26T02:41:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.780509'} 2026-03-26 02:41:19,652 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-26 02:41:19,658 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63687248:ctest-vn4-88515768', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-63687248', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13907969776733670602', 'uuid-lslong': '11794504778011595924'}, 'enable': 'true', 'created': '2026-03-26T02:41:18', 'last-modified': '2026-03-26T02:41:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.780298'} 2026-03-26 02:41:19,665 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-26 02:41:19,665 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88515768 passed 2026-03-26 02:41:19,665 - DEBUG - ====Verifying policy data for ctest-vn4-88515768 in API_Server ====== 2026-03-26 02:41:19,665 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-03-26 02:41:19,672 - DEBUG - Requesting: http://10.0.0.240:8082/domain/b07ef41d-f358-4169-a694-2c6c20158c87 2026-03-26 02:41:19,684 - DEBUG - Requesting: http://10.0.0.240:8082/project/36a2c17a-7c1a-448a-94ee-8c92b2ee1627 2026-03-26 02:41:19,784 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/c10308d3-0914-4cca-a3ae-7f9b0b075494 2026-03-26 02:41:19,795 - DEBUG - ==>Verifying data for policy with id: c491c2a1-62e8-480e-b699-dbc10c19000b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63687248', 'ctest-policy1-47452885'] 2026-03-26 02:41:19,795 - INFO - VN ctest-vn4-88515768 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-26 02:41:19,795 - DEBUG - Verifying the vn in opserver 2026-03-26 02:41:19,795 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63687248:ctest-vn4-88515768 virtual network link through opserver 10.0.0.240 2026-03-26 02:41:19,796 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-03-26 02:41:20,147 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-03-26 02:41:20,242 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63687248:ctest-vn4-88515768', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63687248:ctest-vn4-88515768?flat'} 2026-03-26 02:41:20,242 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63687248:ctest-vn4-88515768 virtual network link through opserver 10.0.0.22 2026-03-26 02:41:20,242 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-26 02:41:20,589 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-26 02:41:20,657 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63687248:ctest-vn4-88515768', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63687248:ctest-vn4-88515768?flat'} 2026-03-26 02:41:20,657 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63687248:ctest-vn4-88515768 virtual network link through opserver 10.0.0.65 2026-03-26 02:41:20,657 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-03-26 02:41:21,019 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2026-03-26 02:41:21,089 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63687248:ctest-vn4-88515768', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63687248:ctest-vn4-88515768?flat'} 2026-03-26 02:41:21,090 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63687248:ctest-vn4-88515768 is found in opserver 2026-03-26 02:41:21,112 - DEBUG - Do not have enough data to verify VN in agent 2026-03-26 02:41:21,123 - DEBUG - VRF ids for VN ctest-vn4-88515768: {} 2026-03-26 02:41:21,123 - DEBUG - ====Verifying data for ctest-policy1-47452885 in API_Server ====== 2026-03-26 02:41:21,123 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-03-26 02:41:21,130 - DEBUG - Requesting: http://10.0.0.240:8082/domain/b07ef41d-f358-4169-a694-2c6c20158c87 2026-03-26 02:41:21,143 - DEBUG - Requesting: http://10.0.0.240:8082/project/36a2c17a-7c1a-448a-94ee-8c92b2ee1627 2026-03-26 02:41:21,240 - DEBUG - Requesting: http://10.0.0.240:8082/network-policy/c491c2a1-62e8-480e-b699-dbc10c19000b 2026-03-26 02:41:21,252 - INFO - Verified policy ctest-policy1-47452885 in API Server, Result: True 2026-03-26 02:41:21,252 - INFO - Done with setup and verification, moving onto test .. 2026-03-26 02:41:21,265 - INFO - Deleting VN ctest-vn4-88515768 2026-03-26 02:41:21,477 - DEBUG - Response for deleting network () 2026-03-26 02:41:21,477 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/813fb63b-5f02-48a1-886b-64c748bac4c6 2026-03-26 02:41:21,484 - DEBUG - Response Code: 404 2026-03-26 02:41:21,484 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-03-26 02:41:21,491 - DEBUG - Requesting: http://10.0.0.240:8082/domain/b07ef41d-f358-4169-a694-2c6c20158c87 2026-03-26 02:41:21,504 - DEBUG - Requesting: http://10.0.0.240:8082/project/36a2c17a-7c1a-448a-94ee-8c92b2ee1627 2026-03-26 02:41:21,591 - INFO - Validated that VN ctest-vn4-88515768 is not found in API Server 2026-03-26 02:41:21,601 - DEBUG - VN ctest-vn4-88515768 is not present in Agent 10.0.0.38 2026-03-26 02:41:21,611 - DEBUG - VN ctest-vn4-88515768 is not present in Agent 10.0.0.23 2026-03-26 02:41:21,611 - INFO - Validated that VN ctest-vn4-88515768 is not in any agent 2026-03-26 02:41:21,648 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88515768 info 2026-03-26 02:41:21,692 - INFO - Deleted policy ctest-policy1-47452885 2026-03-26 02:41:21,891 - DEBUG - policy ctest-policy1-47452885 is not found in API Server 2026-03-26 02:41:23,157 - DEBUG - No XMPP flaps were noticed during the test