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

Longer running operations cause timeout #216

Closed
DamaniN opened this issue Oct 25, 2018 · 1 comment · Fixed by #636
Closed

Longer running operations cause timeout #216

DamaniN opened this issue Oct 25, 2018 · 1 comment · Fixed by #636

Comments

@DamaniN
Copy link

DamaniN commented Oct 25, 2018

Expected Behavior

Syncronis commands that run/wait longer than 15 seconds should complete successfully. A variable to change the timeout length should be available.

Current Behavior

If a command takes longer than 15 seconds to return the PowerShell module times out.

Failure Information (for bugs)

$body = New-Object -TypeName PSObject -Property @{'id'=$($Node.id + '-' + $HDD.id)}
$RegDisk = Invoke-RubrikRESTCall -Endpoint $('cluster/me/disk/' + $Node.id + '-' + $HDD.id) -Method PATCH -api 'internal' -Body $body

Invoke-WebRequest : The operation has timed out
At C:\Program Files\WindowsPowerShell\Modules\Rubrik\4.0.0.183\Private\Invoke-RubrikWebRequest.ps1:16 char:9
+         Invoke-WebRequest -UseBasicParsing @PSBoundParameters
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Add new disks to a Rubrik Cloud Cluster.
  2. Invoke the cluster/me/disk/<Node.ID>-<HDD.id> endpoint to tell the cluster to add/format the new disk.
  3. The call should timeout.

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • Rubrik PowerShell Module Version: Use Get-Module -ListAvailable Rubrik
PS C:\> Get-Module -ListAvailable Rubrik


    Directory: C:\Program Files\WindowsPowerShell\Modules


ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     4.0.0.183  Rubrik                              {Connect-Rubrik, Disconnect-Rubrik, Export-RubrikDatabase, Export-RubrikReport...}
Script     4.0.0.157  Rubrik                              {Connect-Rubrik, Disconnect-Rubrik, Export-RubrikDatabase, Export-RubrikReport...}
  • PowerShell Version: Use Get-PSVersion
PS C:\> Get-PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      14409  1012
  • Operating System:

C:> [Environment]::OSVersion

Platform ServicePack Version VersionString


Win32NT 6.3.9600.0 Microsoft Windows NT 6.3.9600.0

Failure Logs

None

@MarcelHoek
Copy link

I would also like to see the timeout to be configurable. Also running into timeouts in large customer environments (parsing cluster events).

@mwpreston mwpreston removed the roadmap label Mar 19, 2020
jaapbrasser added a commit that referenced this issue May 24, 2020
jaapbrasser added a commit that referenced this issue May 24, 2020
mwpreston added a commit that referenced this issue Jun 18, 2020
Resolves longer running operations causing timeouts - #216
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants