hashicorp / hashicorp/packer-plugin-tencentcloud
"Duplicate key pair" when launching two builds in parallel
- Dominant language
- Go
- Stars
- 8
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Build 1:
```
==> sc-rocky-bastion.tencentcloud-cvm.ruby3: Trying to create a new keypair: packer_67288087...
==> sc-rocky-bastion.tencentcloud-cvm.ruby3: Keypair created: skey-kkzc7ghl
```
Meanwhile in build 2:
```
==> sc-rocky-deploynode.tencentcloud-cvm.deploynode: Trying to create a new keypair: packer_67288087...
==> sc-rocky-deploynode.tencentcloud-cvm.deploynode: Failed to create keypair: [TencentCloudSDKError] Code=InvalidKeyPairName.Duplicate, Message=The specified key pair name already exists., RequestId=1abcf2d4-4eae-4243-9bc1-1441a80c247c
```
The problem is that the name used for the key pair is not unique enough.
Contributor guide
Assessment
This issue has not been assessed yet.