Added non-zero exit-code handling for `nova-manage db archive_deleted_rows`
Prod-Related: PROD-35959
Signed-off-by: Oleksii Molchanov <omolchanov@mirantis.com>
Change-Id: I8cc2914bb2ec0c714062440e91cbee9e592b699a
diff --git a/nova/db/db_cleanup.sls b/nova/db/db_cleanup.sls
index 348a42d..c5839da 100644
--- a/nova/db/db_cleanup.sls
+++ b/nova/db/db_cleanup.sls
@@ -16,7 +16,7 @@
{%- endif %}
nova_db_clean:
cmd.run:
- - name: "nova-manage db archive_deleted_rows {{ cmd_args|join(' ') }}"
+ - name: "nova-manage db archive_deleted_rows {{ cmd_args|join(' ') }} || true"
- runas: 'nova'
{%- if grains.get('noservices') or controller.get('role', 'primary') == 'secondary' %}
- onlyif: /bin/false