2026-05-28 00:08:32,814 - INFO - Domain Default found not creating 2026-05-28 00:08:33,023 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11101910 not found, creating it 2026-05-28 00:08:33,670 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11101910, ID : 49d774e2-f9dd-4f3c-9f77-e35c67afdd7d 2026-05-28 00:08:35,723 - INFO - ================================================================================ 2026-05-28 00:08:35,723 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-28 00:08:37,048 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0', '10.20.0.14': '0'}, '10.0.0.129': {'10.20.0.254': '0', '10.20.0.14': '0'}} with 2026-05-28 00:08:37,049 - INFO - Initial checks done. Running the testcase now 2026-05-28 00:08:37,049 - INFO - 2026-05-28 00:08:37,049 - INFO - ================================================================================ 2026-05-28 00:08:37,049 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-28 00:08:37,049 - 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-05-28 00:08:38,384 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0', '10.20.0.14': '0'}, '10.0.0.129': {'10.20.0.254': '0', '10.20.0.14': '0'}} with 2026-05-28 00:08:38,384 - INFO - Initial checks done. Running the testcase now 2026-05-28 00:08:38,384 - INFO - 2026-05-28 00:08:38,762 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11101910:ctest-vn4-61486791, 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-11101910:ctest-vn4-61486791, 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-11101910:ctest-vn4-61486791, 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-11101910:ctest-vn4-61486791, 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-05-28 00:08:39,417 - DEBUG - Response for create_network : {'network': {'id': '145cb95e-d247-4473-98fb-a5402b8fe3ac', 'name': 'ctest-vn4-61486791', 'tenant_id': '49d774e2f9dd4f3c9f77e35c67afdd7d', 'project_id': '49d774e2f9dd4f3c9f77e35c67afdd7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11101910', 'ctest-vn4-61486791'], 'port_security_enabled': True, 'description': ''}} 2026-05-28 00:08:39,723 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c48567f2-8c90-4f23-a6aa-54c775ddf284', 'name': '', 'tenant_id': '49d774e2f9dd4f3c9f77e35c67afdd7d', 'network_id': '145cb95e-d247-4473-98fb-a5402b8fe3ac', 'ip_version': 4, 'cidr': '77.191.86.128/26', 'allocation_pools': [{'start': '77.191.86.130', 'end': '77.191.86.190'}], 'gateway_ip': '77.191.86.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.191.86.130', 'tags': [], 'project_id': '49d774e2f9dd4f3c9f77e35c67afdd7d'}} 2026-05-28 00:08:39,982 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e42c044-ca0d-4ed2-93b0-1eff2a2f591c', 'name': '', 'tenant_id': '49d774e2f9dd4f3c9f77e35c67afdd7d', 'network_id': '145cb95e-d247-4473-98fb-a5402b8fe3ac', 'ip_version': 6, 'cidr': '2b98:7ad8:6fa9:c614:2435:9ac8::/96', 'allocation_pools': [{'start': '2b98:7ad8:6fa9:c614:2435:9ac8:0:2', 'end': '2b98:7ad8:6fa9:c614:2435:9ac8:ffff:fffe'}], 'gateway_ip': '2b98:7ad8:6fa9:c614:2435:9ac8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b98:7ad8:6fa9:c614:2435:9ac8:0:2', 'tags': [], 'project_id': '49d774e2f9dd4f3c9f77e35c67afdd7d'}} 2026-05-28 00:08:40,014 - INFO - Created VN ctest-vn4-61486791 2026-05-28 00:08:40,030 - DEBUG - VN ctest-vn4-61486791 UUID is 145cb95e-d247-4473-98fb-a5402b8fe3ac 2026-05-28 00:08:40,300 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '145cb95e-d247-4473-98fb-a5402b8fe3ac', 'name': 'ctest-vn4-61486791', 'tenant_id': '49d774e2f9dd4f3c9f77e35c67afdd7d', 'project_id': '49d774e2f9dd4f3c9f77e35c67afdd7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c48567f2-8c90-4f23-a6aa-54c775ddf284', '4e42c044-ca0d-4ed2-93b0-1eff2a2f591c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11101910', 'ctest-vn4-61486791'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11101910', 'ctest-policy1-00683107']], 'subnet_ipam': [{'subnet_cidr': '77.191.86.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b98:7ad8:6fa9:c614:2435:9ac8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-28 00:08:40,423 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-28 00:08:40,768 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-28 00:08:40,815 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d674b25c-031a-4c26-a162-50b7aef4cefd 2026-05-28 00:08:40,834 - DEBUG - Requesting: http://10.0.0.33:8082/project/49d774e2-f9dd-4f3c-9f77-e35c67afdd7d 2026-05-28 00:08:40,949 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/145cb95e-d247-4473-98fb-a5402b8fe3ac 2026-05-28 00:08:40,965 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/145cb95e-d247-4473-98fb-a5402b8fe3ac 2026-05-28 00:08:40,980 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e6125b5-993b-4368-a017-41d432e8deac 2026-05-28 00:08:40,990 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e6125b5-993b-4368-a017-41d432e8deac 2026-05-28 00:08:40,999 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/78ec5337-71e0-464d-ae21-fabd9182a516 2026-05-28 00:08:41,009 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 00:08:41,009 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/145cb95e-d247-4473-98fb-a5402b8fe3ac 2026-05-28 00:08:41,022 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e6125b5-993b-4368-a017-41d432e8deac 2026-05-28 00:08:41,043 - INFO - Verified VN network id 12 for VN 145cb95e-d247-4473-98fb-a5402b8fe3ac 2026-05-28 00:08:41,043 - INFO - Verifications in API Server for VN ctest-vn4-61486791 passed 2026-05-28 00:08:41,043 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/145cb95e-d247-4473-98fb-a5402b8fe3ac 2026-05-28 00:08:41,054 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e6125b5-993b-4368-a017-41d432e8deac 2026-05-28 00:08:41,064 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e6125b5-993b-4368-a017-41d432e8deac 2026-05-28 00:08:41,089 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/78ec5337-71e0-464d-ae21-fabd9182a516 2026-05-28 00:08:41,105 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11101910:ctest-vn4-61486791', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11101910', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1467251395521889395', 'uuid-lslong': '11023586207946761132'}, 'enable': 'true', 'created': '2026-05-28T00:08:39', 'last-modified': '2026-05-28T00:08:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.858339'} 2026-05-28 00:08:41,116 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 00:08:41,122 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11101910:ctest-vn4-61486791', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11101910', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1467251395521889395', 'uuid-lslong': '11023586207946761132'}, 'enable': 'true', 'created': '2026-05-28T00:08:39', 'last-modified': '2026-05-28T00:08:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.866768'} 2026-05-28 00:08:41,128 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 00:08:41,136 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11101910:ctest-vn4-61486791', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11101910', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1467251395521889395', 'uuid-lslong': '11023586207946761132'}, 'enable': 'true', 'created': '2026-05-28T00:08:39', 'last-modified': '2026-05-28T00:08:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.886532'} 2026-05-28 00:08:41,144 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 00:08:41,144 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-61486791 passed 2026-05-28 00:08:41,145 - DEBUG - ====Verifying policy data for ctest-vn4-61486791 in API_Server ====== 2026-05-28 00:08:41,145 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-28 00:08:41,152 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d674b25c-031a-4c26-a162-50b7aef4cefd 2026-05-28 00:08:41,168 - DEBUG - Requesting: http://10.0.0.33:8082/project/49d774e2-f9dd-4f3c-9f77-e35c67afdd7d 2026-05-28 00:08:41,288 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/145cb95e-d247-4473-98fb-a5402b8fe3ac 2026-05-28 00:08:41,309 - DEBUG - ==>Verifying data for policy with id: 994b2550-4384-4f6e-96f5-250920c56829, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11101910', 'ctest-policy1-00683107'] 2026-05-28 00:08:41,309 - INFO - VN ctest-vn4-61486791 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-28 00:08:41,310 - DEBUG - Verifying the vn in opserver 2026-05-28 00:08:41,310 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11101910:ctest-vn4-61486791 virtual network link through opserver 10.0.0.33 2026-05-28 00:08:41,310 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-28 00:08:41,680 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-05-28 00:08:42,115 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11101910:ctest-vn4-61486791', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11101910:ctest-vn4-61486791?flat'} 2026-05-28 00:08:42,115 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11101910:ctest-vn4-61486791 virtual network link through opserver 10.0.0.249 2026-05-28 00:08:42,115 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-05-28 00:08:42,501 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-05-28 00:08:42,919 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11101910:ctest-vn4-61486791', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11101910:ctest-vn4-61486791?flat'} 2026-05-28 00:08:42,919 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11101910:ctest-vn4-61486791 virtual network link through opserver 10.0.0.22 2026-05-28 00:08:42,919 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-28 00:08:43,270 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-05-28 00:08:43,352 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11101910:ctest-vn4-61486791', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11101910:ctest-vn4-61486791?flat'} 2026-05-28 00:08:43,352 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11101910:ctest-vn4-61486791 is found in opserver 2026-05-28 00:08:43,377 - DEBUG - Do not have enough data to verify VN in agent 2026-05-28 00:08:43,390 - DEBUG - VRF ids for VN ctest-vn4-61486791: {} 2026-05-28 00:08:43,390 - DEBUG - ====Verifying data for ctest-policy1-00683107 in API_Server ====== 2026-05-28 00:08:43,390 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-28 00:08:43,397 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d674b25c-031a-4c26-a162-50b7aef4cefd 2026-05-28 00:08:43,411 - DEBUG - Requesting: http://10.0.0.33:8082/project/49d774e2-f9dd-4f3c-9f77-e35c67afdd7d 2026-05-28 00:08:43,536 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/994b2550-4384-4f6e-96f5-250920c56829 2026-05-28 00:08:43,546 - INFO - Verified policy ctest-policy1-00683107 in API Server, Result: True 2026-05-28 00:08:43,546 - INFO - Done with setup and verification, moving onto test .. 2026-05-28 00:08:43,558 - INFO - Deleting VN ctest-vn4-61486791 2026-05-28 00:08:43,848 - DEBUG - Response for deleting network () 2026-05-28 00:08:43,849 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/0e6125b5-993b-4368-a017-41d432e8deac 2026-05-28 00:08:43,857 - DEBUG - Response Code: 404 2026-05-28 00:08:43,857 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-05-28 00:08:43,866 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d674b25c-031a-4c26-a162-50b7aef4cefd 2026-05-28 00:08:43,921 - DEBUG - Requesting: http://10.0.0.33:8082/project/49d774e2-f9dd-4f3c-9f77-e35c67afdd7d 2026-05-28 00:08:44,017 - INFO - Validated that VN ctest-vn4-61486791 is not found in API Server 2026-05-28 00:08:44,034 - DEBUG - VN ctest-vn4-61486791 is not present in Agent 10.0.0.19 2026-05-28 00:08:44,046 - DEBUG - VN ctest-vn4-61486791 is not present in Agent 10.0.0.129 2026-05-28 00:08:44,046 - INFO - Validated that VN ctest-vn4-61486791 is not in any agent 2026-05-28 00:08:44,089 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-61486791 info 2026-05-28 00:08:44,151 - INFO - Deleted policy ctest-policy1-00683107 2026-05-28 00:08:44,346 - DEBUG - policy ctest-policy1-00683107 is not found in API Server 2026-05-28 00:08:45,659 - DEBUG - No XMPP flaps were noticed during the test 2026-05-28 00:08:45,659 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2026-05-28 00:08:45,659 - INFO - -------------------------------------------------------------------------------- 2026-05-28 00:08:46,990 - DEBUG - No XMPP flaps were noticed during the test 2026-05-28 00:08:46,990 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:11] 2026-05-28 00:08:46,990 - INFO - -------------------------------------------------------------------------------- 2026-05-28 00:08:47,840 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-11101910, ID : 49d774e2-f9dd-4f3c-9f77-e35c67afdd7d