Glance container need to have python-cinderclient installed

Bug #1478681 reported by Marc Gariépy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Medium
Marc Gariépy
Kilo
Fix Released
Medium
Jesse Pretorius
Trunk
Fix Released
Medium
Marc Gariépy

Bug Description

when using glance.sore.cinder.store in /etc/glance/glance-api.conf you need to install python-cinderclient to prevent the service to loop stacktrace in the logs.

2015-07-19 18:00:24.434 11756 ERROR stevedore.extension [-] Could not load 'glance.store.cinder.Store': No module named cinderclient
2015-07-19 18:00:24.435 11756 ERROR stevedore.extension [-] No module named cinderclient
2015-07-19 18:00:24.435 11756 ERROR stevedore.extension Traceback (most recent call last):
2015-07-19 18:00:24.435 11756 ERROR stevedore.extension File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 162, in _load_plugins
2015-07-19 18:00:24.435 11756 ERROR stevedore.extension verify_requirements,
2015-07-19 18:00:24.435 11756 ERROR stevedore.extension File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 183, in _load_one_plugin
2015-07-19 18:00:24.435 11756 ERROR stevedore.extension plugin = ep.resolve()
2015-07-19 18:00:24.435 11756 ERROR stevedore.extension File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2361, in resolve
2015-07-19 18:00:24.435 11756 ERROR stevedore.extension module = __import__(self.module_name, fromlist=['__name__'], level=0)
2015-07-19 18:00:24.435 11756 ERROR stevedore.extension File "/usr/local/lib/python2.7/dist-packages/glance_store/_drivers/cinder.py", line 17, in <module>
2015-07-19 18:00:24.435 11756 ERROR stevedore.extension from cinderclient import exceptions as cinder_exception
2015-07-19 18:00:24.435 11756 ERROR stevedore.extension ImportError: No module named cinderclient
2015-07-19 18:00:24.435 11756 ERROR stevedore.extension
2015-07-19 18:00:24.440 11756 ERROR stevedore.extension [-] Could not load 'cinder': No module named cinderclient
2015-07-19 18:00:24.441 11756 ERROR stevedore.extension [-] No module named cinderclient
2015-07-19 18:00:24.441 11756 ERROR stevedore.extension Traceback (most recent call last):
2015-07-19 18:00:24.441 11756 ERROR stevedore.extension File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 162, in _load_plugins
2015-07-19 18:00:24.441 11756 ERROR stevedore.extension verify_requirements,
2015-07-19 18:00:24.441 11756 ERROR stevedore.extension File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 183, in _load_one_plugin
2015-07-19 18:00:24.441 11756 ERROR stevedore.extension plugin = ep.resolve()
2015-07-19 18:00:24.441 11756 ERROR stevedore.extension File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2361, in resolve
2015-07-19 18:00:24.441 11756 ERROR stevedore.extension module = __import__(self.module_name, fromlist=['__name__'], level=0)
2015-07-19 18:00:24.441 11756 ERROR stevedore.extension File "/usr/local/lib/python2.7/dist-packages/glance_store/_drivers/cinder.py", line 17, in <module>
2015-07-19 18:00:24.441 11756 ERROR stevedore.extension from cinderclient import exceptions as cinder_exception
2015-07-19 18:00:24.441 11756 ERROR stevedore.extension ImportError: No module named cinderclient
2015-07-19 18:00:24.441 11756 ERROR stevedore.extension
2015-07-19 18:00:24.463 11756 CRITICAL glance [-] ImportError: No module named cinderclient

2015-07-19 18:00:24.463 11756 CRITICAL glance [-] ImportError: No module named cinderclient
2015-07-19 18:00:24.463 11756 ERROR glance Traceback (most recent call last):
2015-07-19 18:00:24.463 11756 ERROR glance File "/usr/local/bin/glance-api", line 11, in <module>
2015-07-19 18:00:24.463 11756 ERROR glance sys.exit(main())
2015-07-19 18:00:24.463 11756 ERROR glance File "/usr/local/lib/python2.7/dist-packages/glance/cmd/api.py", line 88, in main
2015-07-19 18:00:24.463 11756 ERROR glance server.start(config.load_paste_app('glance-api'), default_port=9292)
2015-07-19 18:00:24.463 11756 ERROR glance File "/usr/local/lib/python2.7/dist-packages/glance/common/wsgi.py", line 303, in start
2015-07-19 18:00:24.463 11756 ERROR glance self.configure()
2015-07-19 18:00:24.463 11756 ERROR glance File "/usr/local/lib/python2.7/dist-packages/glance/common/wsgi.py", line 378, in configure
2015-07-19 18:00:24.463 11756 ERROR glance initialize_glance_store()
2015-07-19 18:00:24.463 11756 ERROR glance File "/usr/local/lib/python2.7/dist-packages/glance/common/wsgi.py", line 224, in initialize_glance_store
2015-07-19 18:00:24.463 11756 ERROR glance glance_store.create_stores(CONF)
2015-07-19 18:00:24.463 11756 ERROR glance File "/usr/local/lib/python2.7/dist-packages/glance_store/backend.py", line 184, in create_stores
2015-07-19 18:00:24.463 11756 ERROR glance for (store_entry, store_instance) in _load_stores(conf):
2015-07-19 18:00:24.463 11756 ERROR glance File "/usr/local/lib/python2.7/dist-packages/glance_store/backend.py", line 166, in _load_stores
2015-07-19 18:00:24.463 11756 ERROR glance store_instance = _load_store(conf, store_entry)
2015-07-19 18:00:24.463 11756 ERROR glance File "/usr/local/lib/python2.7/dist-packages/glance_store/backend.py", line 153, in _load_store
2015-07-19 18:00:24.463 11756 ERROR glance invoke_on_load=invoke_load)
2015-07-19 18:00:24.463 11756 ERROR glance File "/usr/local/lib/python2.7/dist-packages/stevedore/driver.py", line 45, in __init__
2015-07-19 18:00:24.463 11756 ERROR glance verify_requirements=verify_requirements,
2015-07-19 18:00:24.463 11756 ERROR glance File "/usr/local/lib/python2.7/dist-packages/stevedore/named.py", line 55, in __init__
2015-07-19 18:00:24.463 11756 ERROR glance verify_requirements)
2015-07-19 18:00:24.463 11756 ERROR glance File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 170, in _load_plugins
2015-07-19 18:00:24.463 11756 ERROR glance self._on_load_failure_callback(self, ep, err)
2015-07-19 18:00:24.463 11756 ERROR glance File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 162, in _load_plugins
2015-07-19 18:00:24.463 11756 ERROR glance verify_requirements,
2015-07-19 18:00:24.463 11756 ERROR glance File "/usr/local/lib/python2.7/dist-packages/stevedore/named.py", line 123, in _load_one_plugin
2015-07-19 18:00:24.463 11756 ERROR glance verify_requirements,
2015-07-19 18:00:24.463 11756 ERROR glance File "/usr/local/lib/python2.7/dist-packages/stevedore/extension.py", line 183, in _load_one_plugin
2015-07-19 18:00:24.463 11756 ERROR glance plugin = ep.resolve()
2015-07-19 18:00:24.463 11756 ERROR glance File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2361, in resolve
2015-07-19 18:00:24.463 11756 ERROR glance module = __import__(self.module_name, fromlist=['__name__'], level=0)
2015-07-19 18:00:24.463 11756 ERROR glance File "/usr/local/lib/python2.7/dist-packages/glance_store/_drivers/cinder.py", line 17, in <module>
2015-07-19 18:00:24.463 11756 ERROR glance from cinderclient import exceptions as cinder_exception
2015-07-19 18:00:24.463 11756 ERROR glance ImportError: No module named cinderclient
2015-07-19 18:00:24.463 11756 ERROR glance

Marc Gariépy (mgariepy)
Changed in openstack-ansible:
assignee: nobody → Marc Gariépy (mgariepy)
Revision history for this message
Marc Gariépy (mgariepy) wrote :
Changed in openstack-ansible:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-ansible-deployment (master)

Reviewed: https://review.openstack.org/206199
Committed: https://git.openstack.org/cgit/stackforge/os-ansible-deployment/commit/?id=70e1d068afb4f7a35b9bb4ea16fcf90b15607cc5
Submitter: Jenkins
Branch: master

commit 70e1d068afb4f7a35b9bb4ea16fcf90b15607cc5
Author: Marc Gariepy <email address hidden>
Date: Mon Jul 27 15:49:17 2015 -0400

    Add python-cinderclient to os_glance role

    This patch adds python-cinderclient to the os_glance pip packages
    list and removes the duplicate python-glanceclient from the list.

    Change-Id: Ia5a2e04838111053b71c94838002c5319ff4386c
    Closes-Bug: #1478681

Changed in openstack-ansible:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-ansible-deployment (kilo)

Reviewed: https://review.openstack.org/207130
Committed: https://git.openstack.org/cgit/stackforge/os-ansible-deployment/commit/?id=1d236a403918952744ec877f7e4128037a65e80c
Submitter: Jenkins
Branch: kilo

commit 1d236a403918952744ec877f7e4128037a65e80c
Author: Marc Gariepy <email address hidden>
Date: Mon Jul 27 15:49:17 2015 -0400

    Add python-cinderclient to os_glance role

    This patch adds python-cinderclient to the os_glance pip packages
    list and removes the duplicate python-glanceclient from the list.

    Change-Id: Ia5a2e04838111053b71c94838002c5319ff4386c
    Closes-Bug: #1478681
    (cherry picked from commit 70e1d068afb4f7a35b9bb4ea16fcf90b15607cc5)

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/openstack-ansible 11.2.11

This issue was fixed in the openstack/openstack-ansible 11.2.11 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 11.2.12

This issue was fixed in the openstack/openstack-ansible 11.2.12 release.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/openstack-ansible 11.2.14

This issue was fixed in the openstack/openstack-ansible 11.2.14 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.