TheGrandWazoo / freenas-proxmox

ZFS over iSCSI to FreeNAS API's from Proxmox VE
MIT License
239 stars 43 forks source link

Issue with moving VM storage and VM creation. #193

Open kenbshinn opened 3 months ago

kenbshinn commented 3 months ago

Hello, I don't normally do this so I am going to do my best to give you all the particulars of what is going on:

I recently upgraded all of my Proxmox hosts (4 of them) from 7.x to 8.2.4, and as part of the upgrade I had to upgrade my freenas to Proxmox plugin. Everything went well, or so I thought. I am now trying to add a new TrueNas Scale appliance to my ProxMox cluster (Version: TrueNAS-SCALE-22.12.4.2) and after following your install instructions I was able to get it to connect without any issues, and I can see storage any everything. However when I try to migrate a test VM from the old TrueNas box to this new one I am getting:

TASK ERROR: storage migration failed: Undefined freenas_user and/or freenas_password variables. at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 136

I tried searching your closed out issues but only found 1 similar issue, but it was auto closed due to inactivity.

Here is a screenshot of what my ZFS over iSCSI connection looks like:

Screenshot 2024-08-05 155710

And here is a what I am seeing in the Proxmox logs:

Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::run_lun_command : list_lu(/dev/zvol/Pool0/vm/vm-114-disk-3) Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_check : called Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_connect : called Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_connect : Authentication using Basic Auth Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_connect : REST connection header Content-Type:'text/html' Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_connect : Changing to v2.0 API's Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_connect : called Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_connect : Authentication using Basic Auth Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_connect : REST connection header Content-Type:'text/plain; charset=utf-8' Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_connect : REST connection successful to '192.168.1.214' using the 'http' protocol Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_check : successful : Server version: TrueNAS-12.0-U8.1 Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_check : TrueNAS Unformatted Version: 12000801 Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_check : Using TrueNAS API version v2.0 Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_globalconfiguration : called Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_globalconfiguration : target_basename=iqn.2005-10.org.freenas.ctl Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_list_lu : called Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : called Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : successful Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_get_targetid : called Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : called Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : successful Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_get_targetid : successful : 18 Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target_to_extent : called Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target_to_extent : successful Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_extent : called Aug 05 15:44:38 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_extent : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_list_lu : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::run_list_lu : called with (method: 'list_lu'; result_value_type: 'name'; param[0]: '/dev/zvol/Pool0/vm/vm-114-disk-3') Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::run_list_lu : TrueNAS object to find: 'zvol/Pool0/vm/vm-114-disk-3' Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::run_list_lu 'zvol/Pool0/vm/vm-114-disk-3' with key 'name' found with value: '/dev/zvol/Pool0/vm/vm-114-disk-3' Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::run_lun_command : list_view(/dev/zvol/Pool0/vm/vm-114-disk-3) Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::run_list_view : called Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_list_lu : called Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : called Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_get_targetid : called Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : called Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_get_targetid : successful : 18 Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target_to_extent : called Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target_to_extent : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_extent : called Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_extent : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_list_lu : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::run_list_lu : called with (method: 'list_view'; result_value_type: 'lun-id'; param[0]: '/dev/zvol/Pool0/vm/vm-114-disk-3') Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::run_list_lu : TrueNAS object to find: 'zvol/Pool0/vm/vm-114-disk-3' Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::run_list_lu 'zvol/Pool0/vm/vm-114-disk-3' with key 'lun-id' found with value: '6' Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::run_lun_command : list_extent(/dev/zvol/Pool0/vm/vm-114-disk-3) Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::run_list_extent : called with (method: 'list_extent'; params[0]: '/dev/zvol/Pool0/vm/vm-114-disk-3') Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_list_lu : called Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : called Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_get_targetid : called Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : called Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_get_targetid : successful : 18 Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target_to_extent : called Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target_to_extent : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_extent : called Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_extent : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::freenas_list_lu : successful Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::run_list_extent TrueNAS object to find: 'zvol/Pool0/vm/vm-114-disk-3' Aug 05 15:44:39 pve pvedaemon[746647]: PVE::Storage::LunCmd::FreeNAS::run_list_extent 'zvol/Pool0/vm/vm-114-disk-3' wtih key 'naa' found with value: '0x6589cfc0000004e94242e687d5269775' Aug 05 15:44:42 pve pvedaemon[746647]: <root@pam> starting task UPID:pve:000B79A1:0124D4CC:66B12BAA:qmmove:114:root@pam: Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::run_lun_command : list_lu(/dev/zvol/Pool0/vm/vm-114-disk-3) Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_list_lu : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_get_targetid : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_get_targetid : successful : 18 Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target_to_extent : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target_to_extent : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_extent : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_extent : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_list_lu : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::run_list_lu : called with (method: 'list_lu'; result_value_type: 'name'; param[0]: '/dev/zvol/Pool0/vm/vm-114-disk-3') Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::run_list_lu : TrueNAS object to find: 'zvol/Pool0/vm/vm-114-disk-3' Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::run_list_lu 'zvol/Pool0/vm/vm-114-disk-3' with key 'name' found with value: '/dev/zvol/Pool0/vm/vm-114-disk-3' Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::run_lun_command : list_view(/dev/zvol/Pool0/vm/vm-114-disk-3) Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::run_list_view : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_list_lu : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_get_targetid : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_get_targetid : successful : 18 Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target_to_extent : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target_to_extent : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_extent : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_extent : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_list_lu : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::run_list_lu : called with (method: 'list_view'; result_value_type: 'lun-id'; param[0]: '/dev/zvol/Pool0/vm/vm-114-disk-3') Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::run_list_lu : TrueNAS object to find: 'zvol/Pool0/vm/vm-114-disk-3' Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::run_list_lu 'zvol/Pool0/vm/vm-114-disk-3' with key 'lun-id' found with value: '6' Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::run_lun_command : list_extent(/dev/zvol/Pool0/vm/vm-114-disk-3) Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::run_list_extent : called with (method: 'list_extent'; params[0]: '/dev/zvol/Pool0/vm/vm-114-disk-3') Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_list_lu : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_get_targetid : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_get_targetid : successful : 18 Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target_to_extent : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target_to_extent : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_extent : called Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '192.168.1.214' Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_extent : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::freenas_list_lu : successful Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::run_list_extent TrueNAS object to find: 'zvol/Pool0/vm/vm-114-disk-3' Aug 05 15:44:42 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::run_list_extent 'zvol/Pool0/vm/vm-114-disk-3' wtih key 'naa' found with value: '0x6589cfc0000004e94242e687d5269775' Aug 05 15:44:45 pve pvedaemon[752033]: <root@pam> move disk VM 114: move --disk scsi0 --storage kitty2 Aug 05 15:44:46 pve pvedaemon[752033]: PVE::Storage::LunCmd::FreeNAS::run_lun_command : create_lu(/dev/zvol/pool0/vm/vm-114-disk-9) Aug 05 15:44:46 pve pvedaemon[752033]: storage migration failed: Undefinedfreenas_userand/orfreenas_passwordvariables. at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 136. Aug 05 15:44:46 pve pvedaemon[746647]: <root@pam> end task UPID:pve:000B79A1:0124D4CC:66B12BAA:qmmove:114:root@pam: storage migration failed: Undefinedfreenas_userand/orfreenas_passwordvariables. at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 136. Aug 05 15:45:30 pve pveproxy[1276]: worker 746655 finished Aug 05 15:45:30 pve pveproxy[1276]: starting 1 worker(s) Aug 05 15:45:30 pve pveproxy[1276]: worker 752276 started Aug 05 15:45:31 pve pveproxy[752275]: worker exit Aug 05 15:49:03 pve pveproxy[746654]: worker exit

Also just to test if this is just an issue with my new box or not I created a second connection to my old TrueNas box and that too is having the same issue.

Please let me know what other information that you might need and I will provide.

kenbshinn commented 3 months ago

UPDATE on this issue:

I did some googling for a different issue that I am having with this new array that said to check the /etc/pve/storage.cfg file to see if the iSCSI lun appears there. while looking I noticed a difference in the value names from the working iscsi over zfs and the ones that are not. kitty is the working one and kitty2 is the new one:

zfs: kitty blocksize 4k iscsiprovider freenas pool Pool0/vm portal 192.168.1.214 target iqn.2005-10.org.freenas.ctl:kitty content images freenas_apiv4_host 192.168.1.214 freenas_password freenas_use_ssl 0 freenas_user root nowritecache 0 sparse 0

zfs: kitty2 blocksize 4k iscsiprovider freenas pool pool0/vm portal 192.168.1.216 target iqn.2005-10.org.freenas.ctl:vm content images freenas_apiv4_host 192.168.1.216 freenas_password freenas_use_ssl 0 freenas_user root nowritecache 0 sparse 0 truenas_secret Gundam2828@ truenas_token_auth 0

the module appears to be looking for freenas_password but the updated plugin calls it truenas_secret by default. I was able to update it in the file and it worked (ish). It got me past that issue and I was able to replicate it working on the 2nd connection that I mentioned earlier pointing to the old array and that works.

Now I am faced with this error:

Rescanning session [sid: 1, target: iqn.2005-10.org.freenas.ctl:testvm, portal: 192.168.1.216,3260] Rescanning session [sid: 2, target: iqn.2005-10.org.freenas.ctl:test03, portal: 192.168.1.216,3260] Rescanning session [sid: 3, target: iqn.2005-10.org.freenas.ctl:waffle, portal: 192.168.1.216,3260] sh: 1: /usr/sbin/multipath: not found create full clone of drive scsi0 (kitty:vm-114-disk-3) Warning: volblocksize (4096) is less than the default minimum block size (8192). To reduce wasted space a volblocksize of 16384 is recommended. Use of uninitialized value $target_id in concatenation (.) or string at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 796. Use of uninitialized value $target_id in numeric eq (==) at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 762. Use of uninitialized value $target_id in concatenation (.) or string at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 796. Use of uninitialized value $target_id in concatenation (.) or string at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 796. TASK ERROR: storage migration failed: Unable to find the target id for iqn.2005-10.org.freenas.ctl:kitty at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 262

I think this has something to do with TrueNAS scale not assinging a LUN number to PVE, but I am not sure. I am going to dig deeper.

rbaldasso commented 3 weeks ago

I downgraded to version 2.2.0-1 and that fixed the problem for us.

WaxySteelWorm commented 2 weeks ago

I downgraded to version 2.2.0-1 and that fixed the problem for us.

@rbaldasso How did you downgrade to that version?

rbaldasso commented 2 weeks ago

I downgraded to version 2.2.0-1 and that fixed the problem for us.

@rbaldasso How did you downgrade to that version?

apt install freenas-proxmox=2.2.0-1

TheGrandWazoo commented 1 week ago

Sorry. My development equipment has taken a turn for the worst. The ATOM processors I was using can only handle 1 VM and 3 networks as Proxmox VE has matured over time. I needed to purchase some newer hardware (XEON based) which I needed to budget and save to purchased them. These motherboards also presented problems with some overheating and one I am waiting on a RMA. Hopefully will be back in business to continue some development.