2026-08-27 17:10:34,635 - INFO - Domain Default found not creating 2026-08-27 17:10:34,874 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-79158123 not found, creating it 2026-08-27 17:10:35,479 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-79158123, ID : ee518a48-5ef0-42e8-bdac-4bba45e72e68 2026-08-27 17:10:37,387 - INFO - ================================================================================ 2026-08-27 17:10:37,387 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-27 17:10:37,666 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-08-27 17:10:37,666 - INFO - Initial checks done. Running the testcase now 2026-08-27 17:10:37,666 - INFO - 2026-08-27 17:10:37,666 - INFO - ================================================================================ 2026-08-27 17:10:37,666 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-27 17:10:37,666 - 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-27 17:10:37,975 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-08-27 17:10:37,975 - INFO - Initial checks done. Running the testcase now 2026-08-27 17:10:37,975 - INFO - 2026-08-27 17:10:38,464 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79158123:ctest-vn4-76347072, 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-79158123:ctest-vn4-76347072, 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-79158123:ctest-vn4-76347072, 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-79158123:ctest-vn4-76347072, 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-27 17:10:39,132 - DEBUG - Response for create_network : {'network': {'id': '9cc67307-d3a5-46db-b68f-824775b5c813', 'name': 'ctest-vn4-76347072', 'tenant_id': 'ee518a485ef042e8bdac4bba45e72e68', 'project_id': 'ee518a485ef042e8bdac4bba45e72e68', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79158123', 'ctest-vn4-76347072'], 'port_security_enabled': True, 'description': ''}} 2026-08-27 17:10:39,420 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dce2dd22-fabe-4ed8-bec6-b54758f40cfe', 'name': '', 'tenant_id': 'ee518a485ef042e8bdac4bba45e72e68', 'network_id': '9cc67307-d3a5-46db-b68f-824775b5c813', 'ip_version': 4, 'cidr': '96.226.227.64/26', 'allocation_pools': [{'start': '96.226.227.66', 'end': '96.226.227.126'}], 'gateway_ip': '96.226.227.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.226.227.66', 'tags': [], 'project_id': 'ee518a485ef042e8bdac4bba45e72e68'}} 2026-08-27 17:10:39,590 - DEBUG - Response for create_subnet : {'subnet': {'id': '729be2c1-ec88-4fad-9624-2f025dd5e11a', 'name': '', 'tenant_id': 'ee518a485ef042e8bdac4bba45e72e68', 'network_id': '9cc67307-d3a5-46db-b68f-824775b5c813', 'ip_version': 6, 'cidr': '3378:e7dd:e431:2aed:835f:dad0::/96', 'allocation_pools': [{'start': '3378:e7dd:e431:2aed:835f:dad0:0:2', 'end': '3378:e7dd:e431:2aed:835f:dad0:ffff:fffe'}], 'gateway_ip': '3378:e7dd:e431:2aed:835f:dad0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3378:e7dd:e431:2aed:835f:dad0:0:2', 'tags': [], 'project_id': 'ee518a485ef042e8bdac4bba45e72e68'}} 2026-08-27 17:10:39,622 - INFO - Created VN ctest-vn4-76347072 2026-08-27 17:10:39,687 - DEBUG - VN ctest-vn4-76347072 UUID is 9cc67307-d3a5-46db-b68f-824775b5c813 2026-08-27 17:10:40,000 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9cc67307-d3a5-46db-b68f-824775b5c813', 'name': 'ctest-vn4-76347072', 'tenant_id': 'ee518a485ef042e8bdac4bba45e72e68', 'project_id': 'ee518a485ef042e8bdac4bba45e72e68', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['dce2dd22-fabe-4ed8-bec6-b54758f40cfe', '729be2c1-ec88-4fad-9624-2f025dd5e11a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79158123', 'ctest-vn4-76347072'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79158123', 'ctest-policy1-39487661']], 'subnet_ipam': [{'subnet_cidr': '96.226.227.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3378:e7dd:e431:2aed:835f:dad0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-27 17:10:40,184 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-27 17:10:40,590 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-27 17:10:40,627 - DEBUG - Requesting: http://10.0.0.50:8082/domain/67c37ac3-935d-421a-aee2-2be9b6245c80 2026-08-27 17:10:40,645 - DEBUG - Requesting: http://10.0.0.50:8082/project/ee518a48-5ef0-42e8-bdac-4bba45e72e68 2026-08-27 17:10:40,749 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9cc67307-d3a5-46db-b68f-824775b5c813 2026-08-27 17:10:40,768 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9cc67307-d3a5-46db-b68f-824775b5c813 2026-08-27 17:10:40,782 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efc6db49-b702-406a-9cfa-1deaf5014325 2026-08-27 17:10:40,794 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efc6db49-b702-406a-9cfa-1deaf5014325 2026-08-27 17:10:40,808 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8c3915be-875f-4868-8ca6-808daffdd132 2026-08-27 17:10:40,817 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-27 17:10:40,817 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9cc67307-d3a5-46db-b68f-824775b5c813 2026-08-27 17:10:40,830 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efc6db49-b702-406a-9cfa-1deaf5014325 2026-08-27 17:10:40,851 - INFO - Verified VN network id 12 for VN 9cc67307-d3a5-46db-b68f-824775b5c813 2026-08-27 17:10:40,851 - INFO - Verifications in API Server for VN ctest-vn4-76347072 passed 2026-08-27 17:10:40,851 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9cc67307-d3a5-46db-b68f-824775b5c813 2026-08-27 17:10:40,867 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efc6db49-b702-406a-9cfa-1deaf5014325 2026-08-27 17:10:40,878 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efc6db49-b702-406a-9cfa-1deaf5014325 2026-08-27 17:10:40,888 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/8c3915be-875f-4868-8ca6-808daffdd132 2026-08-27 17:10:40,905 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79158123:ctest-vn4-76347072', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-79158123', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11296843192758257371', 'uuid-lslong': '13154876280001644563'}, 'enable': 'true', 'created': '2026-08-27T17:10:39', 'last-modified': '2026-08-27T17:10:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.975519'} 2026-08-27 17:10:40,913 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-08-27 17:10:40,913 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-76347072 passed 2026-08-27 17:10:40,914 - DEBUG - ====Verifying policy data for ctest-vn4-76347072 in API_Server ====== 2026-08-27 17:10:40,914 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-27 17:10:40,921 - DEBUG - Requesting: http://10.0.0.50:8082/domain/67c37ac3-935d-421a-aee2-2be9b6245c80 2026-08-27 17:10:40,938 - DEBUG - Requesting: http://10.0.0.50:8082/project/ee518a48-5ef0-42e8-bdac-4bba45e72e68 2026-08-27 17:10:41,029 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9cc67307-d3a5-46db-b68f-824775b5c813 2026-08-27 17:10:41,046 - DEBUG - ==>Verifying data for policy with id: 2bb8db1a-097a-4d8f-8d69-0095063617b2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-79158123', 'ctest-policy1-39487661'] 2026-08-27 17:10:41,046 - INFO - VN ctest-vn4-76347072 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-27 17:10:41,046 - DEBUG - Verifying the vn in opserver 2026-08-27 17:10:41,046 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79158123:ctest-vn4-76347072 virtual network link through opserver 10.0.0.50 2026-08-27 17:10:41,046 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-27 17:10:41,419 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-08-27 17:10:41,496 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79158123:ctest-vn4-76347072', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79158123:ctest-vn4-76347072?flat'} 2026-08-27 17:10:41,496 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-79158123:ctest-vn4-76347072 is found in opserver 2026-08-27 17:10:41,509 - DEBUG - Do not have enough data to verify VN in agent 2026-08-27 17:10:41,518 - DEBUG - VRF ids for VN ctest-vn4-76347072: {} 2026-08-27 17:10:41,519 - DEBUG - ====Verifying data for ctest-policy1-39487661 in API_Server ====== 2026-08-27 17:10:41,519 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-27 17:10:41,527 - DEBUG - Requesting: http://10.0.0.50:8082/domain/67c37ac3-935d-421a-aee2-2be9b6245c80 2026-08-27 17:10:41,545 - DEBUG - Requesting: http://10.0.0.50:8082/project/ee518a48-5ef0-42e8-bdac-4bba45e72e68 2026-08-27 17:10:41,648 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/2bb8db1a-097a-4d8f-8d69-0095063617b2 2026-08-27 17:10:41,669 - INFO - Verified policy ctest-policy1-39487661 in API Server, Result: True 2026-08-27 17:10:41,669 - INFO - Done with setup and verification, moving onto test .. 2026-08-27 17:10:41,689 - INFO - Deleting VN ctest-vn4-76347072 2026-08-27 17:10:41,911 - DEBUG - Response for deleting network () 2026-08-27 17:10:41,911 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/efc6db49-b702-406a-9cfa-1deaf5014325 2026-08-27 17:10:41,922 - DEBUG - Response Code: 404 2026-08-27 17:10:41,923 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-08-27 17:10:41,935 - DEBUG - Requesting: http://10.0.0.50:8082/domain/67c37ac3-935d-421a-aee2-2be9b6245c80 2026-08-27 17:10:41,958 - DEBUG - Requesting: http://10.0.0.50:8082/project/ee518a48-5ef0-42e8-bdac-4bba45e72e68 2026-08-27 17:10:42,043 - INFO - Validated that VN ctest-vn4-76347072 is not found in API Server 2026-08-27 17:10:42,063 - DEBUG - VN ctest-vn4-76347072 is not present in Agent 10.0.0.50 2026-08-27 17:10:42,063 - INFO - Validated that VN ctest-vn4-76347072 is not in any agent 2026-08-27 17:10:42,093 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-76347072 info 2026-08-27 17:10:42,136 - INFO - Deleted policy ctest-policy1-39487661 2026-08-27 17:10:42,331 - DEBUG - policy ctest-policy1-39487661 is not found in API Server 2026-08-27 17:10:42,605 - DEBUG - No XMPP flaps were noticed during the test 2026-08-27 17:10:42,605 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-27 17:10:42,605 - INFO - -------------------------------------------------------------------------------- 2026-08-27 17:10:42,919 - DEBUG - No XMPP flaps were noticed during the test 2026-08-27 17:10:42,919 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-08-27 17:10:42,920 - INFO - -------------------------------------------------------------------------------- 2026-08-27 17:10:43,740 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-79158123, ID : ee518a48-5ef0-42e8-bdac-4bba45e72e68