Closed ghost closed 1 year ago
This also happens silently on Get-Pfa2VolumeSpace unless -First X is greater than or equal to the number of volumes.
C:\> Get-Pfa2VolumeSpace | Select-Object -First 10
C:\>
C:\> Get-Pfa2VolumeSpace | Select-Object -First 11
Id Name Space
-- ---- -----
8e663719-2a75-40c0-ae98-bab317fe3146 vvol-server01-aaaaaaaa-vg/Config-bbbbbbbb class Space {...
+ 10 more
C:\>
C:\> Get-Pfa2VolumeSpace | Select-Object -First 10
Get-Pfa2VolumeSpace: The pipeline has been stopped.
C:\>
PSMessageDetails :
Exception : System.Management.Automation.PipelineStoppedException: The pipeline has been stopped.
at System.Management.Automation.CommandProcessor.ProcessRecord()
at System.Management.Automation.CommandProcessorBase.DoExecute()
at System.Management.Automation.Cmdlet.WriteObject(Object sendToPipeline)
at PureStorage.Rest.PowerShell.CmdletUtils.ProcessApiResponse[T](PSCmdlet cmdlet, Rest2Api array, Nullable`1 Limit, Func`3 getReponseUsingToken)
at PureStorage.Rest.PowerShell.GetVolumeSpaceCmdlet.EndProcessing()
TargetObject :
CategoryInfo : NotSpecified: (:) [Get-Pfa2VolumeSpace], PipelineStoppedException
FullyQualifiedErrorId : PureStorage.Rest.PowerShell.GetVolumeSpaceCmdlet
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {0, 1, 11}
Thanks @saidbrandon we will track these JIRAs for SDK vNext.
Cheers -- Barkz
@saidbrandon what version of Purity are you testing against and the FlashArray model?
Cheers -- Barkz
M70 on 6.1.7
Fixed in PureStoragePowerShellSDK2 2.24.70
Returns first X amount of volumes and then throws the exception.