← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1175667] Re: nova flavor-show does not return the 'latest' version of a flavor

 

This looks fixed upstream

** Changed in: nova
       Status: In Progress => Fix Released

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

** Changed in: nova
     Assignee: Darren Birkett (darren-birkett) => (unassigned)

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

Title:
  nova flavor-show does not return the 'latest' version of a flavor

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Create a new flavor:

  root@devstack1:/opt/stack/nova/nova# nova flavor-create nynewflavor 100 128 20 1
  +-----+-------------+-----------+------+-----------+------+-------+-------------+-----------+
  | ID  | Name        | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
  +-----+-------------+-----------+------+-----------+------+-------+-------------+-----------+
  | 100 | nynewflavor | 128       | 20   | 0         |      | 1     | 1.0         | True      |
  +-----+-------------+-----------+------+-----------+------+-------+-------------+-----------+

  root@devstack1:/opt/stack/nova/nova# nova flavor-show 100
  +----------------------------+-------------+
  | Property                   | Value       |
  +----------------------------+-------------+
  | name                       | nynewflavor |
  | ram                        | 128         |
  | OS-FLV-DISABLED:disabled   | False       |
  | vcpus                      | 1           |
  | extra_specs                | {}          |
  | swap                       |             |
  | os-flavor-access:is_public | True        |
  | rxtx_factor                | 1.0         |
  | OS-FLV-EXT-DATA:ephemeral  | 0           |
  | disk                       | 20          |
  | id                         | 100         |
  +----------------------------+-------------+

  Delete the flavor and create a new flavor with the same flavorID:

  root@devstack1:/opt/stack/nova/nova# nova flavor-delete 100
  root@devstack1:/opt/stack/nova/nova# nova flavor-create nynewnewnewflavor 100 128 20 1
  +-----+-------------------+-----------+------+-----------+------+-------+-------------+-----------+
  | ID  | Name              | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
  +-----+-------------------+-----------+------+-----------+------+-------+-------------+-----------+
  | 100 | nynewnewnewflavor | 128       | 20   | 0         |      | 1     | 1.0         | True      |
  +-----+-------------------+-----------+------+-----------+------+-------+-------------+-----------+
  root@devstack1:/opt/stack/nova/nova# nova flavor-show 100
  +----------------------------+-------------------+
  | Property                   | Value             |
  +----------------------------+-------------------+
  | name                       | nynewnewnewflavor |
  | ram                        | 128               |
  | OS-FLV-DISABLED:disabled   | False             |
  | vcpus                      | 1                 |
  | extra_specs                | {}                |
  | swap                       |                   |
  | os-flavor-access:is_public | True              |
  | rxtx_factor                | 1.0               |
  | OS-FLV-EXT-DATA:ephemeral  | 0                 |
  | disk                       | 20                |
  | id                         | 100               |
  +----------------------------+-------------------+

  Delete this flavor and then flavor-show the ID

  root@devstack1:/opt/stack/nova/nova# nova flavor-delete 100
  root@devstack1:/opt/stack/nova/nova# nova flavor-show 100
  +----------------------------+-------------+
  | Property                   | Value       |
  +----------------------------+-------------+
  | name                       | nynewflavor |
  | ram                        | 128         |
  | OS-FLV-DISABLED:disabled   | False       |
  | vcpus                      | 1           |
  | extra_specs                | {}          |
  | swap                       |             |
  | os-flavor-access:is_public | True        |
  | rxtx_factor                | 1.0         |
  | OS-FLV-EXT-DATA:ephemeral  | 0           |
  | disk                       | 20          |
  | id                         | 100         |
  +----------------------------+-------------+

  I see the FIRST instance of the flavor.  I think I always want to see
  the latest version of a flavor, deleted or active.  Rinse and repeat
  with the create/deletes, I will only ever see the first version of
  that flavor.

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