From e3fdc87aaa937c113de812c92d1b808e50bbb9f0 Mon Sep 17 00:00:00 2001 From: zhangguoqing Date: Mon, 6 Jul 2015 16:54:24 +0800 Subject: [PATCH] user-guide-admin: Enable flavors metadata update Add "Update Metadata" to dashboard_manage_flavors.rst, and add flavor-key operation to cli_manage_flavors.rst. Change-Id: Icf78d79d38df519e393e504dbe14beff48f2d826 Closes-Bug: #1369791 --- .../source/cli_manage_flavors.rst | 16 +++++ .../source/dashboard_manage_flavors.rst | 68 +++++++++++++++++++ 2 files changed, 84 insertions(+) diff --git a/doc/user-guide-admin/source/cli_manage_flavors.rst b/doc/user-guide-admin/source/cli_manage_flavors.rst index 55d89d8182..a4eaa21fdc 100644 --- a/doc/user-guide-admin/source/cli_manage_flavors.rst +++ b/doc/user-guide-admin/source/cli_manage_flavors.rst @@ -110,6 +110,22 @@ Create a flavor $ nova flavor-access-add FLAVOR TENANT_ID +#. In addition, you can set or unset ``extra_spec`` for the existing flavor. + The ``extra_spec`` metadata keys can influence the instance directly when + it is launched. If a flavor sets the + ``extra_spec key/value quota:vif_outbound_peak=65536``, the instance's + out bound peak bandwidth I/O should be LTE 512 Mbps. There are several + aspects that can work for an instance including **CPU limits**, + **Disk tuning**, **Bandwidth I/O**, **Watchdog behavior**, and + **Random-number generator**. + For information about supporting metadata keys, see the + `OpenStack Cloud Administrator Guide + `__. + + For a list of optional parameters, run this command:: + + $ nova help flavor-key + Delete a flavor ~~~~~~~~~~~~~~~ Delete a specified flavor, as follows:: diff --git a/doc/user-guide-admin/source/dashboard_manage_flavors.rst b/doc/user-guide-admin/source/dashboard_manage_flavors.rst index a750e1f2d5..e054d08b68 100644 --- a/doc/user-guide-admin/source/dashboard_manage_flavors.rst +++ b/doc/user-guide-admin/source/dashboard_manage_flavors.rst @@ -83,6 +83,74 @@ Update flavors name, VCPUs, RAM, root disk, ephemeral disk, and swap disk values. #. Click :guilabel:`Save`. +Update Metadata +~~~~~~~~~~~~~~~~ + +#. Log in to the dashboard. + + Choose the :guilabel:`admin` project from the drop-down list at + the top of the page. +#. In the :guilabel:`Admin` tab, open the :guilabel:`System Panel` + and click the :guilabel:`Flavors` category. +#. Select the flavor that you want to update. In the drop-down + list, click :guilabel:`Update Metadata` or click :guilabel:`No` or + :guilabel:`Yes` in the :guilabel:`Metadata` column. +#. In the :guilabel:`Update Flavor Metadata` window, you can customize + some metadata keys, then add it to this flavor and set them values. +#. Click :guilabel:`Save`. + + **Optional metadata keys** + + +-------------------------------+-------------------------------+ + | | quota:cpu_shares | + | +-------------------------------+ + | **CPU limits** | quota:cpu_period | + | +-------------------------------+ + | | quota:cpu_limit | + | +-------------------------------+ + | | quota:cpu_reservation | + | +-------------------------------+ + | | quota:cpu_quota | + +-------------------------------+-------------------------------+ + | | quota:disk_read_bytes_sec | + | +-------------------------------+ + | **Disk tuning** | quota:disk_read_iops_sec | + | +-------------------------------+ + | | quota:disk_write_bytes_sec | + | +-------------------------------+ + | | quota:disk_write_iops_sec | + | +-------------------------------+ + | | quota:disk_total_bytes_sec | + | +-------------------------------+ + | | quota:disk_total_iops_sec | + | +-------------------------------+ + | | quota:disk_total_iops_sec | + +-------------------------------+-------------------------------+ + | | quota:vif_inbound_average | + | +-------------------------------+ + | **Bandwidth I/O** | quota:vif_inbound_burst | + | +-------------------------------+ + | | quota:vif_inbound_peak | + | +-------------------------------+ + | | quota:vif_outbound_average | + | +-------------------------------+ + | | quota:vif_outbound_burst | + | +-------------------------------+ + | | quota:vif_outbound_peak | + +-------------------------------+-------------------------------+ + | **Watchdog behavior** | hw:watchdog_action | + +-------------------------------+-------------------------------+ + | | hw_rng:allowed | + | +-------------------------------+ + | **Random-number generator** | hw_rng:rate_bytes | + | +-------------------------------+ + | | hw_rng:rate_period | + +-------------------------------+-------------------------------+ + + For information about supporting metadata keys, see the + `OpenStack Cloud Administrator Guide + `__. + Delete flavors ~~~~~~~~~~~~~~