From 05f6f1de426a376e8d557ffbb57d8a6ba16442f6 Mon Sep 17 00:00:00 2001 From: zhangyanxian Date: Tue, 20 Dec 2016 02:52:57 +0000 Subject: [PATCH] [user-guide] Update the "nova flavor-create"to"openstack flavor create" Implements: blueprint use-openstack-command Change-Id: I3293b46e0bb4f6acf21d3a3c628e7fb9e2136aa8 --- doc/user-guide/source/create-db.rst | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/doc/user-guide/source/create-db.rst b/doc/user-guide/source/create-db.rst index b449d69001..92d5d96bcd 100644 --- a/doc/user-guide/source/create-db.rst +++ b/doc/user-guide/source/create-db.rst @@ -61,7 +61,7 @@ Create and access a database - If your environment does not have a suitable flavor, an administrative user must create a custom flavor by using the - :command:`nova flavor-create` command. + :command:`openstack flavor create` command. **MySQL example.** This example creates a flavor that you can use with a MySQL database. This example has the following attributes: @@ -79,12 +79,22 @@ Create and access a database .. code-block:: console - $ nova flavor-create mysql-minimum 6 512 5 1 - +----+---------------+-----------+------+-----------+------+-------+-------------+-----------+ - | ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | - +----+---------------+-----------+------+-----------+------+-------+-------------+-----------+ - | 6 | mysql-minimum | 512 | 5 | 0 | | 1 | 1.0 | True | - +----+---------------+-----------+------+-----------+------+-------+-------------+-----------+ + $ openstack flavor create mysql-minimum --id 6 --ram 512 --disk 5 --vcpus 1 + +----------------------------+---------------+ + | Field | Value | + +----------------------------+---------------+ + | OS-FLV-DISABLED:disabled | False | + | OS-FLV-EXT-DATA:ephemeral | 0 | + | disk | 5 | + | id | 6 | + | name | mysql-minimum | + | os-flavor-access:is_public | True | + | properties | | + | ram | 512 | + | rxtx_factor | 1.0 | + | swap | | + | vcpus | 1 | + +----------------------------+---------------+ .. _create-database-instance: