2026-02-17 13:44:22,047 - INFO - Domain Default found not creating 2026-02-17 13:44:22,205 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-85207150 not found, creating it 2026-02-17 13:44:22,673 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-85207150, ID : 8eca7929-a6db-4ddf-9b33-c4d2c10255bf 2026-02-17 13:44:24,143 - INFO - ================================================================================ 2026-02-17 13:44:24,143 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-17 13:44:24,399 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2026-02-17 13:44:24,399 - INFO - Initial checks done. Running the testcase now 2026-02-17 13:44:24,399 - INFO - 2026-02-17 13:44:24,399 - INFO - ================================================================================ 2026-02-17 13:44:24,399 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-17 13:44:24,399 - 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-02-17 13:44:24,691 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with 2026-02-17 13:44:24,691 - INFO - Initial checks done. Running the testcase now 2026-02-17 13:44:24,691 - INFO - 2026-02-17 13:44:25,098 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85207150:ctest-vn4-97479893, 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-85207150:ctest-vn4-97479893, 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-85207150:ctest-vn4-97479893, 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-85207150:ctest-vn4-97479893, 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-02-17 13:44:25,606 - DEBUG - Response for create_network : {'network': {'id': 'a341a03e-d4c8-40fb-9cf6-a08cde7ca02e', 'name': 'ctest-vn4-97479893', 'tenant_id': '8eca7929a6db4ddf9b33c4d2c10255bf', 'project_id': '8eca7929a6db4ddf9b33c4d2c10255bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85207150', 'ctest-vn4-97479893'], 'port_security_enabled': True, 'description': ''}} 2026-02-17 13:44:25,814 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e353961a-6b51-46c4-938a-287e32be8f95', 'name': '', 'tenant_id': '8eca7929a6db4ddf9b33c4d2c10255bf', 'network_id': 'a341a03e-d4c8-40fb-9cf6-a08cde7ca02e', 'ip_version': 4, 'cidr': '73.167.71.128/26', 'allocation_pools': [{'start': '73.167.71.130', 'end': '73.167.71.190'}], 'gateway_ip': '73.167.71.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.167.71.130', 'tags': [], 'project_id': '8eca7929a6db4ddf9b33c4d2c10255bf'}} 2026-02-17 13:44:25,945 - DEBUG - Response for create_subnet : {'subnet': {'id': '0843f296-769b-4445-aa94-9cf847ad6e56', 'name': '', 'tenant_id': '8eca7929a6db4ddf9b33c4d2c10255bf', 'network_id': 'a341a03e-d4c8-40fb-9cf6-a08cde7ca02e', 'ip_version': 6, 'cidr': '2201:84d4:1011:45ba:6d5b:4e5::/96', 'allocation_pools': [{'start': '2201:84d4:1011:45ba:6d5b:4e5:0:2', 'end': '2201:84d4:1011:45ba:6d5b:4e5:ffff:fffe'}], 'gateway_ip': '2201:84d4:1011:45ba:6d5b:4e5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2201:84d4:1011:45ba:6d5b:4e5:0:2', 'tags': [], 'project_id': '8eca7929a6db4ddf9b33c4d2c10255bf'}} 2026-02-17 13:44:25,963 - INFO - Created VN ctest-vn4-97479893 2026-02-17 13:44:26,014 - DEBUG - VN ctest-vn4-97479893 UUID is a341a03e-d4c8-40fb-9cf6-a08cde7ca02e 2026-02-17 13:44:26,207 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a341a03e-d4c8-40fb-9cf6-a08cde7ca02e', 'name': 'ctest-vn4-97479893', 'tenant_id': '8eca7929a6db4ddf9b33c4d2c10255bf', 'project_id': '8eca7929a6db4ddf9b33c4d2c10255bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e353961a-6b51-46c4-938a-287e32be8f95', '0843f296-769b-4445-aa94-9cf847ad6e56'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85207150', 'ctest-vn4-97479893'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85207150', 'ctest-policy1-74328270']], 'subnet_ipam': [{'subnet_cidr': '73.167.71.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2201:84d4:1011:45ba:6d5b:4e5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-17 13:44:26,362 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-17 13:44:26,655 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-17 13:44:26,686 - DEBUG - Requesting: http://10.0.0.19:8082/domain/0a990a00-a3d7-47a7-a1f1-017e3dfbdadb 2026-02-17 13:44:26,696 - DEBUG - Requesting: http://10.0.0.19:8082/project/8eca7929-a6db-4ddf-9b33-c4d2c10255bf 2026-02-17 13:44:26,765 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a341a03e-d4c8-40fb-9cf6-a08cde7ca02e 2026-02-17 13:44:26,776 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a341a03e-d4c8-40fb-9cf6-a08cde7ca02e 2026-02-17 13:44:26,784 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d2a7d129-bfb3-4758-90a4-9d6eea2dff0c 2026-02-17 13:44:26,790 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d2a7d129-bfb3-4758-90a4-9d6eea2dff0c 2026-02-17 13:44:26,796 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/98f3b998-16dc-42bc-9036-ecff513354c2 2026-02-17 13:44:26,801 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-17 13:44:26,801 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a341a03e-d4c8-40fb-9cf6-a08cde7ca02e 2026-02-17 13:44:26,809 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d2a7d129-bfb3-4758-90a4-9d6eea2dff0c 2026-02-17 13:44:26,822 - INFO - Verified VN network id 11 for VN a341a03e-d4c8-40fb-9cf6-a08cde7ca02e 2026-02-17 13:44:26,822 - INFO - Verifications in API Server for VN ctest-vn4-97479893 passed 2026-02-17 13:44:26,822 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a341a03e-d4c8-40fb-9cf6-a08cde7ca02e 2026-02-17 13:44:26,830 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d2a7d129-bfb3-4758-90a4-9d6eea2dff0c 2026-02-17 13:44:26,836 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d2a7d129-bfb3-4758-90a4-9d6eea2dff0c 2026-02-17 13:44:26,842 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/98f3b998-16dc-42bc-9036-ecff513354c2 2026-02-17 13:44:26,851 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85207150:ctest-vn4-97479893', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-85207150', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11763859893386756347', 'uuid-lslong': '11310404041076154414'}, 'enable': 'true', 'created': '2026-02-17T13:44:25', 'last-modified': '2026-02-17T13:44:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.673140'} 2026-02-17 13:44:26,856 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-17 13:44:26,856 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-97479893 passed 2026-02-17 13:44:26,857 - DEBUG - ====Verifying policy data for ctest-vn4-97479893 in API_Server ====== 2026-02-17 13:44:26,857 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-17 13:44:26,861 - DEBUG - Requesting: http://10.0.0.19:8082/domain/0a990a00-a3d7-47a7-a1f1-017e3dfbdadb 2026-02-17 13:44:26,870 - DEBUG - Requesting: http://10.0.0.19:8082/project/8eca7929-a6db-4ddf-9b33-c4d2c10255bf 2026-02-17 13:44:26,939 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a341a03e-d4c8-40fb-9cf6-a08cde7ca02e 2026-02-17 13:44:26,948 - DEBUG - ==>Verifying data for policy with id: 18e5e483-6502-4db7-8f83-9b1a4bfd3019, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-85207150', 'ctest-policy1-74328270'] 2026-02-17 13:44:26,948 - INFO - VN ctest-vn4-97479893 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-17 13:44:26,948 - DEBUG - Verifying the vn in opserver 2026-02-17 13:44:26,948 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85207150:ctest-vn4-97479893 virtual network link through opserver 10.0.0.19 2026-02-17 13:44:26,948 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-17 13:44:27,236 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-17 13:44:27,292 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85207150:ctest-vn4-97479893', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85207150:ctest-vn4-97479893?flat'} 2026-02-17 13:44:27,292 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-85207150:ctest-vn4-97479893 is found in opserver 2026-02-17 13:44:27,300 - DEBUG - Do not have enough data to verify VN in agent 2026-02-17 13:44:27,304 - DEBUG - VRF ids for VN ctest-vn4-97479893: {} 2026-02-17 13:44:27,304 - DEBUG - ====Verifying data for ctest-policy1-74328270 in API_Server ====== 2026-02-17 13:44:27,304 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-17 13:44:27,309 - DEBUG - Requesting: http://10.0.0.19:8082/domain/0a990a00-a3d7-47a7-a1f1-017e3dfbdadb 2026-02-17 13:44:27,318 - DEBUG - Requesting: http://10.0.0.19:8082/project/8eca7929-a6db-4ddf-9b33-c4d2c10255bf 2026-02-17 13:44:27,388 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/18e5e483-6502-4db7-8f83-9b1a4bfd3019 2026-02-17 13:44:27,396 - INFO - Verified policy ctest-policy1-74328270 in API Server, Result: True 2026-02-17 13:44:27,396 - INFO - Done with setup and verification, moving onto test .. 2026-02-17 13:44:27,403 - INFO - Deleting VN ctest-vn4-97479893 2026-02-17 13:44:27,511 - DEBUG - Response for deleting network () 2026-02-17 13:44:27,511 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d2a7d129-bfb3-4758-90a4-9d6eea2dff0c 2026-02-17 13:44:27,515 - DEBUG - Response Code: 404 2026-02-17 13:44:27,516 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-17 13:44:27,520 - DEBUG - Requesting: http://10.0.0.19:8082/domain/0a990a00-a3d7-47a7-a1f1-017e3dfbdadb 2026-02-17 13:44:27,570 - DEBUG - Requesting: http://10.0.0.19:8082/project/8eca7929-a6db-4ddf-9b33-c4d2c10255bf 2026-02-17 13:44:27,641 - INFO - Validated that VN ctest-vn4-97479893 is not found in API Server 2026-02-17 13:44:27,649 - DEBUG - VN ctest-vn4-97479893 is not present in Agent 10.0.0.19 2026-02-17 13:44:27,649 - INFO - Validated that VN ctest-vn4-97479893 is not in any agent 2026-02-17 13:44:27,661 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-97479893 info 2026-02-17 13:44:27,681 - INFO - Deleted policy ctest-policy1-74328270 2026-02-17 13:44:27,838 - DEBUG - policy ctest-policy1-74328270 is not found in API Server 2026-02-17 13:44:28,091 - DEBUG - No XMPP flaps were noticed during the test 2026-02-17 13:44:28,091 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-17 13:44:28,091 - INFO - -------------------------------------------------------------------------------- 2026-02-17 13:44:28,378 - DEBUG - No XMPP flaps were noticed during the test 2026-02-17 13:44:28,379 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-17 13:44:28,379 - INFO - -------------------------------------------------------------------------------- 2026-02-17 13:44:29,048 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-85207150, ID : 8eca7929-a6db-4ddf-9b33-c4d2c10255bf