Amazon web services aws导入映像(创建ami)调用失败,出现内部错误

Amazon web services aws导入映像(创建ami)调用失败,出现内部错误,amazon-web-services,amazon-ec2,boto3,Amazon Web Services,Amazon Ec2,Boto3,我正在尝试执行boto3 api import_image,它基本上接受磁盘描述并触发import image任务,并返回包含任务id的响应 调用ImportImage时发生错误(InternalError) 操作:无 试试看: 响应=ec2\u客户端。导入\u映像(描述=描述,DiskContainers=磁盘\u容器) response\u import\u image\u task\u id=response.get('ImportTaskId',无) 除异常、故障外: logger.er

我正在尝试执行boto3 api import_image,它基本上接受磁盘描述并触发import image任务,并返回包含任务id的响应

调用ImportImage时发生错误(InternalError) 操作:无

试试看:
响应=ec2\u客户端。导入\u映像(描述=描述,DiskContainers=磁盘\u容器)
response\u import\u image\u task\u id=response.get('ImportTaskId',无)
除异常、故障外:
logger.error('awsDRLib:'%s'%str(错误))
#这里捕捉到内部错误。
记录器。回溯(故障)
提出错误
#还将重试该操作,稍后收到错误ResourceCountExecuted。
此错误是随机的,aws实例没有权限问题。我正在重新尝试这个手术。得到相同的错误4-5次,然后得到“ResourceCountOversed”

我可以理解,当正在进行的导入映像操作超过允许的限制时,ResourceCountOverseed就会出现。但由于启动时出现InternalError,所以不应该启动导入映像操作

是否有任何api可以告诉有多少导入图像操作正在进行。。?? 请帮助纠正此问题

try:
    response = ec2_client.import_image(Description = description, DiskContainers = disk_containers)
    response_import_image_task_id = response.get('ImportTaskId', None)
except Exception, fault:
     logger.error('awsDRLib<initiate_import_image>: '%s' %str(fault))
     #InternalError is caught here.
     logger.traceback(fault)
     raise fault
#also retrying the operation and later receiving error ResourceCountExeceeded.