[ https://issues.apache.org/jira/browse/CLOUDSTACK-8537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14578681#comment-14578681 ]
Daan Hoogland edited comment on CLOUDSTACK-8537 at 6/9/15 11:24 AM: -------------------------------------------------------------------- [~benjvi], please see https://github.com/apache/cloudstack/commit/80c54773f38e67cbc54c07380b86e65ec102feff if you need to fix this in your env. I will add tests and need to refactor for that. It seems trivial enough so you might dare to. I won't submit until I did the rest of the work and found a spot to do that. was (Author: dahn): Benjamin, please see https://github.com/apache/cloudstack/commit/80c54773f38e67cbc54c07380b86e65ec102feff if you need to fix this in your env. I will add tests and need to refactor for that. It seems trivial enough so you might dare to. I won't submit until I did the rest of the work and found a spot to do that. > Duplicated SSH Keys/ deployVirtualMachine returns wrong keypair name > -------------------------------------------------------------------- > > Key: CLOUDSTACK-8537 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8537 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: API > Affects Versions: 4.3.0 > Reporter: Benjamin vickers > Assignee: Daan Hoogland > > Steps: > 1. Register 2 SSH keypairs sequentially in the same account, both with > identical public key text, and with names "keypair1" and "keypair2" > 2. Send deployVirtualMachine request, with the keypair parameter set to > "keypair2" > 3. deployVirtualMachine response sends back value "keypair1" > I am using this with the Terraform (IaC) project and this behaviour breaks > convergence. I would expect that either > (i) duplicate copies of the same SSH key are not allowed to be registered > (ii) instance must send back the same key pair name as was requested -- This message was sent by Atlassian JIRA (v6.3.4#6332)