Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

truenas scale TrueNAS-SCALE-23.10.1 incompatibility #180

Open
rumblpak opened this issue Feb 27, 2024 · 1 comment
Open

truenas scale TrueNAS-SCALE-23.10.1 incompatibility #180

rumblpak opened this issue Feb 27, 2024 · 1 comment
Assignees
Labels
User Resolved User resolved issue due to configuation

Comments

@rumblpak
Copy link

A default new install of truenas scale will receive the following errors during a vm create.

Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 597.
Use of uninitialized value $target_id in concatenation (.) or string at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 787.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 618.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 597.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 597.
Use of uninitialized value $target_id in concatenation (.) or string at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 787.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 597.
Use of uninitialized value $target_id in concatenation (.) or string at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 787.
TASK ERROR: unable to create VM 100 - Unable to find the target id for iqn.2005-10.org.freenas.ctl:images at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 259.

Upon further investigation in syslog, I found that it is common to receive either http 302s or 301s and fail as a result. Example follows:

Feb 27 11:15:36 pve pvedaemon[187090]: Use of uninitialized value $target_id in concatenation (.) or string at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 787.
Feb 27 11:15:36 pve pvedaemon[187090]: PVE::Storage::LunCmd::FreeNAS::freenas_get_targetid : successful :
Feb 27 11:15:36 pve pvedaemon[187090]: PVE::Storage::LunCmd::FreeNAS::freenas_list_lu : successful
Feb 27 11:15:36 pve pvedaemon[187090]: PVE::Storage::LunCmd::FreeNAS::run_list_lu : called with (method: 'create_lu'; result_value_type: 'name'; param[0]: '/dev/zvol/kracko/proxmox/images/vm-100-disk-1')
Feb 27 11:15:36 pve pvedaemon[187090]: PVE::Storage::LunCmd::FreeNAS::run_list_lu : TrueNAS object to find: '/dev/zvol/kracko/proxmox/images/vm-100-disk-1'
Feb 27 11:15:36 pve pvedaemon[187090]: PVE::Storage::LunCmd::FreeNAS::run_list_lu '/dev/zvol/kracko/proxmox/images/vm-100-disk-1' with key 'name' was not found
Feb 27 11:15:36 pve pvedaemon[187090]: PVE::Storage::LunCmd::FreeNAS::freenas_get_targetid : called
Feb 27 11:15:36 pve pvedaemon[187090]: PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : called
Feb 27 11:15:36 pve pvedaemon[187090]: Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 597.
Feb 27 11:15:36 pve pvedaemon[187090]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : called for host '10.0.0.8'
Feb 27 11:15:36 pve pvedaemon[187090]: PVE::Storage::LunCmd::FreeNAS::freenas_api_call : successful
Feb 27 11:15:36 pve pvedaemon[187090]: [ERROR]FreeNAS::API::PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : Response code: 302
Feb 27 11:15:36 pve pvedaemon[187090]: [ERROR]FreeNAS::API::PVE::Storage::LunCmd::FreeNAS::freenas_iscsi_get_target : Response content: <html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>nginx</center>
</body>
</html>

A disk is created on the truenas side but is never accessible due to errors in the above process.

I found a working workaround by executing the following on the truenas scale side:

midclt call system.general.update '{"ui_httpsredirect": false}'
service middlewared restart
service nginx restart
@TheGrandWazoo TheGrandWazoo self-assigned this Mar 22, 2024
@TheGrandWazoo TheGrandWazoo added Question Further information is requested Diagnose Diagnose/Discuss a issue or concern labels Mar 22, 2024
@TheGrandWazoo
Copy link
Owner

Could you post the syslog from the start of the FreeNAS command to its failure.

@TheGrandWazoo TheGrandWazoo added User Resolved User resolved issue due to configuation and removed Question Further information is requested Diagnose Diagnose/Discuss a issue or concern labels Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User Resolved User resolved issue due to configuation
Projects
None yet
Development

No branches or pull requests

2 participants