Defaulting device names fails to update the database

Bug #1260806 reported by Nikola Đipanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Nikola Đipanov

Bug Description

_default_block_device_names method of the compute manager, would call the conductor block_device_mapping_update method with the wrong arguments, causing a TypeError and ultimately the instance to fail.

This bug happens only when using a driver that does not provid it's own implementation of default_device_names_for_instance, (currently only the libvirt driver does this).

Also affects havana since https://review.openstack.org/#/c/40229/

Revision history for this message
Matt Riedemann (mriedem) wrote :
tags: added: havana-backport-potential
Changed in nova:
status: New → In Progress
assignee: nobody → Nikola Đipanov (ndipanov)
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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

commit f6988b3f1ebf56364696ff25448a8018866fd20b
Author: Nikola Dipanov <email address hidden>
Date: Fri Dec 13 17:59:10 2013 +0100

    Fix updating device names when defaulting

    If the virt driver does not support defaulting device names, the default
    behaviour of defaulting them in the manager was calling the conductor
    block_device_mapping_update method with the wrong arguments, which
    caused a TypeError and ultimately a failure to boot the instance.

    This patch fixed the signature and adds a test that exercises it so
    that it does not regress.

    Closes-bug: #1260806
    Change-Id: I6116540c9aca4847afacf80b3d1e0c027c364159

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