Skip to content

Timeout waiting for long running Amazon EBS AMI copies on v1.2.5 #6536

@nathandines

Description

@nathandines

This is probably more a lack of documentation around the attempts and polling delay than a functional issue. Also, the error should be more verbose by default. The output below was with PACKER_LOG=1 set

[14:22:45]	==> amazon-ebs: Waiting for AMI to become ready...
[14:22:45]	2018/07/25 04:22:45 packer.exe: 2018/07/25 04:22:45 No AWS timeout and polling overrides have been set. Packer will defalt to waiter-specific delays and timeouts. If you would like to customize the length of time between retries and max number of retries you may do so by setting the environment variables AWS_POLL_DELAY_SECONDS and AWS_MAX_ATTEMPTS to your desired values.
[14:33:19]	2018/07/25 04:33:19 packer.exe: 2018/07/25 04:33:19 Error waiting for AMI: ResourceNotReady: exceeded wait attempts
[14:33:19]	==> amazon-ebs: Error waiting for AMI. Reason: <nil>
[14:33:19]	2018/07/25 04:33:19 ui error: ==> amazon-ebs: Error waiting for AMI. Reason: <nil>
[14:33:19]	2018/07/25 04:33:19 ui: ==> amazon-ebs: Terminating the source AWS instance...
[14:33:19]	==> amazon-ebs: Terminating the source AWS instance...
[14:33:19]	2018/07/25 04:33:19 packer.exe: 2018/07/25 04:33:19 No AWS timeout and polling overrides have been set. Packer will defalt to waiter-specific delays and timeouts. If you would like to customize the length of time between retries and max number of retries you may do so by setting the environment variables AWS_POLL_DELAY_SECONDS and AWS_MAX_ATTEMPTS to your desired values.
[14:33:36]	2018/07/25 04:33:36 ui: ==> amazon-ebs: Cleaning up any extra volumes...
[14:33:36]	==> amazon-ebs: Cleaning up any extra volumes...
[14:33:36]	2018/07/25 04:33:36 ui: ==> amazon-ebs: Deleting temporary security group...
[14:33:36]	==> amazon-ebs: Deleting temporary security group...
[14:33:37]	==> amazon-ebs: Deleting temporary keypair...
[14:33:37]	2018/07/25 04:33:37 ui: ==> amazon-ebs: Deleting temporary keypair...
[14:33:37]	2018/07/25 04:33:37 [INFO] (telemetry) ending amazon-ebs
[14:33:37]	Build 'amazon-ebs' errored: Error waiting for AMI. Reason: <nil>
[14:33:37]	2018/07/25 04:33:37 ui error: Build 'amazon-ebs' errored: Error waiting for AMI. Reason: <nil>
[14:33:37]	2018/07/25 04:33:37 Builds completed. Waiting on interrupt barrier...
[14:33:37]	
[14:33:37]	2018/07/25 04:33:37 machine readable: error-count []string{"1"}
[14:33:37]	==> Some builds didn't complete successfully and had errors:
[14:33:37]	2018/07/25 04:33:37 ui error:
[14:33:37]	--> amazon-ebs: Error waiting for AMI. Reason: <nil>
[14:33:37]	==> Some builds didn't complete successfully and had errors:
[14:33:37]	
[14:33:37]	2018/07/25 04:33:37 machine readable: amazon-ebs,error []string{"Error waiting for AMI. Reason: <nil>"}
[14:33:37]	==> Builds finished but no artifacts were created.
[14:33:37]	2018/07/25 04:33:37 ui error: --> amazon-ebs: Error waiting for AMI. Reason: <nil>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions