You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue related to #8777 and reproduced on current master.
When using spot instances with the amazon-ebssurrogate builder, the builder is not able to lookup the id of the source volume(s). This appears to be because it issues the describe instance call to AWS after it has stopped the EC2 instance, and not before.
Reproduction Steps
Try and use spot instances with amazon-ebssurrogate, you'll get the following error regardless of the value of delete_on_termination in the launch_block_device_mappings config:
==> amazon-ebssurrogate: 1 error occurred:
==> amazon-ebssurrogate: * Volume ID for device /dev/xvdf not found
==> amazon-ebssurrogate:
==> amazon-ebssurrogate:
Simply replacing the spot_* configuration options with instance_type works.
Packer version
[safarov@safarov-dell intetics]$ packer version
Packer v1.6.0-dev (19e4afa728c02104d2c0571e6c6fb86278009a75)
Just found when the issue is happening removed target volume and not deleted VM root volume.
So think packer delete target volume instead of VM root volume when used spot instances.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked as resolved and limited conversation to collaborators
Apr 29, 2021
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Overview of the Issue
Issue related to #8777 and reproduced on current master.
When using spot instances with the
amazon-ebssurrogate
builder, the builder is not able to lookup the id of the source volume(s). This appears to be because it issues the describe instance call to AWS after it has stopped the EC2 instance, and not before.Reproduction Steps
Try and use spot instances with
amazon-ebssurrogate
, you'll get the following error regardless of the value ofdelete_on_termination
in thelaunch_block_device_mappings
config:Simply replacing the
spot_*
configuration options withinstance_type
works.Packer version
Simplified Packer Buildfile
Fails:
Works:
Operating system and Environment details
Tested on Linux.
Log Fragments and crash.log files
The text was updated successfully, but these errors were encountered: