keystone/releasenotes/notes/bug-1473292-c21481e6aec29ec2.yaml
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

26 lines
1.0 KiB
YAML

---
feature:
- |
[`bug 1473292 <https://bugs.launchpad.net/keystone/+bug/1473292>`_]
As trusts created by user are stored in database resulting it to grow larger
as trusts that are expired and soft deleted non-expired are not automatically
purged by keystone.Thus this implements TrustFlush via keystone-manage to delete
expired and soft deleted non-expired trusts.
Command:
$ keystone-manage trust-flush [Options]
Options (optional):
--project-id <string>: To purge trusts of given project-id.
--trustor-user-id <string>: To purge trusts of given trustor-id.
--trustee-user-id <string>: To purge trusts of given trustee-id.
--date <string>: To purge trusts older than date. It will purge trusts older than
current if date not given.
other:
- >
[`bug 1473292 <https://bugs.launchpad.net/keystone/+bug/1473292>`_]
If you're relying on a custom implementation of the trust backend, please be sure to
implement the new method prior to upgrading.