From 4ccb20e7e0c3c8742b6bc41b125eefcfe22a0249 Mon Sep 17 00:00:00 2001 From: qiaomin Date: Wed, 19 Oct 2016 14:55:32 +0000 Subject: [PATCH] Use 'openstack security group list' to replace 'nova secgroup-list' The command 'nova secgroup-list' is deprecated and will be removed after Nova 15.0.0 is released, so this patch use 'openstack security group list' to replace it for cleanup. Implements: blueprint use-openstack-command Change-Id: I6e85a14c482320d21f89832e7c01dd60ab0bfc1f --- .../source/ops-user-facing-operations.rst | 17 +++++++++-------- doc/user-guide/source/cli-launch-instances.rst | 14 +++++++------- ...-configure-access-security-for-instances.rst | 2 +- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/doc/ops-guide/source/ops-user-facing-operations.rst b/doc/ops-guide/source/ops-user-facing-operations.rst index b4136316e6..23301d5331 100644 --- a/doc/ops-guide/source/ops-user-facing-operations.rst +++ b/doc/ops-guide/source/ops-user-facing-operations.rst @@ -502,17 +502,18 @@ command-line equivalents. **Setting with nova command** From the command line, you can get a list of security groups for the -project you're acting in using the :command:`nova secgroup-list` command: +project you're acting in using the :command:`openstack security group list` +command: .. code-block:: console - $ nova secgroup-list - +---------+-------------+ - | Name | Description | - +---------+-------------+ - | default | default | - | open | all ports | - +---------+-------------+ + $ openstack security group list + +--------------------------------------+---------+------------------------+----------------------------------+ + | ID | Name | Description | Project | + +--------------------------------------+---------+------------------------+----------------------------------+ + | d4246298-e5d6-440b-a29e-0a721c2259c7 | open | all ports | 1eaaf6ede7a24e78859591444abf314a | + | ec02e79e-83e1-48a5-86ad-14ab9a8c375f | default | Default security group | 1eaaf6ede7a24e78859591444abf314a | + +--------------------------------------+---------+------------------------+----------------------------------+ To view the details of the "open" security group: diff --git a/doc/user-guide/source/cli-launch-instances.rst b/doc/user-guide/source/cli-launch-instances.rst index 0a56968e53..cf00f6e6f9 100644 --- a/doc/user-guide/source/cli-launch-instances.rst +++ b/doc/user-guide/source/cli-launch-instances.rst @@ -117,7 +117,7 @@ Before you begin, source the OpenStack RC file. .. code-block:: console - $ nova secgroup-list --all-tenants + $ openstack security group list .. note:: @@ -129,12 +129,12 @@ Before you begin, source the OpenStack RC file. Note the ID of the security group that you want to use for your instance:: - +----+---------+-------------+----------------------------------+ - | Id | Name | Description | Tenant_ID | - +----+---------+-------------+----------------------------------+ - | 2 | default | default | 66265572db174a7aa66eba661f58eb9e | - | 1 | default | default | b70d90d65e464582b6b2161cf3603ced | - +----+---------+-------------+----------------------------------+ + +--------------------------------------+---------+------------------------+----------------------------------+ + | ID | Name | Description | Project | + +--------------------------------------+---------+------------------------+----------------------------------+ + | b0d78827-0981-45ef-8561-93aee39bbd9f | default | Default security group | 5669caad86a04256994cdf755df4d3c1 | + | ec02e79e-83e1-48a5-86ad-14ab9a8c375f | default | Default security group | 1eaaf6ede7a24e78859591444abf314a | + +--------------------------------------+---------+------------------------+----------------------------------+ If you have not created any security groups, you can assign the instance to only the default security group. diff --git a/doc/user-guide/source/cli-nova-configure-access-security-for-instances.rst b/doc/user-guide/source/cli-nova-configure-access-security-for-instances.rst index f136b7fcba..daadcf3a70 100644 --- a/doc/user-guide/source/cli-nova-configure-access-security-for-instances.rst +++ b/doc/user-guide/source/cli-nova-configure-access-security-for-instances.rst @@ -114,7 +114,7 @@ Create and manage security groups .. code-block:: console - $ nova secgroup-list + $ openstack security group list #. To create a security group with a specified name and description, enter the following command: