← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1165895] Re: image-create/snapshot image_state property/metadata always 'available'

 

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

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

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

Title:
  image-create/snapshot image_state property/metadata always 'available'

Status in OpenStack Compute (Nova):
  Opinion

Bug description:
  https://github.com/openstack/nova/blob/147eebe613d5d1756ce4f11066c62474eabb6076/nova/virt/libvirt/driver.py#L1113

  'image_state': 'available' property added to every libvirt snapshot.

  I do not see the reason behind this "constant" property.

  Similar property removed by:
  https://github.com/openstack/nova/commit/c3b7cce8101548428b64abb23ab88482bc79c36e

  Example glance output:
   glance image-show cd0bd937-e2b3-4e3e-b22f-3bdb58c63755 
  +---------------------------------------+--------------------------------------+
  | Property                              | Value                                |
  +---------------------------------------+--------------------------------------+
  | Property 'base_image_ref'             | d943f775-b228-4dde-b8e8-076a9fc60351 |
  | Property 'image_location'             | snapshot                             |
  | Property 'image_state'                | available                            |
  | Property 'image_type'                 | snapshot                             |
  | Property 'instance_type_ephemeral_gb' | 0                                    |
  | Property 'instance_type_flavorid'     | 3                                    |
  | Property 'instance_type_id'           | 1                                    |
  | Property 'instance_type_memory_mb'    | 4096                                 |
  | Property 'instance_type_name'         | m1.medium                            |
  | Property 'instance_type_root_gb'      | 40                                   |
  | Property 'instance_type_rxtx_factor'  | 1                                    |
  | Property 'instance_type_swap'         | 0                                    |
  | Property 'instance_type_vcpu_weight'  | None                                 |
  | Property 'instance_type_vcpus'        | 2                                    |
  | Property 'instance_uuid'              | f2d9f28a-24a3-4068-8ee0-15f55122faef |
  | Property 'owner_id'                   | b8bc1464db39459d9c3f814b908ae079     |
  | Property 'user_id'                    | 695c21ac81c6499d851f3a560516f19c     |
  | checksum                              | fca8b0fb9346ea0c4ea167a7a7d9ce45     |
  | container_format                      | bare                                 |
  | created_at                            | 2013-04-07T21:13:33                  |
  | deleted                               | False                                |
  | disk_format                           | qcow2                                |
  | id                                    | cd0bd937-e2b3-4e3e-b22f-3bdb58c63755 |
  | is_public                             | False                                |
  | min_disk                              | 0                                    |
  | min_ram                               | 0                                    |
  | name                                  | snap_2Gb_urandom                     |
  | owner                                 | b8bc1464db39459d9c3f814b908ae079     |
  | protected                             | False                                |
  | size                                  | 2991521792                           |
  | status                                | active                               |
  | updated_at                            | 2013-04-07T21:15:19                  |
  +---------------------------------------+--------------------------------------+

  
  nova image-show cd0bd937-e2b3-4e3e-b22f-3bdb58c63755
  +-------------------------------------+--------------------------------------+
  | Property                            | Value                                |
  +-------------------------------------+--------------------------------------+
  | metadata owner_id                   | b8bc1464db39459d9c3f814b908ae079     |
  | minDisk                             | 0                                    |
  | metadata instance_type_name         | m1.medium                            |
  | metadata instance_type_swap         | 0                                    |
  | metadata instance_type_memory_mb    | 4096                                 |
  | id                                  | cd0bd937-e2b3-4e3e-b22f-3bdb58c63755 |
  | metadata instance_type_rxtx_factor  | 1                                    |
  | metadata image_state                | available                            |
  | metadata image_location             | snapshot                             |
  | minRam                              | 0                                    |
  | metadata instance_type_vcpus        | 2                                    |
  | status                              | ACTIVE                               |
  | updated                             | 2013-04-07T21:15:19Z                 |
  | metadata instance_type_id           | 1                                    |
  | metadata instance_type_vcpu_weight  | None                                 |
  | metadata base_image_ref             | d943f775-b228-4dde-b8e8-076a9fc60351 |
  | progress                            | 100                                  |
  | metadata instance_type_flavorid     | 3                                    |
  | OS-EXT-IMG-SIZE:size                | 2991521792                           |
  | metadata image_type                 | snapshot                             |
  | metadata user_id                    | 695c21ac81c6499d851f3a560516f19c     |
  | name                                | snap_2Gb_urandom                     |
  | created                             | 2013-04-07T21:13:33Z                 |
  | metadata instance_uuid              | f2d9f28a-24a3-4068-8ee0-15f55122faef |
  | server                              | f2d9f28a-24a3-4068-8ee0-15f55122faef |
  | metadata instance_type_root_gb      | 40                                   |
  | metadata instance_type_ephemeral_gb | 0                                    |
  +-------------------------------------+--------------------------------------+

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