qemu error: chardev opening backend file failed

Bug #985786 reported by Sumit Sengupta
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
anvil
Fix Released
Undecided
Unassigned

Bug Description

Spawning of instances fails with Qemu error "internal error Process exited while reading console log output: chardev: opening backend "file" failed". Looks like permission issue because Devstackpy uses user's home directory and may be during instantiation the qemu/kvm user not able to use any file. Please check.

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

Revision history for this message
Sumit Sengupta (sumit-sngpt) wrote :

After creating a separate home directory accessible by everyone (with 777 permission) like "/home/openstack" and using this directory to git clone DevstackPy and eventually all openstack components, this issue got resolved. I would suggest in the document link below please mention this so that users be aware while using DevstackPy.

http://readthedocs.org/docs/devstackpy/en/latest/topics/gettingstarted.html

Revision history for this message
Joshua Harlow (harlowja) wrote :

Will do, the weird part of this is that its only a RH/fedora issue. Ubuntu doesn't have this :-/

Revision history for this message
Joshua Harlow (harlowja) wrote :

So that comment should be in the docs, the permissions are also being modified, so marking as fixed for now.

Changed in anvil:
status: New → Fix Committed
Joshua Harlow (harlowja)
Changed in anvil:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.