Image upload fail from RHOS GUI with "glance-api: HTTPInternalServerError: Failed to upload image 25223016-4c18-4e53-88fa-b0c7dce4ab91" error message in "/var/log/messages" file.
Issue
- Unable to upload images to glance from RHOS web GUI. Following messages were in
/var/log/messages
file:
Dec 28 03:08:19 mac00163e746552 glance-api: func(*args, **kwargs)
Dec 28 03:08:19 mac00163e746552 glance-api: File "/usr/lib/python2.7/site-packages/glance/api/v1/images.py", line 665, in _upload_and_activate
Dec 28 03:08:19 mac00163e746552 glance-api: location, location_metadata = self._upload(req, image_meta)
Dec 28 03:08:19 mac00163e746552 glance-api: File "/usr/lib/python2.7/site-packages/glance/api/v1/images.py", line 599, in _upload
Dec 28 03:08:19 mac00163e746552 glance-api: req, image_meta, image_data, store, self.notifier)
Dec 28 03:08:19 mac00163e746552 glance-api: File "/usr/lib/python2.7/site-packages/glance/api/v1/upload_utils.py", line 254, in upload_data_to_store
Dec 28 03:08:19 mac00163e746552 glance-api: content_type='text/plain')
Dec 28 03:08:19 mac00163e746552 glance-api: HTTPInternalServerError: Failed to upload image 25223016-4c18-4e53-88fa-b0c7dce4ab91
- Below error messages were there in
/var/log/glance/api.log
file:
2014-12-26 06:18:47.610 26935 ERROR glance.store.filesystem [-] Permission to write in /var/lib/glance/images/ denied
2014-12-26 06:18:47.610 26935 TRACE glance.store.filesystem None
2014-12-26 06:18:47.610 26935 TRACE glance.store.filesystem
2014-12-26 06:18:47.611 26935 WARNING glance.store.base [-] Failed to configure store correctly: Store filesystem could not be configured correctly. Reason: Permission to write
in /var/lib/glance/images/ denied Disabling add method.
Environment
- Red Hat Enterprise Linux OpenStack Platform 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.