本篇文章為大家展示了active的創(chuàng)建快照?qǐng)?bào)錯(cuò)該怎么辦,內(nèi)容簡(jiǎn)明扼要并且容易理解,絕對(duì)能使你眼前一亮,通過(guò)這篇文章的詳細(xì)介紹希望你能有所收獲。
成都創(chuàng)新互聯(lián)從2013年創(chuàng)立,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項(xiàng)目網(wǎng)站設(shè)計(jì)制作、成都做網(wǎng)站網(wǎng)站策劃,項(xiàng)目實(shí)施與項(xiàng)目整合能力。我們以讓每一個(gè)夢(mèng)想脫穎而出為使命,1280元勐臘做網(wǎng)站,已為上家服務(wù),為勐臘各地企業(yè)和個(gè)人服務(wù),聯(lián)系電話:18982081108
自動(dòng)刪除:
nova-compute報(bào)錯(cuò)日志:
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'] |
在機(jī)器上直接執(zhí)行命令:
qemu-img info rbd:nova/21d85da5-4844-418a-9fa8-486e8e6d0800_disk |
再執(zhí)行qemu-img:
沒(méi)有發(fā)現(xiàn)支持rbd。
再執(zhí)行:
/usr/local/qemu/bin/qemu-img
這樣說(shuō)明,自己編譯升級(jí)帶rbd的qemu-img,沒(méi)有使用,使用的事系統(tǒng)自帶的
備份原始的,cp到系統(tǒng)默認(rèn)位置:
mv /usr/bin/qemu-img /usr/bin/qemu-img.bak cp /usr/local/qemu/bin/qemu-img /usr/bin/ |
再試:
成功。
繼續(xù)創(chuàng)快照:
成功
上述內(nèi)容就是active的創(chuàng)建快照?qǐng)?bào)錯(cuò)該怎么辦,你們學(xué)到知識(shí)或技能了嗎?如果還想學(xué)到更多技能或者豐富自己的知識(shí)儲(chǔ)備,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。