← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1424054] Re: Command: sudo nova-rootwrap /etc/nova/rootwrap.conf blkid -o value -s TYPE /dev/nbd12 fails

 

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

** Changed in: nova
    Milestone: None => kilo-3

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1424054

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

Status in OpenStack Compute (Nova):
  Fix Released
Status in nova package in Ubuntu:
  Fix Released

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.

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


References