← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1643793] Re: Display incorrect flavor name in instance property after edit flavor

 

Hi All,

I am not able to reproduce this issue in nova.

Steps:

Created one flaovr:
$nova flavor-create new_flavor 32 2 1 1

Created an instance with this flavor:
$nova boot --image c98e9a7c-7720-420b-a5cb-4990a80ebeb4 --flavor 32 flavor_instance

I can see flavor name in the instance information: new_flavor (32)

Deleted a flavor:	
$nova flavor-delete 32

Show the instance:
$nova show 82b2b0a2-d904-4762-87f2-6c079e113494

+--------------------------------------+----------------------------------------------------------------+
| Property                             | Value                                                          |
+--------------------------------------+----------------------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                                         |
| OS-EXT-AZ:availability_zone          | nova                                                           |
| OS-EXT-SRV-ATTR:host                 | openstack-VirtualBox                                           |
| OS-EXT-SRV-ATTR:hostname             | flavor-instance                                                |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | openstack-VirtualBox                                           |
| OS-EXT-SRV-ATTR:instance_name        | instance-0000000a                                              |
| OS-EXT-SRV-ATTR:kernel_id            | a5b4ae19-6b59-4db8-9b8f-80a95274b0ef                           |
| OS-EXT-SRV-ATTR:launch_index         | 0                                                              |
| OS-EXT-SRV-ATTR:ramdisk_id           | 74bf2775-4b4f-4f98-b5a3-d5b95a2fb2b5                           |
| OS-EXT-SRV-ATTR:reservation_id       | r-ebvq7dqa                                                     |
| OS-EXT-SRV-ATTR:root_device_name     | /dev/vda                                                       |
| OS-EXT-SRV-ATTR:user_data            | -                                                              |
| OS-EXT-STS:power_state               | 1                                                              |
| OS-EXT-STS:task_state                | -                                                              |
| OS-EXT-STS:vm_state                  | active                                                         |
| OS-SRV-USG:launched_at               | 2016-12-01T07:58:50.000000                                     |
| OS-SRV-USG:terminated_at             | -                                                              |
| accessIPv4                           |                                                                |
| accessIPv6                           |                                                                |
| config_drive                         |                                                                |
| created                              | 2016-12-01T07:58:39Z                                           |
| description                          | -                                                              |
| flavor                               | Flavor not found (32)                                          |
| hostId                               | 29293b7a5610f0716c95bb5fd6bdbe157ec88120712bcb67c6c5c6a5       |
| host_status                          | UP                                                             |
| id                                   | 82b2b0a2-d904-4762-87f2-6c079e113494                           |
| image                                | cirros-0.3.4-x86_64-uec (c98e9a7c-7720-420b-a5cb-4990a80ebeb4) |
| key_name                             | -                                                              |
| locked                               | False                                                          |
| metadata                             | {}                                                             |
| name                                 | flavor_instance                                                |
| os-extended-volumes:volumes_attached | []                                                             |
| progress                             | 0                                                              |
| public network                       | 172.24.4.13, 2001:db8::7                                       |
| security_groups                      | default                                                        |
| status                               | ACTIVE                                                         |
| tags                                 | []                                                             |
| tenant_id                            | 514df258afd54361a0d9e8a8afc71a02                               |
| updated                              | 2016-12-01T07:58:51Z                                           |
| user_id                              | 4dcaf39d89f641a28e66a1b0c955df4b                               |
+--------------------------------------+----------------------------------------------------------------+

I can see flavor info as 'Flavor not found (32)' with respect to the id
32.

Created a new flavor with the same id:
$nova flavor-create my_flavor 32 2 1 1

Show the instance:
$nova show 82b2b0a2-d904-4762-87f2-6c079e113494

+--------------------------------------+----------------------------------------------------------------+
| Property                             | Value                                                          |
+--------------------------------------+----------------------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                                         |
| OS-EXT-AZ:availability_zone          | nova                                                           |
| OS-EXT-SRV-ATTR:host                 | openstack-VirtualBox                                           |
| OS-EXT-SRV-ATTR:hostname             | flavor-instance                                                |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | openstack-VirtualBox                                           |
| OS-EXT-SRV-ATTR:instance_name        | instance-0000000a                                              |
| OS-EXT-SRV-ATTR:kernel_id            | a5b4ae19-6b59-4db8-9b8f-80a95274b0ef                           |
| OS-EXT-SRV-ATTR:launch_index         | 0                                                              |
| OS-EXT-SRV-ATTR:ramdisk_id           | 74bf2775-4b4f-4f98-b5a3-d5b95a2fb2b5                           |
| OS-EXT-SRV-ATTR:reservation_id       | r-ebvq7dqa                                                     |
| OS-EXT-SRV-ATTR:root_device_name     | /dev/vda                                                       |
| OS-EXT-SRV-ATTR:user_data            | -                                                              |
| OS-EXT-STS:power_state               | 1                                                              |
| OS-EXT-STS:task_state                | -                                                              |
| OS-EXT-STS:vm_state                  | active                                                         |
| OS-SRV-USG:launched_at               | 2016-12-01T07:58:50.000000                                     |
| OS-SRV-USG:terminated_at             | -                                                              |
| accessIPv4                           |                                                                |
| accessIPv6                           |                                                                |
| config_drive                         |                                                                |
| created                              | 2016-12-01T07:58:39Z                                           |
| description                          | -                                                              |
| flavor                               | my_flavor (32)                                                 |
| hostId                               | 29293b7a5610f0716c95bb5fd6bdbe157ec88120712bcb67c6c5c6a5       |
| host_status                          | UP                                                             |
| id                                   | 82b2b0a2-d904-4762-87f2-6c079e113494                           |
| image                                | cirros-0.3.4-x86_64-uec (c98e9a7c-7720-420b-a5cb-4990a80ebeb4) |
| key_name                             | -                                                              |
| locked                               | False                                                          |
| metadata                             | {}                                                             |
| name                                 | flavor_instance                                                |
| os-extended-volumes:volumes_attached | []                                                             |
| progress                             | 0                                                              |
| public network                       | 172.24.4.13, 2001:db8::7                                       |
| security_groups                      | default                                                        |
| status                               | ACTIVE                                                         |
| tags                                 | []                                                             |
| tenant_id                            | 514df258afd54361a0d9e8a8afc71a02                               |
| updated                              | 2016-12-01T07:58:51Z                                           |
| user_id                              | 4dcaf39d89f641a28e66a1b0c955df4b                               |
+--------------------------------------+----------------------------------------------------------------+

I can see a updated flavor name in instance info 'my_flavor (32)'.

I have also tried with dashboard, with dashboard if we update an flavor name then it changes the id of the flavor so that's why 
it shows in the instance info as 'Flavor: Not available'.

So this is a different issue, If the flavor is updated then its id
should remain same.

Please correct me if I am wrong.

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

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

Title:
  Display incorrect flavor name in instance property after edit flavor

Status in OpenStack Dashboard (Horizon):
  Confirmed
Status in OpenStack Compute (nova):
  Invalid

Bug description:
  Description
  ===========
  Display incorrect flavor name in instance property after edit flavor

  
  Steps to reproduce
  ==================
  All of the below steps are on the web page.
  1.create a new flavor name is AAA
  2.create vm with AAA flavor
  3.check vm info that flavor name is AAA
  4.edit the flavor, change flavor name AAA to BBB
  5.check vm info again, the flavor name is not BBB

  
  Expected result
  ===============
  Display correct flavor name after edit flavor name.

  
  Actual result
  =============
  The vm flavor name is not correct after edit flavor name.
  By the nova-api.log file, the edit flavor operation is that first to delete the origin flavor, second to create a new flavor.
  But vm flavor'id was original id, not the new id.

  
  Environment
  ===========
  1. Devstack with newton version

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


References