Invalid OpenStack Identity credentials.
Uploading image to glance fails with "500 internal Server Error"
glance image-create --name "BayMax_Centos7.5_238.110" --file BayMax_Centos7.5_238.110-disk-0.qcow2 --disk-format qcow2 --container-format bare --visibility=public
#
# | Property | Value |
# +------------------+--------------------------------------+
# | checksum | None |
# | container_format | bare |
# | created_at | 2023-07-03T06:30:33Z |
# | disk_format | qcow2 |
# | id | fc3d619f-2397-44f3-ba73-5f475a752fc5 |
# | min_disk | 0 |
# | min_ram | 0 |
# | name | BayMax_Centos7.5_238.110 |
# | os_hash_algo | None |
# | os_hash_value | None |
# | os_hidden | False |
# | owner | d660e1d89bca45329cd3bf9f7ef8368b |
# | protected | False |
# | size | None |
# | status | queued |
# | tags | [] |
# | updated_at | 2023-07-03T06:30:33Z |
# | virtual_size | Not available |
# | visibility | public |
# +------------------+--------------------------------------+
# HTTP 500 Internal Server Error: The server has either erred or is incapable of performing the requested operation.
错误日志
2023-07-03 14:35:54.304 5210 INFO eventlet.wsgi.server [req-1a3c2180-4156-4064-85a6-befcc1b427e0 1b4ffa6d86bc41f68dd01e9e7079285f d5fa6e43018b4a3fbd30eac72c759877 - default default] xxx.xxx.xxx.xxx - - [03/Jul/2023 14:35:54] "GET /v2/images?limit=1000&sort_key=created_at&sort_dir=desc HTTP/1.1" 200 16664 0.033708
2023-07-03 14:35:54.310 5210 INFO eventlet.wsgi.server [req-309b1afc-1658-4af1-94f4-212082d252cd 1b4ffa6d86bc41f68dd01e9e7079285f d5fa6e43018b4a3fbd30eac72c759877 - default default] xxx.xxx.xxx.xxx - - [03/Jul/2023 14:35:54] "GET /v2/schemas/image HTTP/1.1" 200 6283 0.003833
2023-07-03 14:35:55.631 5212 ERROR glance.api.v2.image_data [req-cbf3085d-bb1d-454d-bbde-22b46e64c95f 444079fb80974ad5a752f1e99a0352cd d660e1d89bca45329cd3bf9f7ef8368b - default default] Failed to upload image data due to internal error: OSError: [Errno 122] Disk quota exceeded
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi [req-cbf3085d-bb1d-454d-bbde-22b46e64c95f 444079fb80974ad5a752f1e99a0352cd d660e1d89bca45329cd3bf9f7ef8368b - default default] Caught error: [Errno 122] Disk quota exceeded: OSError: [Errno 122] Disk quota exceeded
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi Traceback (most recent call last):
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/glance_store/_drivers/filesystem.py", line 757, in add
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi f.write(buf)
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi OSError: [Errno 5] Input/output error
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi During handling of the above exception, another exception occurred:
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi OSError: [Errno 5] Input/output error
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi During handling of the above exception, another exception occurred:
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi Traceback (most recent call last):
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/glance/common/wsgi.py", line 1332, in __call__
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi request, **action_args)
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/glance/common/wsgi.py", line 1370, in dispatch
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi return method(*args, **kwargs)
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/glance/common/utils.py", line 414, in wrapped
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi return func(self, req, *args, **kwargs)
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/glance/api/v2/image_data.py", line 303, in upload
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi self._restore(image_repo, image)
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", line 227, in __exit__
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi self.force_reraise()
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", line 200, in force_reraise
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi raise self.value
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/glance/api/v2/image_data.py", line 163, in upload
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi image.set_data(data, size, backend=backend)
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/glance/notifier.py", line 497, in set_data
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi _send_notification(notify_error, 'image.upload', msg)
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", line 227, in __exit__
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi self.force_reraise()
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", line 200, in force_reraise
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi raise self.value
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/glance/notifier.py", line 444, in set_data
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi set_active=set_active)
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/glance/quota/__init__.py", line 323, in set_data
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi set_active=set_active)
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/glance/location.py", line 585, in set_data
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi self._upload_to_store(data, verifier, backend, size)
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/glance/location.py", line 499, in _upload_to_store
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi verifier=verifier)
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/glance_store/backend.py", line 491, in add_to_backend_with_multihash
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi image_id, data, size, hashing_algo, store, context, verifier)
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/glance_store/backend.py", line 468, in store_add_to_backend_with_multihash
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi image_id, data, size, hashing_algo, context=context, verifier=verifier)
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/glance_store/driver.py", line 279, in add_adapter
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi metadata_dict) = store_add_fun(*args, **kwargs)
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/glance_store/capabilities.py", line 176, in op_checker
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi return store_op_fun(store, *args, **kwargs)
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/glance_store/_drivers/filesystem.py", line 764, in add
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi raise errors.get(e.errno, e)
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi File "/usr/lib/python3.6/site-packages/glance_store/_drivers/filesystem.py", line 757, in add
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi f.write(buf)
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi OSError: [Errno 122] Disk quota exceeded
2023-07-03 14:35:55.654 5212 ERROR glance.common.wsgi
2023-07-03 14:35:55.713 5212 INFO eventlet.wsgi.server [req-675e1845-2265-4969-aafd-59b8b1c74249 1b4ffa6d86bc41f68dd01e9e7079285f d5fa6e43018b4a3fbd30eac72c759877 - default default] xxx.xxx.xxx.xxx - - [03/Jul/2023 14:35:55] "GET /v2/images HTTP/1.1" 200 16595 0.078819
2023-07-03 14:36:52.290 5212 INFO eventlet.wsgi.server [req-cbf3085d-bb1d-454d-bbde-22b46e64c95f 444079fb80974ad5a752f1e99a0352cd d660e1d89bca45329cd3bf9f7ef8368b - default default] xxx.xxx.xxx.xxx - - [03/Jul/2023 14:36:52] "PUT /v2/images/fc3d619f-2397-44f3-ba73-5f475a752fc5/file HTTP/1.1" 500 454 378.839489
2023-07-03 14:36:54.074 5212 INFO eventlet.wsgi.server [req-ef83a5c3-1e32-4839-85ff-62f3fc3f03ea 1b4ffa6d86bc41f68dd01e9e7079285f d5fa6e43018b4a3fbd30eac72c759877 - default default] xxx.xxx.xxx.xxx - - [03/Jul/2023 14:36:54] "GET /v2/images?limit=1000&sort_key=created_at&sort_dir=desc HTTP/1.1" 200 16664 0.032280
重点OSError: [Errno 122] Disk quota exceeded
。后查磁盘空间不够,扩容解决。
作者: 咕咚!
出处: https://www.cnblogs.com/linga/
关于作者:专注虚拟化,运维开发,RPA,Rust,Go,Python!
本文版权归作者和博客园共有,禁止*.csdn.net转载,禁止以盈利为目的的转载,转载文章,但未经作者同意必须保留此段声明,且在文章页面明显位置给出, 原文链接 如有问题, 可邮件(oldsixa@163.com)咨询.