nova-manage db archive_deleted_rows crash on tags table
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Incomplete
|
Undecided
|
Zhenyu Zheng |
Bug Description
Description
===========
nova-manage db archive_
Steps to reproduce
==================
Execute: nova-manage db archive_
Expected result
===============
Successful execution with summary:
+------
| Table | Number of Rows Archived |
+------
| agent_builds | 12 |
| floating_ips | 12 |
| instance_groups | 7 |
| instance_types | 6 |
| key_pairs | 44242 |
+------
Actual result
=============
An error has occurred:
Traceback (most recent call last):
File "/usr/lib/
ret = fn(*fn_args, **fn_kwargs)
File "/usr/lib/
run, deleted_
File "/usr/lib/
return IMPL.archive_
File "/usr/lib/
tablename, max_rows=max_rows - total_rows_
File "/usr/lib/
column = table.c.id
File "/usr/lib64/
raise AttributeError(key)
AttributeError: id
Environment
===========
Openstack Queens release:
openstack-
openstack-
openstack-
openstack-
openstack-
openstack-
openstack-
description: | updated |
tags: | added: nova-manage |
Changed in nova: | |
assignee: | nobody → Zhenyu Zheng (zhengzhenyu) |
I cannot reproduce this as when instance got destoried the related tags are also deleted: /github. com/openstack/ nova/blob/ 683fbe3c84ee70e 817ffb8396fefb9 ff6cd8830d/ nova/db/ sqlalchemy/ api.py# L1824
https:/
and there are no deleted field in the tags table, so their should be nothing to archieve in the tags table when running this command.