When creating a nova flavor with heat, a unique string is appended to the flavor name.

Solution Verified - Updated -

Issue

[stack@undercloud-3 ~]$ heat stack-create -f nova-flavor.yaml  flavor
+--------------------------------------+------------+--------------------+---------------------+--------------+
| id                                   | stack_name | stack_status       | creation_time       | updated_time |
+--------------------------------------+------------+--------------------+---------------------+--------------+
| 29dbd184-5df3-4793-b571-cb204dde265f | flavor     | CREATE_IN_PROGRESS | 2016-10-03T20:40:26 | None         |
+--------------------------------------+------------+--------------------+---------------------+--------------+
[stack@undercloud-3 ~]$ heat stack-list
+--------------------------------------+------------+-----------------+---------------------+--------------+
| id                                   | stack_name | stack_status    | creation_time       | updated_time |
+--------------------------------------+------------+-----------------+---------------------+--------------+
| 29dbd184-5df3-4793-b571-cb204dde265f | flavor     | CREATE_COMPLETE | 2016-10-03T20:40:26 | None         |
+--------------------------------------+------------+-----------------+---------------------+--------------+
[stack@undercloud-3 ~]$ nova flavor-list
+--------------------------------------+-------------------------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID                                   | Name                          | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+--------------------------------------+-------------------------------+-----------+------+-----------+------+-------+-------------+-----------+
| 1                                    | m1.tiny                       | 512       | 1    | 0         |      | 1     | 1.0         | True      |
| 2                                    | m1.small                      | 2048      | 20   | 0         |      | 1     | 1.0         | True      |
| 3                                    | m1.medium                     | 4096      | 40   | 0         |      | 2     | 1.0         | True      |
| 4                                    | m1.large                      | 8192      | 80   | 0         |      | 4     | 1.0         | True      |
| 5                                    | m1.xlarge                     | 16384     | 160  | 0         |      | 8     | 1.0         | True      |
| 8e29f479-ab32-4565-b6d6-eede6e7261f4 | flavor-my_flavor-su3hro7yikbf | 1024      | 0    | 0         |      | 4     | 1.0         | False     |
+--------------------------------------+-------------------------------+-----------+------+-----------+------+-------+-------------+-----------+
[stack@undercloud-3 ~]$ cat nova-flavor.yaml 
heat_template_version: 2015-04-30

description: Simple template to deploy a single compute instance

resources:
  my_flavor:
    type: OS::Nova::Flavor
    properties:
      ram: 1024
      vcpus: 4

Environment

  • Red Hat OpenStack Platform

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content