Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 192AF187A5 for ; Thu, 13 Aug 2015 05:24:46 +0000 (UTC) Received: (qmail 13971 invoked by uid 500); 13 Aug 2015 05:24:45 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 13934 invoked by uid 500); 13 Aug 2015 05:24:45 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 13924 invoked by uid 500); 13 Aug 2015 05:24:45 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 13921 invoked by uid 99); 13 Aug 2015 05:24:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Aug 2015 05:24:45 +0000 Date: Thu, 13 Aug 2015 05:24:45 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-8727) API call listVirtualMachines returns same keypair MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-8727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14694710#comment-14694710 ] ASF GitHub Bot commented on CLOUDSTACK-8727: -------------------------------------------- Github user kansal commented on the pull request: https://github.com/apache/cloudstack/pull/685#issuecomment-130539282 @kishankavala The current implementation of the createSSHKeyPair checks for the keypair-name in the table ssh_keypairs and if that name exists it will return "A keypair with the exists." But at the time of inserting the keypairs it will not insert the same key once again because of the UNIQUE constraint that is added in the above commit. So In a way the duplication problem is automatically checked. > API call listVirtualMachines returns same keypair > ------------------------------------------------- > > Key: CLOUDSTACK-8727 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8727 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the default.) > Reporter: Kshitij Kansal > > If you register 2 SSH keypairs with the same public key then listVirtualMachines API call will only return the first keypair. Although its a very rare case and generally don't make much sense by registering the same key with different name, still it can be fixed. -- This message was sent by Atlassian JIRA (v6.3.4#6332)