← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1627619] [NEW] A part of Instance snapshots are not listed in launch instance

 

Public bug reported:

In launch instance modal, a user can choose a boot source.
When a user select 'Instance Snapshots', snapshots are listed.

However, these snapshots are not all.
At the moment, there are listed only snapshots created from a instance not creating new volume.

As far as I know, when a user create a snapshot created from a instance with new volume, it doesn't have image_type.
Instead of this, this has 'block_device_mapping' object. This object has 'source_type' attribute like below.

----
block_device_mapping='[{"guest_format": null, "boot_index": 0, "delete_on_termination": false, "no_device": null, "snapshot_id": "267a6729-056a-42b0-adaf-9d24eaeca67f", "device_name": "/dev/vda", "disk_bus": "virtio", "image_id": null, "source_type": "snapshot", "tag": null, "device_type": "disk", "volume_id": null, "destination_type": "volume", "volume_size": 1}]'
----

Horizon is judging by only image_type but it seems not to be enough.


ref:properties of snapshots created from a instance with new volume
----
base_image_ref='', bdm_v2='True', block_device_mapping='[{"guest_format": null, "boot_index": 0, "delete_on_termination": false, "no_device": null, "snapshot_id": "267a6729-056a-42b0 |
|                  | -adaf-9d24eaeca67f", "device_name": "/dev/vda", "disk_bus": "virtio", "image_id": null, "source_type": "snapshot", "tag": null, "device_type": "disk", "volume_id": null,              |
|                  | "destination_type": "volume", "volume_size": 1}]', kernel_id='0dafcdfc-4f80-4bf1-9e78-d4e9c5c8ef8c', ramdisk_id='baa56d26-6dfd-48c5-8f3d-230d9688de84', root_device_name='/dev/vda'
----

ref: properties of snapshots created from a instance not creating new volume.
----
base_image_ref='7c732922-6cb5-4b08-9247-13d4440ee992', image_location='snapshot', image_state='available', image_type='snapshot', instance_uuid='355dbfa8-c654-4dc3-a26d-c6b80383d2dd', kernel_id='0dafcdfc-4f80-4bf1-9e78-d4e9c5c8ef8c', owner_id='a25277ddba2b48ad969fedac2511ff1f', ramdisk_id='baa56d26-6dfd-48c5-8f3d-230d9688de84',
----

** Affects: horizon
     Importance: Undecided
     Assignee: Kenji Ishii (ken-ishii)
         Status: New

** Summary changed:

- A part of Instance snapshots in launch instance are not listed
+ A part of Instance snapshots are not listed in launch instance

** Changed in: horizon
     Assignee: (unassigned) => Kenji Ishii (ken-ishii)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1627619

Title:
  A part of Instance snapshots are not listed in launch instance

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  In launch instance modal, a user can choose a boot source.
  When a user select 'Instance Snapshots', snapshots are listed.

  However, these snapshots are not all.
  At the moment, there are listed only snapshots created from a instance not creating new volume.

  As far as I know, when a user create a snapshot created from a instance with new volume, it doesn't have image_type.
  Instead of this, this has 'block_device_mapping' object. This object has 'source_type' attribute like below.

  ----
  block_device_mapping='[{"guest_format": null, "boot_index": 0, "delete_on_termination": false, "no_device": null, "snapshot_id": "267a6729-056a-42b0-adaf-9d24eaeca67f", "device_name": "/dev/vda", "disk_bus": "virtio", "image_id": null, "source_type": "snapshot", "tag": null, "device_type": "disk", "volume_id": null, "destination_type": "volume", "volume_size": 1}]'
  ----

  Horizon is judging by only image_type but it seems not to be enough.


  ref:properties of snapshots created from a instance with new volume
  ----
  base_image_ref='', bdm_v2='True', block_device_mapping='[{"guest_format": null, "boot_index": 0, "delete_on_termination": false, "no_device": null, "snapshot_id": "267a6729-056a-42b0 |
  |                  | -adaf-9d24eaeca67f", "device_name": "/dev/vda", "disk_bus": "virtio", "image_id": null, "source_type": "snapshot", "tag": null, "device_type": "disk", "volume_id": null,              |
  |                  | "destination_type": "volume", "volume_size": 1}]', kernel_id='0dafcdfc-4f80-4bf1-9e78-d4e9c5c8ef8c', ramdisk_id='baa56d26-6dfd-48c5-8f3d-230d9688de84', root_device_name='/dev/vda'
  ----

  ref: properties of snapshots created from a instance not creating new volume.
  ----
  base_image_ref='7c732922-6cb5-4b08-9247-13d4440ee992', image_location='snapshot', image_state='available', image_type='snapshot', instance_uuid='355dbfa8-c654-4dc3-a26d-c6b80383d2dd', kernel_id='0dafcdfc-4f80-4bf1-9e78-d4e9c5c8ef8c', owner_id='a25277ddba2b48ad969fedac2511ff1f', ramdisk_id='baa56d26-6dfd-48c5-8f3d-230d9688de84',
  ----

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


Follow ups