Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A06A9C186 for ; Fri, 25 Jan 2013 12:33:13 +0000 (UTC) Received: (qmail 41544 invoked by uid 500); 25 Jan 2013 12:33:13 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 41527 invoked by uid 500); 25 Jan 2013 12:33:13 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 41488 invoked by uid 99); 25 Jan 2013 12:33:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jan 2013 12:33:12 +0000 Date: Fri, 25 Jan 2013 12:33:12 +0000 (UTC) From: "Marios Andreou (JIRA)" To: dev@deltacloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DTACLOUD-438) Import SSH key into Amazon EC2 not working as expected 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/DTACLOUD-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13562628#comment-13562628 ] Marios Andreou commented on DTACLOUD-438: ----------------------------------------- our ec2 driver is calling the CreateKeyPair method rather than the ImportKeyPair... from the AWS API: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CreateKeyPair.html vs http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-ImportKeyPair.html from a quick look at the aws rubygem (currently 2.6.0) - import isn't yet implemented. So we'll have to first open a pull request against that, before adding the logic to the ec2 driver create_key method (see openstack driver for example, which handles the import case). working on it. > Import SSH key into Amazon EC2 not working as expected > ------------------------------------------------------ > > Key: DTACLOUD-438 > URL: https://issues.apache.org/jira/browse/DTACLOUD-438 > Project: DeltaCloud > Issue Type: Bug > Components: Server > Reporter: Enrique Fernandez Casado > Assignee: Marios Andreou > > curl -X POST --user "user:pass" -F "name=mynewkey" -F "public_key=`cat /location/of/public/key/id_rsa.pub`" http://localhost:3001/api/keys?format=xml > seems to be creating a new SSH key (using the provided key name) rather than importing the provided one -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira