2026-11-17 20:09:15,686 - INFO - Domain Default found not creating 2026-11-17 20:09:15,878 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-07430575 not found, creating it 2026-11-17 20:09:16,359 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-07430575, ID : cba1c7a5-9f07-4445-a1e9-0840064c8450 2026-11-17 20:09:18,023 - INFO - ================================================================================ 2026-11-17 20:09:18,023 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-17 20:09:18,277 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-11-17 20:09:18,277 - INFO - Initial checks done. Running the testcase now 2026-11-17 20:09:18,277 - INFO - 2026-11-17 20:09:18,277 - INFO - ================================================================================ 2026-11-17 20:09:18,277 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-17 20:09:18,277 - 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-11-17 20:09:18,564 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with 2026-11-17 20:09:18,564 - INFO - Initial checks done. Running the testcase now 2026-11-17 20:09:18,564 - INFO - 2026-11-17 20:09:18,947 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07430575:ctest-vn4-61135125, 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-07430575:ctest-vn4-61135125, 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-07430575:ctest-vn4-61135125, 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-07430575:ctest-vn4-61135125, 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-11-17 20:09:19,460 - DEBUG - Response for create_network : {'network': {'id': '0ba386bb-270a-4422-849c-83da4aae9d1c', 'name': 'ctest-vn4-61135125', 'tenant_id': 'cba1c7a59f074445a1e90840064c8450', 'project_id': 'cba1c7a59f074445a1e90840064c8450', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07430575', 'ctest-vn4-61135125'], 'port_security_enabled': True, 'description': ''}} 2026-11-17 20:09:19,661 - DEBUG - Response for create_subnet : {'subnet': {'id': '0aa5afb9-8b7e-4cb5-b402-bee74f916deb', 'name': '', 'tenant_id': 'cba1c7a59f074445a1e90840064c8450', 'network_id': '0ba386bb-270a-4422-849c-83da4aae9d1c', 'ip_version': 4, 'cidr': '204.75.160.64/26', 'allocation_pools': [{'start': '204.75.160.66', 'end': '204.75.160.126'}], 'gateway_ip': '204.75.160.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.75.160.66', 'tags': [], 'project_id': 'cba1c7a59f074445a1e90840064c8450'}} 2026-11-17 20:09:19,842 - DEBUG - Response for create_subnet : {'subnet': {'id': '29b5fa13-d669-499a-bb72-36efdf609376', 'name': '', 'tenant_id': 'cba1c7a59f074445a1e90840064c8450', 'network_id': '0ba386bb-270a-4422-849c-83da4aae9d1c', 'ip_version': 6, 'cidr': '3a88:53ae:3447:4881:9532:1b1f::/96', 'allocation_pools': [{'start': '3a88:53ae:3447:4881:9532:1b1f:0:2', 'end': '3a88:53ae:3447:4881:9532:1b1f:ffff:fffe'}], 'gateway_ip': '3a88:53ae:3447:4881:9532:1b1f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a88:53ae:3447:4881:9532:1b1f:0:2', 'tags': [], 'project_id': 'cba1c7a59f074445a1e90840064c8450'}} 2026-11-17 20:09:19,864 - INFO - Created VN ctest-vn4-61135125 2026-11-17 20:09:19,916 - DEBUG - VN ctest-vn4-61135125 UUID is 0ba386bb-270a-4422-849c-83da4aae9d1c 2026-11-17 20:09:20,114 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0ba386bb-270a-4422-849c-83da4aae9d1c', 'name': 'ctest-vn4-61135125', 'tenant_id': 'cba1c7a59f074445a1e90840064c8450', 'project_id': 'cba1c7a59f074445a1e90840064c8450', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['0aa5afb9-8b7e-4cb5-b402-bee74f916deb', '29b5fa13-d669-499a-bb72-36efdf609376'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07430575', 'ctest-vn4-61135125'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07430575', 'ctest-policy1-19477447']], 'subnet_ipam': [{'subnet_cidr': '204.75.160.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a88:53ae:3447:4881:9532:1b1f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-17 20:09:20,280 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-17 20:09:20,597 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-17 20:09:20,628 - DEBUG - Requesting: http://10.0.0.177:8082/domain/ebb8758f-1fba-4261-835d-cb5b5294da24 2026-11-17 20:09:20,641 - DEBUG - Requesting: http://10.0.0.177:8082/project/cba1c7a5-9f07-4445-a1e9-0840064c8450 2026-11-17 20:09:20,713 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/0ba386bb-270a-4422-849c-83da4aae9d1c 2026-11-17 20:09:20,724 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/0ba386bb-270a-4422-849c-83da4aae9d1c 2026-11-17 20:09:20,733 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/c54ffc27-2192-4dd6-b246-4281d2a4866c 2026-11-17 20:09:20,740 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/c54ffc27-2192-4dd6-b246-4281d2a4866c 2026-11-17 20:09:20,747 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/a4700969-b8f5-46a6-ab85-7878a622a794 2026-11-17 20:09:20,755 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-17 20:09:20,755 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/0ba386bb-270a-4422-849c-83da4aae9d1c 2026-11-17 20:09:20,764 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/c54ffc27-2192-4dd6-b246-4281d2a4866c 2026-11-17 20:09:20,779 - INFO - Verified VN network id 12 for VN 0ba386bb-270a-4422-849c-83da4aae9d1c 2026-11-17 20:09:20,779 - INFO - Verifications in API Server for VN ctest-vn4-61135125 passed 2026-11-17 20:09:20,779 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/0ba386bb-270a-4422-849c-83da4aae9d1c 2026-11-17 20:09:20,789 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/c54ffc27-2192-4dd6-b246-4281d2a4866c 2026-11-17 20:09:20,795 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/c54ffc27-2192-4dd6-b246-4281d2a4866c 2026-11-17 20:09:20,801 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/a4700969-b8f5-46a6-ab85-7878a622a794 2026-11-17 20:09:20,814 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07430575:ctest-vn4-61135125', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-07430575', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '838662093993034786', 'uuid-lslong': '9555657482952416540'}, 'enable': 'true', 'created': '2026-11-17T20:09:19', 'last-modified': '2026-11-17T20:09:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.725242'} 2026-11-17 20:09:20,822 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-17 20:09:20,822 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-61135125 passed 2026-11-17 20:09:20,822 - DEBUG - ====Verifying policy data for ctest-vn4-61135125 in API_Server ====== 2026-11-17 20:09:20,823 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-17 20:09:20,829 - DEBUG - Requesting: http://10.0.0.177:8082/domain/ebb8758f-1fba-4261-835d-cb5b5294da24 2026-11-17 20:09:20,839 - DEBUG - Requesting: http://10.0.0.177:8082/project/cba1c7a5-9f07-4445-a1e9-0840064c8450 2026-11-17 20:09:20,904 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/0ba386bb-270a-4422-849c-83da4aae9d1c 2026-11-17 20:09:20,913 - DEBUG - ==>Verifying data for policy with id: 9e561947-6a97-4dfd-9698-4fbf0742157b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-07430575', 'ctest-policy1-19477447'] 2026-11-17 20:09:20,913 - INFO - VN ctest-vn4-61135125 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-17 20:09:20,913 - DEBUG - Verifying the vn in opserver 2026-11-17 20:09:20,913 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07430575:ctest-vn4-61135125 virtual network link through opserver 10.0.0.177 2026-11-17 20:09:20,913 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-11-17 20:09:21,228 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks 2026-11-17 20:09:21,283 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07430575:ctest-vn4-61135125', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07430575:ctest-vn4-61135125?flat'} 2026-11-17 20:09:21,283 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-07430575:ctest-vn4-61135125 is found in opserver 2026-11-17 20:09:21,293 - DEBUG - Do not have enough data to verify VN in agent 2026-11-17 20:09:21,298 - DEBUG - VRF ids for VN ctest-vn4-61135125: {} 2026-11-17 20:09:21,299 - DEBUG - ====Verifying data for ctest-policy1-19477447 in API_Server ====== 2026-11-17 20:09:21,299 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-17 20:09:21,305 - DEBUG - Requesting: http://10.0.0.177:8082/domain/ebb8758f-1fba-4261-835d-cb5b5294da24 2026-11-17 20:09:21,317 - DEBUG - Requesting: http://10.0.0.177:8082/project/cba1c7a5-9f07-4445-a1e9-0840064c8450 2026-11-17 20:09:21,392 - DEBUG - Requesting: http://10.0.0.177:8082/network-policy/9e561947-6a97-4dfd-9698-4fbf0742157b 2026-11-17 20:09:21,400 - INFO - Verified policy ctest-policy1-19477447 in API Server, Result: True 2026-11-17 20:09:21,400 - INFO - Done with setup and verification, moving onto test .. 2026-11-17 20:09:21,408 - INFO - Deleting VN ctest-vn4-61135125 2026-11-17 20:09:21,520 - DEBUG - Response for deleting network () 2026-11-17 20:09:21,520 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/c54ffc27-2192-4dd6-b246-4281d2a4866c 2026-11-17 20:09:21,525 - DEBUG - Response Code: 404 2026-11-17 20:09:21,525 - DEBUG - Requesting: http://10.0.0.177:8082/domains 2026-11-17 20:09:21,531 - DEBUG - Requesting: http://10.0.0.177:8082/domain/ebb8758f-1fba-4261-835d-cb5b5294da24 2026-11-17 20:09:21,584 - DEBUG - Requesting: http://10.0.0.177:8082/project/cba1c7a5-9f07-4445-a1e9-0840064c8450 2026-11-17 20:09:21,653 - INFO - Validated that VN ctest-vn4-61135125 is not found in API Server 2026-11-17 20:09:21,663 - DEBUG - VN ctest-vn4-61135125 is not present in Agent 10.0.0.177 2026-11-17 20:09:21,663 - INFO - Validated that VN ctest-vn4-61135125 is not in any agent 2026-11-17 20:09:21,676 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-61135125 info 2026-11-17 20:09:21,699 - INFO - Deleted policy ctest-policy1-19477447 2026-11-17 20:09:21,876 - DEBUG - policy ctest-policy1-19477447 is not found in API Server 2026-11-17 20:09:22,145 - DEBUG - No XMPP flaps were noticed during the test
2026-11-17 20:09:22,145 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-11-17 20:09:22,145 - INFO - -------------------------------------------------------------------------------- 2026-11-17 20:09:22,425 - DEBUG - No XMPP flaps were noticed during the test
2026-11-17 20:09:22,425 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-11-17 20:09:22,425 - INFO - -------------------------------------------------------------------------------- 2026-11-17 20:09:23,172 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-07430575, ID : cba1c7a5-9f07-4445-a1e9-0840064c8450