2026-01-04 04:00:16,838 - INFO - Domain Default found not creating 2026-01-04 04:00:17,087 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-91524855 not found, creating it 2026-01-04 04:00:17,729 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-91524855, ID : 25f60386-c7fc-4627-b324-6741c3aee075 2026-01-04 04:00:19,256 - INFO - ================================================================================ 2026-01-04 04:00:19,256 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-04 04:00:19,511 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2026-01-04 04:00:19,511 - INFO - Initial checks done. Running the testcase now 2026-01-04 04:00:19,511 - INFO - 2026-01-04 04:00:19,511 - INFO - ================================================================================ 2026-01-04 04:00:19,511 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-04 04:00:19,512 - 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-04 04:00:19,807 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2026-01-04 04:00:19,807 - INFO - Initial checks done. Running the testcase now 2026-01-04 04:00:19,807 - INFO - 2026-01-04 04:00:20,169 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91524855:ctest-vn4-02931522, 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-91524855:ctest-vn4-02931522, 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-91524855:ctest-vn4-02931522, 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-91524855:ctest-vn4-02931522, 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-04 04:00:20,677 - DEBUG - Response for create_network : {'network': {'id': 'c712cfd6-70db-4594-b42b-56c894e0746e', 'name': 'ctest-vn4-02931522', 'tenant_id': '25f60386c7fc4627b3246741c3aee075', 'project_id': '25f60386c7fc4627b3246741c3aee075', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91524855', 'ctest-vn4-02931522'], 'port_security_enabled': True, 'description': ''}} 2026-01-04 04:00:20,831 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eaf062ed-115b-436e-bc23-a5ece51c962b', 'name': '', 'tenant_id': '25f60386c7fc4627b3246741c3aee075', 'network_id': 'c712cfd6-70db-4594-b42b-56c894e0746e', 'ip_version': 4, 'cidr': '204.216.57.128/26', 'allocation_pools': [{'start': '204.216.57.130', 'end': '204.216.57.190'}], 'gateway_ip': '204.216.57.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.216.57.130', 'tags': [], 'project_id': '25f60386c7fc4627b3246741c3aee075'}} 2026-01-04 04:00:21,023 - DEBUG - Response for create_subnet : {'subnet': {'id': '27a33f68-6ea9-45df-9aa2-2273ffff11ab', 'name': '', 'tenant_id': '25f60386c7fc4627b3246741c3aee075', 'network_id': 'c712cfd6-70db-4594-b42b-56c894e0746e', 'ip_version': 6, 'cidr': '3eb8:a1f3:64b1:a355:a21c:b7a4::/96', 'allocation_pools': [{'start': '3eb8:a1f3:64b1:a355:a21c:b7a4:0:2', 'end': '3eb8:a1f3:64b1:a355:a21c:b7a4:ffff:fffe'}], 'gateway_ip': '3eb8:a1f3:64b1:a355:a21c:b7a4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3eb8:a1f3:64b1:a355:a21c:b7a4:0:2', 'tags': [], 'project_id': '25f60386c7fc4627b3246741c3aee075'}} 2026-01-04 04:00:21,040 - INFO - Created VN ctest-vn4-02931522 2026-01-04 04:00:21,090 - DEBUG - VN ctest-vn4-02931522 UUID is c712cfd6-70db-4594-b42b-56c894e0746e 2026-01-04 04:00:21,268 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c712cfd6-70db-4594-b42b-56c894e0746e', 'name': 'ctest-vn4-02931522', 'tenant_id': '25f60386c7fc4627b3246741c3aee075', 'project_id': '25f60386c7fc4627b3246741c3aee075', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eaf062ed-115b-436e-bc23-a5ece51c962b', '27a33f68-6ea9-45df-9aa2-2273ffff11ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91524855', 'ctest-vn4-02931522'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91524855', 'ctest-policy1-25649027']], 'subnet_ipam': [{'subnet_cidr': '204.216.57.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3eb8:a1f3:64b1:a355:a21c:b7a4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-04 04:00:21,434 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-04 04:00:21,726 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-04 04:00:21,754 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1c073e69-1513-447c-8dbf-d54b39bed7ee 2026-01-04 04:00:21,765 - DEBUG - Requesting: http://10.0.0.38:8082/project/25f60386-c7fc-4627-b324-6741c3aee075 2026-01-04 04:00:21,835 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c712cfd6-70db-4594-b42b-56c894e0746e 2026-01-04 04:00:21,847 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c712cfd6-70db-4594-b42b-56c894e0746e 2026-01-04 04:00:21,855 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/640a58c6-f737-4a3a-95cf-81f9ec9eb7fa 2026-01-04 04:00:21,862 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/640a58c6-f737-4a3a-95cf-81f9ec9eb7fa 2026-01-04 04:00:21,867 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/39a8063a-d225-4829-82be-02f24b42f9aa 2026-01-04 04:00:21,875 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-04 04:00:21,875 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c712cfd6-70db-4594-b42b-56c894e0746e 2026-01-04 04:00:21,884 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/640a58c6-f737-4a3a-95cf-81f9ec9eb7fa 2026-01-04 04:00:21,897 - INFO - Verified VN network id 11 for VN c712cfd6-70db-4594-b42b-56c894e0746e 2026-01-04 04:00:21,898 - INFO - Verifications in API Server for VN ctest-vn4-02931522 passed 2026-01-04 04:00:21,898 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c712cfd6-70db-4594-b42b-56c894e0746e 2026-01-04 04:00:21,906 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/640a58c6-f737-4a3a-95cf-81f9ec9eb7fa 2026-01-04 04:00:21,912 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/640a58c6-f737-4a3a-95cf-81f9ec9eb7fa 2026-01-04 04:00:21,919 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/39a8063a-d225-4829-82be-02f24b42f9aa 2026-01-04 04:00:21,930 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91524855:ctest-vn4-02931522', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-91524855', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14344756283051820436', 'uuid-lslong': '12982565770316772462'}, 'enable': 'true', 'created': '2026-01-04T04:00:20', 'last-modified': '2026-01-04T04:00:21', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.678396'} 2026-01-04 04:00:21,938 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-04 04:00:21,938 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-02931522 passed 2026-01-04 04:00:21,938 - DEBUG - ====Verifying policy data for ctest-vn4-02931522 in API_Server ====== 2026-01-04 04:00:21,938 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-04 04:00:21,945 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1c073e69-1513-447c-8dbf-d54b39bed7ee 2026-01-04 04:00:21,956 - DEBUG - Requesting: http://10.0.0.38:8082/project/25f60386-c7fc-4627-b324-6741c3aee075 2026-01-04 04:00:22,031 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c712cfd6-70db-4594-b42b-56c894e0746e 2026-01-04 04:00:22,041 - DEBUG - ==>Verifying data for policy with id: 3c30f8f6-0791-48b8-9853-44afd4cfe053, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-91524855', 'ctest-policy1-25649027'] 2026-01-04 04:00:22,041 - INFO - VN ctest-vn4-02931522 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-04 04:00:22,041 - DEBUG - Verifying the vn in opserver 2026-01-04 04:00:22,041 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91524855:ctest-vn4-02931522 virtual network link through opserver 10.0.0.38 2026-01-04 04:00:22,041 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-04 04:00:22,337 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-04 04:00:22,402 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91524855:ctest-vn4-02931522', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91524855:ctest-vn4-02931522?flat'} 2026-01-04 04:00:22,402 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-91524855:ctest-vn4-02931522 is found in opserver 2026-01-04 04:00:22,411 - DEBUG - Do not have enough data to verify VN in agent 2026-01-04 04:00:22,417 - DEBUG - VRF ids for VN ctest-vn4-02931522: {} 2026-01-04 04:00:22,417 - DEBUG - ====Verifying data for ctest-policy1-25649027 in API_Server ====== 2026-01-04 04:00:22,417 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-04 04:00:22,422 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1c073e69-1513-447c-8dbf-d54b39bed7ee 2026-01-04 04:00:22,433 - DEBUG - Requesting: http://10.0.0.38:8082/project/25f60386-c7fc-4627-b324-6741c3aee075 2026-01-04 04:00:22,509 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/3c30f8f6-0791-48b8-9853-44afd4cfe053 2026-01-04 04:00:22,518 - INFO - Verified policy ctest-policy1-25649027 in API Server, Result: True 2026-01-04 04:00:22,518 - INFO - Done with setup and verification, moving onto test .. 2026-01-04 04:00:22,525 - INFO - Deleting VN ctest-vn4-02931522 2026-01-04 04:00:22,670 - DEBUG - Response for deleting network () 2026-01-04 04:00:22,670 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/640a58c6-f737-4a3a-95cf-81f9ec9eb7fa 2026-01-04 04:00:22,676 - DEBUG - Response Code: 404 2026-01-04 04:00:22,676 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-04 04:00:22,682 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1c073e69-1513-447c-8dbf-d54b39bed7ee 2026-01-04 04:00:22,734 - DEBUG - Requesting: http://10.0.0.38:8082/project/25f60386-c7fc-4627-b324-6741c3aee075 2026-01-04 04:00:22,817 - INFO - Validated that VN ctest-vn4-02931522 is not found in API Server 2026-01-04 04:00:22,830 - DEBUG - VN ctest-vn4-02931522 is not present in Agent 10.0.0.38 2026-01-04 04:00:22,830 - INFO - Validated that VN ctest-vn4-02931522 is not in any agent 2026-01-04 04:00:22,846 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-02931522 info 2026-01-04 04:00:22,882 - INFO - Deleted policy ctest-policy1-25649027 2026-01-04 04:00:23,058 - DEBUG - policy ctest-policy1-25649027 is not found in API Server 2026-01-04 04:00:23,318 - DEBUG - No XMPP flaps were noticed during the test 2026-01-04 04:00:23,318 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-04 04:00:23,319 - INFO - -------------------------------------------------------------------------------- 2026-01-04 04:00:23,607 - DEBUG - No XMPP flaps were noticed during the test 2026-01-04 04:00:23,607 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-04 04:00:23,607 - INFO - -------------------------------------------------------------------------------- 2026-01-04 04:00:24,304 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-91524855, ID : 25f60386-c7fc-4627-b324-6741c3aee075