← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1347028] [NEW] block_device mapping identifies ephemeral disks incorrectly

 

Public bug reported:

Ephemeral drives are destinaton == local, but the new bdm code bases it
on source instead.  This leads to improper errors:

$ nova boot --flavor m1.tiny --block-device source=blank,dest=volume,bus=virtio,size=1,bootindex=0 test
ERROR (BadRequest): Ephemeral disks requested are larger than the instance type allows. (HTTP 400) (Request-ID: req-53247c8e-d14e-43e2-b01e-85b49f520e61)

The code is here:

https://github.com/openstack/nova/blob/106fb458c7ac3cc17bb42d1b83ec3f4fa8284e71/nova/block_device.py#L411

This should be checking destination_type == 'local' instead of source
type.

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: icehouse-backport-potential low-hanging-fruit

** Tags added: icehouse-backport-potential low-hanging-fruit

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

Title:
  block_device mapping identifies ephemeral disks incorrectly

Status in OpenStack Compute (Nova):
  New

Bug description:
  Ephemeral drives are destinaton == local, but the new bdm code bases
  it on source instead.  This leads to improper errors:

  $ nova boot --flavor m1.tiny --block-device source=blank,dest=volume,bus=virtio,size=1,bootindex=0 test
  ERROR (BadRequest): Ephemeral disks requested are larger than the instance type allows. (HTTP 400) (Request-ID: req-53247c8e-d14e-43e2-b01e-85b49f520e61)

  The code is here:

  https://github.com/openstack/nova/blob/106fb458c7ac3cc17bb42d1b83ec3f4fa8284e71/nova/block_device.py#L411

  This should be checking destination_type == 'local' instead of source
  type.

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


Follow ups

References