TypeError: archive_deleted_rows got multiple values for keyword arguments 'max_rows'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Neha Alhat | ||
Ocata |
New
|
Undecided
|
Unassigned | ||
Pike |
Fix Committed
|
Undecided
|
Matt Riedemann |
Bug Description
If you run archive_
$nova-manage db archive_
Output
An error has occurred:
Traceback (most recent call last):
File "/opt/stack/
ret = fn(*fn_args, **fn_kwargs)
TypeError: archive_
Environment details:
<devstack>:
commit 91f62818c3ab5f7
Merge: a6280e5 c09eaf8
Author: Jenkins <email address hidden>
Date: Sun Sep 10 18:31:13 2017 +0000
Merge "Update OS_AUTH_URL in Configuration.rst"
nova:
commit b7f53a33faf6187
Merge: e48db05 a9d9255
Author: Zuul <email address hidden>
Date: Wed Nov 8 07:16:14 2017 +0000
Merge "Fix return type in FilterScheduler
Reason:
In fn_kwargs for max_rows parameter it is assigning default value of max_rows which is 1000, and not the value which we are passing through command.
So it is giving above mentioned TypeError.
Changed in nova: | |
assignee: | nobody → Belmiro Moreira (moreira-belmiro-email-lists) |
tags: | added: nova-manage |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Neha Alhat (nehaalhat) |
Looks like this fixes it:
user@ubuntu: ~/git/nova$ git diff cmd/manage. py b/nova/ cmd/manage. py cmd/manage. py cmd/manage. py
print( migration. db_version( ))
diff --git a/nova/
index 2c867ec..4a4097d 100644
--- a/nova/
+++ b/nova/
@@ -743,7 +743,7 @@ Error: %s""") % six.text_type(e))
"""Print the current database version."""
- @args('--max_rows', type=int, metavar='<number>', default=1000,
help= 'Maximum number of deleted rows to archive') '--verbose' , action= 'store_ true', dest='verbose', default=False,
help= 'Print how many rows were archived per table.') ~/git/nova$
+ @args('--max_rows', type=int, metavar='<number>', dest='max_rows',
@args(
user@ubuntu: