-
Notifications
You must be signed in to change notification settings - Fork 0
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
Powershell Errors on Hyper-V Hosts running Windows Storage Spaces #75
Comments
I think I have found a way to suppress the powershell errors and the warning about the cluster shared volume. I don't know if it is a good way because I am not very experienced with powershell but for me it seems to work C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-hyperv\provider\vcomputer\Get-IcingaVirtualComputerInfo.psm1
and also in the following section
For the wrong warning regarding the cluster shared volume do the following:
After the manual changes you have to rebuild the cache and restart the icinga services:
|
Fixed with changes according to Icinga/icinga-powershell-plugins#390 |
Hello,
I get powershell errors and an unknown state when running the Invoke-IcingaCheckHyperVVMHealth, Invoke-IcingaCheckHyperVOverCommitment and Invoke-IcingaCheckHyperVSnapshot against an hyper-v host with normal windows storage pools using storage spaces (not storage spaces direct!!!).
The problem seems to be in the following region:
For example my output for Invoke-IcingaCheckHyperVOverCommitment -Verbosity 2 looks like this. The errors for Invoke-IcingaCheckHyperVSnapshot and Invoke-IcingaCheckHyperVVMHealth look similar.
Moreover the Warning "VM images seem to be located on a Cluster Shared Volume but Cluster-Plugins are not installed" is wrong. The storage pool is no cluster shared volume, just a standard storage spaces pool on a standalone hyper-v host with internal nvme ssds.
As a quick, temporary workaround would it be possible to suppress the powershell errors and if so how can I achieve this? I am asking because as you can see I get a valid output at the end (for all three checks) but due to the powershell errors it's returning an unknown state in icingaweb2
Icinga 2.14.1
Icinga Web 2.12.1
Icinga Director 1.11
Icinga for Windows 1.11.1
Hyper-V Plugins: 1.3.0
The text was updated successfully, but these errors were encountered: