← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1311561] Re: editing a flavor changes it's ID

 

As Cindy indicated, this was done on purpose to avoid inaccuracies in
the data (e.g. an instance is associated with flavor A which has 2 CPUs,
which is later edited to have 35 CPUs - the initial instance doesn't
have that but the data makes it look like it does). I don't think it's
wise to switch the behaviour back and forth - so I will mark this as
Won't Fix. If you strongly disagree, could you please start a discussion
on the dev list [1] so we can come to a final consensus about it? As you
noted, this isn't an operation that the CLI or API let you do.
Personally I think it was a mistake for Horizon to try and allow it
anyway, and it's caused a lot of bugs and confusion.

[1] https://wiki.openstack.org/wiki/MailingLists#Future_Development

** Changed in: horizon
       Status: New => Won't Fix

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

Title:
  editing a flavor changes it's ID

Status in OpenStack Dashboard (Horizon):
  Won't Fix

Bug description:
  try to edit a flavor in Horizon(in CLI we can only edit extra_spec
  field for a flavor, so in CLI "nova flavor-key " doesn't reproduce the
  bug). So open edit flavor dialog for any of them, change VCPUs or
  anything else, push "save" button => ID of the flavor will also
  change. m1.tiny had id=1, after the change it becomes the uuid and
  every next edit will change the ID field value...

  # nova flavor-list
  +--------------------------------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+
  | ID                                   | Name      | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
  +--------------------------------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+
  | 036c428f-3562-4a29-a690-56ed79c57742 | test2     | 50        | 60   | 0         |      | 4     | 1.0         | True      |
  | 4                                    | m1.large  | 8192      | 80   | 0         |      | 4     | 1.0         | True      |
  | 5                                    | m1.xlarge | 16384     | 160  | 0         |      | 8     | 1.0         | True      |
  | b16fc3d9-7dbf-494d-af06-53bf04b28494 | m1.tiny   | 2048      | 10   | 0         |      | 1     | 1.0         | True      |
  | e0c68f91-c016-47be-871d-09a23c369115 | m1.medium | 4096      | 40   | 0         | 1024 | 2     | 1.0         | True      |
  +--------------------------------------+-----------+-----------+------+-----------+------+-------+-------------+-----------+

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


References