2026-02-02 16:30:33,053 - INFO - Domain Default found not creating 2026-02-02 16:30:33,224 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-05779461 not found, creating it 2026-02-02 16:30:33,671 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-05779461, ID : a516b7dc-70b0-4a5d-a642-1e3616fcb9ea 2026-02-02 16:30:35,184 - INFO - ================================================================================ 2026-02-02 16:30:35,184 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 16:30:35,442 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-02-02 16:30:35,442 - INFO - Initial checks done. Running the testcase now 2026-02-02 16:30:35,442 - INFO - 2026-02-02 16:30:35,442 - INFO - ================================================================================ 2026-02-02 16:30:35,442 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 16:30:35,442 - 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-02 16:30:35,728 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-02-02 16:30:35,728 - INFO - Initial checks done. Running the testcase now 2026-02-02 16:30:35,728 - INFO - 2026-02-02 16:30:36,122 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05779461:ctest-vn4-49957169, 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-05779461:ctest-vn4-49957169, 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-05779461:ctest-vn4-49957169, 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-05779461:ctest-vn4-49957169, 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-02 16:30:36,630 - DEBUG - Response for create_network : {'network': {'id': '62236481-9057-4c32-a8c1-b5fe67c8b062', 'name': 'ctest-vn4-49957169', 'tenant_id': 'a516b7dc70b04a5da6421e3616fcb9ea', 'project_id': 'a516b7dc70b04a5da6421e3616fcb9ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05779461', 'ctest-vn4-49957169'], 'port_security_enabled': True, 'description': ''}} 2026-02-02 16:30:36,811 - DEBUG - Response for create_subnet : {'subnet': {'id': '860bf624-044a-42c9-858e-852866f713e3', 'name': '', 'tenant_id': 'a516b7dc70b04a5da6421e3616fcb9ea', 'network_id': '62236481-9057-4c32-a8c1-b5fe67c8b062', 'ip_version': 4, 'cidr': '80.77.127.128/26', 'allocation_pools': [{'start': '80.77.127.130', 'end': '80.77.127.190'}], 'gateway_ip': '80.77.127.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '80.77.127.130', 'tags': [], 'project_id': 'a516b7dc70b04a5da6421e3616fcb9ea'}} 2026-02-02 16:30:36,955 - DEBUG - Response for create_subnet : {'subnet': {'id': '0625fdfa-c1b5-45e2-bb06-9257a9d29d57', 'name': '', 'tenant_id': 'a516b7dc70b04a5da6421e3616fcb9ea', 'network_id': '62236481-9057-4c32-a8c1-b5fe67c8b062', 'ip_version': 6, 'cidr': '3fd9:8bb5:d499:cee8:3126:1e48::/96', 'allocation_pools': [{'start': '3fd9:8bb5:d499:cee8:3126:1e48:0:2', 'end': '3fd9:8bb5:d499:cee8:3126:1e48:ffff:fffe'}], 'gateway_ip': '3fd9:8bb5:d499:cee8:3126:1e48:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3fd9:8bb5:d499:cee8:3126:1e48:0:2', 'tags': [], 'project_id': 'a516b7dc70b04a5da6421e3616fcb9ea'}} 2026-02-02 16:30:36,974 - INFO - Created VN ctest-vn4-49957169 2026-02-02 16:30:37,026 - DEBUG - VN ctest-vn4-49957169 UUID is 62236481-9057-4c32-a8c1-b5fe67c8b062 2026-02-02 16:30:37,215 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '62236481-9057-4c32-a8c1-b5fe67c8b062', 'name': 'ctest-vn4-49957169', 'tenant_id': 'a516b7dc70b04a5da6421e3616fcb9ea', 'project_id': 'a516b7dc70b04a5da6421e3616fcb9ea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['860bf624-044a-42c9-858e-852866f713e3', '0625fdfa-c1b5-45e2-bb06-9257a9d29d57'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05779461', 'ctest-vn4-49957169'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05779461', 'ctest-policy1-53513875']], 'subnet_ipam': [{'subnet_cidr': '80.77.127.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3fd9:8bb5:d499:cee8:3126:1e48::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-02 16:30:37,382 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-02 16:30:37,692 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-02 16:30:37,726 - DEBUG - Requesting: http://10.0.0.242:8082/domain/29d284b8-3548-4998-8539-5c31707ba5bb 2026-02-02 16:30:37,739 - DEBUG - Requesting: http://10.0.0.242:8082/project/a516b7dc-70b0-4a5d-a642-1e3616fcb9ea 2026-02-02 16:30:37,808 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/62236481-9057-4c32-a8c1-b5fe67c8b062 2026-02-02 16:30:37,819 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/62236481-9057-4c32-a8c1-b5fe67c8b062 2026-02-02 16:30:37,828 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4e87b5b7-0bfb-40b2-b649-d3cf6acda153 2026-02-02 16:30:37,834 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4e87b5b7-0bfb-40b2-b649-d3cf6acda153 2026-02-02 16:30:37,841 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/db5220e6-7595-4fdd-b020-ebb1f99c0d55 2026-02-02 16:30:37,846 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 16:30:37,846 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/62236481-9057-4c32-a8c1-b5fe67c8b062 2026-02-02 16:30:37,854 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4e87b5b7-0bfb-40b2-b649-d3cf6acda153 2026-02-02 16:30:37,866 - INFO - Verified VN network id 12 for VN 62236481-9057-4c32-a8c1-b5fe67c8b062 2026-02-02 16:30:37,866 - INFO - Verifications in API Server for VN ctest-vn4-49957169 passed 2026-02-02 16:30:37,866 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/62236481-9057-4c32-a8c1-b5fe67c8b062 2026-02-02 16:30:37,875 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4e87b5b7-0bfb-40b2-b649-d3cf6acda153 2026-02-02 16:30:37,882 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4e87b5b7-0bfb-40b2-b649-d3cf6acda153 2026-02-02 16:30:37,889 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/db5220e6-7595-4fdd-b020-ebb1f99c0d55 2026-02-02 16:30:37,900 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05779461:ctest-vn4-49957169', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05779461', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7071606347537009714', 'uuid-lslong': '12160200573144576098'}, 'enable': 'true', 'created': '2026-02-02T16:30:36', 'last-modified': '2026-02-02T16:30:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.708566'} 2026-02-02 16:30:37,907 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 16:30:37,907 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-49957169 passed 2026-02-02 16:30:37,907 - DEBUG - ====Verifying policy data for ctest-vn4-49957169 in API_Server ====== 2026-02-02 16:30:37,907 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-02 16:30:37,913 - DEBUG - Requesting: http://10.0.0.242:8082/domain/29d284b8-3548-4998-8539-5c31707ba5bb 2026-02-02 16:30:37,925 - DEBUG - Requesting: http://10.0.0.242:8082/project/a516b7dc-70b0-4a5d-a642-1e3616fcb9ea 2026-02-02 16:30:38,007 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/62236481-9057-4c32-a8c1-b5fe67c8b062 2026-02-02 16:30:38,018 - DEBUG - ==>Verifying data for policy with id: 401eda6e-c6ff-4030-a33a-4e30b6a7e685, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05779461', 'ctest-policy1-53513875'] 2026-02-02 16:30:38,018 - INFO - VN ctest-vn4-49957169 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-02 16:30:38,018 - DEBUG - Verifying the vn in opserver 2026-02-02 16:30:38,018 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05779461:ctest-vn4-49957169 virtual network link through opserver 10.0.0.242 2026-02-02 16:30:38,018 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-02 16:30:38,310 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-02 16:30:38,377 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05779461:ctest-vn4-49957169', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05779461:ctest-vn4-49957169?flat'} 2026-02-02 16:30:38,377 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05779461:ctest-vn4-49957169 is found in opserver 2026-02-02 16:30:38,386 - DEBUG - Do not have enough data to verify VN in agent 2026-02-02 16:30:38,390 - DEBUG - VRF ids for VN ctest-vn4-49957169: {} 2026-02-02 16:30:38,391 - DEBUG - ====Verifying data for ctest-policy1-53513875 in API_Server ====== 2026-02-02 16:30:38,391 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-02 16:30:38,396 - DEBUG - Requesting: http://10.0.0.242:8082/domain/29d284b8-3548-4998-8539-5c31707ba5bb 2026-02-02 16:30:38,407 - DEBUG - Requesting: http://10.0.0.242:8082/project/a516b7dc-70b0-4a5d-a642-1e3616fcb9ea 2026-02-02 16:30:38,476 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/401eda6e-c6ff-4030-a33a-4e30b6a7e685 2026-02-02 16:30:38,486 - INFO - Verified policy ctest-policy1-53513875 in API Server, Result: True 2026-02-02 16:30:38,486 - INFO - Done with setup and verification, moving onto test .. 2026-02-02 16:30:38,494 - INFO - Deleting VN ctest-vn4-49957169 2026-02-02 16:30:38,611 - DEBUG - Response for deleting network () 2026-02-02 16:30:38,611 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4e87b5b7-0bfb-40b2-b649-d3cf6acda153 2026-02-02 16:30:38,617 - DEBUG - Response Code: 404 2026-02-02 16:30:38,617 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-02-02 16:30:38,622 - DEBUG - Requesting: http://10.0.0.242:8082/domain/29d284b8-3548-4998-8539-5c31707ba5bb 2026-02-02 16:30:38,675 - DEBUG - Requesting: http://10.0.0.242:8082/project/a516b7dc-70b0-4a5d-a642-1e3616fcb9ea 2026-02-02 16:30:38,741 - INFO - Validated that VN ctest-vn4-49957169 is not found in API Server 2026-02-02 16:30:38,750 - DEBUG - VN ctest-vn4-49957169 is not present in Agent 10.0.0.242 2026-02-02 16:30:38,751 - INFO - Validated that VN ctest-vn4-49957169 is not in any agent 2026-02-02 16:30:38,763 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-49957169 info 2026-02-02 16:30:38,790 - INFO - Deleted policy ctest-policy1-53513875 2026-02-02 16:30:38,958 - DEBUG - policy ctest-policy1-53513875 is not found in API Server 2026-02-02 16:30:39,214 - DEBUG - No XMPP flaps were noticed during the test 2026-02-02 16:30:39,214 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-02 16:30:39,214 - INFO - -------------------------------------------------------------------------------- 2026-02-02 16:30:39,508 - DEBUG - No XMPP flaps were noticed during the test 2026-02-02 16:30:39,508 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-02 16:30:39,508 - INFO - -------------------------------------------------------------------------------- 2026-02-02 16:30:40,196 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-05779461, ID : a516b7dc-70b0-4a5d-a642-1e3616fcb9ea