← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 985786] Re: qemu error: chardev opening backend file failed

 

** Changed in: anvil
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to anvil.
https://bugs.launchpad.net/bugs/985786

Title:
  qemu error: chardev opening backend file failed

Status in ANVIL for forging OpenStack.:
  Fix Released

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/anvil/+bug/985786/+subscriptions