← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1246708] Re: nova cannot create ephemeral instance on rbd

 

*** This bug is a duplicate of bug 1362221 ***
    https://bugs.launchpad.net/bugs/1362221

This bug has been fixed in Juno and backported to stable/Icehouse

commit 1613cd99345e51e314bf011f47654ed730138f64
Author: Roman Podoliaka <rpodolyaka@xxxxxxxxxxxx>
Date:   Fri Aug 22 20:01:33 2014 +0300

    Fix instance boot when Ceph is used for ephemeral storage
    
    is_block_dev attribute was mistakenly set to True for RBD images
    (we don't actually map RBD images to block devices in the *host*
    system, but only in *guests*, so as far as the host system is
    concerned an RBD image must not be treated like a system block
    device). This led to a situation when mkfs was called for a non
    existing file and failed when trying to create an ephemeral fs.
    
    Closes-Bug: #1362221
    
    Change-Id: I54c0d117a53bb61f278b2e137bd29a595548f5a1
    (cherry picked from commit e9eb1d69bf75c22b0ad4b50e4892a5644c78cf68)

** This bug has been marked a duplicate of bug 1362221
   VMs fail to start when Ceph is used as a backend for ephemeral drives

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

Title:
  nova cannot create ephemeral instance on rbd

Status in OpenStack Compute (Nova):
  Triaged

Bug description:
  nova.conf:

  libvirt_images_type=rbd
  libvirt_images_rbd_pool=ephemeraldisks

  getting this:

  2013-10-31 12:54:30.388 19701 TRACE nova.compute.manager [instance: 22828ed2-3bd1-4bb9-9881-4117ae503cb3] Traceback (most recent call last):
  2013-10-31 12:54:30.388 19701 TRACE nova.compute.manager [instance: 22828ed2-3bd1-4bb9-9881-4117ae503cb3]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1407, in _spawn
  2013-10-31 12:54:30.388 19701 TRACE nova.compute.manager [instance: 22828ed2-3bd1-4bb9-9881-4117ae503cb3]     block_device_info)
  2013-10-31 12:54:30.388 19701 TRACE nova.compute.manager [instance: 22828ed2-3bd1-4bb9-9881-4117ae503cb3]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2063, in spawn
  2013-10-31 12:54:30.388 19701 TRACE nova.compute.manager [instance: 22828ed2-3bd1-4bb9-9881-4117ae503cb3]     admin_pass=admin_password)
  2013-10-31 12:54:30.388 19701 TRACE nova.compute.manager [instance: 22828ed2-3bd1-4bb9-9881-4117ae503cb3]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2450, in _create_image
  2013-10-31 12:54:30.388 19701 TRACE nova.compute.manager [instance: 22828ed2-3bd1-4bb9-9881-4117ae503cb3]     injection_path = image('disk').path
  2013-10-31 12:54:30.388 19701 TRACE nova.compute.manager [instance: 22828ed2-3bd1-4bb9-9881-4117ae503cb3] AttributeError: 'Rbd' object has no attribute 'path'
  2013-10-31 12:54:30.388 19701 TRACE nova.compute.manager [instance: 22828ed2-3bd1-4bb9-9881-4117ae503cb3]

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