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

Support for TrueNAS SCALE #75

Closed
hans00 opened this issue Sep 19, 2020 · 14 comments
Closed

Support for TrueNAS SCALE #75

hans00 opened this issue Sep 19, 2020 · 14 comments
Assignees
Labels
beta A fix is currently in beta. Waiting for feedback

Comments

@hans00
Copy link

hans00 commented Sep 19, 2020

Known bug:

  • Version string parse error
PVE::Storage::LunCmd::FreeNAS::freenas_api_check : successful : Server version: TrueNAS-SCALE-20.08-MASTER-20200824-142916
Argument "test-iscsi" isn't numeric in sprintf at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 403.
  • SCST doesn't allow character '/'
FATAL: Device 'storage/vm-222-disk-0' configured for handler 'vdisk_blockio' may not contain character '/'.
@TheGrandWazoo
Copy link
Owner

@hans00 - Thank you for your pull request. I will need to test these changes against FreeNAS and TrueNAS-Core before I place them into the mainstream code.

@TheGrandWazoo
Copy link
Owner

@hans00 - I am assuming the SCST is the new iSCSI initiator used in TrueNAS Scale?

@hans00
Copy link
Author

hans00 commented Sep 23, 2020

Yes the TrueNAS Scale use SCST.

@TheGrandWazoo TheGrandWazoo self-assigned this Dec 3, 2020
@TheGrandWazoo TheGrandWazoo added the Enhancement New feature or request label Dec 3, 2020
@aanon4
Copy link

aanon4 commented Mar 25, 2021

I notice this tweak for SCALE is different in the current code. I'm bumping into an issue where I try to use a pool called "tank/vm" rather than just "tank". It works fine but I have to go in and fix the extent name because it ends up with a / in it. This original fix handled that case while the current fix doesn't. Everything works fine once the name has been fixed.

@TheGrandWazoo
Copy link
Owner

@aanon4 - Could you provide some output of the issue. Syslog should pickup the error so I can see what needs to be fixed.

@hans00
Copy link
Author

hans00 commented Apr 8, 2021

It may bug on this line
https://github.com/TheGrandWazoo/freenas-proxmox/blob/master/perl5/PVE/Storage/LunCmd/FreeNAS.pm#L513

Will trigger SCST configure error if the pool name contains slash.
It should patch the pool name also.

@TheGrandWazoo
Copy link
Owner

TheGrandWazoo commented Apr 8, 2021

It may bug on this line
https://github.com/TheGrandWazoo/freenas-proxmox/blob/master/perl5/PVE/Storage/LunCmd/FreeNAS.pm#L513

Will trigger SCST configure error if the pool name contains slash.
It should patch the pool name also.

$name  = $scfg->{'pool'} . ($product_name eq "TrueNAS-SCALE" ? '-' : '/') . $name;

So you're saying that $scfg->{'pool'} needs to have any '/' (slashes) turned into a '-' (dash)?
Do $name need it also?

I guess I better spin up a TrueNAS Scale VM for testing.

@hans00
Copy link
Author

hans00 commented Apr 8, 2021

In PVE case, $name not need convert.
But $scfg->{'pool'} should convert.

The actual configuration check:
https://github.com/openunix/scst/blob/a85ae9e6a110299e62b1f0ca4df58a2d470dc184/scstadmin/scstadmin.sysfs/scstadmin#L2071

Not allow slash unless starts with /dev/.

@TheGrandWazoo
Copy link
Owner

@hans00 - Thanks for your help on this. I'll get a fix going plus I will spin up a SCALE VM for testing.

@aanon4
Copy link

aanon4 commented Apr 11, 2021

@hans00 thanks for jumping on this for me! Just circling back to this today and you've done all my work for me - much appreciated. Fantastic software @TheGrandWazoo, let me know if I need to add and/or test anything for you.

TheGrandWazoo added a commit that referenced this issue Apr 13, 2021
- Changed a slash (/) to a dash (-) on the $cfg->{'pool'} reference.
SCST does not support '/' characters on the device.
- Possible fix for #75.
@TheGrandWazoo
Copy link
Owner

Fix has been committed for Beta testing.

TheGrandWazoo added a commit that referenced this issue Apr 16, 2021
- Added a '}' at line 515.
- Fixes issues reported in #98 abd #75.
- freenas-proxmox-packer also fixed. The stable build directory somehow
was moved to the development building directory.
@TheGrandWazoo TheGrandWazoo added beta A fix is currently in beta. bug Something isn't working labels Apr 16, 2021
@aanon4
Copy link

aanon4 commented Apr 17, 2021

Fantastic - works a treat! Thank you.

@TheGrandWazoo TheGrandWazoo added Waiting for feedback and removed bug Something isn't working Enhancement New feature or request labels Apr 17, 2021
@TheGrandWazoo
Copy link
Owner

Thank you for working with me to get a fix in place.

@TheGrandWazoo
Copy link
Owner

Closing due to fix in place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta A fix is currently in beta. Waiting for feedback
Projects
None yet
Development

No branches or pull requests

3 participants