Unsolved
This post is more than 5 years old
5 Posts
0
2244
June 11th, 2018 04:00
BoxMGMT and Admin Account Not Able to do Failover through the RP4VM API
HI All,
Need a quick suggestion. Any faced the issue when we are able to perform the GET operations in the REST API of Recovery Point for VM. But when we try to call the Failover REST method with the Admin or Boxmgmt credential . it states - Illegal Action.Cannot Perform action on Production Copy.
No Events found!
Idan
675 Posts
0
June 11th, 2018 09:00
If this is failing with user admin then this may not be related to insufficient privileges but an illegal action made. Can you send me the call and more info to the email below ?
Regards,
Idan Kentor
RecoverPoint Corporate Systems Engineering
@IdanKentor
Idan.kentor@emc.com
siddhartha_deb
5 Posts
0
June 12th, 2018 00:00
Please find the details of the implementation and the error we received using the REST Api. 1.We are using RP4VM setup over Vcenter.The failover operation is done through the VCenter GUI. VCenter GUI Recovery Point Failover 2.We could access the CLI , but the CLI doesnot seem to expose all the functionalities as we found using the Help command. 3.The REST API and WADL LINK : REST WADL and methods : https:///deployer/rest/5_1/application.wadl , https:///deployer/rest/5_0/application.wadl Swagger : https:///deployer/swagger/#/ The API exposes over 550 methods. 4.The REST Call for the Failover Operation (as exposed by the API) : URI : https:///fapi/rest/5_1 Account : boxmgmt or Admin (tried with both the accounts) authType : left it blank , Basic by default paramGroupID : The groupID as stated in Recover point of the VM paramCopyID : 0 , as set for the VM paramStartTransfer : True / False paramUsePredefinedFailoverNetworks : “XX XXXXXX” (this value was obtained from the GUI , “Use My Dedicated Network” Value from the drop down ) Response : {returnCode=0;responseHeaders=Server: Apache-Coyote/1.1 Cache-Control: private Expires: Thu, 01 Jan 1970 00:00:00 UTC X-Frame-Options: SAMEORIGIN Content-Type: text/plain Transfer-Encoding: chunked Date: Mon, 11 Jun 2018 11:32:17 GMT Connection: close;returnResult=Illegal action: Cannot perform action on production copy.;reasonPhrase=Bad Request;finalLocation= https:///fapi/rest/5_1/groups/1791331710/clusters/7750197728472699088/copies/0/failover?startTransfer=false&usePredefinedFailoverNetworks=;protocolVersion=HTTP/1.1;statusCode=400;Result=Illegal action: Cannot perform action on production copy.;} We also try other operations , which we obtain a success 1. Get Group Name : Parameter passed – paramGroupId , authType,UserName(boxmgmt),password Response : {returnResult={"string":"XXXXXXX"};FailureMessage=;Result={"string":"XXXXXX"};} , XXXXX represent the actual group name. 2. Get Cluster Name : Parameter passed – paramClusterId, authType,UserName(boxmgmt),password Response : {returnResult={"string":"XXXXXX"};FailureMessage=;Result={"string":"XXXXXXX"};} 3. Get Consistency Group Information : Parameter passed – authType,UserName(boxmgmt),password Response : {returnResult={"innerSet":[{"groupUID":{"id":XXXXXXX},"name":"XXXXXXX”………………. 4. Get Failover Network Options For Protected V Ms : Parameters passed – paramGroupId , paramClusterId, paramCopyId, authType,UserName(boxmgmt),password Response : {returnResult=Error: No latest source copy defined for enabled group.;FailureMessage=;Result=Error: No latest source copy defined for enabled group.;} 5. Get Failover Network Options For New V Ms / Get Failover Network For Protected V Ms : Parameters passed – paramClusterId, paramCopyId, authType,UserName(boxmgmt),password Response : {returnResult=
HTTP Status 500 - java.io.EOFException: No content to map to Object due to end of input
type Exception report
message java.io.EOFException: No content to map to Object due to end of input
description The server encountered an internal error that prevented it from fulfilling this request.
exception
root cause
note The full stack trace of the root cause is available in the Apache Tomcat logs.
Apache Tomcat
;FailureMessage=;Result=
HTTP Status 500 - java.io.EOFException: No content to map to Object due to end of input
type Exception report
message java.io.EOFException: No content to map to Object due to end of input
description The server encountered an internal error that prevented it from fulfilling this request.
exception
root cause
note The full stack trace of the root cause is available in the Apache Tomcat logs.
Apache Tomcat
;} 5. Get Expected Vm Networks Post Failover : Parameters passed – paramGroupId , paramClusterId, paramCopyId, authType,UserName(boxmgmt),password , paramCopyId , paramUsePredefinedFailoverNetworks Response : {returnResult=Error: No latest source copy defined for enabled group.;FailureMessage=;Result=Error: No latest source copy defined for enabled group.;} Please if you can let us know any leeds on the same and if anything on the get failover network operations. Thanks in advance for your help.
forshr
2 Intern
•
1.1K Posts
1
June 15th, 2018 10:00
admin should work but just make sure that the admin user is not locked, otherwise open a support call.
Regards,
Rich
siddhartha_deb
5 Posts
0
June 25th, 2018 05:00
Yes admin user is not locked, we could complete failover using admin user in the GUI.
Raised an advisory case.