简体   繁体   English

euca-import-volume转换挂起

[英]euca-import-volume conversion stuck on pending

I'm following imaging guide docs to create an EBS backed image: https://docs.eucalyptus.cloud/eucalyptus/4.4.5/index.html#image-guide/img_task_install_hvm_image.html 我正在关注成像指南文档以创建EBS支持的图像: https : //docs.eucalyptus.cloud/eucalyptus/4.4.5/index.html#image-guide/img_task_install_hvm_image.html

#import to volume
euca-import-volume CentOS-7-x86_64-GenericCloud-1901.raw --format raw --availability-zone zone-1 --bucket imagebucket --description "ebs backed centos7"

The conversion task after import is stuck in Pending conversion at ApproximateBytesConverted 0 and is making no progress. 导入后的转换任务在ApproximateBytesConverted 0处处于“ Pending conversion ,并且没有任何进展。 Any ideas on common causes of this? 有什么常见原因的想法吗?

[root@desktop ~]# euca-describe-conversion-tasks
TaskType    IMPORTVOLUME    TaskId  import-vol-a6baf98c ExpirationTime  Wed Apr 17 09:25:47 EDT 2019    Status  active  StatusMessage   Pending conversion
DISKIMAGE   DiskImageFormat RAW DiskImageSize   8589934592  VolumeId    vol-4ddda573    VolumeSize  8   AvailabilityZone    zone-1  ApproximateBytesConverted   0

The imaging worker is configured with m2.2xlarge but I'm seeing conflicting info about whether its launching. 映像工作程序配置了m2.2xlarge,但我看到有关是否启动的信息冲突。

[root@cloud ~]# euca-describe-instances --filter tag-value=euca-internal-imaging-workers
[root@cloud ~]# esi-describe-images
    SERVICE     VERSION  ACTIVE     IMAGE      INSTANCES 
    imaging     4.4.101    *     emi-ebfa1114      1     
 loadbalancing  4.4.101    *     emi-ebfa1114      0   

The conversion task staying in the pending state means there is an issue with the imaging worker instance. 转换任务停留在挂起状态意味着映像工作者实例存在问题。

The reason you do not see output from euca-describe-instances is that the imaging worker runs in the (eucalyptus)imaging service account rather than the eucalyptus account. 您看不到euca-describe-instances输出的原因是,映像工作人员在(eucalyptus)imaging服务帐户中运行,而不是在eucalyptus帐户中运行。 To see the instance details: 要查看实例详细信息:

#
# euare-rolelistbypath --as-account '(eucalyptus)imaging'
arn:aws:iam::123456789012:role/internal/imaging/euca-internal-imaging-service-Role-XXXXXXXXXXXXX
arn:aws:iam::123456789012:role/imaging/ImagingServiceAdministrator
# 
#
# eval $(euare-assumerole arn:aws:iam::123456789012:role/imaging/ImagingServiceAdministrator)
# 
#
# euca-describe-instances
RESERVATION r-3170...
# 
#
# eval $(euare-releaserole)
#
#

If there are issues with launching the instance then the CloudFormation service may have useful details, eg: 如果启动实例存在问题,则CloudFormation服务可能包含有用的详细信息,例如:

# euform-describe-stacks
# euform-describe-stack-events

The most common issue with the imaging worker is forgetting to set the ntp server to use, eg: 映像工作者最常见的问题是忘记设置要使用的ntp服务器,例如:

# euctl services.imaging.worker.ntp_server=time.google.com

this is just an example, you should use the ntp server for your environment. 这只是一个示例,您应该为您的环境使用ntp服务器。

To allow you to SSH to the imaging worker instance and check logs you should use euca-import-keypair as the imaging service administrator and then configure the key name: 为了允许您SSH连接到映像工作程序实例并检查日志,您应该使用euca-import-keypair作为映像服务管理员,然后配置密钥名称:

# euctl services.imaging.worker.keyname=KEYNAMEHERE

An easy way to restart the imaging worker and pick up any configuration changes is: 重新启动映像工作程序并获取所有配置更改的简单方法是:

# euctl services.imaging.worker.configured=false
# # wait for shutdown ...
# euctl services.imaging.worker.configured=true

I was able to use the manual helper instance method to create EBS backed hvm images: https://docs.eucalyptus.cloud/eucalyptus/4.4.5/index.html#image-guide/img_task_install_hvm_image.html 我能够使用手动帮助程序实例方法创建EBS支持的hvm图像: https ://docs.eucalyptus.cloud/eucalyptus/4.4.5/index.html#image-guide/img_task_install_hvm_image.html

Option C: Install an EBS image using a helper instance 选项C:使用帮助程序实例安装EBS映像

It is technically a supported method so I don't feel like its a workaround but it would be convenient to understand why Option A (euca-import-volume) isn't working for me as described. 从技术上讲,这一种受支持的方法,因此我不认为它是解决方法,但可以方便地理解为什么选项A(euca-import-volume)对我不起作用,如所述。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM