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

Hyungro Lee commented on LIBCLOUD-415:
--------------------------------------

I just tested it seems working fine. Thanks for the quick patch!

>>> conn.ex_delete_keypair('hrlee')
# -------- begin 48257936 request ----------
curl -i -X GET -H 'Host: openstack.edu:8773' -H 'X-LC-Request-ID: 48257936' -H 
'Accept-Encoding: gzip,deflate' -H 'User-Agent: libcloud/0.14.0-beta2 
(Eucalyptus) ' --compress 
'https://openstack.edu:8773/services/Cloud?SignatureVersion=2&AWSAccessKeyId={...}&Version=2010-08-31&Timestamp=2013-10-23T19%3A11%3A08Z&SignatureMethod=HmacSHA256&KeyName=hrlee&Signature={...}&Action=DeleteKeyPair'
# -------- begin 48257936:48257720 response ----------
HTTP/1.1 200 OK
Content-Length: 174
Content-Encoding: gzip
Vary: Accept-Encoding
Server: Apache/2.2.22 (Ubuntu)
Date: Wed, 23 Oct 2013 19:11:57 GMT
Content-Type: text/xml

<?xml version="1.0" ?><DeleteKeyPairResponse 
xmlns="http://ec2.amazonaws.com/doc/2010-08-31/";><requestId>{...}</requestId><return>true</return></DeleteKeyPairResponse>
# -------- end 48257936:48257720 response ----------

Thank you!

> 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
>         Attachments: fix-delete-keypair.patch
>
>
> 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)

Reply via email to