ceph后端rbd,active的实例创建快照报错

来源:互联网 发布:软件开发转正工作总结 编辑:程序博客网 时间:2024/05/22 19:02

感谢朋友支持本博客,欢迎共同探讨交流,由于能力和时间有限,错误之处在所难免,欢迎指正!

如有转载,请保留源作者博客信息。

Better Me的博客:blog.csdn.net/tantexian

如需交流,欢迎大家博客留言。



自动删除:


nova-compute报错日志:
2014-11-12 23:09:03.233 27810 ERROR oslo.messaging.rpc.dispatcher [-] Exception during message handling: Unexpected error while running command.
Command: qemu-img convert -O raw rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk:id=admin:conf=/etc/ceph/ceph.conf /var/lib/nova/instances/snapshots/tmpMmH3LF/0daf483dcaf54f809c57888f98bc8213
Exit code: 1
Stdout: ''
Stderr: "Could not open 'rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk:id=admin:conf=/etc/ceph/ceph.conf': No such file or directory\nCould not open 'rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk:id=admin:conf=/etc/ceph/ceph.conf'\n"
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher incoming.message))
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/exception.py", line 88, in wrapped
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher payload)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/exception.py", line 71, in wrapped
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher return f(self, context, *args, **kw)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 274, in decorated_function
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher pass
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 260, in decorated_function
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 303, in decorated_function
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher e, sys.exc_info())
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 290, in decorated_function
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 353, in decorated_function
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher % image_id, instance=instance)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 343, in decorated_function
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher *args, **kwargs)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 2712, in snapshot_instance
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher task_states.IMAGE_SNAPSHOT)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 2743, in _snapshot_instance
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher update_task_state)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 1570, in snapshot
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher snapshot_backend.snapshot_extract(out_path, image_format)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 687, in snapshot_extract
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher images.convert_image(self.path, target, out_format)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/virt/images.py", line 61, in convert_image
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher utils.execute(*cmd, run_as_root=run_as_root)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/utils.py", line 164, in execute
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher return processutils.execute(*cmd, **kwargs)
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/nova/openstack/common/processutils.py", line 193, in execute
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher cmd=' '.join(cmd))
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher ProcessExecutionError: Unexpected error while running command.
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher Command: qemu-img convert -O raw rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk:id=admin:conf=/etc/ceph/ceph.conf /var/lib/nova/instances/snapshots/tmpMmH3LF/0daf483dcaf54f809c57888f98bc8213
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher Exit code: 1
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher Stdout: ''
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher Stderr: "Could not open 'rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk:id=admin:conf=/etc/ceph/ceph.conf': No such file or directory\nCould not open 'rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk:id=admin:conf=/etc/ceph/ceph.conf'\n"
2014-11-12 23:09:03.233 27810 TRACE oslo.messaging.rpc.dispatcher
2014-11-12 23:09:03.237 27810 ERROR oslo.messaging._drivers.common [-] Returning exception Unexpected error while running command.
Command: qemu-img convert -O raw rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk:id=admin:conf=/etc/ceph/ceph.conf /var/lib/nova/instances/snapshots/tmpMmH3LF/0daf483dcaf54f809c57888f98bc8213
Exit code: 1
Stdout: ''
Stderr: "Could not open 'rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk:id=admin:conf=/etc/ceph/ceph.conf': No such file or directory\nCould not open 'rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk:id=admin:conf=/etc/ceph/ceph.conf'\n" to caller
2014-11-12 23:09:03.238 27810 ERROR oslo.messaging._drivers.common [-] ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply\n incoming.message))\n', ' File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch\n return self._do_dispatch(endpoint, method, ctxt, args)\n', ' File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch\n result = getattr(endpoint, method)(ctxt, **new_args)\n', ' File "/usr/lib/python2.6/site-packages/nova/exception.py", line 88, in wrapped\n payload)\n', ' File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/usr/lib/python2.6/site-packages/nova/exception.py", line 71, in wrapped\n return f(self, context, *args, **kw)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 274, in decorated_function\n pass\n', ' File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 260, in decorated_function\n return function(self, context, *args, **kwargs)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 303, in decorated_function\n e, sys.exc_info())\n', ' File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 290, in decorated_function\n return function(self, context, *args, **kwargs)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 353, in decorated_function\n % image_id, instance=instance)\n', ' File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 343, in decorated_function\n *args, **kwargs)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 2712, in snapshot_instance\n task_states.IMAGE_SNAPSHOT)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 2743, in _snapshot_instance\n update_task_state)\n', ' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 1570, in snapshot\n snapshot_backend.snapshot_extract(out_path, image_format)\n', ' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 687, in snapshot_extract\n images.convert_image(self.path, target, out_format)\n', ' File "/usr/lib/python2.6/site-packages/nova/virt/images.py", line 61, in convert_image\n utils.execute(*cmd, run_as_root=run_as_root)\n', ' File "/usr/lib/python2.6/site-packages/nova/utils.py", line 164, in execute\n return processutils.execute(*cmd, **kwargs)\n', ' File "/usr/lib/python2.6/site-packages/nova/openstack/common/processutils.py", line 193, in execute\n cmd=\' \'.join(cmd))\n', 'ProcessExecutionError: Unexpected error while running command.\nCommand: qemu-img convert -O raw rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk:id=admin:conf=/etc/ceph/ceph.conf /var/lib/nova/instances/snapshots/tmpMmH3LF/0daf483dcaf54f809c57888f98bc8213\nExit code: 1\nStdout: \'\'\nStderr: "Could not open \'rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk:id=admin:conf=/etc/ceph/ceph.conf\': No such file or directory\\nCould not open \'rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk:id=admin:conf=/etc/ceph/ceph.conf\'\\n"\n']
2014-11-12 23:09:03.238 27810 ERROR oslo.messaging._drivers.common [-] ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply\n incoming.message))\n', ' File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch\n return self._do_dispatch(endpoint, method, ctxt, args)\n', ' File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch\n result = getattr(endpoint, method)(ctxt, **new_args)\n', ' File "/usr/lib/python2.6/site-packages/nova/exception.py", line 88, in wrapped\n payload)\n', ' File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/usr/lib/python2.6/site-packages/nova/exception.py", line 71, in wrapped\n return f(self, context, *args, **kw)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 274, in decorated_function\n pass\n', ' File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 260, in decorated_function\n return function(self, context, *args, **kwargs)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 303, in decorated_function\n e, sys.exc_info())\n', ' File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 290, in decorated_function\n return function(self, context, *args, **kwargs)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 353, in decorated_function\n % image_id, instance=instance)\n', ' File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__\n six.reraise(self.type_, self.value, self.tb)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 343, in decorated_function\n *args, **kwargs)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 2712, in snapshot_instance\n task_states.IMAGE_SNAPSHOT)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 2743, in _snapshot_instance\n update_task_state)\n', ' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 1570, in snapshot\n snapshot_backend.snapshot_extract(out_path, image_format)\n', ' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/imagebackend.py", line 687, in snapshot_extract\n images.convert_image(self.path, target, out_format)\n', ' File "/usr/lib/python2.6/site-packages/nova/virt/images.py", line 61, in convert_image\n utils.execute(*cmd, run_as_root=run_as_root)\n', ' File "/usr/lib/python2.6/site-packages/nova/utils.py", line 164, in execute\n return processutils.execute(*cmd, **kwargs)\n', ' File "/usr/lib/python2.6/site-packages/nova/openstack/common/processutils.py", line 193, in execute\n cmd=\' \'.join(cmd))\n', 'ProcessExecutionError: Unexpected error while running command.\nCommand: qemu-img convert -O raw rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk:id=admin:conf=/etc/ceph/ceph.conf /var/lib/nova/instances/snapshots/tmpMmH3LF/0daf483dcaf54f809c57888f98bc8213\nExit code: 1\nStdout: \'\'\nStderr: "Could not open \'rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk:id=admin:conf=/etc/ceph/ceph.conf\': No such file or directory\\nCould not open \'rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk:id=admin:conf=/etc/ceph/ceph.conf\'\\n"\n']


在机器上直接执行命令:
 qemu-img info rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk

再执行qemu-img:

没有发现支持rbd。



再执行:
/usr/local/qemu/bin/qemu-img 

这样说明,自己编译升级带rbd的qemu-img,没有使用,使用的事系统自带的

备份原始的,cp到系统默认位置:
mv /usr/bin/qemu-img /usr/bin/qemu-img.bak
cp /usr/local/qemu/bin/qemu-img /usr/bin/

再试:
成功。


继续创快照:
成功
0 0
原创粉丝点击