Use 'openstack flavor list' to replace 'nova flavor-list'

Change-Id: I82114d68665e718dac26f22ef1e29d7da9b3d9c4
Implements: blueprint use-openstack-command
This commit is contained in:
caoyuan 2016-10-21 13:14:11 +08:00
parent f6089a863e
commit 71a76e286e
8 changed files with 73 additions and 69 deletions

@ -288,16 +288,16 @@ For a list of flavors that are available on your system:
.. code-block:: console .. code-block:: console
$ nova flavor-list $ openstack flavor list
+-----+-----------+-----------+------+-----------+------+-------+-------------+-----------+ +-----+-----------+-------+------+-----------+-------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | | ID | Name | RAM | Disk | Ephemeral | VCPUs | Is_Public |
+-----+-----------+-----------+------+-----------+------+-------+-------------+-----------+ +-----+-----------+-------+------+-----------+-------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True | | 1 | m1.tiny | 512 | 1 | 0 | 1 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True | | 2 | m1.small | 2048 | 20 | 0 | 1 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True | | 3 | m1.medium | 4096 | 40 | 0 | 2 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True | | 4 | m1.large | 8192 | 80 | 0 | 4 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True | | 5 | m1.xlarge | 16384 | 160 | 0 | 8 | True |
+-----+-----------+-----------+------+-----------+------+-------+-------------+-----------+ +-----+-----------+-------+------+-----------+-------+-----------+
Compute service architecture Compute service architecture
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@ -369,16 +369,16 @@ For a list of flavors that are available on your system, run:
.. code-block:: console .. code-block:: console
$ nova flavor-list $ openstack flavor list
+----+----------+----------+-----+----------+-----+------+------------+----------+ +-----+-----------+-------+------+-----------+-------+-----------+
| ID | Name | Memory_MB| Disk| Ephemeral| Swap| VCPUs| RXTX_Factor| Is_Public| | ID | Name | RAM | Disk | Ephemeral | VCPUs | Is_Public |
+----+----------+----------+-----+----------+-----+------+------------+----------+ +-----+-----------+-------+------+-----------+-------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True | | 1 | m1.tiny | 512 | 1 | 0 | 1 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True | | 2 | m1.small | 2048 | 20 | 0 | 1 | True |
| 3 | m1.medium| 4096 | 40 | 0 | | 2 | 1.0 | True | | 3 | m1.medium | 4096 | 40 | 0 | 2 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True | | 4 | m1.large | 8192 | 80 | 0 | 4 | True |
| 5 | m1.xlarge| 16384 | 160 | 0 | | 8 | 1.0 | True | | 5 | m1.xlarge | 16384 | 160 | 0 | 8 | True |
+----+----------+----------+-----+----------+-----+------+------------+----------+ +-----+-----------+-------+------+-----------+-------+-----------+
By default, administrative users can configure the flavors. You can By default, administrative users can configure the flavors. You can
change this behavior by redefining the access controls for change this behavior by redefining the access controls for

@ -1188,7 +1188,7 @@ Boot a new server.
**Optional arguments:** **Optional arguments:**
``--flavor <flavor>`` ``--flavor <flavor>``
Name or ID of flavor (see 'nova flavor-list'). Name or ID of flavor (see 'openstack flavor list').
``--image <image>`` ``--image <image>``
Name or ID of image (see 'glance image-list'). Name or ID of image (see 'glance image-list').
@ -1682,15 +1682,19 @@ Set or unset extra_spec for a flavor.
``<key=value>`` ``<key=value>``
Extra_specs to set/unset (only key is necessary on unset). Extra_specs to set/unset (only key is necessary on unset).
.. _nova_flavor-list: .. _openstack_flavor_list:
nova flavor-list openstack flavor list
---------------- ---------------------
.. code-block:: console .. code-block:: console
usage: nova flavor-list [--extra-specs] [--all] [--marker <marker>] usage: openstack flavor list [-h]
[--limit <limit>] [-f {csv,html,json,json,table,value,yaml,yaml}]
[-c COLUMN] [--max-width <integer>] [--noindent]
[--quote {all,minimal,none,nonnumeric}]
[--public | --private | --all] [--long]
[--marker <marker>] [--limit <limit>]
Print a list of available 'flavors' (sizes of servers). Print a list of available 'flavors' (sizes of servers).

@ -47,16 +47,16 @@ Change the size of a server by changing its flavor.
.. code-block:: console .. code-block:: console
$ nova flavor-list $ openstack flavor list
+-----+-----------+-----------+------+-----------+------+-------+-------------+----------+ +-----+-----------+-------+------+-----------+-------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public| | ID | Name | RAM | Disk | Ephemeral | VCPUs | Is_Public |
+-----+-----------+-----------+------+-----------+------+-------+-------------+----------+ +-----+-----------+-------+------+-----------+-------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True | | 1 | m1.tiny | 512 | 1 | 0 | 1 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True | | 2 | m1.small | 2048 | 20 | 0 | 1 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True | | 3 | m1.medium | 4096 | 40 | 0 | 2 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True | | 4 | m1.large | 8192 | 80 | 0 | 4 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True | | 5 | m1.xlarge | 16384 | 160 | 0 | 8 | True |
+-----+-----------+-----------+------+-----------+------+-------+-------------+----------+ +-----+-----------+-------+------+-----------+-------+-----------+
#. To resize the server, use the :command:`nova resize` command and add #. To resize the server, use the :command:`nova resize` command and add
the server ID or name and the new flavor. Include the :option:`--poll` the server ID or name and the new flavor. Include the :option:`--poll`

@ -98,7 +98,7 @@ List flavors
.. code-block:: console .. code-block:: console
$ nova flavor-list $ openstack flavor list
Boot an instance using flavor and image names (if names are unique) Boot an instance using flavor and image names (if names are unique)

@ -74,19 +74,19 @@ Before you begin, source the OpenStack RC file.
.. code-block:: console .. code-block:: console
$ nova flavor-list $ openstack flavor list
Note the ID of the flavor that you want to use for your instance:: Note the ID of the flavor that you want to use for your instance::
+-----+-----------+-----------+------+-----------+------+-------+-------------+-----------+ +-----+-----------+-------+------+-----------+-------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | | ID | Name | RAM | Disk | Ephemeral | VCPUs | Is_Public |
+-----+-----------+-----------+------+-----------+------+-------+-------------+-----------+ +-----+-----------+-------+------+-----------+-------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True | | 1 | m1.tiny | 512 | 1 | 0 | 1 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True | | 2 | m1.small | 2048 | 20 | 0 | 1 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True | | 3 | m1.medium | 4096 | 40 | 0 | 2 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True | | 4 | m1.large | 8192 | 80 | 0 | 4 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True | | 5 | m1.xlarge | 16384 | 160 | 0 | 8 | True |
+-----+-----------+-----------+------+-----------+------+-------+-------------+-----------+ +-----+-----------+-------+------+-----------+-------+-----------+
#. List the available images. #. List the available images.

@ -191,16 +191,16 @@ the volume to boot an instance.
.. code-block:: console .. code-block:: console
$ nova flavor-list $ openstack flavor list
+-----+-----------+-----------+------+-----------+------+-------+-------------+-----------+ +-----+-----------+-------+------+-----------+-------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | | ID | Name | RAM | Disk | Ephemeral | VCPUs | Is_Public |
+-----+-----------+-----------+------+-----------+------+-------+-------------+-----------+ +-----+-----------+-------+------+-----------+-------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True | | 1 | m1.tiny | 512 | 1 | 0 | 1 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True | | 2 | m1.small | 2048 | 20 | 0 | 1 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True | | 3 | m1.medium | 4096 | 40 | 0 | 2 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True | | 4 | m1.large | 8192 | 80 | 0 | 4 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True | | 5 | m1.xlarge | 16384 | 160 | 0 | 8 | True |
+-----+-----------+-----------+------+-----------+------+-------+-------------+-----------+ +-----+-----------+-------+------+-----------+-------+-----------+
Note the ID of the flavor that you want to use to create a volume. Note the ID of the flavor that you want to use to create a volume.

@ -20,25 +20,25 @@ Create and access a database
sufficient to create database instances. You might need to create or sufficient to create database instances. You might need to create or
obtain some 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 :command:`nova flavor-list` The first step is to list flavors by using the
command. :command:`openstack flavor list` command.
Here are the default flavors, although you may have additional custom Here are the default flavors, although you may have additional custom
flavors in your environment: flavors in your environment:
.. code-block:: console .. code-block:: console
$ nova flavor-list $ openstack flavor list
+-----+-----------+-----------+------+-----------+------+-------+-------------+-----------+ +-----+-----------+-------+------+-----------+-------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | | ID | Name | RAM | Disk | Ephemeral | VCPUs | Is_Public |
+-----+-----------+-----------+------+-----------+------+-------+-------------+-----------+ +-----+-----------+-------+------+-----------+-------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True | | 1 | m1.tiny | 512 | 1 | 0 | 1 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True | | 2 | m1.small | 2048 | 20 | 0 | 1 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True | | 3 | m1.medium | 4096 | 40 | 0 | 2 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True | | 4 | m1.large | 8192 | 80 | 0 | 4 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | 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: