2026-02-16 17:18:20,229 - INFO - Domain Default found not creating 2026-02-16 17:18:20,398 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-78389276 not found, creating it 2026-02-16 17:18:20,839 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-78389276, ID : c7620579-9c8a-4907-a2ca-6a60474ad823 2026-02-16 17:18:22,300 - INFO - ================================================================================ 2026-02-16 17:18:22,300 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 17:18:22,553 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2026-02-16 17:18:22,553 - INFO - Initial checks done. Running the testcase now 2026-02-16 17:18:22,553 - INFO - 2026-02-16 17:18:22,553 - INFO - ================================================================================ 2026-02-16 17:18:22,554 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 17:18:22,554 - 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-02-16 17:18:22,841 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2026-02-16 17:18:22,841 - INFO - Initial checks done. Running the testcase now 2026-02-16 17:18:22,841 - INFO - 2026-02-16 17:18:23,202 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78389276:ctest-vn4-03665633, 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-78389276:ctest-vn4-03665633, 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-78389276:ctest-vn4-03665633, 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-78389276:ctest-vn4-03665633, 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-02-16 17:18:23,722 - DEBUG - Response for create_network : {'network': {'id': '0981cbdd-cefb-4954-af23-2d315bb8bf1a', 'name': 'ctest-vn4-03665633', 'tenant_id': 'c76205799c8a4907a2ca6a60474ad823', 'project_id': 'c76205799c8a4907a2ca6a60474ad823', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78389276', 'ctest-vn4-03665633'], 'port_security_enabled': True, 'description': ''}} 2026-02-16 17:18:23,946 - DEBUG - Response for create_subnet : {'subnet': {'id': '70d95226-517a-4bdc-9d1a-6393a7aa9825', 'name': '', 'tenant_id': 'c76205799c8a4907a2ca6a60474ad823', 'network_id': '0981cbdd-cefb-4954-af23-2d315bb8bf1a', 'ip_version': 4, 'cidr': '87.71.195.64/26', 'allocation_pools': [{'start': '87.71.195.66', 'end': '87.71.195.126'}], 'gateway_ip': '87.71.195.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.71.195.66', 'tags': [], 'project_id': 'c76205799c8a4907a2ca6a60474ad823'}} 2026-02-16 17:18:24,150 - DEBUG - Response for create_subnet : {'subnet': {'id': '188249b3-db2d-4be8-a3db-be510161cbdb', 'name': '', 'tenant_id': 'c76205799c8a4907a2ca6a60474ad823', 'network_id': '0981cbdd-cefb-4954-af23-2d315bb8bf1a', 'ip_version': 6, 'cidr': '333f:39e3:522b:7464:8424:11c2::/96', 'allocation_pools': [{'start': '333f:39e3:522b:7464:8424:11c2:0:2', 'end': '333f:39e3:522b:7464:8424:11c2:ffff:fffe'}], 'gateway_ip': '333f:39e3:522b:7464:8424:11c2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '333f:39e3:522b:7464:8424:11c2:0:2', 'tags': [], 'project_id': 'c76205799c8a4907a2ca6a60474ad823'}} 2026-02-16 17:18:24,169 - INFO - Created VN ctest-vn4-03665633 2026-02-16 17:18:24,219 - DEBUG - VN ctest-vn4-03665633 UUID is 0981cbdd-cefb-4954-af23-2d315bb8bf1a 2026-02-16 17:18:24,412 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0981cbdd-cefb-4954-af23-2d315bb8bf1a', 'name': 'ctest-vn4-03665633', 'tenant_id': 'c76205799c8a4907a2ca6a60474ad823', 'project_id': 'c76205799c8a4907a2ca6a60474ad823', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['70d95226-517a-4bdc-9d1a-6393a7aa9825', '188249b3-db2d-4be8-a3db-be510161cbdb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78389276', 'ctest-vn4-03665633'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78389276', 'ctest-policy1-25508049']], 'subnet_ipam': [{'subnet_cidr': '87.71.195.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '333f:39e3:522b:7464:8424:11c2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-16 17:18:24,575 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-16 17:18:24,870 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-16 17:18:24,905 - DEBUG - Requesting: http://10.0.0.33:8082/domain/eb1e21cf-e569-484e-95d7-2c8378541242 2026-02-16 17:18:24,918 - DEBUG - Requesting: http://10.0.0.33:8082/project/c7620579-9c8a-4907-a2ca-6a60474ad823 2026-02-16 17:18:24,990 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0981cbdd-cefb-4954-af23-2d315bb8bf1a 2026-02-16 17:18:25,002 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0981cbdd-cefb-4954-af23-2d315bb8bf1a 2026-02-16 17:18:25,011 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d4d4d4a4-7cac-4f8c-85b5-e97c30de57fd 2026-02-16 17:18:25,018 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d4d4d4a4-7cac-4f8c-85b5-e97c30de57fd 2026-02-16 17:18:25,024 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c55d0133-39ed-4346-9480-29d8bdf7e777 2026-02-16 17:18:25,030 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 17:18:25,030 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0981cbdd-cefb-4954-af23-2d315bb8bf1a 2026-02-16 17:18:25,038 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d4d4d4a4-7cac-4f8c-85b5-e97c30de57fd 2026-02-16 17:18:25,050 - INFO - Verified VN network id 11 for VN 0981cbdd-cefb-4954-af23-2d315bb8bf1a 2026-02-16 17:18:25,050 - INFO - Verifications in API Server for VN ctest-vn4-03665633 passed 2026-02-16 17:18:25,050 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0981cbdd-cefb-4954-af23-2d315bb8bf1a 2026-02-16 17:18:25,059 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d4d4d4a4-7cac-4f8c-85b5-e97c30de57fd 2026-02-16 17:18:25,066 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d4d4d4a4-7cac-4f8c-85b5-e97c30de57fd 2026-02-16 17:18:25,073 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c55d0133-39ed-4346-9480-29d8bdf7e777 2026-02-16 17:18:25,090 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78389276:ctest-vn4-03665633', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-78389276', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '685052771857811796', 'uuid-lslong': '12619980270837743386'}, 'enable': 'true', 'created': '2026-02-16T17:18:23', 'last-modified': '2026-02-16T17:18:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.704604'} 2026-02-16 17:18:25,097 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 17:18:25,097 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-03665633 passed 2026-02-16 17:18:25,097 - DEBUG - ====Verifying policy data for ctest-vn4-03665633 in API_Server ====== 2026-02-16 17:18:25,097 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-16 17:18:25,102 - DEBUG - Requesting: http://10.0.0.33:8082/domain/eb1e21cf-e569-484e-95d7-2c8378541242 2026-02-16 17:18:25,113 - DEBUG - Requesting: http://10.0.0.33:8082/project/c7620579-9c8a-4907-a2ca-6a60474ad823 2026-02-16 17:18:25,180 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/0981cbdd-cefb-4954-af23-2d315bb8bf1a 2026-02-16 17:18:25,190 - DEBUG - ==>Verifying data for policy with id: f8d431ec-5134-4c23-a856-b8a8954e07b0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-78389276', 'ctest-policy1-25508049'] 2026-02-16 17:18:25,190 - INFO - VN ctest-vn4-03665633 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-16 17:18:25,190 - DEBUG - Verifying the vn in opserver 2026-02-16 17:18:25,190 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78389276:ctest-vn4-03665633 virtual network link through opserver 10.0.0.33 2026-02-16 17:18:25,190 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-16 17:18:25,492 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-16 17:18:25,553 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78389276:ctest-vn4-03665633', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78389276:ctest-vn4-03665633?flat'} 2026-02-16 17:18:25,553 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-78389276:ctest-vn4-03665633 is found in opserver 2026-02-16 17:18:25,563 - DEBUG - Do not have enough data to verify VN in agent 2026-02-16 17:18:25,567 - DEBUG - VRF ids for VN ctest-vn4-03665633: {} 2026-02-16 17:18:25,567 - DEBUG - ====Verifying data for ctest-policy1-25508049 in API_Server ====== 2026-02-16 17:18:25,567 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-16 17:18:25,572 - DEBUG - Requesting: http://10.0.0.33:8082/domain/eb1e21cf-e569-484e-95d7-2c8378541242 2026-02-16 17:18:25,583 - DEBUG - Requesting: http://10.0.0.33:8082/project/c7620579-9c8a-4907-a2ca-6a60474ad823 2026-02-16 17:18:25,650 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/f8d431ec-5134-4c23-a856-b8a8954e07b0 2026-02-16 17:18:25,658 - INFO - Verified policy ctest-policy1-25508049 in API Server, Result: True 2026-02-16 17:18:25,659 - INFO - Done with setup and verification, moving onto test .. 2026-02-16 17:18:25,665 - INFO - Deleting VN ctest-vn4-03665633 2026-02-16 17:18:25,780 - DEBUG - Response for deleting network () 2026-02-16 17:18:25,780 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d4d4d4a4-7cac-4f8c-85b5-e97c30de57fd 2026-02-16 17:18:25,785 - DEBUG - Response Code: 404 2026-02-16 17:18:25,785 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-16 17:18:25,792 - DEBUG - Requesting: http://10.0.0.33:8082/domain/eb1e21cf-e569-484e-95d7-2c8378541242 2026-02-16 17:18:25,843 - DEBUG - Requesting: http://10.0.0.33:8082/project/c7620579-9c8a-4907-a2ca-6a60474ad823 2026-02-16 17:18:25,913 - INFO - Validated that VN ctest-vn4-03665633 is not found in API Server 2026-02-16 17:18:25,923 - DEBUG - VN ctest-vn4-03665633 is not present in Agent 10.0.0.33 2026-02-16 17:18:25,923 - INFO - Validated that VN ctest-vn4-03665633 is not in any agent 2026-02-16 17:18:25,939 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-03665633 info 2026-02-16 17:18:25,964 - INFO - Deleted policy ctest-policy1-25508049 2026-02-16 17:18:26,123 - DEBUG - policy ctest-policy1-25508049 is not found in API Server 2026-02-16 17:18:26,376 - DEBUG - No XMPP flaps were noticed during the test
2026-02-16 17:18:26,376 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-16 17:18:26,376 - INFO - -------------------------------------------------------------------------------- 2026-02-16 17:18:26,667 - DEBUG - No XMPP flaps were noticed during the test
2026-02-16 17:18:26,668 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-16 17:18:26,668 - INFO - -------------------------------------------------------------------------------- 2026-02-16 17:18:27,336 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-78389276, ID : c7620579-9c8a-4907-a2ca-6a60474ad823