溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

active的創(chuàng)建快照報錯該怎么辦

發(fā)布時間:2021-12-01 14:46:33 來源:億速云 閱讀:159 作者:柒染 欄目:云計算

本篇文章為大家展示了active的創(chuàng)建快照報錯該怎么辦,內(nèi)容簡明扼要并且容易理解,絕對能使你眼前一亮,通過這篇文章的詳細介紹希望你能有所收獲。


active的創(chuàng)建快照報錯該怎么辦


自動刪除:

active的創(chuàng)建快照報錯該怎么辦



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']



在機器上直接執(zhí)行命令:

 qemu-img info rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk

active的創(chuàng)建快照報錯該怎么辦


再執(zhí)行qemu-img:

active的創(chuàng)建快照報錯該怎么辦


沒有發(fā)現(xiàn)支持rbd。


active的創(chuàng)建快照報錯該怎么辦



再執(zhí)行:

/usr/local/qemu/bin/qemu-img 

active的創(chuàng)建快照報錯該怎么辦


這樣說明,自己編譯升級帶rbd的qemu-img,沒有使用,使用的事系統(tǒng)自帶的


備份原始的,cp到系統(tǒng)默認位置:

mv /usr/bin/qemu-img /usr/bin/qemu-img.bak

cp /usr/local/qemu/bin/qemu-img /usr/bin/


再試:

active的創(chuàng)建快照報錯該怎么辦

成功。



繼續(xù)創(chuàng)快照:

active的創(chuàng)建快照報錯該怎么辦

成功

上述內(nèi)容就是active的創(chuàng)建快照報錯該怎么辦,你們學(xué)到知識或技能了嗎?如果還想學(xué)到更多技能或者豐富自己的知識儲備,歡迎關(guān)注億速云行業(yè)資訊頻道。

向AI問一下細節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI