You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "Oleg Suharev (JIRA)" <ji...@apache.org> on 2013/10/23 08:10:43 UTC

[jira] [Comment Edited] (LIBCLOUD-415) ex_delete_keypair() spits UnkownError in the ec2 driver

    [ https://issues.apache.org/jira/browse/LIBCLOUD-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13802627#comment-13802627 ] 

Oleg Suharev edited comment on LIBCLOUD-415 at 10/23/13 6:10 AM:
-----------------------------------------------------------------

Hello

I'm checking this now and don't have any problem:

{code}
# -------- begin 4481412776 request ----------
curl -i -X GET -H 'Host: ec2.us-east-1.amazonaws.com' -H 'X-LC-Request-ID: 4481412776' -H 'Accept-Encoding: gzip,deflate' -H 'User-Agent: libcloud/0.14.0-dev (Amazon EC2) ' --compress 'https://ec2.us-east-1.amazonaws.com:443/?SignatureVersion=2&AWSAccessKeyId={...}&Timestamp=2013-10-23T06%3A04%3A08Z&KeyName.1=oleg&SignatureMethod=HmacSHA256&Version=2010-08-31&Signature={...}%3D&Action=DeleteKeyPair'
# -------- begin 4481412776:4481230248 response ----------
HTTP/1.1 200 OK
Content-Encoding: gzip
Transfer-Encoding: chunked
Vary: Accept-Encoding
Server: AmazonEC2
Date: Wed, 23 Oct 2013 06:04:09 GMT
Content-Type: text/xml;charset=UTF-8

e2
<?xml version="1.0" encoding="UTF-8"?>
<DeleteKeyPairResponse xmlns="http://ec2.amazonaws.com/doc/2010-08-31/">
    <requestId>2f36c66c-7eee-43f4-8dd4-c5517a0ea926</requestId>
    <return>true</return>
</DeleteKeyPairResponse>
0

# -------- end 4481412776:4481230248 response ----------
{code}

Maybe it's eucalyptus problem? I don't have any eucalyptus good installation and can't check on eucalyptus, on EC2 it work


was (Author: gigimon):
Hello

I'm checking this now and don't have any problem:

{code}
# -------- begin 4481412776 request ----------
curl -i -X GET -H 'Host: ec2.us-east-1.amazonaws.com' -H 'X-LC-Request-ID: 4481412776' -H 'Accept-Encoding: gzip,deflate' -H 'User-Agent: libcloud/0.14.0-dev (Amazon EC2) ' --compress 'https://ec2.us-east-1.amazonaws.com:443/?SignatureVersion=2&AWSAccessKeyId={...}&Timestamp=2013-10-23T06%3A04%3A08Z&KeyName.1=oleg&SignatureMethod=HmacSHA256&Version=2010-08-31&Signature={...}%3D&Action=DeleteKeyPair'
# -------- begin 4481412776:4481230248 response ----------
HTTP/1.1 200 OK
Content-Encoding: gzip
Transfer-Encoding: chunked
Vary: Accept-Encoding
Server: AmazonEC2
Date: Wed, 23 Oct 2013 06:04:09 GMT
Content-Type: text/xml;charset=UTF-8

e2
<?xml version="1.0" encoding="UTF-8"?>
<DeleteKeyPairResponse xmlns="http://ec2.amazonaws.com/doc/2010-08-31/">
    <requestId>2f36c66c-7eee-43f4-8dd4-c5517a0ea926</requestId>
    <return>true</return>
</DeleteKeyPairResponse>
0

# -------- end 4481412776:4481230248 response ----------
{code}

> ex_delete_keypair() spits UnkownError in the ec2 driver
> -------------------------------------------------------
>
>                 Key: LIBCLOUD-415
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-415
>             Project: Libcloud
>          Issue Type: Bug
>         Environment: 0.14.0-beta2-tentative
>            Reporter: Hyungro Lee
>
> I have been testing list/add/delete keypairs using libcloud ec2 driver but  I failed when I execute ex_delete_keypair().
> Here is the captured message:
> >>> conn.ex_delete_keypair('hrlee')
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "//apache-libcloud/libcloud/compute/drivers/ec2.py", line 886, in ex_delete_keypair
>     result = self.connection.request(self.path, params=params).object
>   File "//apache-libcloud/libcloud/common/base.py", line 622, in request
>     connection=self)
>   File "//apache-libcloud/libcloud/common/base.py", line 93, in __init__
>     raise Exception(self.parse_error())
> Exception: UnknownError: An unknown error has occurred. Please try your request again.
> It might be caused by my private cloud's fault settings but I just try to get some tips and comments from here first.
> Thank you.



--
This message was sent by Atlassian JIRA
(v6.1#6144)