libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LIBCLOUD-806) VSphere Driver - TypeError
Date Wed, 04 Jan 2017 09:30:59 GMT

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

ASF GitHub Bot commented on LIBCLOUD-806:
-----------------------------------------

GitHub user tonybaloney opened a pull request:

    https://github.com/apache/libcloud/pull/967

    fix vsphere driver issue LIBCLOUD-806

    Tested locally, but not pushed test case as it only works on Python2.7

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tonybaloney/libcloud vsphere_tests

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/libcloud/pull/967.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #967
    
----
commit 313e1697e2b7405825befe9f27f2620f8489ec4a
Author: Anthony Shaw <anthonyshaw@apache.org>
Date:   2017-01-04T09:28:20Z

    fix vsphere driver

----


> VSphere Driver - TypeError
> --------------------------
>
>                 Key: LIBCLOUD-806
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-806
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>         Environment: Ubuntu 15.10
> Python 2.7.10
> libcloud 0.20.1 (installed via pip)
>            Reporter: Fabian Dörk
>
> The code below form the docs throws a TypeError while creating the libcloud.compute.drivers.vsphere.VSphereConnection
object:
> {quote}
> #!env python
> from pprint import pprint 
> from libcloud.compute.types import Provider
> from libcloud.compute.providers import get_driver
> cls = get_driver(Provider.VSPHERE)
> driver = cls(url='https://vcenter.test.com:9443/sdk', username='test', password='aoduasoidasd087asda')
> print(driver.list_nodes())
> {quote}
> Exception raised looks like this: 
> {quote}
> Traceback (most recent call last):
>   File "test.py", line 30, in <module>
>     test()
>   File "test.py", line 17, in test
>     driver = cls(url='https://vcenter.test.com:9443/sdk/', username='test', password='aoduasoidasd087asda')
>   File "/home/fd/.local/lib/python2.7/site-packages/libcloud/compute/drivers/vsphere.py",
line 152, in __init__
>     port=port, url=url)
>   File "/home/fd/.local/lib/python2.7/site-packages/libcloud/common/base.py", line 1104,
in __init__
>     self.connection = self.connectionCls(*args, **conn_kwargs)
> TypeError: __init__() got an unexpected keyword argument 'retry_delay'
> {quote}
> And indeed, the function signature of __init__ in compute/drivers/vsphere.py:62 looks
incompatible with the kwargs dict passed by BaseDriver::__init__() in common/base.py:1099-1104.

> What can I do, to get this basic operation working? Is switching to development tree
more promising? 



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

Mime
View raw message