[ansible-project] Re: core.cloud.openstack Error Fetching Image List

2015-12-15 Thread David Shrewsbury
Seems to have been a glance client bug:

https://bugs.launchpad.net/python-glanceclient/+bug/1526254

You can try 'pip install -U requests' which may work around the issue for 
you until
a new glanceclient is released.

-Dave


On Monday, December 14, 2015 at 3:10:57 PM UTC-5, Hugh Ma wrote:
>
> >>> glanceclient.__version__
> '1.2.0'
> >>> print requests.__version__
> 2.2.1
>
>
> On Friday, December 11, 2015 at 9:08:53 AM UTC-8, David Shrewsbury wrote:
>>
>> What version of python-glanceclient and requests do you have installed?
>>
>>
>>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7dc9985b-3596-4c1e-b3c3-96d8f7d428b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: core.cloud.openstack Error Fetching Image List

2015-12-15 Thread Hugh Ma
Perfect thanks. 

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7a4e0ca7-f809-4809-89a7-8b885f8f2dfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: core.cloud.openstack Error Fetching Image List

2015-12-14 Thread Hugh Ma
>>> glanceclient.__version__
'1.2.0'
>>> print requests.__version__
2.2.1


On Friday, December 11, 2015 at 9:08:53 AM UTC-8, David Shrewsbury wrote:
>
> What version of python-glanceclient and requests do you have installed?
>
>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f195b7c4-cd67-4399-a60e-37c90c7e1d4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: core.cloud.openstack Error Fetching Image List

2015-12-11 Thread David Shrewsbury
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 
> from glanceclient.v2.client import Client  # noqa
>   File "/usr/local/lib/python2.7/dist-packages/glanceclient/v2/client.py", 
> line 17, in 
> from glanceclient.common import http
>   File 
> "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 
> 26, in 
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
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.


[ansible-project] Re: core.cloud.openstack Error Fetching Image List

2015-12-10 Thread Hugh Ma
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 
from glanceclient.v2.client import Client  # noqa
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/v2/client.py", 
line 17, in 
from glanceclient.common import http
  File 
"/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 
26, in 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/de24017f-6717-45c7-b4e0-3821b4b2ede6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.