Delete the presence of default flavors

There are not any default flavors after the commit
"Remove flavor seeding from the base migration" which
removes default flavors from the database, that means
the new deploys will not have them(m1.tiny, m1.small,
m1.medium, m1.large, m1.xlarge).

Change-Id: Ifcdd6f1500a937de8dfd9d265bd5ee3406cb70e0
Closes-Bug: #1567009
This commit is contained in:
zhangguoqing 2016-04-14 16:52:41 +08:00 committed by Brian Moss
parent 02832047fb
commit 1986be3364
5 changed files with 20 additions and 22 deletions

View File

@ -279,10 +279,9 @@ The displayed image attributes are:
is the UUID of the instance the snapshot derives from. For uploaded is the UUID of the instance the snapshot derives from. For uploaded
images, this field is blank. images, this field is blank.
Virtual hardware templates are called ``flavors``. The default Virtual hardware templates are called ``flavors``. By default, these are
installation provides five flavors. By default, these are configurable configurable by admin users, however that behavior can be changed by
by admin users, however that behavior can be changed by redefining the redefining the access controls for ``compute_extension:flavormanage`` in
access controls for ``compute_extension:flavormanage`` in
``/etc/nova/policy.json`` on the ``compute-api`` server. ``/etc/nova/policy.json`` on the ``compute-api`` server.
For a list of flavors that are available on your system: For a list of flavors that are available on your system:

View File

@ -364,8 +364,9 @@ The displayed image attributes are:
is the UUID of the instance the snapshot derives from. For uploaded is the UUID of the instance the snapshot derives from. For uploaded
images, this field is blank. images, this field is blank.
Virtual hardware templates are called ``flavors``. The default Virtual hardware templates are called ``flavors``, and are defined by
installation provides five predefined flavors. administrators. Prior to the Newton release, a default installation also
includes five predefined flavors.
For a list of flavors that are available on your system, run: For a list of flavors that are available on your system, run:

View File

@ -94,6 +94,12 @@ List images
$ openstack image list $ openstack image list
Create a flavor named m1.tiny
.. code-block:: console
$ openstack flavor create --ram 512 --disk 1 --vcpus 1 m1.tiny
List flavors List flavors
.. code-block:: console .. code-block:: console

View File

@ -70,6 +70,12 @@ Gather parameters to launch an instance
Before you begin, source the OpenStack RC file. Before you begin, source the OpenStack RC file.
#. Create a flavor.
.. code-block:: console
$ openstack flavor create --ram 512 --disk 1 --vcpus 1 m1.tiny
#. List the available flavors. #. List the available flavors.
.. code-block:: console .. code-block:: console

View File

@ -16,30 +16,16 @@ Create and access a database
When you create a database instance, you must specify a nova flavor. When you create a database instance, you must specify a nova flavor.
The flavor indicates various characteristics of the instance, such as The flavor indicates various characteristics of the instance, such as
RAM, root volume size, and so on. The default nova flavors are not RAM and root volume size. You will need to create or
sufficient to create database instances. You might need to create or obtain new nova flavors that work for databases.
obtain some new nova flavors that work for databases.
The first step is to list flavors by using the The first step is to list flavors by using the
:command:`openstack flavor list` command. :command:`openstack flavor list` command.
Here are the default flavors, although you may have additional custom
flavors in your environment:
.. code-block:: console .. code-block:: console
$ openstack flavor list $ openstack flavor list
+-----+-----------+-------+------+-----------+-------+-----------+
| ID | Name | RAM | Disk | Ephemeral | VCPUs | Is_Public |
+-----+-----------+-------+------+-----------+-------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | 1 | True |
| 2 | m1.small | 2048 | 20 | 0 | 1 | True |
| 3 | m1.medium | 4096 | 40 | 0 | 2 | True |
| 4 | m1.large | 8192 | 80 | 0 | 4 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | 8 | True |
+-----+-----------+-------+------+-----------+-------+-----------+
Now take a look at the minimum requirements for various database Now take a look at the minimum requirements for various database
instances: instances: