2026-02-02 14:45:46,275 - INFO - Reading existing Domain with UUID 21b81c26-e623-4630-8c9f-905f06503c15 2026-02-02 14:45:46,287 - INFO - Using existing domain ['admin_domain'](21b81c26-e623-4630-8c9f-905f06503c15) 2026-02-02 14:45:46,543 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40329374 not found, creating it 2026-02-02 14:45:47,095 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40329374, ID : ebcf5089-1029-40f4-a1b7-bfcd52ec3412 2026-02-02 14:45:49,221 - INFO - ================================================================================ 2026-02-02 14:45:49,221 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 14:45:49,613 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.0.0.242': '0'}} with 2026-02-02 14:45:49,613 - INFO - Initial checks done. Running the testcase now 2026-02-02 14:45:49,614 - INFO - 2026-02-02 14:45:49,614 - INFO - ================================================================================ 2026-02-02 14:45:49,614 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 14:45:49,614 - 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 14:45:50,009 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.0.0.242': '0'}} with 2026-02-02 14:45:50,009 - INFO - Initial checks done. Running the testcase now 2026-02-02 14:45:50,010 - INFO - 2026-02-02 14:45:50,432 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-40329374:ctest-vn4-17588820, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-40329374:ctest-vn4-17588820, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-40329374:ctest-vn4-17588820, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-40329374:ctest-vn4-17588820, 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 14:45:51,198 - DEBUG - Response for create_network : {'network': {'id': '2baa8527-b0d9-48e8-8f72-44f9a55a5157', 'name': 'ctest-vn4-17588820', 'tenant_id': 'ebcf5089102940f4a1b7bfcd52ec3412', 'project_id': 'ebcf5089102940f4a1b7bfcd52ec3412', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40329374', 'ctest-vn4-17588820'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-02-02 14:45:51,483 - DEBUG - Response for create_subnet : {'subnet': {'id': '30ed3bb4-59a1-4152-93a8-27a4786244f6', 'name': '', 'tenant_id': 'ebcf5089102940f4a1b7bfcd52ec3412', 'network_id': '2baa8527-b0d9-48e8-8f72-44f9a55a5157', 'ip_version': 4, 'cidr': '64.140.66.192/26', 'allocation_pools': [{'start': '64.140.66.194', 'end': '64.140.66.254'}], 'gateway_ip': '64.140.66.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-02T14:45:51.363566', 'updated_at': '2026-02-02T14:45:51.363566', 'dns_server_address': '64.140.66.194', 'tags': [], 'project_id': 'ebcf5089102940f4a1b7bfcd52ec3412'}} 2026-02-02 14:45:51,754 - DEBUG - Response for create_subnet : {'subnet': {'id': '45b07d1a-d710-4765-ae28-b175899c79a5', 'name': '', 'tenant_id': 'ebcf5089102940f4a1b7bfcd52ec3412', 'network_id': '2baa8527-b0d9-48e8-8f72-44f9a55a5157', 'ip_version': 6, 'cidr': '2a97:9260:9c45:f939:4fcf:708a::/96', 'allocation_pools': [{'start': '2a97:9260:9c45:f939:4fcf:708a:0:2', 'end': '2a97:9260:9c45:f939:4fcf:708a:ffff:fffe'}], 'gateway_ip': '2a97:9260:9c45:f939:4fcf:708a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-02T14:45:51.645434', 'updated_at': '2026-02-02T14:45:51.645434', 'dns_server_address': '2a97:9260:9c45:f939:4fcf:708a:0:2', 'tags': [], 'project_id': 'ebcf5089102940f4a1b7bfcd52ec3412'}} 2026-02-02 14:45:51,827 - INFO - Created VN ctest-vn4-17588820 2026-02-02 14:45:51,884 - DEBUG - VN ctest-vn4-17588820 UUID is 2baa8527-b0d9-48e8-8f72-44f9a55a5157 2026-02-02 14:45:52,356 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2baa8527-b0d9-48e8-8f72-44f9a55a5157', 'name': 'ctest-vn4-17588820', 'tenant_id': 'ebcf5089102940f4a1b7bfcd52ec3412', 'project_id': 'ebcf5089102940f4a1b7bfcd52ec3412', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['30ed3bb4-59a1-4152-93a8-27a4786244f6', '45b07d1a-d710-4765-ae28-b175899c79a5'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40329374', 'ctest-vn4-17588820'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40329374', 'ctest-policy1-34072409']], 'subnet_ipam': [{'subnet_cidr': '64.140.66.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a97:9260:9c45:f939:4fcf:708a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-02-02T14:45:51.115395', 'updated_at': '2026-02-02T14:45:51.663445'}} 2026-02-02 14:45:52,544 - DEBUG - Requesting: https://10.0.0.242:8082/domains 2026-02-02 14:45:52,907 - DEBUG - Requesting: https://10.0.0.242:8082/domains 2026-02-02 14:45:52,993 - DEBUG - Requesting: https://10.0.0.242:8082/domain/21b81c26-e623-4630-8c9f-905f06503c15 2026-02-02 14:45:53,054 - DEBUG - Requesting: https://10.0.0.242:8082/project/ebcf5089-1029-40f4-a1b7-bfcd52ec3412 2026-02-02 14:45:53,146 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/2baa8527-b0d9-48e8-8f72-44f9a55a5157 2026-02-02 14:45:53,211 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/2baa8527-b0d9-48e8-8f72-44f9a55a5157 2026-02-02 14:45:53,271 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/836f4ec8-2ea1-41e8-9615-66ac5b963528 2026-02-02 14:45:53,329 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/836f4ec8-2ea1-41e8-9615-66ac5b963528 2026-02-02 14:45:53,385 - DEBUG - Requesting: https://10.0.0.242:8082/route-target/cfc6adb4-e74c-4cf9-9a12-7a2431da5c53 2026-02-02 14:45:53,441 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 14:45:53,441 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/2baa8527-b0d9-48e8-8f72-44f9a55a5157 2026-02-02 14:45:53,498 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/836f4ec8-2ea1-41e8-9615-66ac5b963528 2026-02-02 14:45:53,566 - INFO - Verified VN network id 11 for VN 2baa8527-b0d9-48e8-8f72-44f9a55a5157 2026-02-02 14:45:53,567 - INFO - Verifications in API Server for VN ctest-vn4-17588820 passed 2026-02-02 14:45:53,567 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/2baa8527-b0d9-48e8-8f72-44f9a55a5157 2026-02-02 14:45:53,622 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/836f4ec8-2ea1-41e8-9615-66ac5b963528 2026-02-02 14:45:53,677 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/836f4ec8-2ea1-41e8-9615-66ac5b963528 2026-02-02 14:45:53,735 - DEBUG - Requesting: https://10.0.0.242:8082/route-target/cfc6adb4-e74c-4cf9-9a12-7a2431da5c53 2026-02-02 14:45:53,838 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-40329374:ctest-vn4-17588820', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40329374', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3146473695188961512', 'uuid-lslong': '10336399933780414807'}, 'enable': 'true', 'created': '2026-02-02T14:45:51', 'last-modified': '2026-02-02T14:45:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.513218'} 2026-02-02 14:45:53,894 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 14:45:53,895 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-17588820 passed 2026-02-02 14:45:53,895 - DEBUG - ====Verifying policy data for ctest-vn4-17588820 in API_Server ====== 2026-02-02 14:45:53,895 - DEBUG - Requesting: https://10.0.0.242:8082/domains 2026-02-02 14:45:53,949 - DEBUG - Requesting: https://10.0.0.242:8082/domain/21b81c26-e623-4630-8c9f-905f06503c15 2026-02-02 14:45:54,009 - DEBUG - Requesting: https://10.0.0.242:8082/project/ebcf5089-1029-40f4-a1b7-bfcd52ec3412 2026-02-02 14:45:54,089 - DEBUG - Requesting: https://10.0.0.242:8082/virtual-network/2baa8527-b0d9-48e8-8f72-44f9a55a5157 2026-02-02 14:45:54,152 - DEBUG - ==>Verifying data for policy with id: 1ce2c5b2-a7d9-4eb4-a2ec-3efa1b95f5fa, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40329374', 'ctest-policy1-34072409'] 2026-02-02 14:45:54,153 - INFO - VN ctest-vn4-17588820 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-02 14:45:54,153 - DEBUG - Verifying the vn in opserver 2026-02-02 14:45:54,153 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-40329374:ctest-vn4-17588820 virtual network link through opserver 10.0.0.242 2026-02-02 14:45:54,153 - DEBUG - Requesting: https://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-02 14:45:54,517 - DEBUG - Requesting: https://10.0.0.242:8081/analytics/uves/virtual-networks 2026-02-02 14:45:54,665 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-40329374:ctest-vn4-17588820', 'href': 'https://10.0.0.242:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-40329374:ctest-vn4-17588820?flat'} 2026-02-02 14:45:54,665 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-40329374:ctest-vn4-17588820 is found in opserver 2026-02-02 14:45:54,773 - DEBUG - Do not have enough data to verify VN in agent 2026-02-02 14:45:54,821 - DEBUG - VRF ids for VN ctest-vn4-17588820: {} 2026-02-02 14:45:54,821 - DEBUG - ====Verifying data for ctest-policy1-34072409 in API_Server ====== 2026-02-02 14:45:54,821 - DEBUG - Requesting: https://10.0.0.242:8082/domains 2026-02-02 14:45:54,873 - DEBUG - Requesting: https://10.0.0.242:8082/domain/21b81c26-e623-4630-8c9f-905f06503c15 2026-02-02 14:45:54,933 - DEBUG - Requesting: https://10.0.0.242:8082/project/ebcf5089-1029-40f4-a1b7-bfcd52ec3412 2026-02-02 14:45:55,021 - DEBUG - Requesting: https://10.0.0.242:8082/network-policy/1ce2c5b2-a7d9-4eb4-a2ec-3efa1b95f5fa 2026-02-02 14:45:55,079 - INFO - Verified policy ctest-policy1-34072409 in API Server, Result: True 2026-02-02 14:45:55,079 - INFO - Done with setup and verification, moving onto test .. 2026-02-02 14:45:55,089 - INFO - Deleting VN ctest-vn4-17588820 2026-02-02 14:45:55,308 - DEBUG - Response for deleting network () 2026-02-02 14:45:55,308 - DEBUG - Requesting: https://10.0.0.242:8082/routing-instance/836f4ec8-2ea1-41e8-9615-66ac5b963528 2026-02-02 14:45:55,368 - DEBUG - Response Code: 404 2026-02-02 14:45:55,368 - DEBUG - Requesting: https://10.0.0.242:8082/domains 2026-02-02 14:45:55,425 - DEBUG - Requesting: https://10.0.0.242:8082/domain/21b81c26-e623-4630-8c9f-905f06503c15 2026-02-02 14:45:55,485 - DEBUG - Requesting: https://10.0.0.242:8082/project/ebcf5089-1029-40f4-a1b7-bfcd52ec3412 2026-02-02 14:45:55,573 - INFO - Validated that VN ctest-vn4-17588820 is not found in API Server 2026-02-02 14:45:55,673 - DEBUG - VN ctest-vn4-17588820 is not present in Agent 10.0.0.242 2026-02-02 14:45:55,673 - INFO - Validated that VN ctest-vn4-17588820 is not in any agent 2026-02-02 14:45:55,833 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-17588820 info 2026-02-02 14:45:55,865 - INFO - Deleted policy ctest-policy1-34072409 2026-02-02 14:45:56,048 - DEBUG - policy ctest-policy1-34072409 is not found in API Server 2026-02-02 14:45:56,437 - DEBUG - No XMPP flaps were noticed during the test