2026-09-22 02:54:34,526 - INFO - Domain Default found not creating 2026-09-22 02:54:34,693 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-17008194 not found, creating it 2026-09-22 02:54:35,204 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-17008194, ID : 46427911-7859-4500-a7fe-52d97acf28f1 2026-09-22 02:54:37,469 - INFO - ================================================================================ 2026-09-22 02:54:37,469 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-22 02:54:37,730 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-09-22 02:54:37,730 - INFO - Initial checks done. Running the testcase now 2026-09-22 02:54:37,730 - INFO - 2026-09-22 02:54:37,730 - INFO - ================================================================================ 2026-09-22 02:54:37,730 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-22 02:54:37,730 - 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-09-22 02:54:38,043 - DEBUG - Nothing to compare xmpp stats {'10.0.0.185': {'10.20.0.25': '0'}} with 2026-09-22 02:54:38,043 - INFO - Initial checks done. Running the testcase now 2026-09-22 02:54:38,043 - INFO - 2026-09-22 02:54:38,408 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17008194:ctest-vn4-69960759, 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-17008194:ctest-vn4-69960759, 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-17008194:ctest-vn4-69960759, 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-17008194:ctest-vn4-69960759, 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-09-22 02:54:38,981 - DEBUG - Response for create_network : {'network': {'id': '93e68d9b-d961-440c-ad6c-623268edcee3', 'name': 'ctest-vn4-69960759', 'tenant_id': '4642791178594500a7fe52d97acf28f1', 'project_id': '4642791178594500a7fe52d97acf28f1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17008194', 'ctest-vn4-69960759'], 'port_security_enabled': True, 'description': ''}} 2026-09-22 02:54:39,178 - DEBUG - Response for create_subnet : {'subnet': {'id': '60a80cf7-db56-4527-b8b2-83ff0165a309', 'name': '', 'tenant_id': '4642791178594500a7fe52d97acf28f1', 'network_id': '93e68d9b-d961-440c-ad6c-623268edcee3', 'ip_version': 4, 'cidr': '91.157.140.192/26', 'allocation_pools': [{'start': '91.157.140.194', 'end': '91.157.140.254'}], 'gateway_ip': '91.157.140.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.157.140.194', 'tags': [], 'project_id': '4642791178594500a7fe52d97acf28f1'}} 2026-09-22 02:54:39,357 - DEBUG - Response for create_subnet : {'subnet': {'id': '14f781f9-8592-48b6-a9bf-8994f1d81b11', 'name': '', 'tenant_id': '4642791178594500a7fe52d97acf28f1', 'network_id': '93e68d9b-d961-440c-ad6c-623268edcee3', 'ip_version': 6, 'cidr': '34fa:c309:1555:19fe:99aa:91d1::/96', 'allocation_pools': [{'start': '34fa:c309:1555:19fe:99aa:91d1:0:2', 'end': '34fa:c309:1555:19fe:99aa:91d1:ffff:fffe'}], 'gateway_ip': '34fa:c309:1555:19fe:99aa:91d1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34fa:c309:1555:19fe:99aa:91d1:0:2', 'tags': [], 'project_id': '4642791178594500a7fe52d97acf28f1'}} 2026-09-22 02:54:39,383 - INFO - Created VN ctest-vn4-69960759 2026-09-22 02:54:39,439 - DEBUG - VN ctest-vn4-69960759 UUID is 93e68d9b-d961-440c-ad6c-623268edcee3 2026-09-22 02:54:39,686 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '93e68d9b-d961-440c-ad6c-623268edcee3', 'name': 'ctest-vn4-69960759', 'tenant_id': '4642791178594500a7fe52d97acf28f1', 'project_id': '4642791178594500a7fe52d97acf28f1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['60a80cf7-db56-4527-b8b2-83ff0165a309', '14f781f9-8592-48b6-a9bf-8994f1d81b11'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17008194', 'ctest-vn4-69960759'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17008194', 'ctest-policy1-56785325']], 'subnet_ipam': [{'subnet_cidr': '91.157.140.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34fa:c309:1555:19fe:99aa:91d1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-22 02:54:39,851 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-22 02:54:40,183 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-22 02:54:40,213 - DEBUG - Requesting: http://10.0.0.185:8082/domain/e90a8865-7643-41ea-aecb-c05f45cbb8ca 2026-09-22 02:54:40,227 - DEBUG - Requesting: http://10.0.0.185:8082/project/46427911-7859-4500-a7fe-52d97acf28f1 2026-09-22 02:54:40,319 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/93e68d9b-d961-440c-ad6c-623268edcee3 2026-09-22 02:54:40,338 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/93e68d9b-d961-440c-ad6c-623268edcee3 2026-09-22 02:54:40,351 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/561d3930-2340-40cb-bebc-200815e8c0a5 2026-09-22 02:54:40,362 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/561d3930-2340-40cb-bebc-200815e8c0a5 2026-09-22 02:54:40,371 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/3913fa7d-f28d-4a66-9e11-f95cca00b0a5 2026-09-22 02:54:40,379 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-22 02:54:40,379 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/93e68d9b-d961-440c-ad6c-623268edcee3 2026-09-22 02:54:40,392 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/561d3930-2340-40cb-bebc-200815e8c0a5 2026-09-22 02:54:40,411 - INFO - Verified VN network id 12 for VN 93e68d9b-d961-440c-ad6c-623268edcee3 2026-09-22 02:54:40,411 - INFO - Verifications in API Server for VN ctest-vn4-69960759 passed 2026-09-22 02:54:40,412 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/93e68d9b-d961-440c-ad6c-623268edcee3 2026-09-22 02:54:40,426 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/561d3930-2340-40cb-bebc-200815e8c0a5 2026-09-22 02:54:40,433 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/561d3930-2340-40cb-bebc-200815e8c0a5 2026-09-22 02:54:40,442 - DEBUG - Requesting: http://10.0.0.185:8082/route-target/3913fa7d-f28d-4a66-9e11-f95cca00b0a5 2026-09-22 02:54:40,456 - DEBUG - Control-node 10.0.0.185 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17008194:ctest-vn4-69960759', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-17008194', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10657361268725335052', 'uuid-lslong': '12496471034694586083'}, 'enable': 'true', 'created': '2026-09-22T02:54:38', 'last-modified': '2026-09-22T02:54:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.810535'} 2026-09-22 02:54:40,465 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-22 02:54:40,465 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-69960759 passed 2026-09-22 02:54:40,465 - DEBUG - ====Verifying policy data for ctest-vn4-69960759 in API_Server ====== 2026-09-22 02:54:40,465 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-22 02:54:40,472 - DEBUG - Requesting: http://10.0.0.185:8082/domain/e90a8865-7643-41ea-aecb-c05f45cbb8ca 2026-09-22 02:54:40,483 - DEBUG - Requesting: http://10.0.0.185:8082/project/46427911-7859-4500-a7fe-52d97acf28f1 2026-09-22 02:54:40,570 - DEBUG - Requesting: http://10.0.0.185:8082/virtual-network/93e68d9b-d961-440c-ad6c-623268edcee3 2026-09-22 02:54:40,584 - DEBUG - ==>Verifying data for policy with id: c28b0058-9456-4aea-a9bd-82b58190aaac, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-17008194', 'ctest-policy1-56785325'] 2026-09-22 02:54:40,584 - INFO - VN ctest-vn4-69960759 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-22 02:54:40,584 - DEBUG - Verifying the vn in opserver 2026-09-22 02:54:40,584 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17008194:ctest-vn4-69960759 virtual network link through opserver 10.0.0.185 2026-09-22 02:54:40,584 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-09-22 02:54:40,919 - DEBUG - Requesting: http://10.0.0.185:8081/analytics/uves/virtual-networks 2026-09-22 02:54:40,975 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17008194:ctest-vn4-69960759', 'href': 'http://10.0.0.185:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17008194:ctest-vn4-69960759?flat'} 2026-09-22 02:54:40,975 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-17008194:ctest-vn4-69960759 is found in opserver 2026-09-22 02:54:40,988 - DEBUG - Do not have enough data to verify VN in agent 2026-09-22 02:54:40,994 - DEBUG - VRF ids for VN ctest-vn4-69960759: {} 2026-09-22 02:54:40,994 - DEBUG - ====Verifying data for ctest-policy1-56785325 in API_Server ====== 2026-09-22 02:54:40,995 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-22 02:54:41,004 - DEBUG - Requesting: http://10.0.0.185:8082/domain/e90a8865-7643-41ea-aecb-c05f45cbb8ca 2026-09-22 02:54:41,019 - DEBUG - Requesting: http://10.0.0.185:8082/project/46427911-7859-4500-a7fe-52d97acf28f1 2026-09-22 02:54:41,093 - DEBUG - Requesting: http://10.0.0.185:8082/network-policy/c28b0058-9456-4aea-a9bd-82b58190aaac 2026-09-22 02:54:41,107 - INFO - Verified policy ctest-policy1-56785325 in API Server, Result: True 2026-09-22 02:54:41,107 - INFO - Done with setup and verification, moving onto test .. 2026-09-22 02:54:41,118 - INFO - Deleting VN ctest-vn4-69960759 2026-09-22 02:54:41,297 - DEBUG - Response for deleting network () 2026-09-22 02:54:41,297 - DEBUG - Requesting: http://10.0.0.185:8082/routing-instance/561d3930-2340-40cb-bebc-200815e8c0a5 2026-09-22 02:54:41,303 - DEBUG - Response Code: 404 2026-09-22 02:54:41,303 - DEBUG - Requesting: http://10.0.0.185:8082/domains 2026-09-22 02:54:41,313 - DEBUG - Requesting: http://10.0.0.185:8082/domain/e90a8865-7643-41ea-aecb-c05f45cbb8ca 2026-09-22 02:54:41,369 - DEBUG - Requesting: http://10.0.0.185:8082/project/46427911-7859-4500-a7fe-52d97acf28f1 2026-09-22 02:54:41,461 - INFO - Validated that VN ctest-vn4-69960759 is not found in API Server 2026-09-22 02:54:41,473 - DEBUG - VN ctest-vn4-69960759 is not present in Agent 10.0.0.185 2026-09-22 02:54:41,473 - INFO - Validated that VN ctest-vn4-69960759 is not in any agent 2026-09-22 02:54:41,492 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-69960759 info 2026-09-22 02:54:41,530 - INFO - Deleted policy ctest-policy1-56785325 2026-09-22 02:54:41,715 - DEBUG - policy ctest-policy1-56785325 is not found in API Server 2026-09-22 02:54:41,984 - DEBUG - No XMPP flaps were noticed during the test 2026-09-22 02:54:41,984 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-09-22 02:54:41,984 - INFO - -------------------------------------------------------------------------------- 2026-09-22 02:54:42,280 - DEBUG - No XMPP flaps were noticed during the test 2026-09-22 02:54:42,280 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-22 02:54:42,280 - INFO - -------------------------------------------------------------------------------- 2026-09-22 02:54:43,054 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-17008194, ID : 46427911-7859-4500-a7fe-52d97acf28f1