Horizon edit-flavor recreates it, even nothing was changed on the edit page.

Bug #1519573 reported by Alexander Bozhenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Won't Fix
Undecided
Unassigned

Bug Description

How to reproduce:
1. Open falvor list in horizon, click edit flavor, do not change anything and click save.

Actual results:
New flavor with the same name will be created, old one will be marked as deleted.
 mysql> select * from instance_types where name like '%test_t3_4xLarge%'\G

*************************** 1. row ***************************
  created_at: 2015-11-25 00:51:43
  updated_at: 2015-11-25 01:23:38
  deleted_at: 2015-11-25 01:23:38
        name: test_t3_4xLarge
          id: 7196
   memory_mb: 65536
       vcpus: 8
        swap: 0
vcpu_weight: NULL
    flavorid: b982c1fc-1a60-432e-bc71-666390fd5a6b
rxtx_factor: 1
     root_gb: 800
ephemeral_gb: 0
    disabled: 0
   is_public: 1
     deleted: 7196

*************************** 2. row ***************************
  created_at: 2015-11-25 01:23:38
  updated_at: NULL
  deleted_at: NULL
        name: test_t3_4xLarge
          id: 7200
   memory_mb: 65536
       vcpus: 8
       swap: 0
vcpu_weight: NULL
    flavorid: 2a1bf35e-cb11-49e6-918e-fd1e6f219d53
rxtx_factor: 1
     root_gb: 800
ephemeral_gb: 0
    disabled: 0
   is_public: 1
     deleted: 0
2 rows in set (0.01 sec)
First one is old. Second is new. Flavor-show now shows new id:
<email address hidden> 01:25:07:~# nova flavor-show test_t3_4xLarge | grep id
| id| 2a1bf35e-cb11-49e6-918e-fd1e6f219d53

Expected results:
If you didn't really change anything on that page horizon should not delete old and create new flavor. This behavior is confusing.
I understand that there is no such api to verify if changes were introduced, but it probably should be implemented using javascript in horizon itself.

Also, it would be good to add this note about what actually happens when you edit flavor to horizon edit-flavor page:
http://docs.openstack.org/openstack-ops/content/flavors.html
"The OpenStack dashboard simulates the ability to modify a flavor by deleting an existing flavor and creating a new one with the same name."

description: updated
Itxaka Serrano (itxaka)
Changed in horizon:
status: New → Confirmed
Revision history for this message
Itxaka Serrano (itxaka) wrote :

Shouldn't be better to open a blueprint at nova to have a new PUT /flavor to update them?

Changed in horizon:
assignee: nobody → Ryan Selden (ryanx-seldon)
status: Confirmed → In Progress
Revision history for this message
Ryan Selden (ryanx-seldon) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-manuals 15.0.0

This issue was fixed in the openstack/openstack-manuals 15.0.0 release.

Revision history for this message
Akihiro Motoki (amotoki) wrote :

bug 1709056 is related. The edit flavor feature has been disabled by default and deprecated in Pike release.
The feature will be dropped in Rocky release.
Considering this, this bug is now marked as Won't Fix.

If we really need to address this bug, we can compare the current and new values and if nothing is changed we can stop creating a new flavor, but if we drop the feature completely this will no longer needed.

Changed in horizon:
status: In Progress → Won't Fix
assignee: Ryan Selden (ryanx-seldon) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.