2026-02-05 02:08:20,834 - INFO - Domain Default found not creating 2026-02-05 02:08:21,046 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-19136695 not found, creating it 2026-02-05 02:08:21,569 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-19136695, ID : ad626306-6ab8-4dc5-9b75-38d0a1532088 2026-02-05 02:08:23,281 - INFO - ================================================================================ 2026-02-05 02:08:23,282 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-05 02:08:23,553 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-05 02:08:23,553 - INFO - Initial checks done. Running the testcase now 2026-02-05 02:08:23,553 - INFO - 2026-02-05 02:08:23,553 - INFO - ================================================================================ 2026-02-05 02:08:23,553 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-05 02:08:23,553 - 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-05 02:08:23,841 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-05 02:08:23,841 - INFO - Initial checks done. Running the testcase now 2026-02-05 02:08:23,841 - INFO - 2026-02-05 02:08:24,249 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19136695:ctest-vn4-64805980, 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-19136695:ctest-vn4-64805980, 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-19136695:ctest-vn4-64805980, 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-19136695:ctest-vn4-64805980, 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-05 02:08:25,001 - DEBUG - Response for create_network : {'network': {'id': 'd61e39f1-4b87-4b24-a0b2-ce441ff3bc89', 'name': 'ctest-vn4-64805980', 'tenant_id': 'ad6263066ab84dc59b7538d0a1532088', 'project_id': 'ad6263066ab84dc59b7538d0a1532088', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19136695', 'ctest-vn4-64805980'], 'port_security_enabled': True, 'description': ''}} 2026-02-05 02:08:25,192 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b3a20886-c4e0-432f-bec0-abe23fbed7f1', 'name': '', 'tenant_id': 'ad6263066ab84dc59b7538d0a1532088', 'network_id': 'd61e39f1-4b87-4b24-a0b2-ce441ff3bc89', 'ip_version': 4, 'cidr': '56.199.156.128/26', 'allocation_pools': [{'start': '56.199.156.130', 'end': '56.199.156.190'}], 'gateway_ip': '56.199.156.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.199.156.130', 'tags': [], 'project_id': 'ad6263066ab84dc59b7538d0a1532088'}} 2026-02-05 02:08:25,346 - DEBUG - Response for create_subnet : {'subnet': {'id': '5da544f1-f544-49fb-8abb-7fc2f3c4181e', 'name': '', 'tenant_id': 'ad6263066ab84dc59b7538d0a1532088', 'network_id': 'd61e39f1-4b87-4b24-a0b2-ce441ff3bc89', 'ip_version': 6, 'cidr': '3cff:e22c:e86d:4836:a7dc:aab5::/96', 'allocation_pools': [{'start': '3cff:e22c:e86d:4836:a7dc:aab5:0:2', 'end': '3cff:e22c:e86d:4836:a7dc:aab5:ffff:fffe'}], 'gateway_ip': '3cff:e22c:e86d:4836:a7dc:aab5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3cff:e22c:e86d:4836:a7dc:aab5:0:2', 'tags': [], 'project_id': 'ad6263066ab84dc59b7538d0a1532088'}} 2026-02-05 02:08:25,368 - INFO - Created VN ctest-vn4-64805980 2026-02-05 02:08:25,423 - DEBUG - VN ctest-vn4-64805980 UUID is d61e39f1-4b87-4b24-a0b2-ce441ff3bc89 2026-02-05 02:08:25,656 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd61e39f1-4b87-4b24-a0b2-ce441ff3bc89', 'name': 'ctest-vn4-64805980', 'tenant_id': 'ad6263066ab84dc59b7538d0a1532088', 'project_id': 'ad6263066ab84dc59b7538d0a1532088', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b3a20886-c4e0-432f-bec0-abe23fbed7f1', '5da544f1-f544-49fb-8abb-7fc2f3c4181e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19136695', 'ctest-vn4-64805980'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19136695', 'ctest-policy1-15784171']], 'subnet_ipam': [{'subnet_cidr': '56.199.156.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3cff:e22c:e86d:4836:a7dc:aab5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-05 02:08:25,815 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-05 02:08:26,159 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-05 02:08:26,195 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e1e20fd6-fd62-475b-8d0e-1a10ad33a2c2 2026-02-05 02:08:26,209 - DEBUG - Requesting: http://10.0.0.38:8082/project/ad626306-6ab8-4dc5-9b75-38d0a1532088 2026-02-05 02:08:26,286 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d61e39f1-4b87-4b24-a0b2-ce441ff3bc89 2026-02-05 02:08:26,299 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d61e39f1-4b87-4b24-a0b2-ce441ff3bc89 2026-02-05 02:08:26,310 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24c0574c-c209-4f44-8091-70a745afa2ad 2026-02-05 02:08:26,319 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24c0574c-c209-4f44-8091-70a745afa2ad 2026-02-05 02:08:26,326 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e70cc5e6-22be-4943-b513-8c8b2aa41292 2026-02-05 02:08:26,332 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 02:08:26,333 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d61e39f1-4b87-4b24-a0b2-ce441ff3bc89 2026-02-05 02:08:26,342 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24c0574c-c209-4f44-8091-70a745afa2ad 2026-02-05 02:08:26,357 - INFO - Verified VN network id 12 for VN d61e39f1-4b87-4b24-a0b2-ce441ff3bc89 2026-02-05 02:08:26,357 - INFO - Verifications in API Server for VN ctest-vn4-64805980 passed 2026-02-05 02:08:26,358 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d61e39f1-4b87-4b24-a0b2-ce441ff3bc89 2026-02-05 02:08:26,368 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24c0574c-c209-4f44-8091-70a745afa2ad 2026-02-05 02:08:26,376 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24c0574c-c209-4f44-8091-70a745afa2ad 2026-02-05 02:08:26,384 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e70cc5e6-22be-4943-b513-8c8b2aa41292 2026-02-05 02:08:26,397 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19136695:ctest-vn4-64805980', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-19136695', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15428833081934957348', 'uuid-lslong': '11579544383912131721'}, 'enable': 'true', 'created': '2026-02-05T02:08:24', 'last-modified': '2026-02-05T02:08:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.773351'} 2026-02-05 02:08:26,403 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 02:08:26,403 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-64805980 passed 2026-02-05 02:08:26,403 - DEBUG - ====Verifying policy data for ctest-vn4-64805980 in API_Server ====== 2026-02-05 02:08:26,403 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-05 02:08:26,409 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e1e20fd6-fd62-475b-8d0e-1a10ad33a2c2 2026-02-05 02:08:26,421 - DEBUG - Requesting: http://10.0.0.38:8082/project/ad626306-6ab8-4dc5-9b75-38d0a1532088 2026-02-05 02:08:26,497 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d61e39f1-4b87-4b24-a0b2-ce441ff3bc89 2026-02-05 02:08:26,509 - DEBUG - ==>Verifying data for policy with id: 88fd6d0f-0fe4-4e1d-9430-4f3ed54c9374, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19136695', 'ctest-policy1-15784171'] 2026-02-05 02:08:26,509 - INFO - VN ctest-vn4-64805980 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-05 02:08:26,509 - DEBUG - Verifying the vn in opserver 2026-02-05 02:08:26,509 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19136695:ctest-vn4-64805980 virtual network link through opserver 10.0.0.38 2026-02-05 02:08:26,510 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-05 02:08:26,858 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-05 02:08:26,928 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19136695:ctest-vn4-64805980', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19136695:ctest-vn4-64805980?flat'} 2026-02-05 02:08:26,928 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19136695:ctest-vn4-64805980 is found in opserver 2026-02-05 02:08:26,938 - DEBUG - Do not have enough data to verify VN in agent 2026-02-05 02:08:26,944 - DEBUG - VRF ids for VN ctest-vn4-64805980: {} 2026-02-05 02:08:26,944 - DEBUG - ====Verifying data for ctest-policy1-15784171 in API_Server ====== 2026-02-05 02:08:26,944 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-05 02:08:26,951 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e1e20fd6-fd62-475b-8d0e-1a10ad33a2c2 2026-02-05 02:08:26,965 - DEBUG - Requesting: http://10.0.0.38:8082/project/ad626306-6ab8-4dc5-9b75-38d0a1532088 2026-02-05 02:08:27,046 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/88fd6d0f-0fe4-4e1d-9430-4f3ed54c9374 2026-02-05 02:08:27,057 - INFO - Verified policy ctest-policy1-15784171 in API Server, Result: True 2026-02-05 02:08:27,058 - INFO - Done with setup and verification, moving onto test .. 2026-02-05 02:08:27,066 - INFO - Deleting VN ctest-vn4-64805980 2026-02-05 02:08:27,195 - DEBUG - Response for deleting network () 2026-02-05 02:08:27,195 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/24c0574c-c209-4f44-8091-70a745afa2ad 2026-02-05 02:08:27,200 - DEBUG - Response Code: 404 2026-02-05 02:08:27,201 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-05 02:08:27,206 - DEBUG - Requesting: http://10.0.0.38:8082/domain/e1e20fd6-fd62-475b-8d0e-1a10ad33a2c2 2026-02-05 02:08:27,260 - DEBUG - Requesting: http://10.0.0.38:8082/project/ad626306-6ab8-4dc5-9b75-38d0a1532088 2026-02-05 02:08:27,332 - INFO - Validated that VN ctest-vn4-64805980 is not found in API Server 2026-02-05 02:08:27,343 - DEBUG - VN ctest-vn4-64805980 is not present in Agent 10.0.0.38 2026-02-05 02:08:27,344 - INFO - Validated that VN ctest-vn4-64805980 is not in any agent 2026-02-05 02:08:27,359 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-64805980 info 2026-02-05 02:08:27,387 - INFO - Deleted policy ctest-policy1-15784171 2026-02-05 02:08:27,555 - DEBUG - policy ctest-policy1-15784171 is not found in API Server 2026-02-05 02:08:27,808 - DEBUG - No XMPP flaps were noticed during the test 2026-02-05 02:08:27,809 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-05 02:08:27,809 - INFO - -------------------------------------------------------------------------------- 2026-02-05 02:08:28,105 - DEBUG - No XMPP flaps were noticed during the test 2026-02-05 02:08:28,105 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-05 02:08:28,105 - INFO - -------------------------------------------------------------------------------- 2026-02-05 02:08:28,885 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-19136695, ID : ad626306-6ab8-4dc5-9b75-38d0a1532088