masakari/masakari
pooja jadhav 4048b1fd8e Add db purge support
Added db purge support to delete the soft-deleted records from tables.
In case of tables 'hosts' and 'failover_segments' the decision to purge
the record is made on the basis of 'deleted' and 'deleted_at' column's
value. However in case of 'notifications' table it is decided on the
basis of 'updated_at' column's value as notifications don't have
'delete' API.

Operator can use the below command to purge the records:

"masakari-manage db purge --age_in_days <days> --max_rows <rows>"

Implements: blueprint db-purge-support

Co-author: Pooja Jadhav <pooja.jadhav@nttdata.com>
Change-Id: Id959b0e2b84d5d2587d6b70b8f695f69634a1d17
2018-04-18 13:03:06 +05:30
..
api Optimize the link address 2017-06-08 18:37:08 +07:00
cmd Add db purge support 2018-04-18 13:03:06 +05:30
common Add support for wsgi framework 2016-07-12 13:10:10 +05:30
compute Use service_type and service_name of nova_catalog_admin_info 2017-10-19 16:45:57 +09:00
conf Fix default value of 'nova_catalog_admin_info' 2018-02-21 14:46:29 +09:00
db Add db purge support 2018-04-18 13:03:06 +05:30
engine Ignore '409 Conflict' when adding reserved_host to aggregate 2018-01-19 15:17:58 +09:00
ha Fix 'host delete' delete's host of another segment 2017-08-01 12:28:56 +05:30
hacking Add db purge support 2018-04-18 13:03:06 +05:30
objects Fix 'host delete' delete's host of another segment 2017-08-01 12:28:56 +05:30
tests Add db purge support 2018-04-18 13:03:06 +05:30
__init__.py Make eventlet hub use a monotonic clock 2017-11-14 07:15:45 +00:00
config.py Add RPC layer for masakari 2016-10-07 13:16:26 +05:30
context.py Send global_request_id to nova when calls are made 2017-07-27 09:53:25 +05:30
exception.py Fix 'host delete' delete's host of another segment 2017-08-01 12:28:56 +05:30
i18n.py Update the documentation link for doc migration 2017-07-24 16:34:45 +08:00
manager.py Add masakari-engine support 2016-10-05 14:53:26 +05:30
policy.py Add support for wsgi framework 2016-07-12 13:10:10 +05:30
rpc.py Use get_rpc_transport instead of get_transport 2017-06-28 05:03:06 +00:00
safe_utils.py Add support for wsgi framework 2016-07-12 13:10:10 +05:30
service.py Make eventlet hub use a monotonic clock 2017-11-14 07:15:45 +00:00
test.py Use dict.items() and dict.values() as per guidelines 2017-01-16 18:08:15 +05:30
utils.py Use method validate_integer from oslo.utils 2018-03-29 10:02:18 +05:30
version.py Remove log translations 2017-04-05 08:11:09 +00:00
wsgi.py Remove log translations 2017-04-05 08:11:09 +00:00