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

Start-ZertoFailoverTest errors with empty $body #57

Closed
kentgs opened this issue Nov 27, 2019 · 3 comments · Fixed by #58
Closed

Start-ZertoFailoverTest errors with empty $body #57

kentgs opened this issue Nov 27, 2019 · 3 comments · Fixed by #58
Assignees
Labels
bug Something isn't working
Projects

Comments

@kentgs
Copy link

kentgs commented Nov 27, 2019

Expected Behavior

A ZertoFailoverTest begins.

Current Behavior

After using 'Connect-ZertoServer' I am able to run other functions, but cannot start a failover test. Specifying vpgName and/or vmName all results in failure.

Running 'Get-ZertoVpg -vpgName name' or 'Get-ZertoProtectedVm -vmName name' both succeed, while 'Start-ZertoFailoverTest -vpgName name' fails.

Steps to Reproduce (for bugs)

After a successful 'Connect-ZertoServer':

PS H:> Start-ZertoFailoverTest -vpgName "VPG_name"
Invoke-ZertoRestRequest : Cannot validate argument on parameter 'body'. The argument is null or empty. Provide an
argument that is not null or empty, and then try the command again.
At C:\Program Files\WindowsPowerShell\Modules\ZertoApiWrapper\1.2.0.20190801\ZertoApiWrapper.psm1:5304 char:68

  • ... oRestRequest -uri $uri -method "POST" -body $($body | ConvertTo-Json)
  •                                             ~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Invoke-ZertoRestRequest], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationError,Invoke-ZertoRestRequest

Context

We would like to use this function to automate failover testing.

Your Environment

  • Module version used: 1.2.0.20190801
  • Operating System and PowerShell version: Windows 2016 with PS 5 and 6, also Mac 10.14 with PS 6 and 7
  • Zerto Virtual Manager Version: 7.5U1
@wcarroll wcarroll self-assigned this Nov 28, 2019
@wcarroll wcarroll added the bug Something isn't working label Nov 28, 2019
@wcarroll
Copy link
Contributor

Hi @kentgs

Thanks for reporting this bug. I believe I know what the issue is and will be digging in. It is my intention to release an updated version of this wrapper in the next few days and should be able to get this fix in the next version that gets pushed to the PowerShell Gallery.

@wcarroll wcarroll added this to Needs triage in Fix Bugs via automation Nov 28, 2019
@wcarroll wcarroll moved this from Needs triage to High priority in Fix Bugs Nov 28, 2019
Fix Bugs automation moved this from High priority to Closed Dec 1, 2019
@wcarroll
Copy link
Contributor

wcarroll commented Dec 1, 2019

Hi @kentgs

Just wanted to let you know that I have published this fix in the latest update that was pushed to the PowerShell Gallery today. You should be able to update the module and this should now work.

@kentgs
Copy link
Author

kentgs commented Dec 1, 2019

Hi Wes - I've pulled the updated module and was able to run Start-ZertoFailoverTest successfully. Thanks specifically for this fix, and more generally for working on this module. Much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Fix Bugs
  
Closed
Development

Successfully merging a pull request may close this issue.

2 participants