RBD images throw path error when creating instance

Bug #1271924 reported by Justice London
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Dmitry Borodaenko

Bug Description

I receive the following error when I try to create an instance from a Ceph backed snapshot:

nova-nova.compute.manager ERROR: Instance failed to spawn
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1417, in _spawn
    block_device_info)
  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2067, in spawn
    admin_pass=admin_password)
  File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2476, in _create_image
    injection_path = image('disk').path
AttributeError: 'Rbd' object has no attribute 'path'

Apparently this might be an openstack issue. There is a very simple fix that seems to work, here:
https://bugs.launchpad.net/nova/+bug/1246708

Tags: ceph
Andrew Woodward (xarses)
Changed in fuel:
assignee: nobody → Dmitry Borodaenko (dborodaenko)
tags: added: ceph
Revision history for this message
Dmitry Borodaenko (angdraug) wrote :

In Mirantis OpenStack 4.0, we've disabled SSH key injection, looks like we need to add "libvirt_inject_partition = -2" to make file injection is disabled altogether.

Changed in fuel:
importance: Undecided → High
milestone: none → 4.1
status: New → In Progress
Revision history for this message
Dmitry Borodaenko (angdraug) wrote :
Revision history for this message
Justice London (jlondon) wrote : Re: [Bug 1271924] Re: RBD images throw path error when creating instance

Looks good to me!

Justice

On Mon, Jan 27, 2014 at 10:02 AM, Dmitry Borodaenko <
<email address hidden>> wrote:

> Fix proposed in Gerrit:
> https://review.openstack.org/#/c/68709/
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1271924
>
> Title:
> RBD images throw path error when creating instance
>
> Status in Fuel: OpenStack installer that works:
> In Progress
>
> Bug description:
> I receive the following error when I try to create an instance from a
> Ceph backed snapshot:
>
> nova-nova.compute.manager ERROR: Instance failed to spawn
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line
> 1417, in _spawn
> block_device_info)
> File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py",
> line 2067, in spawn
> admin_pass=admin_password)
> File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py",
> line 2476, in _create_image
> injection_path = image('disk').path
> AttributeError: 'Rbd' object has no attribute 'path'
>
>
> Apparently this might be an openstack issue. There is a very simple fix
> that seems to work, here:
> https://bugs.launchpad.net/nova/+bug/1246708
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/fuel/+bug/1271924/+subscriptions
>

--
Justice London
<email address hidden>

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Nikolay Fedotov (nfedotov) wrote :

Verified on ISO {"build_id": "2014-02-03_01-17-30", "ostf_sha": "338ddf840c229918d1df8c6597588b853d02de4c", "build_number": "72", "nailgun_sha": "04f17482e97c1c7ee12f7f99bafc2dc9dbfc9a95", "fuelmain_sha": "cb36a45a6148f742665f4b0b426d69350a5f2243", "astute_sha": "d002c3bf626cff96a1d4aec9eb92fc4d5f4542c4", "release": "4.1", "fuellib_sha": "cd12860ec234260b50f98963a78257b3759441f6"}

Changed in fuel:
status: Fix Committed → Fix Released
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.