2026-06-15 15:37:09,926 - INFO - Domain Default found not creating 2026-06-15 15:37:10,052 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-61206235 not found, creating it 2026-06-15 15:37:10,511 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-61206235, ID : 9677e3b8-0dbf-46ca-9ad7-19c63d8a7deb 2026-06-15 15:37:11,921 - INFO - ================================================================================ 2026-06-15 15:37:11,921 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 15:37:12,180 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-06-15 15:37:12,180 - INFO - Initial checks done. Running the testcase now 2026-06-15 15:37:12,180 - INFO - 2026-06-15 15:37:12,181 - INFO - ================================================================================ 2026-06-15 15:37:12,181 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-15 15:37:12,181 - 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-06-15 15:37:12,484 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-06-15 15:37:12,484 - INFO - Initial checks done. Running the testcase now 2026-06-15 15:37:12,485 - INFO - 2026-06-15 15:37:12,848 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61206235:ctest-vn4-59455438, 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-61206235:ctest-vn4-59455438, 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-61206235:ctest-vn4-59455438, 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-61206235:ctest-vn4-59455438, 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-06-15 15:37:13,321 - DEBUG - Response for create_network : {'network': {'id': '60762652-b6e6-479b-88d5-53132b2508d2', 'name': 'ctest-vn4-59455438', 'tenant_id': '9677e3b80dbf46ca9ad719c63d8a7deb', 'project_id': '9677e3b80dbf46ca9ad719c63d8a7deb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61206235', 'ctest-vn4-59455438'], 'port_security_enabled': True, 'description': ''}} 2026-06-15 15:37:13,474 - DEBUG - Response for create_subnet : {'subnet': {'id': '86363077-c4e1-4c28-bc66-d3907b3ab419', 'name': '', 'tenant_id': '9677e3b80dbf46ca9ad719c63d8a7deb', 'network_id': '60762652-b6e6-479b-88d5-53132b2508d2', 'ip_version': 4, 'cidr': '63.180.35.64/26', 'allocation_pools': [{'start': '63.180.35.66', 'end': '63.180.35.126'}], 'gateway_ip': '63.180.35.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.180.35.66', 'tags': [], 'project_id': '9677e3b80dbf46ca9ad719c63d8a7deb'}} 2026-06-15 15:37:13,618 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd56dfdf-7b78-4354-a8e5-7f3f20ea2179', 'name': '', 'tenant_id': '9677e3b80dbf46ca9ad719c63d8a7deb', 'network_id': '60762652-b6e6-479b-88d5-53132b2508d2', 'ip_version': 6, 'cidr': '23a4:7bce:307b:451b:9a01:9064::/96', 'allocation_pools': [{'start': '23a4:7bce:307b:451b:9a01:9064:0:2', 'end': '23a4:7bce:307b:451b:9a01:9064:ffff:fffe'}], 'gateway_ip': '23a4:7bce:307b:451b:9a01:9064:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23a4:7bce:307b:451b:9a01:9064:0:2', 'tags': [], 'project_id': '9677e3b80dbf46ca9ad719c63d8a7deb'}} 2026-06-15 15:37:13,632 - INFO - Created VN ctest-vn4-59455438 2026-06-15 15:37:13,684 - DEBUG - VN ctest-vn4-59455438 UUID is 60762652-b6e6-479b-88d5-53132b2508d2 2026-06-15 15:37:13,863 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60762652-b6e6-479b-88d5-53132b2508d2', 'name': 'ctest-vn4-59455438', 'tenant_id': '9677e3b80dbf46ca9ad719c63d8a7deb', 'project_id': '9677e3b80dbf46ca9ad719c63d8a7deb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['86363077-c4e1-4c28-bc66-d3907b3ab419', 'fd56dfdf-7b78-4354-a8e5-7f3f20ea2179'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61206235', 'ctest-vn4-59455438'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61206235', 'ctest-policy1-23512984']], 'subnet_ipam': [{'subnet_cidr': '63.180.35.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '23a4:7bce:307b:451b:9a01:9064::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-15 15:37:14,032 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-15 15:37:14,353 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-15 15:37:14,378 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4a24425a-a161-4aa9-b856-d28183fe9109 2026-06-15 15:37:14,388 - DEBUG - Requesting: http://10.0.0.38:8082/project/9677e3b8-0dbf-46ca-9ad7-19c63d8a7deb 2026-06-15 15:37:14,458 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60762652-b6e6-479b-88d5-53132b2508d2 2026-06-15 15:37:14,467 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60762652-b6e6-479b-88d5-53132b2508d2 2026-06-15 15:37:14,475 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/64cd9b38-4f7a-46b9-bf7d-8cb5bd55de4f 2026-06-15 15:37:14,480 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/64cd9b38-4f7a-46b9-bf7d-8cb5bd55de4f 2026-06-15 15:37:14,485 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/67a35e38-5cb3-4296-a7c4-04ff326d7b24 2026-06-15 15:37:14,489 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 15:37:14,489 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60762652-b6e6-479b-88d5-53132b2508d2 2026-06-15 15:37:14,496 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/64cd9b38-4f7a-46b9-bf7d-8cb5bd55de4f 2026-06-15 15:37:14,506 - INFO - Verified VN network id 11 for VN 60762652-b6e6-479b-88d5-53132b2508d2 2026-06-15 15:37:14,506 - INFO - Verifications in API Server for VN ctest-vn4-59455438 passed 2026-06-15 15:37:14,506 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60762652-b6e6-479b-88d5-53132b2508d2 2026-06-15 15:37:14,513 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/64cd9b38-4f7a-46b9-bf7d-8cb5bd55de4f 2026-06-15 15:37:14,518 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/64cd9b38-4f7a-46b9-bf7d-8cb5bd55de4f 2026-06-15 15:37:14,523 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/67a35e38-5cb3-4296-a7c4-04ff326d7b24 2026-06-15 15:37:14,531 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61206235:ctest-vn4-59455438', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-61206235', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6950785211590657947', 'uuid-lslong': '9859878300990900434'}, 'enable': 'true', 'created': '2026-06-15T15:37:13', 'last-modified': '2026-06-15T15:37:13', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.696535'} 2026-06-15 15:37:14,536 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-15 15:37:14,536 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-59455438 passed 2026-06-15 15:37:14,537 - DEBUG - ====Verifying policy data for ctest-vn4-59455438 in API_Server ====== 2026-06-15 15:37:14,537 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-15 15:37:14,541 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4a24425a-a161-4aa9-b856-d28183fe9109 2026-06-15 15:37:14,548 - DEBUG - Requesting: http://10.0.0.38:8082/project/9677e3b8-0dbf-46ca-9ad7-19c63d8a7deb 2026-06-15 15:37:14,614 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60762652-b6e6-479b-88d5-53132b2508d2 2026-06-15 15:37:14,622 - DEBUG - ==>Verifying data for policy with id: c9b34a04-60be-419f-bac8-eb4c047774b0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61206235', 'ctest-policy1-23512984'] 2026-06-15 15:37:14,622 - INFO - VN ctest-vn4-59455438 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-15 15:37:14,622 - DEBUG - Verifying the vn in opserver 2026-06-15 15:37:14,623 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61206235:ctest-vn4-59455438 virtual network link through opserver 10.0.0.38 2026-06-15 15:37:14,623 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-15 15:37:14,941 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-15 15:37:14,984 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61206235:ctest-vn4-59455438', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61206235:ctest-vn4-59455438?flat'} 2026-06-15 15:37:14,985 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61206235:ctest-vn4-59455438 is found in opserver 2026-06-15 15:37:14,993 - DEBUG - Do not have enough data to verify VN in agent 2026-06-15 15:37:14,996 - DEBUG - VRF ids for VN ctest-vn4-59455438: {} 2026-06-15 15:37:14,997 - DEBUG - ====Verifying data for ctest-policy1-23512984 in API_Server ====== 2026-06-15 15:37:14,997 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-15 15:37:15,001 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4a24425a-a161-4aa9-b856-d28183fe9109 2026-06-15 15:37:15,011 - DEBUG - Requesting: http://10.0.0.38:8082/project/9677e3b8-0dbf-46ca-9ad7-19c63d8a7deb 2026-06-15 15:37:15,076 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/c9b34a04-60be-419f-bac8-eb4c047774b0 2026-06-15 15:37:15,084 - INFO - Verified policy ctest-policy1-23512984 in API Server, Result: True 2026-06-15 15:37:15,084 - INFO - Done with setup and verification, moving onto test .. 2026-06-15 15:37:15,090 - INFO - Deleting VN ctest-vn4-59455438 2026-06-15 15:37:15,187 - DEBUG - Response for deleting network () 2026-06-15 15:37:15,187 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/64cd9b38-4f7a-46b9-bf7d-8cb5bd55de4f 2026-06-15 15:37:15,191 - DEBUG - Response Code: 404 2026-06-15 15:37:15,191 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-15 15:37:15,195 - DEBUG - Requesting: http://10.0.0.38:8082/domain/4a24425a-a161-4aa9-b856-d28183fe9109 2026-06-15 15:37:15,244 - DEBUG - Requesting: http://10.0.0.38:8082/project/9677e3b8-0dbf-46ca-9ad7-19c63d8a7deb 2026-06-15 15:37:15,310 - INFO - Validated that VN ctest-vn4-59455438 is not found in API Server 2026-06-15 15:37:15,318 - DEBUG - VN ctest-vn4-59455438 is not present in Agent 10.0.0.38 2026-06-15 15:37:15,318 - INFO - Validated that VN ctest-vn4-59455438 is not in any agent 2026-06-15 15:37:15,328 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-59455438 info 2026-06-15 15:37:15,348 - INFO - Deleted policy ctest-policy1-23512984 2026-06-15 15:37:15,516 - DEBUG - policy ctest-policy1-23512984 is not found in API Server 2026-06-15 15:37:15,769 - DEBUG - No XMPP flaps were noticed during the test 2026-06-15 15:37:15,769 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-06-15 15:37:15,769 - INFO - -------------------------------------------------------------------------------- 2026-06-15 15:37:16,056 - DEBUG - No XMPP flaps were noticed during the test 2026-06-15 15:37:16,056 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-06-15 15:37:16,056 - INFO - -------------------------------------------------------------------------------- 2026-06-15 15:37:16,747 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-61206235, ID : 9677e3b8-0dbf-46ca-9ad7-19c63d8a7deb