Enabling until_complete to be configured dynamically
authorCarlos Camacho <ccamacho@redhat.com>
Tue, 20 Dec 2016 06:54:59 +0000 (07:54 +0100)
committerCarlos Camacho <ccamacho@redhat.com>
Thu, 19 Jan 2017 18:54:12 +0000 (19:54 +0100)
Adding to THT the cabability of configuring until_complete
in the archive job.
This will be a boolean flag to clean all the deleted instances.
Will run in batches of max_rows until empty.

Change-Id: I087bc66729fef4f33122a7633c154d5a66613d6f
Depends-On: I927b75adb0fc3251f3734d41f4393590294c1c9b
Closes-Bug: 1650680

puppet/services/nova-base.yaml

index 9a5f27c..ccbc852 100644 (file)
@@ -106,6 +106,11 @@ parameters:
     description: >
         Cron to move deleted instances to another table - Log destination
     default: '/var/log/nova/nova-rowsflush.log'
+  NovaCronArchiveDeleteRowsUntilComplete:
+    type: boolean
+    description: >
+        Cron to move deleted instances to another table - Until complete
+    default: false
 
 
 conditions:
@@ -183,6 +188,7 @@ outputs:
           nova::cron::archive_deleted_rows::max_rows: {get_param: NovaCronArchiveDeleteRowsMaxRows}
           nova::cron::archive_deleted_rows::user: {get_param: NovaCronArchiveDeleteRowsUser}
           nova::cron::archive_deleted_rows::destination: {get_param: NovaCronArchiveDeleteRowsDestination}
+          nova::cron::archive_deleted_rows::until_complete: {get_param: NovaCronArchiveDeleteRowsUntilComplete}
         -
           if:
           - compute_upgrade_level_empty