New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InvalidKeyPair.Duplicate #552
Comments
One solution to work around this issue is to change one of the builder's undocumented temporary key_pair name:
|
It's the same issue with the unique security group that's created. Something is preventing the UUIDs from being randomly unique. |
For some reason the UUID is the same for the same key for both amazon-ebs and amazon-instance but notice that the UUID is different between the keypair and security group. |
This looks to have been added in 697c91b. I take it you're running |
math/crypto is seeded with 1 and thus will create predictable UUIDs. Because amazon-instance and amazon-ebs in the same second when building both targets the timestamp in front doesn't help either. See hashicorp#552
Yeah I should have specified that I'm using 0.3.10. See related PR for a fix |
My issue #556 was closed as a dupe of this one, though it had the added point of interest that the conflicts I experienced were in totally separate builds that happened to start at the same time—there's no requirement that 'amazon-ebs' and 'amazon-instance' be built in the same run. @mitchellh: I have had 12 builds fail due to this issue since I upgraded to 0.3.10 yesterday afternoon; do you think there could be a hotfix release soon, or should I roll back to 0.3.9? |
@patricklucas Are you able to build from source? This should be fixed in HEAD, but I can't speak to a point release |
@mwhooker Thanks for merging the change. I would prefer sticking to a release, but it's not a huge deal to roll back to an earlier release. (Though I would lose the two fixes I contributed for some problems we experienced <v0.3.10) I am continuing to see failures due to #552 fairly consistently since we use Packer in an automated build system where multiple builds can be triggered simultaneously due to upstream changes. This means that v0.3.10 is an essentially unusable release for production purposes, and a point release I believe is warranted. If possible, I'd rather not spend the time to roll back the package across our cluster, but if it's going to be longer than a day or so, I will do that to cut back on the error emails my team is getting due to the persistent failures. |
@patricklucas Please roll back for now. I may backport the entropy fix. Sorry about that. This is fixed in git. |
math/crypto is seeded with 1 and thus will create predictable UUIDs. Because amazon-instance and amazon-ebs in the same second when building both targets the timestamp in front doesn't help either. See #552
I've been seeing this quite a bit today (version 0.7.5). Stuck or terminated old packer runs leave behind lots of keypairs in AWS. Cleaning them up seemed to help. Not sure if this is a new issue or not. I'm running a few different packer builds in a row and have been seeing this on the 2nd packer run. |
When targeting amazon-instance and amazon-ebs in the same build, one of both will fail because the temporary key pair has the same name:
The text was updated successfully, but these errors were encountered: