diff options
author | zhangbailin <zhangbailin@inspur.com> | 2019-07-30 19:52:00 +0800 |
---|---|---|
committer | Matt Riedemann <mriedem.os@gmail.com> | 2019-09-09 12:43:42 -0400 |
commit | cd396b8b61ed7496f4166a2237b27aa0a138f6e5 (patch) | |
tree | 26b72f48c3fd58fa23c139140478c86671cda4e6 /doc | |
parent | aae95dcc7a79be019fc304ced76a351c16382ede (diff) | |
download | python-novaclient-cd396b8b61ed7496f4166a2237b27aa0a138f6e5.tar.gz |
Microversion 2.79: Add delete_on_termination to volume-attach API15.1.0
Support add 'delete_on_termination' field to the voume attach API to
support configuring whether to delete the data volume when the server
is destroyed.
* Updating the ``nova volume-attachments`` command to show the
``delete_on_termination`` value if 2.79 or greater is used.
* The '--delete-on-termination' option is added to the `nova volume-attach`
CLI.
Depends-On: https://review.opendev.org/#/c/673133/
Part of blueprint support-delete-on-termination-in-server-attach-volume
Change-Id: I8dcf2fd21a2fd99ca4e05bd953fbbe026be3a619
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/cli/nova.rst | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/source/cli/nova.rst b/doc/source/cli/nova.rst index ab310758..007e9686 100644 --- a/doc/source/cli/nova.rst +++ b/doc/source/cli/nova.rst @@ -3849,7 +3849,8 @@ nova volume-attach .. code-block:: console - usage: nova volume-attach [--tag <tag>] <server> <volume> [<device>] + usage: nova volume-attach [--delete-on-termination] [--tag <tag>] + <server> <volume> [<device>] Attach a volume to a server. @@ -3870,6 +3871,11 @@ Attach a volume to a server. ``--tag <tag>`` Tag for the attached volume. (Supported by API versions '2.49' - '2.latest') +``--delete-on-termination`` + Specify if the attached volume sholud be deleted when the server is + destroyed. By default the attached volume is not deleted when the server is + destroyed. (Supported by API versions '2.79' - '2.latest') + .. _nova_volume-attachments: nova volume-attachments |