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

Add a limit parameter to cinder-manage db purge

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhos-17.1.z, rhos-18.0.z
    • openstack-cinder
    • None
    • Refine Me
    • 1
    • Moderate

      cinder-manage db purge can fail on large volumes tables (~500000 rows or more) because the time to execute the transaction to purge volumes exceeds the default 120 second innodb timeout at the database layer.

       

      For deployments that have gotten to a huge table like this (perhaps because purging wasn't completing successfully due to other bugs) it would be helpful to either:

      a) Add a parameter to the command line that limits the operation to X rows

      b) Loop inside of the purge operation with size limits that won't exceed the db timeout

       

              rh-ee-fesilva Fernando Silva
              eharney@redhat.com Eric Harney
              Fernando Silva
              rhos-storage-cinder
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: