[Openstack-operators] Flavor ID mismatch

Alvise Dorigo alvise.dorigo at pd.infn.it
Sun Aug 10 10:14:15 UTC 2014


Hi,
I’ve created a new flavor in my openstack cloud, called xsmall. When I started a new instance with that flavor, I found that it is connected to a non-existing flavor ID, which is resolved to my xsmall new flavor:


~>nova flavor-list
+--------------------------------------+------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID                                   | Name       | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+--------------------------------------+------------+-----------+------+-----------+------+-------+-------------+-----------+
| 1229a10f-5f13-4218-ba21-47a49cb99ae9 | m1.medium  | 2048      | 10   | 0         |      | 2     | 1.0         | True      |
| 4b5afdbf-8dc3-4b30-938c-864e2da27f00 | m1.small   | 1024      | 5    | 0         |      | 1     | 1.0         | True      |
| 677e1cc5-0046-4b22-9b17-57483b24030f | m1.xsmall  | 512       | 3    | 0         |      | 1     | 1.0         | True      |
| 9eb9489a-f116-4282-9ba9-035a9408b3a9 | m1.tiny    | 256       | 1    | 0         |      | 1     | 1.0         | True      |
| a5618e34-9118-42ec-a404-143f4cf14f86 | m1.large   | 4096      | 40   | 0         |      | 2     | 1.0         | True      |
| ad49139e-e609-4d18-9962-cfdcf211c235 | m1.xxlarge | 16384     | 160  | 0         |      | 8     | 1.0         | True      |
| dfdd707d-5a3f-42a2-be3e-864b548bc536 | m1.xlarge  | 8192      | 80   | 0         |      | 4     | 1.0         | True      |
+--------------------------------------+------------+-----------+------+-----------+------+-------+-------------+-----------+

~>nova flavor-show m1.xsmall
+----------------------------+--------------------------------------+
| Property                   | Value                                |
+----------------------------+--------------------------------------+
| name                       | m1.xsmall                            |
| ram                        | 512                                  |
| 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                       | 3                                    |
| id                         | 677e1cc5-0046-4b22-9b17-57483b24030f |
+----------------------------+———————————————————+

 ~>nova show 698d493b-0866-4979-9101-e94a2aed9ebc
+--------------------------------------+----------------------------------------------------------+
| Property                             | Value                                                    |
+--------------------------------------+----------------------------------------------------------+
| status                               | ACTIVE                                                   |
| updated                              | 2014-08-08T10:17:33Z                                     |
| OS-EXT-STS:task_state                | None                                                     |
| OS-EXT-SRV-ATTR:host                 | compute-01.cloud.pd.infn.it                              |
| key_name                             | None                                                     |
| image                                | Fedora 20 - x64 (910417c9-de55-45e1-849d-d84f095c8a87)   |
| hostId                               | 6384c4d4e4d8c298b66ce2f2528f335a16071d6dc2456236e511bba4 |
| OS-EXT-STS:vm_state                  | active                                                   |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000026                                        |
| OS-SRV-USG:launched_at               | 2014-08-08T10:14:25.000000                               |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | compute-01.cloud.pd.infn.it                              |
| flavor                               | m1.xsmall (904db668-b018-4563-81a7-189d2206b47e)         |
| id                                   | 698d493b-0866-4979-9101-e94a2aed9ebc                     |
| security_groups                      | [{u'name': u'default'}]                                  |
| OS-SRV-USG:terminated_at             | None                                                     |
| user_id                              | 052be1ed98024ae1acb18ff692deef5a                         |
| name                                 | test-698d493b-0866-4979-9101-e94a2aed9ebc                |
| created                              | 2014-08-08T10:12:54Z                                     |
| tenant_id                            | fb310b4d52f14fbbaf337d803576c7e0                         |
| OS-DCF:diskConfig                    | MANUAL                                                   |
| metadata                             | {}                                                       |
| os-extended-volumes:volumes_attached | []                                                       |
| accessIPv4                           |                                                          |
| accessIPv6                           |                                                          |
| progress                             | 0                                                        |
| OS-EXT-STS:power_state               | 1                                                        |
| OS-EXT-AZ:availability_zone          | nova                                                     |
| Admin network                        | 10.0.1.10                                                |
| config_drive                         |                                                          |
+--------------------------------------+—————————————————————————————+

as you can see "nova show” shows an ID for xsmall which is different than that one of the output of flavor-list or flavor-show.
While it seems not to be a problem for the end-user who uses the command-line, it becomes a 'semi-serious' problem for 3rd party clients using the nova APIs (v2).

Is this a known issue or am I doing something wrong ?

	Alvise


More information about the OpenStack-operators mailing list