Nova: 'nova-manage db archive_deleted_rows' fails without an 'optional argument --max_rows'. Description: ------------- When attempting to perform 'nova-manage db archive_deleted_rows ' it fails on 'An argument is missing ' --> looking at command the '--help' will show : optional arguments: -h, --help show this help message and exit --max_rows <number> Maximum number of deleted rows to archiv the command fails without --max_rows value, so, it should either have a default value (for --max_rows) or --max_row should not be called an "optional arguments" in the 'help' - because the command fails without it.
I'm taking this since I wrote db archiving. It will require discussion upstream.
Related Issue : I don't think 'action_args' should throw such a trace : (maybe it should be removed at all - currently it's a positional argument) [root@puma03 ~(keystone_admin)]# nova-manage db archive_deleted_rows action_args Command failed, please check log for more info 2013-05-07 17:23:17.029 7345 CRITICAL nova [-] invalid literal for int() with base 10: 'action_args' 2013-05-07 17:23:17.029 7345 TRACE nova Traceback (most recent call last): 2013-05-07 17:23:17.029 7345 TRACE nova File "/usr/bin/nova-manage", line 1255, in <module> 2013-05-07 17:23:17.029 7345 TRACE nova main() 2013-05-07 17:23:17.029 7345 TRACE nova File "/usr/bin/nova-manage", line 1247, in main 2013-05-07 17:23:17.029 7345 TRACE nova fn(*fn_args, **fn_kwargs) 2013-05-07 17:23:17.029 7345 TRACE nova File "/usr/bin/nova-manage", line 803, in archive_deleted_rows 2013-05-07 17:23:17.029 7345 TRACE nova max_rows = int(max_rows) 2013-05-07 17:23:17.029 7345 TRACE nova ValueError: invalid literal for int() with base 10: 'action_args' 2013-05-07 17:23:17.029 7345 TRACE nova
Upstream bug https://bugs.launchpad.net/nova/+bug/1183538 This is a WONTFIX because it requires completely changing the way nova-manage processes command line arguments, which is unlikely to get in. (nova-manage is semi-deprecated anyway, but still needed until ALL of its functionality is available through the API and novaclient, which hasn't happened yet.)