[
https://issues.apache.org/jira/browse/LIBCLOUD-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13802560#comment-13802560
]
Hyungro Lee commented on LIBCLOUD-415:
--------------------------------------
Here is the debug output.
>>> conn.ex_delete_keypair('hrlee')
# -------- begin 31062712 request ----------
curl -i -X GET -H 'Host: openstack.edu:8773' -H 'X-LC-Request-ID: 31062712' -H
'Accept-Encoding: gzip,deflate' -H 'User-Agent: libcloud/0.14.0-beta2
(Eucalyptus) ' --compress
'https://openstack.edu:8773/services/Cloud?SignatureVersion=2&AWSAccessKeyId={...}&Timestamp=2013-10-23T03%3A24%3A16Z&KeyName.1=hrlee&SignatureMethod=HmacSHA256&Version=2010-08-31&Signature={...}&Action=DeleteKeyPair'
# -------- begin 31062712:31063576 response ----------
HTTP/1.1 400 Bad Request
Content-Length: 194
Content-Encoding: gzip
Vary: Accept-Encoding
Server: Apache/2.2.22 (Ubuntu)
Connection: close
Date: Wed, 23 Oct 2013 03:25:04 GMT
Content-Type: text/xml
<?xml version="1.0"?>
<Response><Errors><Error><Code>UnknownError</Code><Message>An unknown error has
occurred. Please try your request
again.</Message></Error></Errors><RequestID>req-...</RequestID></Response>
# -------- end 31062712:31063576 response ----------
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.
> 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)