Commit Graph

4 Commits

Author SHA1 Message Date
Vishakha Agarwal 25e0e1474a Add abstract method in trusts base.py
This is a follow-up patch to add an abstract
method for flush_expired_and_soft_deleted_trusts
in base.py to avoid any burst in case people
supplying their own backend.

Change-Id: Ib326abddce239e87cd4cd37d06fa3b55112ee134
Related-Patch: https://review.openstack.org/#/c/589378/
Related-Bug: #1473292
2018-11-07 08:43:39 +05:30
Vishakha Agarwal 7e42d333c7 Adding 'date' for trust_flush
This patch adds functionality to purge
expired and soft-deleted trusts older
than the given date.

Change-Id: I0bd47e57f8650182e38b4f70e04cb53338fce474
Related-Bug: #1473292
2018-10-23 15:13:15 +05:30
Vishakha Agarwal 6aba78a7a2 Purge soft-deleted trusts
This patch adds the functionality for purging both
expired trusts as well as non-expired soft-deleted
trusts, since those soft-deleted trusts are
as likely to bloat the database as expired trusts.

Related to patch-
https://review.openstack.org/#/c/589378/

Change-Id: I3c74f2345a944ce03a8189c4e66c3c37350cd34f
Related-Bug: #1473292
2018-10-02 09:49:53 +05:30
Vishakha Agarwal 8232dabcf9 Implement Trust Flush via keystone-manage.
Creates a cli entry 'trust_flush' which removes
all expired trusts.

Change-Id: I1c85b67d24e05db86c85e722fbd773a411c24ac4
Closes-Bug: #1473292
2018-09-18 13:51:11 +05:30