glance-api stops when cinder_store user credentials are not configured
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glance_store |
New
|
Undecided
|
Unassigned |
Bug Description
glance-api service stops with the following error with cinder storage backend (verified in xena).
ERROR: 'NoneType' object has no attribute 'user_id'
Glance-api configuration that lead to the error:
[DEFAULT]
...
enabled_backends = local:file, ceph:rbd, __DEFAULT__:cinder
...
[glance_store]
default_backend = ceph
filesystem_
...
...
[local]
filesystem_
store_description = Local filesystem store
[ceph]
rbd_store_
rbd_store_pool = glance
rbd_store_user = glance
rados_connect_
rbd_store_ceph_conf = /etc/ceph/ceph.conf
[__DEFAULT__]
cinder_volume_type = __DEFAULT__
The error occurs in specific case where cinder_volume_type is defined for the store but not cinder_
Since there is no context passed while creating cinderclient [1] and cinder_
Probably this should leave a WARNING message in logs instead of stopping the glance-api service just like the behaviour when cinder service is not started.
[1] https:/
description: | updated |
tags: | added: seg |