Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-68

Add nova-manage cleanup command for 'task_log' database records

XMLWordPrintable

    • Icon: Epic Epic
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhos-18.0.0
    • None
    • openstack-nova
    • None
    • Add nova-manage cleanup command for 'task_log' database records
    • 1
    • False
    • False
    • Committed
    • No Docs Impact
    • OSP-14490 - Large scale scheduling
    • openstack-nova-27.1.1-18.0.20230930093334.a869ab1.el9ost
    • Committed
    • No impact
    • 0% To Do, 0% In Progress, 100% Done
    • Hide
      .Archive 'task_log' database records

      This enhancement adds the `--task-log` option to the `nova-manage db archive_deleted_rows` CLI. When you use the  `--task-log` option, the `task_log` table records get archived while archiving the database. This option is the default in the nova-operator database purge cron job. Previously, there was no method to delete the `task_log` table without manual database modification.

      You can use the `--task-log` option with the `--before` option for records that are older than a specified `<date>`. The `updated_at` field is compared to the specifed `<date>` to determine the age of a `task_log` record for archival.

      If you configure `nova-compute` with `[DEFAULT]instance_usage_audit = True`, the `task_log` database table maintains an audit log of `--task-log` use.
      Show
      .Archive 'task_log' database records This enhancement adds the `--task-log` option to the `nova-manage db archive_deleted_rows` CLI. When you use the  `--task-log` option, the `task_log` table records get archived while archiving the database. This option is the default in the nova-operator database purge cron job. Previously, there was no method to delete the `task_log` table without manual database modification. You can use the `--task-log` option with the `--before` option for records that are older than a specified `<date>`. The `updated_at` field is compared to the specifed `<date>` to determine the age of a `task_log` record for archival. If you configure `nova-compute` with `[DEFAULT]instance_usage_audit = True`, the `task_log` database table maintains an audit log of `--task-log` use.
    • Enhancement
    • Done
    • Automated

      I'm going to use this rhbz for an RFE to add cleanup for nova.task_log database records as a new nova-manage command, as described here:

      http://lists.openstack.org/pipermail/openstack-discuss/2019-September/009245.html

      This will be done as a Wishlist bug upstream.

            mwitt@redhat.com melanie witt
            jira-bugzilla-migration RH Bugzilla Integration
            rhos-dfg-compute
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 3 hours
                3h
                Remaining:
                Remaining Estimate - 3 hours
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified