Closed scaleoutsean closed 2 years ago
I'm not surprised about the incompatibility with the newer PowerShell versions. We had a lot of issues with versioning between PS6 and netCore2.1. Thanks for bringing this up Sean.
About SDK installation on Linux - would that fix it?
Or should we just stick to version(s) tested prior to each release? Because auto-upgrades might break some installations, so if there's no DIY procedure (e.g. to rebuild SF SDK), then the user either has to roll back or wait until the next release of the SF PS Tool. If conservative approach is recommended, then we may want to add this to readme file and suggest a way to hold
(lock) PS package to prevent it from auto-updating.
@scaleoutsean Was able to replicate the issue, The same issue was with different versions(1.7.0.55 & 12.3.0.81) of solidfire.core module on powershell 6.2.0 preview 3. After some investigation and trying to install solidfire.core 1.5.1.1 version (the same version which you have faced the issue, that is the only solidfire.core module available at that time) with different versions of powershell stable and preview versions. Found that the issue is having something to do with Scope parameter passed with value currentuser in powershell 6.2 preview 3 and not an issue from SDK side. The issue is not found in any other powershell versions. So, Please use stable versions of the powershell to avoid these kind of issues.
Tried powershell 6.1 on ubuntu 18.04 in the similar way and found that there is no issue:
Closing the issue, as there is no problem at SDK side.
On Ubuntu 18.04, when powershell-preview_6.2.0-preview.3-1.ubuntu.18.04_amd64.deb and SF module are installed, on module import I get the following SDK error.
After the error occured, copied the two DLL files to /opt/microsoft/powershell/6-preview/SolidFire.SDK.dll (got an error about missing JSON on powershell start), then I deleted them, re-installed PowerShell package (same version), started pwsh-preview again, then Import-Module, and the second time it worked fine.
Regarding SF SDK that's mentioned in the error, it currently misses the instructions on how to install it on Linux (don't know if that's even possible, maybe not).