您好,登錄后才能下訂單哦!
本篇文章為大家展示了active的創建快照報錯該怎么辦,內容簡明扼要并且容易理解,絕對能使你眼前一亮,通過這篇文章的詳細介紹希望你能有所收獲。
自動刪除:
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/ |
再試:
成功。
繼續創快照:
成功
上述內容就是active的創建快照報錯該怎么辦,你們學到知識或技能了嗎?如果還想學到更多技能或者豐富自己的知識儲備,歡迎關注億速云行業資訊頻道。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。