2026-09-16 15:36:16,597 - INFO - Domain Default found not creating 2026-09-16 15:36:16,758 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43489839 not found, creating it 2026-09-16 15:36:17,262 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43489839, ID : 19efdb3a-8764-40f4-8368-5595ede72f5e 2026-09-16 15:36:18,846 - INFO - ================================================================================ 2026-09-16 15:36:18,846 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-16 15:36:19,111 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.17': '0'}} with 2026-09-16 15:36:19,111 - INFO - Initial checks done. Running the testcase now 2026-09-16 15:36:19,111 - INFO - 2026-09-16 15:36:19,111 - INFO - ================================================================================ 2026-09-16 15:36:19,111 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-16 15:36:19,111 - 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-09-16 15:36:19,415 - DEBUG - Nothing to compare xmpp stats {'10.0.0.189': {'10.20.0.17': '0'}} with 2026-09-16 15:36:19,415 - INFO - Initial checks done. Running the testcase now 2026-09-16 15:36:19,415 - INFO - 2026-09-16 15:36:19,806 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43489839:ctest-vn4-81957322, 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-43489839:ctest-vn4-81957322, 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-43489839:ctest-vn4-81957322, 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-43489839:ctest-vn4-81957322, 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-09-16 15:36:20,350 - DEBUG - Response for create_network : {'network': {'id': 'b37a4eb2-1384-4802-9b84-c7f6ac206576', 'name': 'ctest-vn4-81957322', 'tenant_id': '19efdb3a876440f483685595ede72f5e', 'project_id': '19efdb3a876440f483685595ede72f5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43489839', 'ctest-vn4-81957322'], 'port_security_enabled': True, 'description': ''}} 2026-09-16 15:36:20,579 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af2e1619-2a6f-4733-bca1-64be944b9457', 'name': '', 'tenant_id': '19efdb3a876440f483685595ede72f5e', 'network_id': 'b37a4eb2-1384-4802-9b84-c7f6ac206576', 'ip_version': 4, 'cidr': '142.25.191.128/26', 'allocation_pools': [{'start': '142.25.191.130', 'end': '142.25.191.190'}], 'gateway_ip': '142.25.191.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '142.25.191.130', 'tags': [], 'project_id': '19efdb3a876440f483685595ede72f5e'}} 2026-09-16 15:36:20,734 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1582303-d57e-4f90-b792-c6cd4278b9dc', 'name': '', 'tenant_id': '19efdb3a876440f483685595ede72f5e', 'network_id': 'b37a4eb2-1384-4802-9b84-c7f6ac206576', 'ip_version': 6, 'cidr': '3054:5a5c:22ef:1ffe:d607:34c0::/96', 'allocation_pools': [{'start': '3054:5a5c:22ef:1ffe:d607:34c0:0:2', 'end': '3054:5a5c:22ef:1ffe:d607:34c0:ffff:fffe'}], 'gateway_ip': '3054:5a5c:22ef:1ffe:d607:34c0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3054:5a5c:22ef:1ffe:d607:34c0:0:2', 'tags': [], 'project_id': '19efdb3a876440f483685595ede72f5e'}} 2026-09-16 15:36:20,753 - INFO - Created VN ctest-vn4-81957322 2026-09-16 15:36:20,808 - DEBUG - VN ctest-vn4-81957322 UUID is b37a4eb2-1384-4802-9b84-c7f6ac206576 2026-09-16 15:36:21,009 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b37a4eb2-1384-4802-9b84-c7f6ac206576', 'name': 'ctest-vn4-81957322', 'tenant_id': '19efdb3a876440f483685595ede72f5e', 'project_id': '19efdb3a876440f483685595ede72f5e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['af2e1619-2a6f-4733-bca1-64be944b9457', 'c1582303-d57e-4f90-b792-c6cd4278b9dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43489839', 'ctest-vn4-81957322'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43489839', 'ctest-policy1-56229307']], 'subnet_ipam': [{'subnet_cidr': '142.25.191.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3054:5a5c:22ef:1ffe:d607:34c0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-16 15:36:21,176 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-16 15:36:21,504 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-16 15:36:21,532 - DEBUG - Requesting: http://10.0.0.189:8082/domain/412d5f52-2c16-4d8c-8608-f2d15b01fc58 2026-09-16 15:36:21,544 - DEBUG - Requesting: http://10.0.0.189:8082/project/19efdb3a-8764-40f4-8368-5595ede72f5e 2026-09-16 15:36:21,619 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/b37a4eb2-1384-4802-9b84-c7f6ac206576 2026-09-16 15:36:21,630 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/b37a4eb2-1384-4802-9b84-c7f6ac206576 2026-09-16 15:36:21,639 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0adf4df3-e4e5-49fa-8031-c291c322e8d1 2026-09-16 15:36:21,646 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0adf4df3-e4e5-49fa-8031-c291c322e8d1 2026-09-16 15:36:21,652 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/d1d53a22-e970-48e9-b213-5330030cec1c 2026-09-16 15:36:21,658 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-16 15:36:21,658 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/b37a4eb2-1384-4802-9b84-c7f6ac206576 2026-09-16 15:36:21,667 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0adf4df3-e4e5-49fa-8031-c291c322e8d1 2026-09-16 15:36:21,680 - INFO - Verified VN network id 12 for VN b37a4eb2-1384-4802-9b84-c7f6ac206576 2026-09-16 15:36:21,680 - INFO - Verifications in API Server for VN ctest-vn4-81957322 passed 2026-09-16 15:36:21,680 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/b37a4eb2-1384-4802-9b84-c7f6ac206576 2026-09-16 15:36:21,689 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0adf4df3-e4e5-49fa-8031-c291c322e8d1 2026-09-16 15:36:21,696 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0adf4df3-e4e5-49fa-8031-c291c322e8d1 2026-09-16 15:36:21,702 - DEBUG - Requesting: http://10.0.0.189:8082/route-target/d1d53a22-e970-48e9-b213-5330030cec1c 2026-09-16 15:36:21,714 - DEBUG - Control-node 10.0.0.189 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43489839:ctest-vn4-81957322', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43489839', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12932735806686382082', 'uuid-lslong': '11206301635068323190'}, 'enable': 'true', 'created': '2026-09-16T15:36:20', 'last-modified': '2026-09-16T15:36:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.741528'} 2026-09-16 15:36:21,722 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-16 15:36:21,722 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-81957322 passed 2026-09-16 15:36:21,722 - DEBUG - ====Verifying policy data for ctest-vn4-81957322 in API_Server ====== 2026-09-16 15:36:21,722 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-16 15:36:21,729 - DEBUG - Requesting: http://10.0.0.189:8082/domain/412d5f52-2c16-4d8c-8608-f2d15b01fc58 2026-09-16 15:36:21,740 - DEBUG - Requesting: http://10.0.0.189:8082/project/19efdb3a-8764-40f4-8368-5595ede72f5e 2026-09-16 15:36:21,814 - DEBUG - Requesting: http://10.0.0.189:8082/virtual-network/b37a4eb2-1384-4802-9b84-c7f6ac206576 2026-09-16 15:36:21,826 - DEBUG - ==>Verifying data for policy with id: 77950424-6cb6-4170-ac71-18994bac1d56, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43489839', 'ctest-policy1-56229307'] 2026-09-16 15:36:21,826 - INFO - VN ctest-vn4-81957322 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-16 15:36:21,826 - DEBUG - Verifying the vn in opserver 2026-09-16 15:36:21,826 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43489839:ctest-vn4-81957322 virtual network link through opserver 10.0.0.189 2026-09-16 15:36:21,826 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-09-16 15:36:22,154 - DEBUG - Requesting: http://10.0.0.189:8081/analytics/uves/virtual-networks 2026-09-16 15:36:22,209 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43489839:ctest-vn4-81957322', 'href': 'http://10.0.0.189:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43489839:ctest-vn4-81957322?flat'} 2026-09-16 15:36:22,209 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43489839:ctest-vn4-81957322 is found in opserver 2026-09-16 15:36:22,219 - DEBUG - Do not have enough data to verify VN in agent 2026-09-16 15:36:22,225 - DEBUG - VRF ids for VN ctest-vn4-81957322: {} 2026-09-16 15:36:22,225 - DEBUG - ====Verifying data for ctest-policy1-56229307 in API_Server ====== 2026-09-16 15:36:22,225 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-16 15:36:22,232 - DEBUG - Requesting: http://10.0.0.189:8082/domain/412d5f52-2c16-4d8c-8608-f2d15b01fc58 2026-09-16 15:36:22,243 - DEBUG - Requesting: http://10.0.0.189:8082/project/19efdb3a-8764-40f4-8368-5595ede72f5e 2026-09-16 15:36:22,321 - DEBUG - Requesting: http://10.0.0.189:8082/network-policy/77950424-6cb6-4170-ac71-18994bac1d56 2026-09-16 15:36:22,333 - INFO - Verified policy ctest-policy1-56229307 in API Server, Result: True 2026-09-16 15:36:22,333 - INFO - Done with setup and verification, moving onto test .. 2026-09-16 15:36:22,342 - INFO - Deleting VN ctest-vn4-81957322 2026-09-16 15:36:22,482 - DEBUG - Response for deleting network () 2026-09-16 15:36:22,483 - DEBUG - Requesting: http://10.0.0.189:8082/routing-instance/0adf4df3-e4e5-49fa-8031-c291c322e8d1 2026-09-16 15:36:22,489 - DEBUG - Response Code: 404 2026-09-16 15:36:22,489 - DEBUG - Requesting: http://10.0.0.189:8082/domains 2026-09-16 15:36:22,495 - DEBUG - Requesting: http://10.0.0.189:8082/domain/412d5f52-2c16-4d8c-8608-f2d15b01fc58 2026-09-16 15:36:22,550 - DEBUG - Requesting: http://10.0.0.189:8082/project/19efdb3a-8764-40f4-8368-5595ede72f5e 2026-09-16 15:36:22,627 - INFO - Validated that VN ctest-vn4-81957322 is not found in API Server 2026-09-16 15:36:22,641 - DEBUG - VN ctest-vn4-81957322 is not present in Agent 10.0.0.189 2026-09-16 15:36:22,641 - INFO - Validated that VN ctest-vn4-81957322 is not in any agent 2026-09-16 15:36:22,659 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-81957322 info 2026-09-16 15:36:22,688 - INFO - Deleted policy ctest-policy1-56229307 2026-09-16 15:36:22,859 - DEBUG - policy ctest-policy1-56229307 is not found in API Server 2026-09-16 15:36:23,118 - DEBUG - No XMPP flaps were noticed during the test 2026-09-16 15:36:23,118 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-09-16 15:36:23,118 - INFO - -------------------------------------------------------------------------------- 2026-09-16 15:36:23,413 - DEBUG - No XMPP flaps were noticed during the test 2026-09-16 15:36:23,413 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-16 15:36:23,413 - INFO - -------------------------------------------------------------------------------- 2026-09-16 15:36:24,131 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-43489839, ID : 19efdb3a-8764-40f4-8368-5595ede72f5e