Possible to have better error message when nbd module not loaded?

Bug #755854 reported by justinsb
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Pádraig Brady

Bug Description

When using libvirt injection, the disk image is mounted on the compute node using nbd. However, this only works is the nbd module is loaded. Otherwise, we get this error message:

WARNING nova.virt.libvirt_conn [-] instance instance-00000019: ignoring error injecting data into image 2 (nbd device /dev/nbd12 did not show up)

I think we should (1) make that message reference the fact that nbd should be loaded and/or (2) check that nbd is loaded and/or (3) automatically load it.

Tags: nbd
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Mark McLoughlin (markmc) wrote :
tags: added: nbd
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/4186

Changed in nova:
assignee: nobody → Pádraig Brady (p-draigbrady)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/4186
Committed: http://github.com/openstack/nova/commit/7ffbff485e40bc3f36542f2892877adc5241accf
Submitter: Jenkins
Branch: master

commit 7ffbff485e40bc3f36542f2892877adc5241accf
Author: Pádraig Brady <email address hidden>
Date: Wed Feb 15 10:05:23 2012 +0000

    improve injection diagnostics when nbd unavailable. Bug 755854

    It's better to fail immediately with this improved diagnostic.
    Relying on qemu-nbd to detect the issue (no device), is inefficient.

    Change-Id: Ib124f6b83d8f04f0b4791c98912603f3499a9d2a

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