2026-01-08 18:10:51,991 - INFO - Domain Default found not creating 2026-01-08 18:10:52,161 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-30896383 not found, creating it 2026-01-08 18:10:52,606 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-30896383, ID : c936f5c9-60e6-42b9-801f-2beac7aa79a4 2026-01-08 18:10:54,062 - INFO - ================================================================================ 2026-01-08 18:10:54,062 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-08 18:10:54,315 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-08 18:10:54,315 - INFO - Initial checks done. Running the testcase now 2026-01-08 18:10:54,315 - INFO - 2026-01-08 18:10:54,315 - INFO - ================================================================================ 2026-01-08 18:10:54,315 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-08 18:10:54,315 - 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-01-08 18:10:54,602 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-01-08 18:10:54,602 - INFO - Initial checks done. Running the testcase now 2026-01-08 18:10:54,602 - INFO - 2026-01-08 18:10:54,956 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30896383:ctest-vn4-42084257, 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-30896383:ctest-vn4-42084257, 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-30896383:ctest-vn4-42084257, 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-30896383:ctest-vn4-42084257, 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-01-08 18:10:55,472 - DEBUG - Response for create_network : {'network': {'id': 'b8fbba48-0854-4cdf-974a-31bd7f54816d', 'name': 'ctest-vn4-42084257', 'tenant_id': 'c936f5c960e642b9801f2beac7aa79a4', 'project_id': 'c936f5c960e642b9801f2beac7aa79a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30896383', 'ctest-vn4-42084257'], 'port_security_enabled': True, 'description': ''}} 2026-01-08 18:10:55,659 - DEBUG - Response for create_subnet : {'subnet': {'id': '3dca285a-0434-408d-8058-7b20f3f85c80', 'name': '', 'tenant_id': 'c936f5c960e642b9801f2beac7aa79a4', 'network_id': 'b8fbba48-0854-4cdf-974a-31bd7f54816d', 'ip_version': 4, 'cidr': '78.14.121.128/26', 'allocation_pools': [{'start': '78.14.121.130', 'end': '78.14.121.190'}], 'gateway_ip': '78.14.121.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.14.121.130', 'tags': [], 'project_id': 'c936f5c960e642b9801f2beac7aa79a4'}} 2026-01-08 18:10:55,796 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f97db1bb-52cd-4d42-8b01-818d2d94c732', 'name': '', 'tenant_id': 'c936f5c960e642b9801f2beac7aa79a4', 'network_id': 'b8fbba48-0854-4cdf-974a-31bd7f54816d', 'ip_version': 6, 'cidr': '2de3:7785:aeb0:5255:c404:ebee::/96', 'allocation_pools': [{'start': '2de3:7785:aeb0:5255:c404:ebee:0:2', 'end': '2de3:7785:aeb0:5255:c404:ebee:ffff:fffe'}], 'gateway_ip': '2de3:7785:aeb0:5255:c404:ebee:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2de3:7785:aeb0:5255:c404:ebee:0:2', 'tags': [], 'project_id': 'c936f5c960e642b9801f2beac7aa79a4'}} 2026-01-08 18:10:55,814 - INFO - Created VN ctest-vn4-42084257 2026-01-08 18:10:55,865 - DEBUG - VN ctest-vn4-42084257 UUID is b8fbba48-0854-4cdf-974a-31bd7f54816d 2026-01-08 18:10:56,049 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b8fbba48-0854-4cdf-974a-31bd7f54816d', 'name': 'ctest-vn4-42084257', 'tenant_id': 'c936f5c960e642b9801f2beac7aa79a4', 'project_id': 'c936f5c960e642b9801f2beac7aa79a4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3dca285a-0434-408d-8058-7b20f3f85c80', 'f97db1bb-52cd-4d42-8b01-818d2d94c732'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30896383', 'ctest-vn4-42084257'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30896383', 'ctest-policy1-81812395']], 'subnet_ipam': [{'subnet_cidr': '78.14.121.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2de3:7785:aeb0:5255:c404:ebee::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-08 18:10:56,213 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-08 18:10:56,506 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-08 18:10:56,535 - DEBUG - Requesting: http://10.0.0.38:8082/domain/380cee70-d5c3-41da-88d7-27d8a3a783af 2026-01-08 18:10:56,547 - DEBUG - Requesting: http://10.0.0.38:8082/project/c936f5c9-60e6-42b9-801f-2beac7aa79a4 2026-01-08 18:10:56,615 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b8fbba48-0854-4cdf-974a-31bd7f54816d 2026-01-08 18:10:56,626 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b8fbba48-0854-4cdf-974a-31bd7f54816d 2026-01-08 18:10:56,634 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6cf1cfc0-ae94-48ec-9379-fb4e3086f677 2026-01-08 18:10:56,641 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6cf1cfc0-ae94-48ec-9379-fb4e3086f677 2026-01-08 18:10:56,647 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4e9a4875-2f58-4233-856f-4d6cfad5fa06 2026-01-08 18:10:56,653 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 18:10:56,653 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b8fbba48-0854-4cdf-974a-31bd7f54816d 2026-01-08 18:10:56,661 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6cf1cfc0-ae94-48ec-9379-fb4e3086f677 2026-01-08 18:10:56,674 - INFO - Verified VN network id 12 for VN b8fbba48-0854-4cdf-974a-31bd7f54816d 2026-01-08 18:10:56,674 - INFO - Verifications in API Server for VN ctest-vn4-42084257 passed 2026-01-08 18:10:56,674 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b8fbba48-0854-4cdf-974a-31bd7f54816d 2026-01-08 18:10:56,682 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6cf1cfc0-ae94-48ec-9379-fb4e3086f677 2026-01-08 18:10:56,688 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6cf1cfc0-ae94-48ec-9379-fb4e3086f677 2026-01-08 18:10:56,694 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4e9a4875-2f58-4233-856f-4d6cfad5fa06 2026-01-08 18:10:56,720 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30896383:ctest-vn4-42084257', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-30896383', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13329452340673268959', 'uuid-lslong': '10901580537958531437'}, 'enable': 'true', 'created': '2026-01-08T18:10:55', 'last-modified': '2026-01-08T18:10:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694414'} 2026-01-08 18:10:56,725 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-08 18:10:56,726 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42084257 passed 2026-01-08 18:10:56,726 - DEBUG - ====Verifying policy data for ctest-vn4-42084257 in API_Server ====== 2026-01-08 18:10:56,726 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-08 18:10:56,731 - DEBUG - Requesting: http://10.0.0.38:8082/domain/380cee70-d5c3-41da-88d7-27d8a3a783af 2026-01-08 18:10:56,740 - DEBUG - Requesting: http://10.0.0.38:8082/project/c936f5c9-60e6-42b9-801f-2beac7aa79a4 2026-01-08 18:10:56,810 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b8fbba48-0854-4cdf-974a-31bd7f54816d 2026-01-08 18:10:56,818 - DEBUG - ==>Verifying data for policy with id: ed27063a-99e5-4e48-ac5a-6cc23c05995b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-30896383', 'ctest-policy1-81812395'] 2026-01-08 18:10:56,819 - INFO - VN ctest-vn4-42084257 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-08 18:10:56,819 - DEBUG - Verifying the vn in opserver 2026-01-08 18:10:56,819 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30896383:ctest-vn4-42084257 virtual network link through opserver 10.0.0.38 2026-01-08 18:10:56,819 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-08 18:10:57,109 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-08 18:10:57,166 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30896383:ctest-vn4-42084257', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30896383:ctest-vn4-42084257?flat'} 2026-01-08 18:10:57,166 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-30896383:ctest-vn4-42084257 is found in opserver 2026-01-08 18:10:57,175 - DEBUG - Do not have enough data to verify VN in agent 2026-01-08 18:10:57,179 - DEBUG - VRF ids for VN ctest-vn4-42084257: {} 2026-01-08 18:10:57,179 - DEBUG - ====Verifying data for ctest-policy1-81812395 in API_Server ====== 2026-01-08 18:10:57,179 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-08 18:10:57,184 - DEBUG - Requesting: http://10.0.0.38:8082/domain/380cee70-d5c3-41da-88d7-27d8a3a783af 2026-01-08 18:10:57,192 - DEBUG - Requesting: http://10.0.0.38:8082/project/c936f5c9-60e6-42b9-801f-2beac7aa79a4 2026-01-08 18:10:57,260 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/ed27063a-99e5-4e48-ac5a-6cc23c05995b 2026-01-08 18:10:57,268 - INFO - Verified policy ctest-policy1-81812395 in API Server, Result: True 2026-01-08 18:10:57,268 - INFO - Done with setup and verification, moving onto test .. 2026-01-08 18:10:57,275 - INFO - Deleting VN ctest-vn4-42084257 2026-01-08 18:10:57,396 - DEBUG - Response for deleting network () 2026-01-08 18:10:57,396 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6cf1cfc0-ae94-48ec-9379-fb4e3086f677 2026-01-08 18:10:57,401 - DEBUG - Response Code: 404 2026-01-08 18:10:57,401 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-08 18:10:57,405 - DEBUG - Requesting: http://10.0.0.38:8082/domain/380cee70-d5c3-41da-88d7-27d8a3a783af 2026-01-08 18:10:57,457 - DEBUG - Requesting: http://10.0.0.38:8082/project/c936f5c9-60e6-42b9-801f-2beac7aa79a4 2026-01-08 18:10:57,528 - INFO - Validated that VN ctest-vn4-42084257 is not found in API Server 2026-01-08 18:10:57,536 - DEBUG - VN ctest-vn4-42084257 is not present in Agent 10.0.0.38 2026-01-08 18:10:57,536 - INFO - Validated that VN ctest-vn4-42084257 is not in any agent 2026-01-08 18:10:57,549 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42084257 info 2026-01-08 18:10:57,570 - INFO - Deleted policy ctest-policy1-81812395 2026-01-08 18:10:57,729 - DEBUG - policy ctest-policy1-81812395 is not found in API Server 2026-01-08 18:10:57,982 - DEBUG - No XMPP flaps were noticed during the test 2026-01-08 18:10:57,982 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-01-08 18:10:57,982 - INFO - -------------------------------------------------------------------------------- 2026-01-08 18:10:58,273 - DEBUG - No XMPP flaps were noticed during the test 2026-01-08 18:10:58,273 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-08 18:10:58,273 - INFO - -------------------------------------------------------------------------------- 2026-01-08 18:10:58,944 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-30896383, ID : c936f5c9-60e6-42b9-801f-2beac7aa79a4