2026-02-09 02:06:05,414 - INFO - Domain Default found not creating 2026-02-09 02:06:05,656 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-26488415 not found, creating it 2026-02-09 02:06:06,336 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-26488415, ID : 46b3e092-1a8e-4fa0-ae14-e3fe9c57cd3e 2026-02-09 02:06:08,046 - INFO - ================================================================================ 2026-02-09 02:06:08,047 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 02:06:08,317 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2026-02-09 02:06:08,318 - INFO - Initial checks done. Running the testcase now 2026-02-09 02:06:08,318 - INFO - 2026-02-09 02:06:08,318 - INFO - ================================================================================ 2026-02-09 02:06:08,318 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-09 02:06:08,318 - 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-09 02:06:08,602 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.14': '0'}} with 2026-02-09 02:06:08,602 - INFO - Initial checks done. Running the testcase now 2026-02-09 02:06:08,602 - INFO - 2026-02-09 02:06:09,005 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26488415:ctest-vn4-96019457, 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-26488415:ctest-vn4-96019457, 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-26488415:ctest-vn4-96019457, 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-26488415:ctest-vn4-96019457, 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-09 02:06:09,535 - DEBUG - Response for create_network : {'network': {'id': 'cc9f1c4d-0b2a-4fa0-a1bd-0b241966d878', 'name': 'ctest-vn4-96019457', 'tenant_id': '46b3e0921a8e4fa0ae14e3fe9c57cd3e', 'project_id': '46b3e0921a8e4fa0ae14e3fe9c57cd3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26488415', 'ctest-vn4-96019457'], 'port_security_enabled': True, 'description': ''}} 2026-02-09 02:06:09,686 - DEBUG - Response for create_subnet : {'subnet': {'id': '34c21560-7562-4617-9bc3-c0a8de283eeb', 'name': '', 'tenant_id': '46b3e0921a8e4fa0ae14e3fe9c57cd3e', 'network_id': 'cc9f1c4d-0b2a-4fa0-a1bd-0b241966d878', 'ip_version': 4, 'cidr': '35.82.105.128/26', 'allocation_pools': [{'start': '35.82.105.130', 'end': '35.82.105.190'}], 'gateway_ip': '35.82.105.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.82.105.130', 'tags': [], 'project_id': '46b3e0921a8e4fa0ae14e3fe9c57cd3e'}} 2026-02-09 02:06:09,836 - DEBUG - Response for create_subnet : {'subnet': {'id': '620c7f40-7bf0-45f6-a901-9f96e857b540', 'name': '', 'tenant_id': '46b3e0921a8e4fa0ae14e3fe9c57cd3e', 'network_id': 'cc9f1c4d-0b2a-4fa0-a1bd-0b241966d878', 'ip_version': 6, 'cidr': '2655:3b73:741b:1e02:b8ce:c319::/96', 'allocation_pools': [{'start': '2655:3b73:741b:1e02:b8ce:c319:0:2', 'end': '2655:3b73:741b:1e02:b8ce:c319:ffff:fffe'}], 'gateway_ip': '2655:3b73:741b:1e02:b8ce:c319:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2655:3b73:741b:1e02:b8ce:c319:0:2', 'tags': [], 'project_id': '46b3e0921a8e4fa0ae14e3fe9c57cd3e'}} 2026-02-09 02:06:09,858 - INFO - Created VN ctest-vn4-96019457 2026-02-09 02:06:09,913 - DEBUG - VN ctest-vn4-96019457 UUID is cc9f1c4d-0b2a-4fa0-a1bd-0b241966d878 2026-02-09 02:06:10,135 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cc9f1c4d-0b2a-4fa0-a1bd-0b241966d878', 'name': 'ctest-vn4-96019457', 'tenant_id': '46b3e0921a8e4fa0ae14e3fe9c57cd3e', 'project_id': '46b3e0921a8e4fa0ae14e3fe9c57cd3e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['34c21560-7562-4617-9bc3-c0a8de283eeb', '620c7f40-7bf0-45f6-a901-9f96e857b540'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26488415', 'ctest-vn4-96019457'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26488415', 'ctest-policy1-86190322']], 'subnet_ipam': [{'subnet_cidr': '35.82.105.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2655:3b73:741b:1e02:b8ce:c319::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-09 02:06:10,302 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-09 02:06:10,638 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-09 02:06:10,673 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5c908eb1-ca90-4dd8-8556-6bf44625a257 2026-02-09 02:06:10,686 - DEBUG - Requesting: http://10.0.0.141:8082/project/46b3e092-1a8e-4fa0-ae14-e3fe9c57cd3e 2026-02-09 02:06:10,762 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cc9f1c4d-0b2a-4fa0-a1bd-0b241966d878 2026-02-09 02:06:10,777 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cc9f1c4d-0b2a-4fa0-a1bd-0b241966d878 2026-02-09 02:06:10,788 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/341d4e08-73b4-4140-b377-e8d25b90611e 2026-02-09 02:06:10,795 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/341d4e08-73b4-4140-b377-e8d25b90611e 2026-02-09 02:06:10,801 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f7837b34-b4e2-403b-ab3c-94f4255787c5 2026-02-09 02:06:10,807 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 02:06:10,807 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cc9f1c4d-0b2a-4fa0-a1bd-0b241966d878 2026-02-09 02:06:10,816 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/341d4e08-73b4-4140-b377-e8d25b90611e 2026-02-09 02:06:10,830 - INFO - Verified VN network id 9 for VN cc9f1c4d-0b2a-4fa0-a1bd-0b241966d878 2026-02-09 02:06:10,830 - INFO - Verifications in API Server for VN ctest-vn4-96019457 passed 2026-02-09 02:06:10,830 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cc9f1c4d-0b2a-4fa0-a1bd-0b241966d878 2026-02-09 02:06:10,841 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/341d4e08-73b4-4140-b377-e8d25b90611e 2026-02-09 02:06:10,848 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/341d4e08-73b4-4140-b377-e8d25b90611e 2026-02-09 02:06:10,854 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f7837b34-b4e2-403b-ab3c-94f4255787c5 2026-02-09 02:06:10,865 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26488415:ctest-vn4-96019457', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26488415', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14744534822259675040', 'uuid-lslong': '11654483660377610360'}, 'enable': 'true', 'created': '2026-02-09T02:06:09', 'last-modified': '2026-02-09T02:06:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.761299'} 2026-02-09 02:06:10,871 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-09 02:06:10,872 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-96019457 passed 2026-02-09 02:06:10,872 - DEBUG - ====Verifying policy data for ctest-vn4-96019457 in API_Server ====== 2026-02-09 02:06:10,872 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-09 02:06:10,878 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5c908eb1-ca90-4dd8-8556-6bf44625a257 2026-02-09 02:06:10,888 - DEBUG - Requesting: http://10.0.0.141:8082/project/46b3e092-1a8e-4fa0-ae14-e3fe9c57cd3e 2026-02-09 02:06:10,960 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/cc9f1c4d-0b2a-4fa0-a1bd-0b241966d878 2026-02-09 02:06:10,970 - DEBUG - ==>Verifying data for policy with id: 8bc87b5d-7bbf-4a0f-ae89-b4aab5ba906d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26488415', 'ctest-policy1-86190322'] 2026-02-09 02:06:10,970 - INFO - VN ctest-vn4-96019457 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-09 02:06:10,970 - DEBUG - Verifying the vn in opserver 2026-02-09 02:06:10,970 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26488415:ctest-vn4-96019457 virtual network link through opserver 10.0.0.141 2026-02-09 02:06:10,970 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-09 02:06:11,305 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-09 02:06:11,368 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26488415:ctest-vn4-96019457', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26488415:ctest-vn4-96019457?flat'} 2026-02-09 02:06:11,368 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26488415:ctest-vn4-96019457 is found in opserver 2026-02-09 02:06:11,378 - DEBUG - Do not have enough data to verify VN in agent 2026-02-09 02:06:11,382 - DEBUG - VRF ids for VN ctest-vn4-96019457: {} 2026-02-09 02:06:11,383 - DEBUG - ====Verifying data for ctest-policy1-86190322 in API_Server ====== 2026-02-09 02:06:11,383 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-09 02:06:11,388 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5c908eb1-ca90-4dd8-8556-6bf44625a257 2026-02-09 02:06:11,398 - DEBUG - Requesting: http://10.0.0.141:8082/project/46b3e092-1a8e-4fa0-ae14-e3fe9c57cd3e 2026-02-09 02:06:11,468 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/8bc87b5d-7bbf-4a0f-ae89-b4aab5ba906d 2026-02-09 02:06:11,479 - INFO - Verified policy ctest-policy1-86190322 in API Server, Result: True 2026-02-09 02:06:11,479 - INFO - Done with setup and verification, moving onto test .. 2026-02-09 02:06:11,488 - INFO - Deleting VN ctest-vn4-96019457 2026-02-09 02:06:11,615 - DEBUG - Response for deleting network () 2026-02-09 02:06:11,615 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/341d4e08-73b4-4140-b377-e8d25b90611e 2026-02-09 02:06:11,621 - DEBUG - Response Code: 404 2026-02-09 02:06:11,621 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-09 02:06:11,627 - DEBUG - Requesting: http://10.0.0.141:8082/domain/5c908eb1-ca90-4dd8-8556-6bf44625a257 2026-02-09 02:06:11,682 - DEBUG - Requesting: http://10.0.0.141:8082/project/46b3e092-1a8e-4fa0-ae14-e3fe9c57cd3e 2026-02-09 02:06:11,756 - INFO - Validated that VN ctest-vn4-96019457 is not found in API Server 2026-02-09 02:06:11,766 - DEBUG - VN ctest-vn4-96019457 is not present in Agent 10.0.0.141 2026-02-09 02:06:11,766 - INFO - Validated that VN ctest-vn4-96019457 is not in any agent 2026-02-09 02:06:11,780 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-96019457 info 2026-02-09 02:06:11,813 - INFO - Deleted policy ctest-policy1-86190322 2026-02-09 02:06:11,977 - DEBUG - policy ctest-policy1-86190322 is not found in API Server 2026-02-09 02:06:12,234 - DEBUG - No XMPP flaps were noticed during the test 2026-02-09 02:06:12,234 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-09 02:06:12,234 - INFO - -------------------------------------------------------------------------------- 2026-02-09 02:06:12,523 - DEBUG - No XMPP flaps were noticed during the test 2026-02-09 02:06:12,523 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-09 02:06:12,523 - INFO - -------------------------------------------------------------------------------- 2026-02-09 02:06:13,236 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-26488415, ID : 46b3e092-1a8e-4fa0-ae14-e3fe9c57cd3e