libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hyungro Lee (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LIBCLOUD-415) ex_delete_keypair() spits UnkownError in the ec2 driver
Date Wed, 23 Oct 2013 06:35:41 GMT

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

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

Hi,

I tested euca2ools and it seems working fine. Here is the debug output that I captured:

hrlee@:~$ euca-delete-keypair --debug hrlee
2013-10-23 02:30:09,039 euca2ools [DEBUG]:Method: POST
2013-10-23 02:30:09,039 euca2ools [DEBUG]:Path: /services/Cloud/
2013-10-23 02:30:09,039 euca2ools [DEBUG]:Data:
2013-10-23 02:30:09,039 euca2ools [DEBUG]:Headers: {}
2013-10-23 02:30:09,039 euca2ools [DEBUG]:Host: openstack.edu:8773
2013-10-23 02:30:09,039 euca2ools [DEBUG]:establishing HTTPS connection: host=openstack.edu:8773,
kwargs={}
2013-10-23 02:30:09,039 euca2ools [DEBUG]:Token: None
2013-10-23 02:30:09,039 euca2ools [DEBUG]:using _calc_signature_2
2013-10-23 02:30:09,039 euca2ools [DEBUG]:query string: AWSAccessKeyId={...}&Action=DeleteKeyPair&KeyName=hrlee&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2013-10-23T06%3A30%3A09Z&Version=2009-11-30
2013-10-23 02:30:09,039 euca2ools [DEBUG]:string_to_sign: POST
openstack.edu:8773
/services/Cloud/
AWSAccessKeyId={...}&Action=DeleteKeyPair&KeyName=hrlee&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2013-10-23T06%3A30%3A09Z&Version=2009-11-30
2013-10-23 02:30:09,040 euca2ools [DEBUG]:len(b64)=44
2013-10-23 02:30:09,040 euca2ools [DEBUG]:base64 encoded digest: {..}
2013-10-23 02:30:09,040 euca2ools [DEBUG]:query_string: AWSAccessKeyId={...}&Action=DeleteKeyPair&KeyName=hrlee&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2013-10-23T06%3A30%3A09Z&Version=2009-11-30
Signature: {...}
send: 'POST /services/Cloud/ HTTP/1.1\r\nHost: openstack.edu:8773\r\nAccept-Encoding: identity\r\nContent-Length:
250\r\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\r\nUser-Agent: Boto/2.4.1
(linux2)\r\n\r\nAWSAccessKeyId={...}&Action=DeleteKeyPair&KeyName=hrlee&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2013-10-23T06%3A30%3A09Z&Version=2009-11-30&Signature={...}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Wed, 23 Oct 2013 06:30:09 GMT
header: Server: Apache/2.2.22 (Ubuntu)
header: Content-Length: 202
header: Vary: Accept-Encoding
header: Content-Type: text/xml
2013-10-23 02:30:09,311 euca2ools [DEBUG]:<?xml version="1.0" ?><DeleteKeyPairResponse
xmlns="http://ec2.amazonaws.com/doc/2009-11-30/"><requestId>req-...-...-...-...-...</requestId><return>true</return></DeleteKeyPairResponse>
KEYPAIR hrlee



> 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)

Mime
View raw message