From cd396b8b61ed7496f4166a2237b27aa0a138f6e5 Mon Sep 17 00:00:00 2001 From: zhangbailin Date: Tue, 30 Jul 2019 19:52:00 +0800 Subject: Microversion 2.79: Add delete_on_termination to volume-attach API 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 --- doc/source/cli/nova.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'doc') 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 ] [] + usage: nova volume-attach [--delete-on-termination] [--tag ] + [] Attach a volume to a server. @@ -3870,6 +3871,11 @@ Attach a volume to a server. ``--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 -- cgit v1.2.1