2026-04-23 10:06:40,698 - INFO - Domain Default found not creating 2026-04-23 10:06:40,891 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-63869854 not found, creating it 2026-04-23 10:06:41,387 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-63869854, ID : 0188086a-8a69-4193-8cb5-c260da371dde 2026-04-23 10:06:43,037 - INFO - ================================================================================ 2026-04-23 10:06:43,037 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-23 10:06:43,291 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-04-23 10:06:43,291 - INFO - Initial checks done. Running the testcase now 2026-04-23 10:06:43,291 - INFO - 2026-04-23 10:06:43,291 - INFO - ================================================================================ 2026-04-23 10:06:43,291 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-23 10:06:43,291 - 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-04-23 10:06:43,593 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-04-23 10:06:43,593 - INFO - Initial checks done. Running the testcase now 2026-04-23 10:06:43,593 - INFO - 2026-04-23 10:06:44,008 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63869854:ctest-vn4-99147186, 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-63869854:ctest-vn4-99147186, 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-63869854:ctest-vn4-99147186, 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-63869854:ctest-vn4-99147186, 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-04-23 10:06:44,537 - DEBUG - Response for create_network : {'network': {'id': '947393b6-a3f5-4914-9102-9b275f1ca602', 'name': 'ctest-vn4-99147186', 'tenant_id': '0188086a8a6941938cb5c260da371dde', 'project_id': '0188086a8a6941938cb5c260da371dde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63869854', 'ctest-vn4-99147186'], 'port_security_enabled': True, 'description': ''}} 2026-04-23 10:06:44,703 - DEBUG - Response for create_subnet : {'subnet': {'id': '00f60e12-1d4d-4b6b-9cc8-1eaa4aa5a0f1', 'name': '', 'tenant_id': '0188086a8a6941938cb5c260da371dde', 'network_id': '947393b6-a3f5-4914-9102-9b275f1ca602', 'ip_version': 4, 'cidr': '96.216.132.0/26', 'allocation_pools': [{'start': '96.216.132.2', 'end': '96.216.132.62'}], 'gateway_ip': '96.216.132.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.216.132.2', 'tags': [], 'project_id': '0188086a8a6941938cb5c260da371dde'}} 2026-04-23 10:06:44,872 - DEBUG - Response for create_subnet : {'subnet': {'id': '4746af40-2e38-4d02-898a-66cb2f3708bc', 'name': '', 'tenant_id': '0188086a8a6941938cb5c260da371dde', 'network_id': '947393b6-a3f5-4914-9102-9b275f1ca602', 'ip_version': 6, 'cidr': '360c:a4ca:3245:2471:515f:e3a1::/96', 'allocation_pools': [{'start': '360c:a4ca:3245:2471:515f:e3a1:0:2', 'end': '360c:a4ca:3245:2471:515f:e3a1:ffff:fffe'}], 'gateway_ip': '360c:a4ca:3245:2471:515f:e3a1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '360c:a4ca:3245:2471:515f:e3a1:0:2', 'tags': [], 'project_id': '0188086a8a6941938cb5c260da371dde'}} 2026-04-23 10:06:44,892 - INFO - Created VN ctest-vn4-99147186 2026-04-23 10:06:44,945 - DEBUG - VN ctest-vn4-99147186 UUID is 947393b6-a3f5-4914-9102-9b275f1ca602 2026-04-23 10:06:45,159 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '947393b6-a3f5-4914-9102-9b275f1ca602', 'name': 'ctest-vn4-99147186', 'tenant_id': '0188086a8a6941938cb5c260da371dde', 'project_id': '0188086a8a6941938cb5c260da371dde', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['00f60e12-1d4d-4b6b-9cc8-1eaa4aa5a0f1', '4746af40-2e38-4d02-898a-66cb2f3708bc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63869854', 'ctest-vn4-99147186'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63869854', 'ctest-policy1-72183012']], 'subnet_ipam': [{'subnet_cidr': '96.216.132.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '360c:a4ca:3245:2471:515f:e3a1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-23 10:06:45,317 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-23 10:06:45,655 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-23 10:06:45,687 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ab236e5f-d3ba-4764-a304-9509264402e0 2026-04-23 10:06:45,699 - DEBUG - Requesting: http://10.0.0.38:8082/project/0188086a-8a69-4193-8cb5-c260da371dde 2026-04-23 10:06:45,775 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/947393b6-a3f5-4914-9102-9b275f1ca602 2026-04-23 10:06:45,790 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/947393b6-a3f5-4914-9102-9b275f1ca602 2026-04-23 10:06:45,803 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1d73501b-8728-4732-8ce7-1d28225cea89 2026-04-23 10:06:45,811 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1d73501b-8728-4732-8ce7-1d28225cea89 2026-04-23 10:06:45,818 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6110fc7e-b238-482d-9811-3ef1272f570e 2026-04-23 10:06:45,826 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-23 10:06:45,826 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/947393b6-a3f5-4914-9102-9b275f1ca602 2026-04-23 10:06:45,836 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1d73501b-8728-4732-8ce7-1d28225cea89 2026-04-23 10:06:45,850 - INFO - Verified VN network id 11 for VN 947393b6-a3f5-4914-9102-9b275f1ca602 2026-04-23 10:06:45,850 - INFO - Verifications in API Server for VN ctest-vn4-99147186 passed 2026-04-23 10:06:45,850 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/947393b6-a3f5-4914-9102-9b275f1ca602 2026-04-23 10:06:45,861 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1d73501b-8728-4732-8ce7-1d28225cea89 2026-04-23 10:06:45,869 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1d73501b-8728-4732-8ce7-1d28225cea89 2026-04-23 10:06:45,876 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6110fc7e-b238-482d-9811-3ef1272f570e 2026-04-23 10:06:45,887 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63869854:ctest-vn4-99147186', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-63869854', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10697055952579152148', 'uuid-lslong': '10449084678854714882'}, 'enable': 'true', 'created': '2026-04-23T10:06:44', 'last-modified': '2026-04-23T10:06:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.760164'} 2026-04-23 10:06:45,894 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-23 10:06:45,894 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-99147186 passed 2026-04-23 10:06:45,894 - DEBUG - ====Verifying policy data for ctest-vn4-99147186 in API_Server ====== 2026-04-23 10:06:45,894 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-23 10:06:45,900 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ab236e5f-d3ba-4764-a304-9509264402e0 2026-04-23 10:06:45,910 - DEBUG - Requesting: http://10.0.0.38:8082/project/0188086a-8a69-4193-8cb5-c260da371dde 2026-04-23 10:06:45,977 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/947393b6-a3f5-4914-9102-9b275f1ca602 2026-04-23 10:06:45,986 - DEBUG - ==>Verifying data for policy with id: 1544f662-b7f6-42ed-a3f3-5e89285fa1ae, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-63869854', 'ctest-policy1-72183012'] 2026-04-23 10:06:45,987 - INFO - VN ctest-vn4-99147186 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-23 10:06:45,987 - DEBUG - Verifying the vn in opserver 2026-04-23 10:06:45,987 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63869854:ctest-vn4-99147186 virtual network link through opserver 10.0.0.38 2026-04-23 10:06:45,987 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-23 10:06:46,328 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-23 10:06:46,400 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63869854:ctest-vn4-99147186', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63869854:ctest-vn4-99147186?flat'} 2026-04-23 10:06:46,400 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-63869854:ctest-vn4-99147186 is found in opserver 2026-04-23 10:06:46,409 - DEBUG - Do not have enough data to verify VN in agent 2026-04-23 10:06:46,414 - DEBUG - VRF ids for VN ctest-vn4-99147186: {} 2026-04-23 10:06:46,415 - DEBUG - ====Verifying data for ctest-policy1-72183012 in API_Server ====== 2026-04-23 10:06:46,415 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-23 10:06:46,420 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ab236e5f-d3ba-4764-a304-9509264402e0 2026-04-23 10:06:46,431 - DEBUG - Requesting: http://10.0.0.38:8082/project/0188086a-8a69-4193-8cb5-c260da371dde 2026-04-23 10:06:46,505 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/1544f662-b7f6-42ed-a3f3-5e89285fa1ae 2026-04-23 10:06:46,515 - INFO - Verified policy ctest-policy1-72183012 in API Server, Result: True 2026-04-23 10:06:46,516 - INFO - Done with setup and verification, moving onto test .. 2026-04-23 10:06:46,523 - INFO - Deleting VN ctest-vn4-99147186 2026-04-23 10:06:46,641 - DEBUG - Response for deleting network () 2026-04-23 10:06:46,641 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/1d73501b-8728-4732-8ce7-1d28225cea89 2026-04-23 10:06:46,646 - DEBUG - Response Code: 404 2026-04-23 10:06:46,647 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-23 10:06:46,652 - DEBUG - Requesting: http://10.0.0.38:8082/domain/ab236e5f-d3ba-4764-a304-9509264402e0 2026-04-23 10:06:46,708 - DEBUG - Requesting: http://10.0.0.38:8082/project/0188086a-8a69-4193-8cb5-c260da371dde 2026-04-23 10:06:46,787 - INFO - Validated that VN ctest-vn4-99147186 is not found in API Server 2026-04-23 10:06:46,797 - DEBUG - VN ctest-vn4-99147186 is not present in Agent 10.0.0.38 2026-04-23 10:06:46,797 - INFO - Validated that VN ctest-vn4-99147186 is not in any agent 2026-04-23 10:06:46,811 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-99147186 info 2026-04-23 10:06:46,839 - INFO - Deleted policy ctest-policy1-72183012 2026-04-23 10:06:47,009 - DEBUG - policy ctest-policy1-72183012 is not found in API Server 2026-04-23 10:06:47,267 - DEBUG - No XMPP flaps were noticed during the test