From ee3139ef4f9cba1e2d13b3531a49a0dd1129191a Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Tue, 14 Jan 2014 22:40:51 +0900 Subject: [PATCH] Fix flavor extra_spec usages "nova-manage" command is deprecated and "nova flavor-key" can set flavor extra_spec instead. This patch changes the usage to show "nova flavor-key". In addition, "nova flavor-set" command does not exist. This patch fixes it with "nova flavor-key" command. Change-Id: If41899cf0af463ccc2db5127d53398f73e3a26a7 --- doc/common/section_cli_nova_customize_flavors.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/common/section_cli_nova_customize_flavors.xml b/doc/common/section_cli_nova_customize_flavors.xml index 5513751e4e..b55152952f 100644 --- a/doc/common/section_cli_nova_customize_flavors.xml +++ b/doc/common/section_cli_nova_customize_flavors.xml @@ -104,10 +104,10 @@ volume-type-delete Delete a specific flavor available to a VM, disk tuning, bandwidth I/O, and instance VIF traffic control. You can configure the CPU limits with control parameters - with the nova-manage tool. For example, to configure the I/O + with the nova tool. For example, to configure the I/O limit: - # nova-manage flavor set_key --name m1.small --key quota:read_bytes_sec --value 10240000 -# nova-manage flavor set_key --name m1.small --key quota:write_bytes_sec --value 10240000 + # nova flavor-key m1.small set quota:read_bytes_sec=10240000 +# nova flavor-key m1.small set quota:write_bytes_sec=10240000 There are CPU control parameters for weight shares, enforcement intervals for runtime quotas, and a quota for maximum allowed bandwidth. @@ -139,7 +139,7 @@ volume-type-delete Delete a specific flavor of 50% CPU of a physical CPU computing capability. Through disk I/O quotas, you can set maximum disk write to 10 MB per second for a VM user. For example: - # nova flavor-set m1.medium set disk_write_bytes_sec=10485760 + # nova flavor-key m1.medium set disk_write_bytes_sec=10485760 The disk I/O options are: @@ -200,8 +200,8 @@ volume-type-delete Delete a specific flavor to the network. This example configures a bandwidth limit for instance network traffic: - # nova-manage flavor set_key --name m1.small --key quota:inbound_average --value 10240 -# nova-manage flavor set_key --name m1.small --key quota:outbound_average --value 10240 + # nova flavor-key m1.small set quota:inbound_average=10240 +# nova flavor-key m1.small set quota:outbound_average=10240 Flavors can also be assigned to particular projects. By default, a flavor is public and available to all projects. Private flavors are only accessible to those on the access