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

sathyamoorthy commented on LIBCLOUD-542:
----------------------------------------

Is there any soultion for this problem?
Even I am facing the issue 
>>> conn1.list_nodes()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File 
"/usr/local/lib/python2.7/dist-packages/libcloud/compute/drivers/openstack.py", 
line 177, in list_nodes
    self.connection.request('/servers/detail', params=params).object)
  File "/usr/local/lib/python2.7/dist-packages/libcloud/common/openstack.py", 
line 227, in request
    raw=raw)
  File "/usr/local/lib/python2.7/dist-packages/libcloud/common/base.py", line 
753, in request
    action = self.morph_action_hook(action)
  File "/usr/local/lib/python2.7/dist-packages/libcloud/common/openstack.py", 
line 294, in morph_action_hook
    self._populate_hosts_and_request_paths()
  File "/usr/local/lib/python2.7/dist-packages/libcloud/common/openstack.py", 
line 327, in _populate_hosts_and_request_paths
    osa = osa.authenticate(**kwargs)  # may throw InvalidCreds
  File 
"/usr/local/lib/python2.7/dist-packages/libcloud/common/openstack_identity.py", 
line 852, in authenticate
    return self._authenticate_2_0_with_password()
  File 
"/usr/local/lib/python2.7/dist-packages/libcloud/common/openstack_identity.py", 
line 877, in _authenticate_2_0_with_password
    return self._authenticate_2_0_with_body(reqbody)
  File 
"/usr/local/lib/python2.7/dist-packages/libcloud/common/openstack_identity.py", 
line 882, in _authenticate_2_0_with_body
    method='POST')
  File "/usr/local/lib/python2.7/dist-packages/libcloud/common/base.py", line 
862, in request
    response = responseCls(**kwargs)
  File "/usr/local/lib/python2.7/dist-packages/libcloud/common/base.py", line 
179, in __init__
    headers=self.headers)
libcloud.common.exceptions.BaseHTTPError: {"error": {"message": 
"get_version_v2() got an unexpected keyword argument 'auth'", "code": 400, 
"title": "Bad Request"}}


> Authentication against OpenStack stopped working
> ------------------------------------------------
>
>                 Key: LIBCLOUD-542
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-542
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>            Reporter: Torsten Schlabach
>            Priority: Blocker
>
> We are using the OpenStack driver against our own cloud server.
> This is the code we use for connecting and retrieving a list of images:
> fg_compute = driver(USERNAME, PASSWORD, host=STACKHOST, port=8774,
> secure=False,
>                     ex_tenant_name=TENANTNAME,
>                     ex_force_auth_version='2.0_password',
>                     ex_force_service_name='nova',
>                     ex_force_auth_url='http://%s:5000/v2.0/' % STACKHOST)
> images = fg_compute.list_images()
> This used to work until we switched to the latest trunk code today; now 
> getting the following error message:
> Traceback (most recent call last):
>   File "mail.py", line 86, in <module>
>     images = fg_compute.list_images()
>   File 
> "/usr/local/lib/python2.7/dist-packages/apache_libcloud-0.14.1-py2.7.egg/libcloud/compute/drivers/openstack.py",
>  line 297, in list_images
>     self.connection.request('/images/detail').object, ex_only_active)
>   File 
> "/usr/local/lib/python2.7/dist-packages/apache_libcloud-0.14.1-py2.7.egg/libcloud/compute/drivers/openstack.py",
>  line 161, in request
>     method=method, headers=headers)
>   File 
> "/usr/local/lib/python2.7/dist-packages/apache_libcloud-0.14.1-py2.7.egg/libcloud/common/openstack.py",
>  line 575, in request
>     return super(OpenStackBaseConnection, self).request(**kwargs)
>   File 
> "/usr/local/lib/python2.7/dist-packages/apache_libcloud-0.14.1-py2.7.egg/libcloud/common/base.py",
>  line 600, in request
>     action = self.morph_action_hook(action)
>   File 
> "/usr/local/lib/python2.7/dist-packages/apache_libcloud-0.14.1-py2.7.egg/libcloud/common/openstack.py",
>  line 571, in morph_action_hook
>     self._populate_hosts_and_request_paths()
>   File 
> "/usr/local/lib/python2.7/dist-packages/apache_libcloud-0.14.1-py2.7.egg/libcloud/common/openstack.py",
>  line 600, in _populate_hosts_and_request_paths
>     osa.authenticate()  # may throw InvalidCreds
>   File 
> "/usr/local/lib/python2.7/dist-packages/apache_libcloud-0.14.1-py2.7.egg/libcloud/common/openstack.py",
>  line 157, in authenticate
>     return self.authenticate_2_0_with_password()
>   File 
> "/usr/local/lib/python2.7/dist-packages/apache_libcloud-0.14.1-py2.7.egg/libcloud/common/openstack.py",
>  line 252, in authenticate_2_0_with_password
>     return self.authenticate_2_0_with_body(reqbody)
>   File 
> "/usr/local/lib/python2.7/dist-packages/apache_libcloud-0.14.1-py2.7.egg/libcloud/common/openstack.py",
>  line 264, in authenticate_2_0_with_body
>     driver=self.driver)
> libcloud.common.types.MalformedResponseError: <MalformedResponseException in 
> None 'Malformed response'>: 'code: 400 body: {"error": {"message": 
> "get_version_v2() got an unexpected keyword argument \'auth\'", "code": 400, 
> "title": "Bad Request"}}'



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to