Skip to content

"Duplicate key pair" when launching two builds in parallel #136

Open
@Jalle19

Description

@Jalle19

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions