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

creating new SLA from old SLA with Get-RubrikSLA | New-RubrikSLA is not working #706

Closed
JanosPesti opened this issue Nov 23, 2020 · 4 comments · Fixed by #714
Closed

creating new SLA from old SLA with Get-RubrikSLA | New-RubrikSLA is not working #706

JanosPesti opened this issue Nov 23, 2020 · 4 comments · Fixed by #714
Assignees

Comments

@JanosPesti
Copy link

Current Behavior: When I try to execute this command:
get-rubriksla -PrimaryClusterID local -name SDC_Daily_archived_03AM -Verbose | New-RubrikSLA -Name SDC_Daily_archived_05AM -BackupStartHour 5 -Verbose
I get an error message

Provide information about the failure by issuing the command using the -Verbose command. Ensure that any identifiable information (server names, tokens, passwords) is removed from your logs before sharing this on GitHub.

VERBOSE: Submitting the request
VERBOSE: Invoking request with a custom timeout of 300 seconds
VERBOSE: POST https://<clustername retracted>/api/v2/sla_domain with -1-byte payload
Invoke-WebRequest : Request malformed
At C:\Program Files\WindowsPowerShell\Modules\Rubrik\5.2.0\Private\Invoke-RubrikWebRequest.ps1:28 char:23
+ ...   $result = Invoke-WebRequest -UseBasicParsing -TimeoutSec $rubrikOpt ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Expected Behavior:
Creating new SLA and returning the SLA config

Steps to Reproduce:

Please provide detailed steps for reproducing the issue.

just run Get-RubrikSLA -Name xyz | New-RubrikSLA -name zyx and it will run into the error

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 5.2.0
  • PowerShell Version: Use $PSVersiontable.PSVersion
    Major Minor Build Revision

5 1 17763 1490

Major Minor Patch PreReleaseLabel BuildLabel


7 1 0

  • Operating System: Win10

Failure Logs

Please include any relevant log snippets or files here, IMPORTANT all information will be visible publicly on GitHub. Do not include computer or user names, passwords, API tokens or any identifiable information when submitting failure logs.

@jaapbrasser
Copy link
Contributor

Hello Janos,

Thanks for reporting this, I have reproduced the bug and will start work to get this resolved. You can expect an update here this week!

@ITGUYHPH
Copy link

ITGUYHPH commented Nov 30, 2020

Hello Janos,

Thanks for reporting this, I have reproduced the bug and will start work to get this resolved. You can expect an update here this week!

Hello. I put a ticket in last week 00196426. Just wanted to clarify that I'm getting this issue just with a simple New-RubrikSLA, even without trying to pass it one from the Get. I've tried even the simplest method from the examples in the docs.

We are using Rubrik module 5.2.0 on Server 2016. CDM is 5.2.1-p1-9789. Not ready to update CDM yet to 5.3. Here's our Powershell info:

Name Value


PSVersion 5.1.14393.3471
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.3471
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

jaapbrasser added a commit that referenced this issue Dec 20, 2020
@jaapbrasser
Copy link
Contributor

Hello Janos, I've taken a look at this issue and I have a PR open with code that resolves this issue: #714

Let me know if this also fixes your problem

@JanosPesti
Copy link
Author

cheers, will test. Merry Christmas!

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.

3 participants