Command: sudo nova-rootwrap /etc/nova/rootwrap.conf blkid -o value -s TYPE /dev/nbd12 fails

Bug #1424054 reported by Chris J Arges
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Chris J Arges
nova (Ubuntu)
Fix Released
High
James Page

Bug Description

When setting up a simple openstack deployment ( two nodes without block/object storage ) and attempting to start an instance the following error can occur:

Instance failed to spawn
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2328, in _build_resources
    yield resources
  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2198, in _build_and_run_instance
    flavor=flavor)
  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2329, in spawn
    admin_pass=admin_password)
  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2728, in _create_image
    project_id=instance['project_id'])
  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 230, in cache
    *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 507, in create_image
    copy_qcow2_image(base, self.path, size)
  File "/usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 431, in inner
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/imagebackend.py", line 473, in copy_qcow2_image
    disk.extend(target, size, use_cow=True)
  File "/usr/lib/python2.7/dist-packages/nova/virt/disk/api.py", line 183, in extend
    if not is_image_extendable(image, use_cow):
  File "/usr/lib/python2.7/dist-packages/nova/virt/disk/api.py", line 235, in is_image_extendable
    if fs.get_image_fs() in SUPPORTED_FS_TO_EXTEND:
  File "/usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/localfs.py", line 167, in get_image_fs
    run_as_root=True)
  File "/usr/lib/python2.7/dist-packages/nova/utils.py", line 190, in execute
    return processutils.execute(*cmd, **kwargs)
  File "/usr/lib/python2.7/dist-packages/oslo_concurrency/processutils.py", line 228, in execute
    cmd=sanitized_cmd)
ProcessExecutionError: Unexpected error while running command.
Command: sudo nova-rootwrap /etc/nova/rootwrap.conf blkid -o value -s TYPE /dev/nbd12
Exit code: 99

This is because blkid is filtered by rootwrap.

Chris J Arges (arges)
Changed in nova:
assignee: nobody → Chris J Arges (arges)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/157928

James Page (james-page)
Changed in nova (Ubuntu):
importance: Undecided → High
status: New → In Progress
assignee: nobody → James Page (james-page)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nova - 1:2015.1~b2-0ubuntu5

---------------
nova (1:2015.1~b2-0ubuntu5) vivid; urgency=medium

  * d/nova-compute.init.in: Start after neutron-ovs-cleanup if
    installed.
  * d/p/compute-blkid-filter.patch: Cherry pick fix for missing blkid
    rootwrap filter from upstream gerrit (LP: #1424054).
 -- James Page <email address hidden> Tue, 24 Feb 2015 14:13:16 +0000

Changed in nova (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/157928
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=8f43b04b083ccd055e9cf2c13d0c1e215a387e87
Submitter: Jenkins
Branch: master

commit 8f43b04b083ccd055e9cf2c13d0c1e215a387e87
Author: Chris J Arges <email address hidden>
Date: Fri Feb 20 14:20:43 2015 -0600

    Add blkid rootwrap filter.

    Blkid is used by nova/virt/disk/vfs/localfs.py and needs to be added to the
    rootwrap filter.

    Closes-Bug: #1424054
    Change-Id: I28b8eb2464f8c2b27edea42dc24e3b49f1d4444e

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → kilo-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: kilo-3 → 2015.1.0
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.