Browse Source

Document block_device_mapping_v2 delete_on_termination defaults

The default values for the 'delete_on_termination' flag for
the 'block_device_mapping_v2' depends on other parameters
of the mapping and it is not obvious for a user which default
is used in which case.
This patch documents the defaults for the different cases.

Change-Id: I44e3646e55c067aea95044f5da7c5536387d6f23
Signed-off-by: Andreas Florath <Andreas.Florath@telekom.de>
changes/12/680912/3
Andreas Florath 1 week ago
parent
commit
bb44f779fb
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      heat/engine/resources/openstack/nova/server.py

+ 4
- 1
heat/engine/resources/openstack/nova/server.py View File

@@ -330,7 +330,10 @@ class Server(server_base.BaseServer, sh.SchedulerHintsMixin,
330 330
                     BLOCK_DEVICE_MAPPING_DELETE_ON_TERM: properties.Schema(
331 331
                         properties.Schema.BOOLEAN,
332 332
                         _('Indicate whether the volume should be deleted '
333
-                          'when the server is terminated.')
333
+                          'when the server is terminated. '
334
+                          'Defaults to "False" in case of a volume, snapshot '
335
+                          'or image and to "True" in case of swap or '
336
+                          'ephemeral.')
334 337
                     ),
335 338
                 },
336 339
             ),

Loading…
Cancel
Save