2026-08-25 14:54:33,108 - INFO - Domain Default found not creating 2026-08-25 14:54:33,286 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-79853208 not found, creating it 2026-08-25 14:54:33,776 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-79853208, ID : ed76c860-9de2-4ae3-be1b-5d98dbe08378 2026-08-25 14:54:35,501 - INFO - ================================================================================ 2026-08-25 14:54:35,501 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 14:54:35,772 - DEBUG - Nothing to compare xmpp stats {'10.0.0.188': {'10.20.0.17': '0'}} with 2026-08-25 14:54:35,772 - INFO - Initial checks done. Running the testcase now 2026-08-25 14:54:35,772 - INFO - 2026-08-25 14:54:35,772 - INFO - ================================================================================ 2026-08-25 14:54:35,772 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 14:54:35,772 - 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-08-25 14:54:36,081 - DEBUG - Nothing to compare xmpp stats {'10.0.0.188': {'10.20.0.17': '0'}} with 2026-08-25 14:54:36,081 - INFO - Initial checks done. Running the testcase now 2026-08-25 14:54:36,081 - INFO - 2026-08-25 14:54:36,502 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79853208:ctest-vn4-48362302, 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-79853208:ctest-vn4-48362302, 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-79853208:ctest-vn4-48362302, 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-79853208:ctest-vn4-48362302, 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-08-25 14:54:37,075 - DEBUG - Response for create_network : {'network': {'id': '4df7452a-24d3-49f1-968f-37ae28b041ff', 'name': 'ctest-vn4-48362302', 'tenant_id': 'ed76c8609de24ae3be1b5d98dbe08378', 'project_id': 'ed76c8609de24ae3be1b5d98dbe08378', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79853208', 'ctest-vn4-48362302'], 'port_security_enabled': True, 'description': ''}} 2026-08-25 14:54:37,306 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9123455-c119-4379-84f2-cd9712d9e512', 'name': '', 'tenant_id': 'ed76c8609de24ae3be1b5d98dbe08378', 'network_id': '4df7452a-24d3-49f1-968f-37ae28b041ff', 'ip_version': 4, 'cidr': '40.141.105.128/26', 'allocation_pools': [{'start': '40.141.105.130', 'end': '40.141.105.190'}], 'gateway_ip': '40.141.105.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.141.105.130', 'tags': [], 'project_id': 'ed76c8609de24ae3be1b5d98dbe08378'}} 2026-08-25 14:54:37,515 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c15bf0a-b6f8-4452-b2f6-e4fd4fbe7bec', 'name': '', 'tenant_id': 'ed76c8609de24ae3be1b5d98dbe08378', 'network_id': '4df7452a-24d3-49f1-968f-37ae28b041ff', 'ip_version': 6, 'cidr': '2529:48fd:295:cad7:cf3d:392f::/96', 'allocation_pools': [{'start': '2529:48fd:295:cad7:cf3d:392f:0:2', 'end': '2529:48fd:295:cad7:cf3d:392f:ffff:fffe'}], 'gateway_ip': '2529:48fd:295:cad7:cf3d:392f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2529:48fd:295:cad7:cf3d:392f:0:2', 'tags': [], 'project_id': 'ed76c8609de24ae3be1b5d98dbe08378'}} 2026-08-25 14:54:37,537 - INFO - Created VN ctest-vn4-48362302 2026-08-25 14:54:37,590 - DEBUG - VN ctest-vn4-48362302 UUID is 4df7452a-24d3-49f1-968f-37ae28b041ff 2026-08-25 14:54:37,815 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4df7452a-24d3-49f1-968f-37ae28b041ff', 'name': 'ctest-vn4-48362302', 'tenant_id': 'ed76c8609de24ae3be1b5d98dbe08378', 'project_id': 'ed76c8609de24ae3be1b5d98dbe08378', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['e9123455-c119-4379-84f2-cd9712d9e512', '7c15bf0a-b6f8-4452-b2f6-e4fd4fbe7bec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79853208', 'ctest-vn4-48362302'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79853208', 'ctest-policy1-50081522']], 'subnet_ipam': [{'subnet_cidr': '40.141.105.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2529:48fd:295:cad7:cf3d:392f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-25 14:54:37,982 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-08-25 14:54:38,321 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-08-25 14:54:38,359 - DEBUG - Requesting: http://10.0.0.188:8082/domain/85eb1517-a473-4f6e-94c4-9d8cee4881e7 2026-08-25 14:54:38,378 - DEBUG - Requesting: http://10.0.0.188:8082/project/ed76c860-9de2-4ae3-be1b-5d98dbe08378 2026-08-25 14:54:38,465 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/4df7452a-24d3-49f1-968f-37ae28b041ff 2026-08-25 14:54:38,481 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/4df7452a-24d3-49f1-968f-37ae28b041ff 2026-08-25 14:54:38,492 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/998b6e13-b1bb-4985-a731-e5816d4f615b 2026-08-25 14:54:38,501 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/998b6e13-b1bb-4985-a731-e5816d4f615b 2026-08-25 14:54:38,510 - DEBUG - Requesting: http://10.0.0.188:8082/route-target/e71a1ecb-100f-40ca-bba0-f438eb80fa77 2026-08-25 14:54:38,517 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-25 14:54:38,517 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/4df7452a-24d3-49f1-968f-37ae28b041ff 2026-08-25 14:54:38,530 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/998b6e13-b1bb-4985-a731-e5816d4f615b 2026-08-25 14:54:38,546 - INFO - Verified VN network id 12 for VN 4df7452a-24d3-49f1-968f-37ae28b041ff 2026-08-25 14:54:38,546 - INFO - Verifications in API Server for VN ctest-vn4-48362302 passed 2026-08-25 14:54:38,546 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/4df7452a-24d3-49f1-968f-37ae28b041ff 2026-08-25 14:54:38,558 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/998b6e13-b1bb-4985-a731-e5816d4f615b 2026-08-25 14:54:38,567 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/998b6e13-b1bb-4985-a731-e5816d4f615b 2026-08-25 14:54:38,577 - DEBUG - Requesting: http://10.0.0.188:8082/route-target/e71a1ecb-100f-40ca-bba0-f438eb80fa77 2026-08-25 14:54:38,593 - DEBUG - Control-node 10.0.0.188 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79853208:ctest-vn4-48362302', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-79853208', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5618035107476752881', 'uuid-lslong': '10848951248505291263'}, 'enable': 'true', 'created': '2026-08-25T14:54:37', 'last-modified': '2026-08-25T14:54:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.814640'} 2026-08-25 14:54:38,602 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-25 14:54:38,602 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-48362302 passed 2026-08-25 14:54:38,602 - DEBUG - ====Verifying policy data for ctest-vn4-48362302 in API_Server ====== 2026-08-25 14:54:38,603 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-08-25 14:54:38,610 - DEBUG - Requesting: http://10.0.0.188:8082/domain/85eb1517-a473-4f6e-94c4-9d8cee4881e7 2026-08-25 14:54:38,625 - DEBUG - Requesting: http://10.0.0.188:8082/project/ed76c860-9de2-4ae3-be1b-5d98dbe08378 2026-08-25 14:54:38,702 - DEBUG - Requesting: http://10.0.0.188:8082/virtual-network/4df7452a-24d3-49f1-968f-37ae28b041ff 2026-08-25 14:54:38,720 - DEBUG - ==>Verifying data for policy with id: a7bfffc1-6371-417c-884f-d633cba0cb7b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79853208', 'ctest-policy1-50081522'] 2026-08-25 14:54:38,720 - INFO - VN ctest-vn4-48362302 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-25 14:54:38,721 - DEBUG - Verifying the vn in opserver 2026-08-25 14:54:38,721 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79853208:ctest-vn4-48362302 virtual network link through opserver 10.0.0.188 2026-08-25 14:54:38,721 - DEBUG - Requesting: http://10.0.0.188:8081/analytics/uves/virtual-networks 2026-08-25 14:54:39,039 - DEBUG - Requesting: http://10.0.0.188:8081/analytics/uves/virtual-networks 2026-08-25 14:54:39,097 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79853208:ctest-vn4-48362302', 'href': 'http://10.0.0.188:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79853208:ctest-vn4-48362302?flat'} 2026-08-25 14:54:39,097 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79853208:ctest-vn4-48362302 is found in opserver 2026-08-25 14:54:39,112 - DEBUG - Do not have enough data to verify VN in agent 2026-08-25 14:54:39,118 - DEBUG - VRF ids for VN ctest-vn4-48362302: {} 2026-08-25 14:54:39,119 - DEBUG - ====Verifying data for ctest-policy1-50081522 in API_Server ====== 2026-08-25 14:54:39,119 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-08-25 14:54:39,126 - DEBUG - Requesting: http://10.0.0.188:8082/domain/85eb1517-a473-4f6e-94c4-9d8cee4881e7 2026-08-25 14:54:39,141 - DEBUG - Requesting: http://10.0.0.188:8082/project/ed76c860-9de2-4ae3-be1b-5d98dbe08378 2026-08-25 14:54:39,227 - DEBUG - Requesting: http://10.0.0.188:8082/network-policy/a7bfffc1-6371-417c-884f-d633cba0cb7b 2026-08-25 14:54:39,239 - INFO - Verified policy ctest-policy1-50081522 in API Server, Result: True 2026-08-25 14:54:39,240 - INFO - Done with setup and verification, moving onto test .. 2026-08-25 14:54:39,251 - INFO - Deleting VN ctest-vn4-48362302 2026-08-25 14:54:39,415 - DEBUG - Response for deleting network () 2026-08-25 14:54:39,415 - DEBUG - Requesting: http://10.0.0.188:8082/routing-instance/998b6e13-b1bb-4985-a731-e5816d4f615b 2026-08-25 14:54:39,421 - DEBUG - Response Code: 404 2026-08-25 14:54:39,422 - DEBUG - Requesting: http://10.0.0.188:8082/domains 2026-08-25 14:54:39,429 - DEBUG - Requesting: http://10.0.0.188:8082/domain/85eb1517-a473-4f6e-94c4-9d8cee4881e7 2026-08-25 14:54:39,488 - DEBUG - Requesting: http://10.0.0.188:8082/project/ed76c860-9de2-4ae3-be1b-5d98dbe08378 2026-08-25 14:54:39,569 - INFO - Validated that VN ctest-vn4-48362302 is not found in API Server 2026-08-25 14:54:39,582 - DEBUG - VN ctest-vn4-48362302 is not present in Agent 10.0.0.188 2026-08-25 14:54:39,582 - INFO - Validated that VN ctest-vn4-48362302 is not in any agent 2026-08-25 14:54:39,602 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-48362302 info 2026-08-25 14:54:39,641 - INFO - Deleted policy ctest-policy1-50081522 2026-08-25 14:54:39,822 - DEBUG - policy ctest-policy1-50081522 is not found in API Server 2026-08-25 14:54:40,091 - DEBUG - No XMPP flaps were noticed during the test
2026-08-25 14:54:40,091 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-08-25 14:54:40,091 - INFO - -------------------------------------------------------------------------------- 2026-08-25 14:54:40,383 - DEBUG - No XMPP flaps were noticed during the test
2026-08-25 14:54:40,383 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-08-25 14:54:40,383 - INFO - -------------------------------------------------------------------------------- 2026-08-25 14:54:41,133 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-79853208, ID : ed76c860-9de2-4ae3-be1b-5d98dbe08378