2026-08-21 07:50:14,170 - INFO - Domain Default found not creating 2026-08-21 07:50:14,348 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74006102 not found, creating it 2026-08-21 07:50:14,863 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74006102, ID : 239de52d-fbe4-4bc1-8bf0-51e6543b169b 2026-08-21 07:50:16,665 - INFO - ================================================================================ 2026-08-21 07:50:16,665 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-21 07:50:16,943 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-08-21 07:50:16,943 - INFO - Initial checks done. Running the testcase now 2026-08-21 07:50:16,943 - INFO - 2026-08-21 07:50:16,944 - INFO - ================================================================================ 2026-08-21 07:50:16,944 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-21 07:50:16,944 - 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-21 07:50:17,244 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-08-21 07:50:17,244 - INFO - Initial checks done. Running the testcase now 2026-08-21 07:50:17,244 - INFO - 2026-08-21 07:50:17,683 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74006102:ctest-vn4-17991164, 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-74006102:ctest-vn4-17991164, 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-74006102:ctest-vn4-17991164, 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-74006102:ctest-vn4-17991164, 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-21 07:50:18,240 - DEBUG - Response for create_network : {'network': {'id': '3b26bd45-6e9e-4f1e-96fc-177500c291f8', 'name': 'ctest-vn4-17991164', 'tenant_id': '239de52dfbe44bc18bf051e6543b169b', 'project_id': '239de52dfbe44bc18bf051e6543b169b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74006102', 'ctest-vn4-17991164'], 'port_security_enabled': True, 'description': ''}} 2026-08-21 07:50:18,493 - DEBUG - Response for create_subnet : {'subnet': {'id': '374851f5-dc5c-4bf7-ba8a-f94b4e09ec70', 'name': '', 'tenant_id': '239de52dfbe44bc18bf051e6543b169b', 'network_id': '3b26bd45-6e9e-4f1e-96fc-177500c291f8', 'ip_version': 4, 'cidr': '116.14.25.128/26', 'allocation_pools': [{'start': '116.14.25.130', 'end': '116.14.25.190'}], 'gateway_ip': '116.14.25.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '116.14.25.130', 'tags': [], 'project_id': '239de52dfbe44bc18bf051e6543b169b'}} 2026-08-21 07:50:18,679 - DEBUG - Response for create_subnet : {'subnet': {'id': '37e534ec-d4a7-4834-8e09-0dba2a8284c4', 'name': '', 'tenant_id': '239de52dfbe44bc18bf051e6543b169b', 'network_id': '3b26bd45-6e9e-4f1e-96fc-177500c291f8', 'ip_version': 6, 'cidr': '3e26:74f7:44ca:47d3:7c63:c00e::/96', 'allocation_pools': [{'start': '3e26:74f7:44ca:47d3:7c63:c00e:0:2', 'end': '3e26:74f7:44ca:47d3:7c63:c00e:ffff:fffe'}], 'gateway_ip': '3e26:74f7:44ca:47d3:7c63:c00e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e26:74f7:44ca:47d3:7c63:c00e:0:2', 'tags': [], 'project_id': '239de52dfbe44bc18bf051e6543b169b'}} 2026-08-21 07:50:18,705 - INFO - Created VN ctest-vn4-17991164 2026-08-21 07:50:18,763 - DEBUG - VN ctest-vn4-17991164 UUID is 3b26bd45-6e9e-4f1e-96fc-177500c291f8 2026-08-21 07:50:19,004 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3b26bd45-6e9e-4f1e-96fc-177500c291f8', 'name': 'ctest-vn4-17991164', 'tenant_id': '239de52dfbe44bc18bf051e6543b169b', 'project_id': '239de52dfbe44bc18bf051e6543b169b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['374851f5-dc5c-4bf7-ba8a-f94b4e09ec70', '37e534ec-d4a7-4834-8e09-0dba2a8284c4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74006102', 'ctest-vn4-17991164'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74006102', 'ctest-policy1-68154578']], 'subnet_ipam': [{'subnet_cidr': '116.14.25.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e26:74f7:44ca:47d3:7c63:c00e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-21 07:50:19,179 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-21 07:50:19,555 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-21 07:50:19,586 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60d402e1-d2ef-4e3a-b843-c1f3f8e7dbbe 2026-08-21 07:50:19,602 - DEBUG - Requesting: http://10.0.0.38:8082/project/239de52d-fbe4-4bc1-8bf0-51e6543b169b 2026-08-21 07:50:19,682 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3b26bd45-6e9e-4f1e-96fc-177500c291f8 2026-08-21 07:50:19,698 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3b26bd45-6e9e-4f1e-96fc-177500c291f8 2026-08-21 07:50:19,710 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fdd0d750-cb98-45a7-a3a3-230c140aecd9 2026-08-21 07:50:19,718 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fdd0d750-cb98-45a7-a3a3-230c140aecd9 2026-08-21 07:50:19,726 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ddeec1e2-e834-4151-aa34-6247de88effb 2026-08-21 07:50:19,735 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-21 07:50:19,735 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3b26bd45-6e9e-4f1e-96fc-177500c291f8 2026-08-21 07:50:19,747 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fdd0d750-cb98-45a7-a3a3-230c140aecd9 2026-08-21 07:50:19,768 - INFO - Verified VN network id 12 for VN 3b26bd45-6e9e-4f1e-96fc-177500c291f8 2026-08-21 07:50:19,768 - INFO - Verifications in API Server for VN ctest-vn4-17991164 passed 2026-08-21 07:50:19,768 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3b26bd45-6e9e-4f1e-96fc-177500c291f8 2026-08-21 07:50:19,780 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fdd0d750-cb98-45a7-a3a3-230c140aecd9 2026-08-21 07:50:19,789 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fdd0d750-cb98-45a7-a3a3-230c140aecd9 2026-08-21 07:50:19,799 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ddeec1e2-e834-4151-aa34-6247de88effb 2026-08-21 07:50:19,817 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74006102:ctest-vn4-17991164', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74006102', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4262302203259014942', 'uuid-lslong': '10879596591111639544'}, 'enable': 'true', 'created': '2026-08-21T07:50:18', 'last-modified': '2026-08-21T07:50:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.858519'} 2026-08-21 07:50:19,827 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-21 07:50:19,827 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-17991164 passed 2026-08-21 07:50:19,828 - DEBUG - ====Verifying policy data for ctest-vn4-17991164 in API_Server ====== 2026-08-21 07:50:19,828 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-21 07:50:19,835 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60d402e1-d2ef-4e3a-b843-c1f3f8e7dbbe 2026-08-21 07:50:19,848 - DEBUG - Requesting: http://10.0.0.38:8082/project/239de52d-fbe4-4bc1-8bf0-51e6543b169b 2026-08-21 07:50:19,931 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3b26bd45-6e9e-4f1e-96fc-177500c291f8 2026-08-21 07:50:19,943 - DEBUG - ==>Verifying data for policy with id: f640fc7f-413d-42a1-9e93-079ca081ae5f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74006102', 'ctest-policy1-68154578'] 2026-08-21 07:50:19,943 - INFO - VN ctest-vn4-17991164 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-21 07:50:19,943 - DEBUG - Verifying the vn in opserver 2026-08-21 07:50:19,943 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74006102:ctest-vn4-17991164 virtual network link through opserver 10.0.0.38 2026-08-21 07:50:19,943 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-21 07:50:20,309 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-08-21 07:50:20,370 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74006102:ctest-vn4-17991164', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74006102:ctest-vn4-17991164?flat'} 2026-08-21 07:50:20,370 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74006102:ctest-vn4-17991164 is found in opserver 2026-08-21 07:50:20,382 - DEBUG - Do not have enough data to verify VN in agent 2026-08-21 07:50:20,388 - DEBUG - VRF ids for VN ctest-vn4-17991164: {} 2026-08-21 07:50:20,389 - DEBUG - ====Verifying data for ctest-policy1-68154578 in API_Server ====== 2026-08-21 07:50:20,389 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-21 07:50:20,396 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60d402e1-d2ef-4e3a-b843-c1f3f8e7dbbe 2026-08-21 07:50:20,407 - DEBUG - Requesting: http://10.0.0.38:8082/project/239de52d-fbe4-4bc1-8bf0-51e6543b169b 2026-08-21 07:50:20,486 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/f640fc7f-413d-42a1-9e93-079ca081ae5f 2026-08-21 07:50:20,498 - INFO - Verified policy ctest-policy1-68154578 in API Server, Result: True 2026-08-21 07:50:20,498 - INFO - Done with setup and verification, moving onto test .. 2026-08-21 07:50:20,508 - INFO - Deleting VN ctest-vn4-17991164 2026-08-21 07:50:20,669 - DEBUG - Response for deleting network () 2026-08-21 07:50:20,669 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/fdd0d750-cb98-45a7-a3a3-230c140aecd9 2026-08-21 07:50:20,676 - DEBUG - Response Code: 404 2026-08-21 07:50:20,676 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-08-21 07:50:20,690 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60d402e1-d2ef-4e3a-b843-c1f3f8e7dbbe 2026-08-21 07:50:20,722 - DEBUG - Requesting: http://10.0.0.38:8082/project/239de52d-fbe4-4bc1-8bf0-51e6543b169b 2026-08-21 07:50:20,835 - INFO - Validated that VN ctest-vn4-17991164 is not found in API Server 2026-08-21 07:50:20,850 - DEBUG - VN ctest-vn4-17991164 is not present in Agent 10.0.0.38 2026-08-21 07:50:20,850 - INFO - Validated that VN ctest-vn4-17991164 is not in any agent 2026-08-21 07:50:20,871 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-17991164 info 2026-08-21 07:50:20,926 - INFO - Deleted policy ctest-policy1-68154578 2026-08-21 07:50:21,154 - DEBUG - policy ctest-policy1-68154578 is not found in API Server 2026-08-21 07:50:21,428 - DEBUG - No XMPP flaps were noticed during the test