Modify automatic cleanup of OpenStack databases

Available since MOSK 21.6

OpenStack services mark removed objects in the database as deleted but store information about them. By default, to keep the databases smaller and faster, stale records older than 30 days are automatically cleaned up using scripts that run as cron jobs. For details about the defaults, see features:database:cleanup.

If required, you can modify the cleanup schedule for the following services: Barbican, Cinder, Glance, Heat, Masakari, and Nova.

To modify the cleanup schedule of OpenStack databases, configure the features:database:cleanup settings in the OpenStackDeployment CR using the following structure example. Set the schedule parameter to the required cron expression.

          enabled: true
          schedule: "1 0 * * 1"
          age: 30
          batch: 1000