chown error for console.fifo when launching vm

Bug #879666 reported by David Kranz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned
nova (Ubuntu)
Fix Released
Medium
Chuck Short
Oneiric
Won't Fix
Undecided
Chuck Short
Precise
Fix Released
Medium
Chuck Short

Bug Description

[Impact]
<fill me in with explanation of severity and frequency of bug on users and justification for backporting the fix to the stable release>

[Development Fix]
<fill me in with an explanation of how the bug has been addressed in the development branch, including the relevant version numbers of packages modified in order to implement the fix. >

[Stable Fix]
<fill me in by pointing out a minimal patch applicable to the stable version of the package.>

[Text Case]
<fill me in with detailed *instructions* on how to reproduce the bug. This will be used by people later on to verify the updated package fixes the problem.>
1.
2.
3.
Broken Behavior:
Fixed Behavior:

[Regression Potential]
<fill me in with a discussion of likelihood and potential severity of regressions and how users could get inadvertently affected.

[Original Report]
I saw this once before when I was less confident I knew how to run nova. I cannot reliably reproduce this problem. Here is the contents of the directory supposedly containng the missing file:

root@xg11eth0:~# ls -l /var/lib/nova/instances/instance-00000001/
total 82492
prw-rw---- 1 root root 0 2011-10-21 16:21 console.fifo.in
prw-rw---- 1 root root 0 2011-10-21 16:22 console.fifo.out
-rw-rw-r-- 1 nova nova 65545 2011-10-21 16:22 console.ring
-rw-r--r-- 1 root root 75497472 2011-10-21 16:26 disk
-rw-r--r-- 1 root root 12582912 2011-10-21 16:22 disk.local
-rw-rw-r-- 1 root root 4732048 2011-10-21 16:21 kernel
-rw-rw-r-- 1 nova nova 1750 2011-10-21 16:31 libvirt.xml

This was running from packages using oneiric-proposed

2011-10-21 16:31:54,147 DEBUG nova.utils [-] Running cmd (subprocess): mkdir -p /var/lib/nova/instances/instance-00000001/ from (pid=1185) execute /usr/lib/python2.7/dist-package\
s/nova/utils.py:168
2011-10-21 16:31:54,153 INFO nova.virt.libvirt_conn [-] instance instance-00000001: Creating image
2011-10-21 16:31:54,153 DEBUG nova.utils [-] Running cmd (subprocess): sudo chown 107 /var/lib/nova/instances/instance-00000001/console.fifo from (pid=1185) execute /usr/lib/pyth\
on2.7/dist-packages/nova/utils.py:168
2011-10-21 16:31:54,173 DEBUG nova.utils [-] Result was 1 from (pid=1185) execute /usr/lib/python2.7/dist-packages/nova/utils.py:183
2011-10-21 16:31:54,174 ERROR nova.exception [-] Uncaught exception
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 98, in wrapped
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 676, in spawn
(nova.exception): TRACE: block_device_info=block_device_info)
(nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 928, in _create_image
(nova.exception): TRACE: run_as_root=True)
(nova.exception): TRACE: File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 191, in execute
(nova.exception): TRACE: cmd=' '.join(cmd))
(nova.exception): TRACE: ProcessExecutionError: Unexpected error while running command.
(nova.exception): TRACE: Command: sudo chown 107 /var/lib/nova/instances/instance-00000001/console.fifo
(nova.exception): TRACE: Exit code: 1
(nova.exception): TRACE: Stdout: ''
(nova.exception): TRACE: Stderr: "chown: cannot access `/var/lib/nova/instances/instance-00000001/console.fifo': No such file or directory\n"
(nova.exception): TRACE:
2011-10-21 16:31:54,192 ERROR nova.compute.manager [-] Instance '1' failed to spawn. Is virtualization enabled in the BIOS? Details: Unexpected error while running command.
Command: sudo chown 107 /var/lib/nova/instances/instance-00000001/console.fifo
Exit code: 1
Stdout: ''
Stderr: "chown: cannot access `/var/lib/nova/instances/instance-00000001/console.fifo': No such file or directory\n"
(nova.compute.manager): TRACE: Traceback (most recent call last):
(nova.compute.manager): TRACE: File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 424, in _run_instance
(nova.compute.manager): TRACE: network_info, block_device_info)
(nova.compute.manager): TRACE: File "/usr/lib/python2.7/dist-packages/nova/exception.py", line 129, in wrapped
(nova.compute.manager): TRACE: raise Error(str(e))
(nova.compute.manager): TRACE: Error: Unexpected error while running command.
(nova.compute.manager): TRACE: Command: sudo chown 107 /var/lib/nova/instances/instance-00000001/console.fifo
(nova.compute.manager): TRACE: Exit code: 1
(nova.compute.manager): TRACE: Stdout: ''
(nova.compute.manager): TRACE: Stderr: "chown: cannot access `/var/lib/nova/instances/instance-00000001/console.fifo': No such file or directory\n"
(nova.compute.manager): TRACE:
2011-10-21 16:32:43,346 INFO nova.compute.manager [-] Updating host status
2011-10-21 16:32:44,184 INFO nova.compute.manager [-] Found 1 in the database and 0 on the hypervisor.
2011-10-21 16:33:45,087 INFO nova.compute.manager [-] Found 1 in the database and 0 on the hypervisor.

Tags: patch

Related branches

Revision history for this message
Mark McLoughlin (markmc) wrote :

This bug is Ubuntu specific - console.fifo has never existed upstream

Changed in nova:
status: New → Invalid
Dave Walker (davewalker)
Changed in nova (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Robie Basak (racb) wrote :

I think that this might have been caused by an erroneous merge. Untested, but it looks obvious to me what the fix should be. I've attached it. But because it's a race, it will be difficult to test the fix itself. I think it's only realistic to test that this doesn't break anything.

What's the status of this in precise, as upstream will not accept the console fifo security fix? Does this issue exist in precise also? For this reason I'm not sure what to do about the SRU procedure here.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "debdiff" of this bug report has been identified as being a patch in the form of a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-sponsors team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Dave Walker (davewalker) wrote :

@Robie, Can you propose this fix for Precise first; then we'll SRU it.

Thanks.

Robie Basak (racb)
Changed in nova (Ubuntu Precise):
assignee: nobody → Robie Basak (racb)
Revision history for this message
Robie Basak (racb) wrote :

Precise seems to be missing the console fifo patch. What am I missing?

Bryce Harrington (bryce)
description: updated
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Ok, looking at the precise tree, this bug is not valid there as that chunk of code has been removed.

Robie, Daviey, it's possible I'm misreading, but it seems to me this should be marked Fix Released for precise, and Robie's debdiff should be updated to apply to oneiric-proposed's version (which still has the bug).

Revision history for this message
Robie Basak (racb) wrote :

Just to update anyone following this bug, the plan decided at the last meeting is that Chuck will rebase the console fifo patch for Precise, fixing this bug on the way, and then SRU the fix for this bug in Oneiric. Thanks Chuck!

Changed in nova (Ubuntu Precise):
assignee: Robie Basak (racb) → Chuck Short (zulcss)
Changed in nova (Ubuntu Oneiric):
assignee: nobody → Chuck Short (zulcss)
Revision history for this message
James Page (james-page) wrote :

Un-subscribing ubuntu-sponsors as Chuck has this in hand.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nova - 2012.1~e4~20120224.12913-0ubuntu1

---------------
nova (2012.1~e4~20120224.12913-0ubuntu1) precise; urgency=low

  [ Monty Taylor ]
  * Move files from nova/locale to /usr/share/locale

  [ Chuck Short ]
  * debian/rules: Fix FTBFS.
  * debian/control: Add depends on python-babel.
  * debian/control: Add depends on python-iso8601.
  * debian/nova-api-os-volume.install: Fix FTBS.
  * debian/patches/libvirt-use-console-pipe.patch: Refreshed and
    Re-enabled. (LP: #879666)
  * debian/control: Make sure we install nova-cert

  [ Joseph Heck ]
  * debian/nova-console.install: Add nova-consoleauth.
  * Add nova-api-ec2, nova-api-os-compute, and nova-api-os-volume.
 -- Chuck Short <email address hidden> Fri, 24 Feb 2012 10:08:10 -0500

Changed in nova (Ubuntu Precise):
status: New → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

oneiric has seen the end of its life and is no longer receiving any updates. Marking the oneiric task for this ticket as "Won't Fix".

Changed in nova (Ubuntu Oneiric):
status: New → Won't Fix
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.