2026-08-17 02:56:38,661 - INFO - Domain Default found not creating 2026-08-17 02:56:38,851 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-30452892 not found, creating it 2026-08-17 02:56:39,437 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-30452892, ID : e6ecd15c-2051-4950-adbf-9799d98078df 2026-08-17 02:56:41,309 - INFO - ================================================================================ 2026-08-17 02:56:41,309 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-17 02:56:42,610 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0', '10.20.0.254': '0'}, '10.0.0.186': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2026-08-17 02:56:42,611 - INFO - Initial checks done. Running the testcase now 2026-08-17 02:56:42,611 - INFO - 2026-08-17 02:56:42,611 - INFO - ================================================================================ 2026-08-17 02:56:42,611 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-17 02:56:42,611 - 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-17 02:56:43,906 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0', '10.20.0.254': '0'}, '10.0.0.186': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2026-08-17 02:56:43,906 - INFO - Initial checks done. Running the testcase now 2026-08-17 02:56:43,906 - INFO - 2026-08-17 02:56:44,359 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30452892:ctest-vn4-47384233, 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-30452892:ctest-vn4-47384233, 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-30452892:ctest-vn4-47384233, 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-30452892:ctest-vn4-47384233, 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-17 02:56:45,170 - DEBUG - Response for create_network : {'network': {'id': '7aa66401-9e8e-4a0f-a655-0f0d741c5cc3', 'name': 'ctest-vn4-47384233', 'tenant_id': 'e6ecd15c20514950adbf9799d98078df', 'project_id': 'e6ecd15c20514950adbf9799d98078df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30452892', 'ctest-vn4-47384233'], 'port_security_enabled': True, 'description': ''}} 2026-08-17 02:56:45,451 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e27a48f7-983d-4a27-97eb-7efe167477a9', 'name': '', 'tenant_id': 'e6ecd15c20514950adbf9799d98078df', 'network_id': '7aa66401-9e8e-4a0f-a655-0f0d741c5cc3', 'ip_version': 4, 'cidr': '159.65.187.64/26', 'allocation_pools': [{'start': '159.65.187.66', 'end': '159.65.187.126'}], 'gateway_ip': '159.65.187.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.65.187.66', 'tags': [], 'project_id': 'e6ecd15c20514950adbf9799d98078df'}} 2026-08-17 02:56:45,750 - DEBUG - Response for create_subnet : {'subnet': {'id': '2fa35344-78ad-468a-af36-63ac14d56235', 'name': '', 'tenant_id': 'e6ecd15c20514950adbf9799d98078df', 'network_id': '7aa66401-9e8e-4a0f-a655-0f0d741c5cc3', 'ip_version': 6, 'cidr': '2b8e:ef52:bb37:92d5:fab3:2d65::/96', 'allocation_pools': [{'start': '2b8e:ef52:bb37:92d5:fab3:2d65:0:2', 'end': '2b8e:ef52:bb37:92d5:fab3:2d65:ffff:fffe'}], 'gateway_ip': '2b8e:ef52:bb37:92d5:fab3:2d65:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b8e:ef52:bb37:92d5:fab3:2d65:0:2', 'tags': [], 'project_id': 'e6ecd15c20514950adbf9799d98078df'}} 2026-08-17 02:56:45,777 - INFO - Created VN ctest-vn4-47384233 2026-08-17 02:56:45,793 - DEBUG - VN ctest-vn4-47384233 UUID is 7aa66401-9e8e-4a0f-a655-0f0d741c5cc3 2026-08-17 02:56:46,035 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7aa66401-9e8e-4a0f-a655-0f0d741c5cc3', 'name': 'ctest-vn4-47384233', 'tenant_id': 'e6ecd15c20514950adbf9799d98078df', 'project_id': 'e6ecd15c20514950adbf9799d98078df', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e27a48f7-983d-4a27-97eb-7efe167477a9', '2fa35344-78ad-468a-af36-63ac14d56235'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30452892', 'ctest-vn4-47384233'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30452892', 'ctest-policy1-73916767']], 'subnet_ipam': [{'subnet_cidr': '159.65.187.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b8e:ef52:bb37:92d5:fab3:2d65::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-17 02:56:46,165 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-17 02:56:46,534 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-17 02:56:46,577 - DEBUG - Requesting: http://10.0.0.177:8082/domain/2b2edc1c-1b78-4df2-9472-fa661dfea482 2026-08-17 02:56:46,595 - DEBUG - Requesting: http://10.0.0.177:8082/project/e6ecd15c-2051-4950-adbf-9799d98078df 2026-08-17 02:56:46,712 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/7aa66401-9e8e-4a0f-a655-0f0d741c5cc3 2026-08-17 02:56:46,730 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/7aa66401-9e8e-4a0f-a655-0f0d741c5cc3 2026-08-17 02:56:46,750 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/b4d790a1-b52e-4708-b6db-e50fdf1f90d9 2026-08-17 02:56:46,763 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/b4d790a1-b52e-4708-b6db-e50fdf1f90d9 2026-08-17 02:56:46,780 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/caf13971-5470-41f7-821a-7e7b68400416 2026-08-17 02:56:46,792 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-17 02:56:46,792 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/7aa66401-9e8e-4a0f-a655-0f0d741c5cc3 2026-08-17 02:56:46,805 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/b4d790a1-b52e-4708-b6db-e50fdf1f90d9 2026-08-17 02:56:46,823 - INFO - Verified VN network id 15 for VN 7aa66401-9e8e-4a0f-a655-0f0d741c5cc3 2026-08-17 02:56:46,823 - INFO - Verifications in API Server for VN ctest-vn4-47384233 passed 2026-08-17 02:56:46,823 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/7aa66401-9e8e-4a0f-a655-0f0d741c5cc3 2026-08-17 02:56:46,834 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/b4d790a1-b52e-4708-b6db-e50fdf1f90d9 2026-08-17 02:56:46,844 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/b4d790a1-b52e-4708-b6db-e50fdf1f90d9 2026-08-17 02:56:46,852 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/caf13971-5470-41f7-821a-7e7b68400416 2026-08-17 02:56:46,865 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30452892:ctest-vn4-47384233', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30452892', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8837861276879047183', 'uuid-lslong': '11985502533773450435'}, 'enable': 'true', 'created': '2026-08-17T02:56:45', 'last-modified': '2026-08-17T02:56:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.885042'} 2026-08-17 02:56:46,873 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-17 02:56:46,880 - DEBUG - Control-node 10.0.0.190 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30452892:ctest-vn4-47384233', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30452892', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8837861276879047183', 'uuid-lslong': '11985502533773450435'}, 'enable': 'true', 'created': '2026-08-17T02:56:45', 'last-modified': '2026-08-17T02:56:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.905185'} 2026-08-17 02:56:46,886 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-17 02:56:46,891 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30452892:ctest-vn4-47384233', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30452892', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8837861276879047183', 'uuid-lslong': '11985502533773450435'}, 'enable': 'true', 'created': '2026-08-17T02:56:45', 'last-modified': '2026-08-17T02:56:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.907151'} 2026-08-17 02:56:46,897 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-17 02:56:46,897 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47384233 passed 2026-08-17 02:56:46,897 - DEBUG - ====Verifying policy data for ctest-vn4-47384233 in API_Server ====== 2026-08-17 02:56:46,897 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-17 02:56:46,904 - DEBUG - Requesting: http://10.0.0.177:8082/domain/2b2edc1c-1b78-4df2-9472-fa661dfea482 2026-08-17 02:56:46,916 - DEBUG - Requesting: http://10.0.0.177:8082/project/e6ecd15c-2051-4950-adbf-9799d98078df 2026-08-17 02:56:47,010 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/7aa66401-9e8e-4a0f-a655-0f0d741c5cc3 2026-08-17 02:56:47,024 - DEBUG - ==>Verifying data for policy with id: 03afc980-289c-4d26-8935-0e66347d55bb, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30452892', 'ctest-policy1-73916767'] 2026-08-17 02:56:47,024 - INFO - VN ctest-vn4-47384233 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-17 02:56:47,024 - DEBUG - Verifying the vn in opserver 2026-08-17 02:56:47,024 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30452892:ctest-vn4-47384233 virtual network link through opserver 10.0.0.177 2026-08-17 02:56:47,024 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-17 02:56:47,391 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-08-17 02:56:47,458 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30452892:ctest-vn4-47384233', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30452892:ctest-vn4-47384233?flat'} 2026-08-17 02:56:47,458 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30452892:ctest-vn4-47384233 virtual network link through opserver 10.0.0.190 2026-08-17 02:56:47,458 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-08-17 02:56:47,831 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-08-17 02:56:47,897 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30452892:ctest-vn4-47384233', 'href': 'http://10.0.0.190:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30452892:ctest-vn4-47384233?flat'} 2026-08-17 02:56:47,898 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30452892:ctest-vn4-47384233 virtual network link through opserver 10.0.0.38 2026-08-17 02:56:47,898 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-17 02:56:48,272 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-17 02:56:48,324 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30452892:ctest-vn4-47384233', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30452892:ctest-vn4-47384233?flat'} 2026-08-17 02:56:48,324 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30452892:ctest-vn4-47384233 is found in opserver 2026-08-17 02:56:48,346 - DEBUG - Do not have enough data to verify VN in agent 2026-08-17 02:56:48,358 - DEBUG - VRF ids for VN ctest-vn4-47384233: {} 2026-08-17 02:56:48,358 - DEBUG - ====Verifying data for ctest-policy1-73916767 in API_Server ====== 2026-08-17 02:56:48,358 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-17 02:56:48,366 - DEBUG - Requesting: http://10.0.0.177:8082/domain/2b2edc1c-1b78-4df2-9472-fa661dfea482 2026-08-17 02:56:48,379 - DEBUG - Requesting: http://10.0.0.177:8082/project/e6ecd15c-2051-4950-adbf-9799d98078df 2026-08-17 02:56:48,487 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/03afc980-289c-4d26-8935-0e66347d55bb 2026-08-17 02:56:48,503 - INFO - Verified policy ctest-policy1-73916767 in API Server, Result: True 2026-08-17 02:56:48,503 - INFO - Done with setup and verification, moving onto test .. 2026-08-17 02:56:48,515 - INFO - Deleting VN ctest-vn4-47384233 2026-08-17 02:56:48,730 - DEBUG - Response for deleting network () 2026-08-17 02:56:48,730 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/b4d790a1-b52e-4708-b6db-e50fdf1f90d9 2026-08-17 02:56:48,745 - DEBUG - Response Code: 404 2026-08-17 02:56:48,745 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-08-17 02:56:48,754 - DEBUG - Requesting: http://10.0.0.177:8082/domain/2b2edc1c-1b78-4df2-9472-fa661dfea482 2026-08-17 02:56:48,767 - DEBUG - Requesting: http://10.0.0.177:8082/project/e6ecd15c-2051-4950-adbf-9799d98078df 2026-08-17 02:56:48,865 - INFO - Validated that VN ctest-vn4-47384233 is not found in API Server 2026-08-17 02:56:48,878 - DEBUG - VN ctest-vn4-47384233 is not present in Agent 10.0.0.50 2026-08-17 02:56:48,890 - DEBUG - VN ctest-vn4-47384233 is not present in Agent 10.0.0.186 2026-08-17 02:56:48,890 - INFO - Validated that VN ctest-vn4-47384233 is not in any agent 2026-08-17 02:56:48,924 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47384233 info 2026-08-17 02:56:48,977 - INFO - Deleted policy ctest-policy1-73916767 2026-08-17 02:56:49,177 - DEBUG - policy ctest-policy1-73916767 is not found in API Server 2026-08-17 02:56:50,455 - DEBUG - No XMPP flaps were noticed during the test