This article applies to:
- OS: VMware
- Product edition: Phoenix Cloud
- Feature category: Restore
The restore performed during disaster recovery (DR) of a configured VM fails with an INTERNAL65535 error.
The name of the VMimport Role to access AWS is not set correctly.
018-03-02 18:32:21,908] [ERROR]
awsDRLib<initiate_import_image>: failed with error: An error occurred
(InvalidParameter) when calling the ImportImage operation: The service role
<vmimport> does not exist or does not have sufficient permissions for the
service to continue
[2018-03-02 18:32:21,908] [ERROR] Error <class 'botocore.exceptions.ClientError'>:An error occurred (InvalidParameter) when calling the ImportImage operation: The service role <vmimport> does not exist or does not have sufficient permissions for the service to continue. Traceback -Traceback (most recent call last):
File "roboClientLib/boto/awsDRLib.py", line 853, in initiate_import_image
UnboundLocalError: local variable 'response' referenced before assignment.
You must create a role with the name specifically as vmimport while creating VMimport Role to access AWS. The steps involved to create the role are as follows:
- Create VMimport Policy to access data backup
- Create VMimport Role to access AWS
- Create IAM Policy to accessAWS resources
- Create IAM Role for Phoenix AWS Proxy
- Establish trust relationship for VM import Role
Refer Create IAM policies and roles section for the detailed procedure of role creation.