qemu error: chardev opening backend file failed

Asked by Sumit Sengupta

Instantiation failing with Qemu error "internal error Process exited while reading console log output: chardev: opening backend "file" failed". Does it any permission issue?

------------------
2012-04-13 19:39:58 DEBUG nova.utils [req-85fd790e-fdad-4496-9295-cc2037857704 31713aa0b6e3496cb43a48c4f654c03d 89f940ceb1c847dab0134a30b5ff5629] Running cmd (subprocess): qemu-img create -f qcow2 -o cluster_size=2M,backing_file=/home/sumitsen/openstack/nova/instances/_base/b32d67e926138471cb0af63eb128961e27ec17f9 /home/sumitsen/openstack/nova/instances/instance-0000000d/disk from (pid=857) execute /home/sumitsen/openstack/nova/app/nova/utils.py:220
libvir: QEMU error : internal error Process exited while reading console log output: chardev: opening backend "file" failed
2012-04-13 19:39:59 ERROR nova.compute.manager [req-85fd790e-fdad-4496-9295-cc2037857704 31713aa0b6e3496cb43a48c4f654c03d 89f940ceb1c847dab0134a30b5ff5629] [instance: 8f547416-17d0-4482-8b09-b559d41355bf] Instance failed to spawn
2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] Traceback (most recent call last):
2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] File "/home/sumitsen/openstack/nova/app/nova/compute/manager.py", line 594, in _spawn
2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] self._legacy_nw_info(network_info), block_device_info)
2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] File "/home/sumitsen/openstack/nova/app/nova/exception.py", line 113, in wrapped
2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] return f(*args, **kw)
2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] File "/home/sumitsen/openstack/nova/app/nova/virt/libvirt/connection.py", line 898, in spawn
2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] self._create_new_domain(xml)
2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] File "/home/sumitsen/openstack/nova/app/nova/virt/libvirt/connection.py", line 1713, in _create_new_domain
2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] domain.createWithFlags(launch_flags)
2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] File "/usr/lib64/python2.6/site-packages/libvirt.py", line 541, in createWithFlags
2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)
2012-04-13 19:39:59 TRACE nova.compute.manager [instance: 8f547416-17d0-4482-8b09-b559d41355bf] libvirtError: internal error Process exited while reading console log output: chardev: opening backend "file" failed

--------------

[sumitsen@sorrygate-dr DevstackPy]$ ll ~/openstack/nova/instances/instance-0000000d/
total 4108
-rw-rw---- 1 root root 0 Apr 13 19:39 console.log
-rw-r--r-- 1 root root 8388608 Apr 13 19:39 disk
-rw-r--r-- 1 root root 1192 Apr 13 19:39 libvirt.xml

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
yong sheng gong (gongysh) said :
#1

one of solutions is to see Linux process capabilities part of http://libvirt.org/drvqemu.html and make libvirtd run instance under root user
another way out is to see what user your QEMU bin process will run with and then allow this user to have needed pessimisms to this file.

Revision history for this message
Yitao Jiang (jiangytcn) said :
#2

have you ever resolved it ? i encounter the same error .here is my question https://answers.launchpad.net/nova/+question/231056 please give me some advice.

please.

Can you help with this problem?

Provide an answer of your own, or ask Sumit Sengupta for more information if necessary.

To post a message you must log in.