2026-11-16 03:10:22,592 - INFO - Domain Default found not creating 2026-11-16 03:10:22,765 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-97851190 not found, creating it 2026-11-16 03:10:23,338 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-97851190, ID : e9acfbe8-ca7f-49f4-8681-5cd3d2b11d28 2026-11-16 03:10:25,147 - INFO - ================================================================================ 2026-11-16 03:10:25,148 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-16 03:10:26,457 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0', '10.20.0.17': '0'}, '10.0.0.50': {'10.20.0.254': '0', '10.20.0.17': '0'}} with 2026-11-16 03:10:26,458 - INFO - Initial checks done. Running the testcase now 2026-11-16 03:10:26,458 - INFO - 2026-11-16 03:10:26,458 - INFO - ================================================================================ 2026-11-16 03:10:26,458 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-16 03:10:26,458 - 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-11-16 03:10:27,760 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0', '10.20.0.17': '0'}, '10.0.0.50': {'10.20.0.254': '0', '10.20.0.17': '0'}} with 2026-11-16 03:10:27,761 - INFO - Initial checks done. Running the testcase now 2026-11-16 03:10:27,761 - INFO - 2026-11-16 03:10:28,200 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97851190:ctest-vn4-82853647, 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-97851190:ctest-vn4-82853647, 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-97851190:ctest-vn4-82853647, 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-97851190:ctest-vn4-82853647, 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-11-16 03:10:28,821 - DEBUG - Response for create_network : {'network': {'id': '0aec32c3-7604-430c-8585-66bdd45985ae', 'name': 'ctest-vn4-82853647', 'tenant_id': 'e9acfbe8ca7f49f486815cd3d2b11d28', 'project_id': 'e9acfbe8ca7f49f486815cd3d2b11d28', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97851190', 'ctest-vn4-82853647'], 'port_security_enabled': True, 'description': ''}} 2026-11-16 03:10:29,074 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b4ee8e0-dfed-47e4-9e5e-54b928cf41b9', 'name': '', 'tenant_id': 'e9acfbe8ca7f49f486815cd3d2b11d28', 'network_id': '0aec32c3-7604-430c-8585-66bdd45985ae', 'ip_version': 4, 'cidr': '94.102.176.192/26', 'allocation_pools': [{'start': '94.102.176.194', 'end': '94.102.176.254'}], 'gateway_ip': '94.102.176.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '94.102.176.194', 'tags': [], 'project_id': 'e9acfbe8ca7f49f486815cd3d2b11d28'}} 2026-11-16 03:10:29,337 - DEBUG - Response for create_subnet : {'subnet': {'id': '26741639-f7a7-40df-943e-0398ed67a7ce', 'name': '', 'tenant_id': 'e9acfbe8ca7f49f486815cd3d2b11d28', 'network_id': '0aec32c3-7604-430c-8585-66bdd45985ae', 'ip_version': 6, 'cidr': '31e2:5917:c969:b149:8026:d724::/96', 'allocation_pools': [{'start': '31e2:5917:c969:b149:8026:d724:0:2', 'end': '31e2:5917:c969:b149:8026:d724:ffff:fffe'}], 'gateway_ip': '31e2:5917:c969:b149:8026:d724:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31e2:5917:c969:b149:8026:d724:0:2', 'tags': [], 'project_id': 'e9acfbe8ca7f49f486815cd3d2b11d28'}} 2026-11-16 03:10:29,362 - INFO - Created VN ctest-vn4-82853647 2026-11-16 03:10:29,381 - DEBUG - VN ctest-vn4-82853647 UUID is 0aec32c3-7604-430c-8585-66bdd45985ae 2026-11-16 03:10:29,639 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0aec32c3-7604-430c-8585-66bdd45985ae', 'name': 'ctest-vn4-82853647', 'tenant_id': 'e9acfbe8ca7f49f486815cd3d2b11d28', 'project_id': 'e9acfbe8ca7f49f486815cd3d2b11d28', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['0b4ee8e0-dfed-47e4-9e5e-54b928cf41b9', '26741639-f7a7-40df-943e-0398ed67a7ce'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97851190', 'ctest-vn4-82853647'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97851190', 'ctest-policy1-80439982']], 'subnet_ipam': [{'subnet_cidr': '94.102.176.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31e2:5917:c969:b149:8026:d724::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-16 03:10:29,742 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-11-16 03:10:30,106 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-11-16 03:10:30,135 - DEBUG - Requesting: http://10.0.0.190:8082/domain/062163ac-9858-4c8e-9e58-7ae832d889e9 2026-11-16 03:10:30,154 - DEBUG - Requesting: http://10.0.0.190:8082/project/e9acfbe8-ca7f-49f4-8681-5cd3d2b11d28 2026-11-16 03:10:30,250 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/0aec32c3-7604-430c-8585-66bdd45985ae 2026-11-16 03:10:30,268 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/0aec32c3-7604-430c-8585-66bdd45985ae 2026-11-16 03:10:30,279 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/b19b9296-ad11-4289-b86a-912cb1422f85 2026-11-16 03:10:30,288 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/b19b9296-ad11-4289-b86a-912cb1422f85 2026-11-16 03:10:30,296 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/4e47290f-9693-4907-aa39-ab341418b383 2026-11-16 03:10:30,303 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-16 03:10:30,303 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/0aec32c3-7604-430c-8585-66bdd45985ae 2026-11-16 03:10:30,312 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/b19b9296-ad11-4289-b86a-912cb1422f85 2026-11-16 03:10:30,329 - INFO - Verified VN network id 15 for VN 0aec32c3-7604-430c-8585-66bdd45985ae 2026-11-16 03:10:30,329 - INFO - Verifications in API Server for VN ctest-vn4-82853647 passed 2026-11-16 03:10:30,329 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/0aec32c3-7604-430c-8585-66bdd45985ae 2026-11-16 03:10:30,340 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/b19b9296-ad11-4289-b86a-912cb1422f85 2026-11-16 03:10:30,348 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/b19b9296-ad11-4289-b86a-912cb1422f85 2026-11-16 03:10:30,355 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/4e47290f-9693-4907-aa39-ab341418b383 2026-11-16 03:10:30,368 - DEBUG - Control-node 10.0.0.190 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97851190:ctest-vn4-82853647', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-97851190', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '787059849962996492', 'uuid-lslong': '9621209144444421550'}, 'enable': 'true', 'created': '2026-11-16T03:10:28', 'last-modified': '2026-11-16T03:10:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.783961'} 2026-11-16 03:10:30,375 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-16 03:10:30,381 - DEBUG - Control-node 10.0.0.191 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97851190:ctest-vn4-82853647', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-97851190', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '787059849962996492', 'uuid-lslong': '9621209144444421550'}, 'enable': 'true', 'created': '2026-11-16T03:10:28', 'last-modified': '2026-11-16T03:10:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.800309'} 2026-11-16 03:10:30,387 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-16 03:10:30,393 - DEBUG - Control-node 10.0.0.176 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97851190:ctest-vn4-82853647', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-97851190', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '787059849962996492', 'uuid-lslong': '9621209144444421550'}, 'enable': 'true', 'created': '2026-11-16T03:10:28', 'last-modified': '2026-11-16T03:10:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.797623'} 2026-11-16 03:10:30,399 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-16 03:10:30,399 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-82853647 passed 2026-11-16 03:10:30,400 - DEBUG - ====Verifying policy data for ctest-vn4-82853647 in API_Server ====== 2026-11-16 03:10:30,400 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-11-16 03:10:30,415 - DEBUG - Requesting: http://10.0.0.190:8082/domain/062163ac-9858-4c8e-9e58-7ae832d889e9 2026-11-16 03:10:30,433 - DEBUG - Requesting: http://10.0.0.190:8082/project/e9acfbe8-ca7f-49f4-8681-5cd3d2b11d28 2026-11-16 03:10:30,539 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/0aec32c3-7604-430c-8585-66bdd45985ae 2026-11-16 03:10:30,552 - DEBUG - ==>Verifying data for policy with id: dafe9f42-a839-408e-bd13-13d5982cddbf, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97851190', 'ctest-policy1-80439982'] 2026-11-16 03:10:30,552 - INFO - VN ctest-vn4-82853647 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-16 03:10:30,552 - DEBUG - Verifying the vn in opserver 2026-11-16 03:10:30,552 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97851190:ctest-vn4-82853647 virtual network link through opserver 10.0.0.190 2026-11-16 03:10:30,552 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-11-16 03:10:30,918 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-11-16 03:10:30,973 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97851190:ctest-vn4-82853647', 'href': 'http://10.0.0.190:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97851190:ctest-vn4-82853647?flat'} 2026-11-16 03:10:30,973 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97851190:ctest-vn4-82853647 virtual network link through opserver 10.0.0.191 2026-11-16 03:10:30,973 - DEBUG - Requesting: http://10.0.0.191:8081/analytics/uves/virtual-networks 2026-11-16 03:10:31,341 - DEBUG - Requesting: http://10.0.0.191:8081/analytics/uves/virtual-networks 2026-11-16 03:10:31,399 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97851190:ctest-vn4-82853647', 'href': 'http://10.0.0.191:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97851190:ctest-vn4-82853647?flat'} 2026-11-16 03:10:31,399 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97851190:ctest-vn4-82853647 virtual network link through opserver 10.0.0.176 2026-11-16 03:10:31,399 - DEBUG - Requesting: http://10.0.0.176:8081/analytics/uves/virtual-networks 2026-11-16 03:10:31,774 - DEBUG - Requesting: http://10.0.0.176:8081/analytics/uves/virtual-networks 2026-11-16 03:10:31,827 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97851190:ctest-vn4-82853647', 'href': 'http://10.0.0.176:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97851190:ctest-vn4-82853647?flat'} 2026-11-16 03:10:31,827 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97851190:ctest-vn4-82853647 is found in opserver 2026-11-16 03:10:31,853 - DEBUG - Do not have enough data to verify VN in agent 2026-11-16 03:10:31,864 - DEBUG - VRF ids for VN ctest-vn4-82853647: {} 2026-11-16 03:10:31,864 - DEBUG - ====Verifying data for ctest-policy1-80439982 in API_Server ====== 2026-11-16 03:10:31,864 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-11-16 03:10:31,871 - DEBUG - Requesting: http://10.0.0.190:8082/domain/062163ac-9858-4c8e-9e58-7ae832d889e9 2026-11-16 03:10:31,883 - DEBUG - Requesting: http://10.0.0.190:8082/project/e9acfbe8-ca7f-49f4-8681-5cd3d2b11d28 2026-11-16 03:10:31,975 - DEBUG - Requesting: http://10.0.0.190:8082/network-policy/dafe9f42-a839-408e-bd13-13d5982cddbf 2026-11-16 03:10:31,993 - INFO - Verified policy ctest-policy1-80439982 in API Server, Result: True 2026-11-16 03:10:31,993 - INFO - Done with setup and verification, moving onto test .. 2026-11-16 03:10:32,007 - INFO - Deleting VN ctest-vn4-82853647 2026-11-16 03:10:32,221 - DEBUG - Response for deleting network () 2026-11-16 03:10:32,222 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/b19b9296-ad11-4289-b86a-912cb1422f85 2026-11-16 03:10:32,228 - DEBUG - Response Code: 404 2026-11-16 03:10:32,228 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-11-16 03:10:32,235 - DEBUG - Requesting: http://10.0.0.190:8082/domain/062163ac-9858-4c8e-9e58-7ae832d889e9 2026-11-16 03:10:32,246 - DEBUG - Requesting: http://10.0.0.190:8082/project/e9acfbe8-ca7f-49f4-8681-5cd3d2b11d28 2026-11-16 03:10:32,360 - INFO - Validated that VN ctest-vn4-82853647 is not found in API Server 2026-11-16 03:10:32,378 - DEBUG - VN ctest-vn4-82853647 is not present in Agent 10.0.0.38 2026-11-16 03:10:32,395 - DEBUG - VN ctest-vn4-82853647 is not present in Agent 10.0.0.50 2026-11-16 03:10:32,395 - INFO - Validated that VN ctest-vn4-82853647 is not in any agent 2026-11-16 03:10:32,427 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-82853647 info 2026-11-16 03:10:32,480 - INFO - Deleted policy ctest-policy1-80439982 2026-11-16 03:10:32,683 - DEBUG - policy ctest-policy1-80439982 is not found in API Server 2026-11-16 03:10:33,976 - DEBUG - No XMPP flaps were noticed during the test 2026-11-16 03:10:33,976 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-11-16 03:10:33,976 - INFO - -------------------------------------------------------------------------------- 2026-11-16 03:10:35,307 - DEBUG - No XMPP flaps were noticed during the test 2026-11-16 03:10:35,307 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-11-16 03:10:35,308 - INFO - -------------------------------------------------------------------------------- 2026-11-16 03:10:36,146 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-97851190, ID : e9acfbe8-ca7f-49f4-8681-5cd3d2b11d28