Glance fail to alert when rados packages are not installed

Bug #1338485 reported by Yogev Rabl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Invalid
Undecided
Unassigned

Bug Description

Description of problem:
When the Glance is configure to work with rbd backend (Ceph) & the Rados packages (python-ceph) are not installed the Error that the Glance's logs show is:

2014-07-07 11:28:27.982 2222 TRACE glance.api.v1.upload_utils Traceback (most recent call last):
2014-07-07 11:28:27.982 2222 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.7/site-packages/glance/api/v1/upload_utils.py", line 99, in upload_data_to_store
2014-07-07 11:28:27.982 2222 TRACE glance.api.v1.upload_utils store)
2014-07-07 11:28:27.982 2222 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.7/site-packages/glance/store/__init__.py", line 380, in store_add_to_backend
2014-07-07 11:28:27.982 2222 TRACE glance.api.v1.upload_utils (location, size, checksum, metadata) = store.add(image_id, data, size)
2014-07-07 11:28:27.982 2222 TRACE glance.api.v1.upload_utils File "/usr/lib/python2.7/site-packages/glance/store/rbd.py", line 319, in add
2014-07-07 11:28:27.982 2222 TRACE glance.api.v1.upload_utils with rados.Rados(conffile=self.conf_file, rados_id=self.user) as conn:
2014-07-07 11:28:27.982 2222 TRACE glance.api.v1.upload_utils AttributeError: 'NoneType' object has no attribute 'Rados'
2014-07-07 11:28:27.982 2222 TRACE glance.api.v1.upload_utils

Instead of catching an import error, the Glance should fail on the count of lack of Rados packages.

Version-Release number of selected component (if applicable):
python-glance-2014.1-4.el7ost.noarch
python-glanceclient-0.12.0-1.el7ost.noarch
openstack-glance-2014.1-4.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Configure the glance to work with rbd backend (see http://ceph.com/docs/master/rbd/rbd-openstack/?highlight=openstack). without installing the python-ceph packages.
2. try to create a new image.

Actual results:
The Glance catch an import error.

Expected results:
The Glance should alert that the Rados packages are missing.

Tags: backend
Erno Kuvaja (jokke)
tags: added: backend
Revision history for this message
Erno Kuvaja (jokke) wrote :

Actually the bindings need is clearly documented here: http://docs.openstack.org/developer/glance/configuring.html#configuring-the-rbd-storage-backend

I do not see point to keep this bug open.

Changed in glance:
status: New → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on glance_store (master)

Change abandoned by Flavio Percoco (<email address hidden>) on branch: master
Review: https://review.openstack.org/120014

Revision history for this message
Walt Boring (walter-boring) wrote :

fwiw I just ran into this issue too.

The docs link in comment #1 is now invalid.

The solution is to install the python-rados package (in ubuntu)

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.