What version of python-glanceclient and requests do you have installed?


On Thursday, December 10, 2015 at 2:08:47 PM UTC-5, Hugh Ma wrote:
>
> This is from the inventory script. Everything is fine until it hits glance 
> to pull the image object.
>
> Couldn't construct image object
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.7/dist-packages/shade/openstackcloud.py", 
> line 254, in _get_client
>     **kwargs)
>   File 
> "/usr/local/lib/python2.7/dist-packages/os_client_config/cloud_config.py", 
> line 300, in get_legacy_client
>     return client_class(*constructor_args, **constructor_kwargs)
>   File "/usr/local/lib/python2.7/dist-packages/glanceclient/client.py", 
> line 59, in Client
>     module = utils.import_versioned_module(int(version), 'client')
>   File 
> "/usr/local/lib/python2.7/dist-packages/glanceclient/common/utils.py", line 
> 281, in import_versioned_module
>     return importutils.import_module(module)
>   File "/usr/local/lib/python2.7/dist-packages/oslo_utils/importutils.py", 
> line 73, in import_module
>     __import__(import_str)
>   File 
> "/usr/local/lib/python2.7/dist-packages/glanceclient/v2/__init__.py", line 
> 15, in <module>
>     from glanceclient.v2.client import Client      # noqa
>   File "/usr/local/lib/python2.7/dist-packages/glanceclient/v2/client.py", 
> line 17, in <module>
>     from glanceclient.common import http
>   File 
> "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 
> 26, in <module>
>     ProtocolError = requests.packages.urllib3.exceptions.ProtocolError
> AttributeError: 'module' object has no attribute 'packages'
> Error fetching image list: 'module' object has no attribute 'packages'
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/eb28fb22-6147-4062-9736-b91fd03acc22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to