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’