retention policy for deleted resource in database

Dmitriy Rabotyagov noonedeadpunk at gmail.com
Sun Apr 24 05:17:27 UTC 2022


Hi Tony,

There is no default retention policy defined.
To clean up such records for cinder you can run command
cinder-manage db purge <days to retain>


For nova it's a bit more complicated as first you would archive these
records and only then purge them from shadow tables. This is done with
nova-manage command.
You can check docs regarding it's usage:
https://docs.openstack.org/nova/latest/cli/nova-manage.html#db-archive-deleted-rows

вс, 24 апр. 2022 г., 6:04 Tony Liu <tonyliu0592 at hotmail.com>:

> Hi,
>
> I see the record for deleted resource stay in database.
> What's the retention policy for those records?
> Is it configurable?
> Any manual cleanup is required?
>
>
> Thanks!
> Tony
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20220424/b6c92ca9/attachment-0001.htm>


More information about the openstack-discuss mailing list