← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1320754] Re: flavor-recreate-bug

 

This wishlist bug has been open a year without any activity. I'm going
to move it to "Opinion / Wishlist", which is an easily-obtainable queue
of older requests that have come on.

In case you want to work on that, consider writing a blueprints [1] and
spec [2]. I'll recommend to read [3] if not yet done. The effort to
implement the requested feature is then driven only by the blueprint
(and spec).

References:
[1] https://blueprints.launchpad.net/nova/
[2] https://github.com/openstack/nova-specs
[3] https://wiki.openstack.org/wiki/Blueprints

** Changed in: nova
       Status: Confirmed => 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/1320754

Title:
  flavor-recreate-bug

Status in OpenStack Compute (nova):
  Opinion

Bug description:
  I re-created a flavor that is the same 'flavorid' on before and after.

  After re-creation, the flavor value of the instance, that created by
  the 'flavorid', was changed to the new flavor value.

  Currently, the flavor value of the instance is refer to 'flavorid'. In
  this case, it should be refer to 'id', not 'flavorid'.

  In database scheme, id is really unique but flavorid is perform the
  conflict.

  Logs are here:

  admin@host:~$ nova show vm1
  +--------------------------------------+----------------------------------------------------------------------+
  | Property                             | Value                                                                |
  +--------------------------------------+----------------------------------------------------------------------+
  | NET1 network                         | 10.0.10.100                                                          |
  | OS-DCF:diskConfig                    | MANUAL                                                               |
  | OS-EXT-AZ:availability_zone          | nova                                                                 |
  | OS-EXT-SRV-ATTR:host                 | host1                                                                |
  | OS-EXT-SRV-ATTR:hypervisor_hostname  | host1                                                                |
  | OS-EXT-SRV-ATTR:instance_name        | instance-00000018                                                    |
  | OS-EXT-STS:power_state               | 1                                                                    |
  | OS-EXT-STS:task_state                | -                                                                    |
  | OS-EXT-STS:vm_state                  | active                                                               |
  | OS-SRV-USG:launched_at               | 2014-05-16T20:18:02.000000                                           |
  | OS-SRV-USG:terminated_at             | -                                                                    |
  | accessIPv4                           |                                                                      |
  | accessIPv6                           |                                                                      |
  | config_drive                         |                                                                      |
  | created                              | 2014-05-16T20:17:37Z                                                 |
  | flavor                               | m1.test (10)                                                         |    <- original
  | hostId                               | 852bf49aacad06f83e406fe230f1e30e8f0ec73e1f142a5900a602be             |
  | id                                   | bbd0b20d-2ab8-414a-8663-0288e2775013                                 |
  | image                                | cirros (87a7ff8d-178c-4072-a57b-1d9817bbb70a)                        |
  | key_name                             | -                                                                    |
  | metadata                             | {}                                                                   |
  | name                                 | vm1                                                                  |
  | os-extended-volumes:volumes_attached | []                                                                   |
  | progress                             | 0                                                                    |
  | security_groups                      | default, default                                                     |
  | status                               | ACTIVE                                                               |
  | tenant_id                            | 177be698aaa4431aaf41c8012d597e7d                                     |
  | updated                              | 2014-05-16T20:18:02Z                                                 |
  | user_id                              | bea0bdab5dfa4f99a1cbd0a8532df3c5                                     |
  +--------------------------------------+----------------------------------------------------------------------+
  gadmin@gtestcompute-172-16-227-7:~$ nova flavor-delete 10
  +----+---------+-----------+------+-----------+------+-------+-------------+-----------+                                                                                                                
  | ID | Name    | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |                                                                                                                    
  +----+---------+-----------+------+-----------+------+-------+-------------+-----------+                                                                                                                    
  | 10 | m1.test | 1200      | 12   | 0         |      | 8     | 1.0         | True      |                                                                                                                    
  +----+---------+-----------+------+-----------+------+-------+-------------+-----------+
  admin@host:~$ nova flavor-create m2.test 10 1200 12 8
  +----+---------+-----------+------+-----------+------+-------+-------------+-----------+
  | ID | Name    | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
  +----+---------+-----------+------+-----------+------+-------+-------------+-----------+
  | 10 | m2.test | 1200      | 12   | 0         |      | 8     | 1.0         | True      |
  +----+---------+-----------+------+-----------+------+-------+-------------+-----------+
  admin@host:~$ nova show vm1
  +--------------------------------------+----------------------------------------------------------------------+
  | Property                             | Value                                                                |
  +--------------------------------------+----------------------------------------------------------------------+
  | NET1 network                         | 10.0.10.100                                                          |
  | OS-DCF:diskConfig                    | MANUAL                                                               |
  | OS-EXT-AZ:availability_zone          | nova                                                                 |
  | OS-EXT-SRV-ATTR:host                 | host1                                                                |
  | OS-EXT-SRV-ATTR:hypervisor_hostname  | host1                                                                |
  | OS-EXT-SRV-ATTR:instance_name        | instance-00000018                                                    |
  | OS-EXT-STS:power_state               | 1                                                                    |
  | OS-EXT-STS:task_state                | -                                                                    |
  | OS-EXT-STS:vm_state                  | active                                                               |
  | OS-SRV-USG:launched_at               | 2014-05-16T20:18:02.000000                                           |
  | OS-SRV-USG:terminated_at             | -                                                                    |
  | accessIPv4                           |                                                                      |
  | accessIPv6                           |                                                                      |
  | config_drive                         |                                                                      |
  | created                              | 2014-05-16T20:17:37Z                                                 |
  | flavor                               | g2.test (10)                                                         |    <- flavor is CHANGED to incorrect value!
  | hostId                               | 852bf49aacad06f83e406fe230f1e30e8f0ec73e1f142a5900a602be             |
  | id                                   | bbd0b20d-2ab8-414a-8663-0288e2775013                                 |
  | image                                | cirros (87a7ff8d-178c-4072-a57b-1d9817bbb70a)                        |
  | key_name                             | -                                                                    |
  | metadata                             | {}                                                                   |
  | name                                 | vm1                                                                  |
  | os-extended-volumes:volumes_attached | []                                                                   |
  | progress                             | 0                                                                    |
  | security_groups                      | default, default                                                     |
  | status                               | ACTIVE                                                               |
  | tenant_id                            | 177be698aaa4431aaf41c8012d597e7d                                     |
  | updated                              | 2014-05-16T20:18:02Z                                                 |
  | user_id                              | bea0bdab5dfa4f99a1cbd0a8532df3c5                                     |
  +--------------------------------------+----------------------------------------------------------------------+

  mysql> SELECT id,flavorid,name,deleted FROM instance_types WHERE name LIKE '%.test';
  +----+----------+---------+---------+
  | id | flavorid | name    | deleted |
  +----+----------+---------+---------+
  |  6 | 10       | g1.test |       6 |
  |  7 | 10       | g2.test |       0 |
  +----+----------+---------+---------+

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


References