← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1938633] [NEW] i am executing nova db purge command to purge records but i am getting keyError

 

Public bug reported:

/usr/bin/nova-manage db archive_deleted_rows --purge --before
"2021-07-18 13:32:23.310897"

An error has occurred:
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/nova/cmd/manage.py", line 2797, in main
    ret = fn(*fn_args, **fn_kwargs)
  File "/usr/lib/python3.6/site-packages/nova/cmd/manage.py", line 321, in archive_deleted_rows
    cell_name)
  File "/usr/lib/python3.6/site-packages/nova/cmd/manage.py", line 375, in _do_archive
    db.archive_deleted_rows(cctxt, max_rows, before=before_date)
  File "/usr/lib/python3.6/site-packages/nova/db/api.py", line 1313, in archive_deleted_rows
    before=before)
  File "/usr/lib/python3.6/site-packages/nova/db/sqlalchemy/api.py", line 4335, in archive_deleted_rows
    before=before))
  File "/usr/lib/python3.6/site-packages/nova/db/sqlalchemy/api.py", line 4204, in _archive_deleted_rows_for_table
    table = models.BASE.metadata.tables[tablename]
KeyError: 'alembic_version'

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1938633

Title:
  i am executing nova db purge command to purge records but i am getting
  keyError

Status in OpenStack Compute (nova):
  New

Bug description:
  /usr/bin/nova-manage db archive_deleted_rows --purge --before
  "2021-07-18 13:32:23.310897"

  An error has occurred:
  Traceback (most recent call last):
    File "/usr/lib/python3.6/site-packages/nova/cmd/manage.py", line 2797, in main
      ret = fn(*fn_args, **fn_kwargs)
    File "/usr/lib/python3.6/site-packages/nova/cmd/manage.py", line 321, in archive_deleted_rows
      cell_name)
    File "/usr/lib/python3.6/site-packages/nova/cmd/manage.py", line 375, in _do_archive
      db.archive_deleted_rows(cctxt, max_rows, before=before_date)
    File "/usr/lib/python3.6/site-packages/nova/db/api.py", line 1313, in archive_deleted_rows
      before=before)
    File "/usr/lib/python3.6/site-packages/nova/db/sqlalchemy/api.py", line 4335, in archive_deleted_rows
      before=before))
    File "/usr/lib/python3.6/site-packages/nova/db/sqlalchemy/api.py", line 4204, in _archive_deleted_rows_for_table
      table = models.BASE.metadata.tables[tablename]
  KeyError: 'alembic_version'

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1938633/+subscriptions



Follow ups