From a6b9305aa67d5d825510be542f15241636a4b8f6 Mon Sep 17 00:00:00 2001 From: Stephen Gordon Date: Fri, 16 May 2014 15:23:22 -0400 Subject: [PATCH] Use correct arguments to flavor-key Use correct arguments to flavor-key action when setting flavor extra-specifications. Change-Id: Ie6ceb8208a659961673cbae314568282e2cc005a Closes-Bug: #1320281 backport: icehouse --- doc/common/section_cli_nova_host_aggregates.xml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/doc/common/section_cli_nova_host_aggregates.xml b/doc/common/section_cli_nova_host_aggregates.xml index 5134ddc962..ce3f987cab 100644 --- a/doc/common/section_cli_nova_host_aggregates.xml +++ b/doc/common/section_cli_nova_host_aggregates.xml @@ -201,11 +201,10 @@ +----+---------+-------------------+----------------------+-------------------+ | 1 | fast-io | nova | [u'node1', u'node2'] | {u'ssd': u'true'} | +----+---------+-------------------+----------------------+-------------------+ - Use the nova flavor-create command to - create the ssd.large flavor called with - an ID of 6, 8 GB of RAM, 80 GB root disk, and 4 - vCPUs. - $ nova flavor-create ssd.large 6 8192 80 4 + Use the nova flavor-create command to create + the ssd.large flavor called with an ID of + 6, 8 GB of RAM, 80 GB root disk, and four vCPUs. + $ nova flavor-create ssd.large 6 8192 80 4 +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+ | ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | extra_specs | +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+-------------+ @@ -214,10 +213,10 @@ Once the flavor is created, specify one or more key-value pairs that match the key-value pairs on the host aggregates. In this case, that is the - ssd=true key-value pair. Setting a + ssd=true key-value pair. Setting a key-value pair on a flavor is done using the nova - flavor-key set_key command. - $ nova flavor-key set_key --name=ssd.large --key=ssd --value=true + flavor-key command. + $ nova flavor-key ssd.large set ssd=true Once it is set, you should see the extra_specs property of the ssd.large flavor populated with a