Help! glance 上传镜像出错

yuifoon 2013-11-12 09:09:45
求助求助,
按官方文档进行OpenStack部署测试
glance上传镜像时出错:
[root@controller images]# glance image-create --name="CirrOS 0.3.1" --disk-format=qcow2 \--container-format=bare --is-public=true < cirros-0.3.1-x86_64-disk.img
Request returned failure status.
HTTPInternalServerError (HTTP 500)
[root@controller images]#

api.log
2013-11-12 09:04:13.740 27473 ERROR glance.notifier.notify_qpid [1e28970a-0092-47f4-bd0b-20fe2d2708d7 None None] Notification error. Priority: info Message: {'event_type': 'image.create', 'timestamp': '2013-11-12 01:04:13.735164', 'message_id': 'acc0ec80-ac5e-41fd-93f3-bed6546455f5', 'priority': 'INFO', 'publisher_id': 'controller', 'payload': {u'status': u'queued', u'deleted': False, u'container_format': u'bare', u'min_ram': 0, u'updated_at': u'2013-11-12T01:04:13', u'owner': None, u'min_disk': 0, u'is_public': True, u'deleted_at': None, u'id': u'b0a2c9a5-6af3-4ffb-9765-7c0866eb0855', u'size': 13147648, u'name': u'CirrOS 0.3.1', u'checksum': None, u'created_at': u'2013-11-12T01:04:13', u'disk_format': u'qcow2', u'properties': {}, u'protected': False}}
2013-11-12 09:04:13.740 27473 TRACE glance.notifier.notify_qpid Traceback (most recent call last):
2013-11-12 09:04:13.740 27473 TRACE glance.notifier.notify_qpid File "/usr/lib/python2.6/site-packages/glance/notifier/notify_qpid.py", line 130, in _send
2013-11-12 09:04:13.740 27473 TRACE glance.notifier.notify_qpid connection = self._open_connection()
2013-11-12 09:04:13.740 27473 TRACE glance.notifier.notify_qpid File "/usr/lib/python2.6/site-packages/glance/notifier/notify_qpid.py", line 108, in _open_connection
2013-11-12 09:04:13.740 27473 TRACE glance.notifier.notify_qpid connection.open()
2013-11-12 09:04:13.740 27473 TRACE glance.notifier.notify_qpid File "<string>", line 6, in open
2013-11-12 09:04:13.740 27473 TRACE glance.notifier.notify_qpid File "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py", line 256, in open
2013-11-12 09:04:13.740 27473 TRACE glance.notifier.notify_qpid self.attach()
2013-11-12 09:04:13.740 27473 TRACE glance.notifier.notify_qpid File "<string>", line 6, in attach
2013-11-12 09:04:13.740 27473 TRACE glance.notifier.notify_qpid File "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py", line 274, in attach
2013-11-12 09:04:13.740 27473 TRACE glance.notifier.notify_qpid self._ewait(lambda: self._transport_connected and not self._unlinked())
2013-11-12 09:04:13.740 27473 TRACE glance.notifier.notify_qpid File "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py", line 209, in _ewait
2013-11-12 09:04:13.740 27473 TRACE glance.notifier.notify_qpid self.check_error()
2013-11-12 09:04:13.740 27473 TRACE glance.notifier.notify_qpid File "/usr/lib/python2.6/site-packages/qpid/messaging/endpoints.py", line 202, in check_error
2013-11-12 09:04:13.740 27473 TRACE glance.notifier.notify_qpid raise self.error
2013-11-12 09:04:13.740 27473 TRACE glance.notifier.notify_qpid AuthenticationFailure: Error in sasl_client_start (-1) SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure. Minor code may provide more information (Credentials cache file '/tmp/krb5cc_161' not found)
2013-11-12 09:04:13.740 27473 TRACE glance.notifier.notify_qpid
...全文
2624 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
wshn13 2014-12-19
  • 打赏
  • 举报
回复
修改一下/etc/glance/glance-api.conf 的filesystem_store_datadir 重启glance就行
笨蛋出没 2013-12-12
  • 打赏
  • 举报
回复
改为使用 rabbitmq 试试
yuifoon 2013-11-14
  • 打赏
  • 举报
回复
呼~ 算不算解决了呢 参考:https://bugs.launchpad.net/glance/+bug/1100317 在配置文件glance-api.conf中设置 notifier_strategy = noop 参数说明: # Notifications can be sent when images are create, updated or deleted. # There are three methods of sending notifications, logging (via the # log_file directive), rabbit (via a rabbitmq queue), qpid (via a Qpid # message queue), or noop (no notifications sent, the default) 这里设置不发送通知,就不知道有其他什么影响没。
angeloudy 2013-11-13
  • 打赏
  • 举报
回复
打开配置文件中的debug,重启下服务,查看log glance-api.conf debug = True

999

社区成员

发帖
与我相关
我的任务
社区描述
OpenStack
社区管理员
  • OpenStack社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧