libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [libcloud] toabctl opened a new issue #1365: openstack v3 authentication fails with get_version_v3() got an unexpected keyword argument \'auth\'", "code": 400, "title": "Bad Request"
Date Tue, 05 Nov 2019 13:03:42 GMT
toabctl opened a new issue #1365: openstack v3 authentication fails with get_version_v3() got
an unexpected keyword argument \'auth\'", "code": 400, "title": "Bad Request"
URL: https://github.com/apache/libcloud/issues/1365
 
 
   ## Summary
   
   I try to authenticate against an internal OpenStack cloud that is based on OpenStack Rocky.

   
   ## Detailed Information
   
   My reproducer script is:
   ```
   #!/usr/bin/python
   from libcloud.compute.types import Provider
   from libcloud.compute.providers import get_driver
   import libcloud.security
   
   libcloud.security.VERIFY_SSL_CERT = False
   
   OpenStack = get_driver(Provider.OPENSTACK)
   OpenStack('USERNAME', 'SECRET_PASSWORD',
             ex_force_auth_url='https://mycloud.local:5000/v3',
             ex_tenant_name='cloud',
             ex_force_service_region='CustomRegion',
             ex_domain_name='ldap_users',
             ex_force_auth_version='3.x_password').list_images()
   ```
   
   Running that with the latest libcloud version from pypi (currently 2.6.0) in a virtual
env results in:
   ```
   $ PYTHONPATH=. python ~/tmp/test-libcloud.py 
   /home/tom/devel/apache/libcloud/foo/lib/python2.7/site-packages/urllib3/connectionpool.py:1004:
InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification
is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
     InsecureRequestWarning,
   Traceback (most recent call last):
     File "/home/tom/tmp/test-libcloud.py", line 16, in <module>
       ex_force_auth_version='3.x_password').list_images()
     File "/home/tom/devel/apache/libcloud/libcloud/compute/drivers/openstack.py", line 372,
in list_images
       self.connection.request('/images/detail').object, ex_only_active)
     File "/home/tom/devel/apache/libcloud/libcloud/common/openstack.py", line 225, in request
       raw=raw)
     File "/home/tom/devel/apache/libcloud/libcloud/common/base.py", line 538, in request
       action = self.morph_action_hook(action)
     File "/home/tom/devel/apache/libcloud/libcloud/common/openstack.py", line 292, in morph_action_hook
       self._populate_hosts_and_request_paths()
     File "/home/tom/devel/apache/libcloud/libcloud/common/openstack.py", line 326, in _populate_hosts_and_request_paths
       osa = osa.authenticate(**kwargs)  # may throw InvalidCreds
     File "/home/tom/devel/apache/libcloud/libcloud/common/openstack_identity.py", line 1027,
in authenticate
       method='POST')
     File "/home/tom/devel/apache/libcloud/libcloud/common/base.py", line 638, in request
       response = responseCls(**kwargs)
     File "/home/tom/devel/apache/libcloud/libcloud/common/base.py", line 152, in __init__
       headers=self.headers)
   libcloud.common.exceptions.BaseHTTPError: {"error": {"message": "get_version_v3() got an
unexpected keyword argument 'auth'", "code": 400, "title": "Bad Request"}}
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message