← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1354587] Re: Nova list images detail can return a block_device_mapping in the metadata

 

** Changed in: nova
       Status: New => Opinion

** Changed in: nova
   Importance: Undecided => Wishlist

** Tags added: api

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

Title:
  Nova list images detail can return a block_device_mapping in the
  metadata

Status in OpenStack Compute (Nova):
  Opinion

Bug description:
  1. Fire up a DevStack instance from the stable/havana, stable/icehouse, or master branches.
  2. Go into Horizon
  3. Launch an instance
    1. Instance Boot Source: Boot from image (creates a new volume)
    2. Image Name: cirros
    3. Device size (GB): 1
  1. For the instance that was just created, click the Create Snapshot button.

  Now if you do a list images detail in the API like
  /v2/​{tenant_id}​/images/detail ( see http://developer.openstack.org
  /api-ref-compute-v2.html#compute_images )

  You'll get back something like:

  {
    "images": [
      {
        "status": "ACTIVE",
        "updated": "2014-08-08T04:43:36Z",
        "id": "cd9d57a9-0978-45f3-9cbc-edb99347be6b",
        "OS-EXT-IMG-SIZE:size": 0,
        "name": "t11",
        "created": "2014-08-08T04:43:36Z",
        "minDisk": 0,
        "progress": 100,
        "minRam": 0,
        "metadata": {
          "block_device_mapping": [
            {
              "guest_format": null,
              "boot_index": 0,
              "no_device": null,
              "volume_id": null,
              "volume_size": null,
              "disk_bus": null,
              "image_id": null,
              "source_type": "snapshot",
              "device_type": null,
              "snapshot_id": "a900a56c-61b7-4438-9150-76312fa1aa10",
              "destination_type": "volume",
              "delete_on_termination": null
            }
          ],
          "checksum": "32c08d302f9206668030d47789b77858",
          "min_ram": "1",
          "disk_format": "qcow2",
          "image_name": "Ubuntu LTS 14.04",
          "bdm_v2": "True",
          "image_id": "cfefefc1-eba2-4b1e-9b07-a8c74a872d65",
          "root_device_name": "/dev/vda",
          "container_format": "bare",
          "min_disk": "8",
          "size": "254149120"
        }
      },
      ....
  }

  The metadata should only be simple key/value pairs with strings only (
  again see http://developer.openstack.org/api-ref-
  compute-v2.html#compute_images )

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


References