Caught error: 'NoneType' object has no attribute 'Rados': AttributeError: 'NoneType' object has no attribute 'Rados'

asked 2020-07-13 20:55:19 -0500

EddyNava gravatar image

updated 2020-07-14 02:38:48 -0500

eblock gravatar image

Using Openstack Train with Ceph Mimic

Unable to upload images.

2020-07-13 20:50:44.013 111185 ERROR glance.api.v2.image_data [req-6e200f71-0bb9-4cfc-ba32-ecd46ea2ee9f 4e8e4991ffd14330aa92bc0058              5fa196 ae1c993d8ea94236a171b1758189b24d - default default] Failed to upload image data due to internal error
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi [req-6e200f71-0bb9-4cfc-ba32-ecd46ea2ee9f 4e8e4991ffd14330aa92bc00585fa196               ae1c993d8ea94236a171b1758189b24d - default default] Caught error: 'NoneType' object has no attribute 'Rados': AttributeError: 'No              neType' object has no attribute 'Rados'
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi Traceback (most recent call last):
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi   File "/usr/lib/python3/dist-packages/glance/common/wsgi.py", line 1474,               in __call__
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi     request, **action_args)
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi   File "/usr/lib/python3/dist-packages/glance/common/wsgi.py", line 1517,               in dispatch
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi     return method(*args, **kwargs)
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi   File "/usr/lib/python3/dist-packages/glance/common/utils.py", line 417,               in wrapped
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi     return func(self, req, *args, **kwargs)
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi   File "/usr/lib/python3/dist-packages/glance/api/v2/image_data.py", line               299, in upload
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi     self._restore(image_repo, image)
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi   File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 220,               in __exit__
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi     self.force_reraise()
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi   File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 196,               in force_reraise
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi     six.reraise(self.type_, self.value, self.tb)
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi   File "/usr/lib/python3/dist-packages/six.py", line 693, in reraise
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi     raise value
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi   File "/usr/lib/python3/dist-packages/glance/api/v2/image_data.py", line               164, in upload
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi     image.set_data(data, size, backend=backend)
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi   File "/usr/lib/python3/dist-packages/glance/domain/proxy.py", line 198,               in set_data
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi     self.base.set_data(data, size, backend=backend)
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi   File "/usr/lib/python3/dist-packages/glance/notifier.py", line 485, in s              et_data
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi     _send_notification(notify_error, 'image.upload', msg)
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi   File "/usr/lib/python3/dist-packages/oslo_utils/excutils.py", line 220,               in __exit__
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi     self.force_reraise()
2020-07-13 20:50:44.046 111185 ERROR glance.common.wsgi ...
(more)
edit retag flag offensive close merge delete

Comments

Do you have ceph-common packages installed on the node? Is glance-api service running?

eblock gravatar imageeblock ( 2020-07-14 02:39:32 -0500 )edit

I was missing python3-rados and python3-rbd

EddyNava gravatar imageEddyNava ( 2020-07-14 11:03:05 -0500 )edit

Yeah that makes sense.

eblock gravatar imageeblock ( 2020-07-15 04:08:01 -0500 )edit