yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #75655
[Bug 1802167] [NEW] nova-manage db purge -h has weird help for --before option
Public bug reported:
This is probably due to not having a metavar defined for the --before
option, but the help output is weird:
stack@stein:~/nova$ nova-manage db purge -h
/usr/local/lib/python2.7/dist-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
""")
usage: nova-manage db purge [-h] [--before ACTION_KWARG_BEFORE] [--all]
[--verbose] [--all-cells]
optional arguments:
-h, --help show this help message and exit
--before ACTION_KWARG_BEFORE
If specified, purge rows from shadow tables that are
older than this. Fuzzy time specs are allowed
--all Purge all rows in the shadow tables
--verbose Print information about purged records
--all-cells Run against all cell databases
stack@stein:~/nova$
Notably the "ACTION_KWARG_BEFORE" thing.
** Affects: nova
Importance: Low
Status: Triaged
** Tags: low-hanging-fruit nova-manage
** Description changed:
This is probably due to not having a metavar defined for the --before
option, but the help output is weird:
stack@stein:~/nova$ nova-manage db purge -h
/usr/local/lib/python2.7/dist-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
- """)
+ """)
usage: nova-manage db purge [-h] [--before ACTION_KWARG_BEFORE] [--all]
- [--verbose] [--all-cells]
+ [--verbose] [--all-cells]
optional arguments:
- -h, --help show this help message and exit
- --before ACTION_KWARG_BEFORE
- If specified, purge rows from shadow tables that are
- older than this. Fuzzy time specs are allowed
- --all Purge all rows in the shadow tables
- --verbose Print information about purged records
- --all-cells Run against all cell databases
- stack@stein:~/nova$
+ -h, --help show this help message and exit
+ --before ACTION_KWARG_BEFORE
+ If specified, purge rows from shadow tables that are
+ older than this. Fuzzy time specs are allowed
+ --all Purge all rows in the shadow tables
+ --verbose Print information about purged records
+ --all-cells Run against all cell databases
+ stack@stein:~/nova$
- Notable the "ACTION_KWARG_BEFORE" thing.
+ Notably the "ACTION_KWARG_BEFORE" thing.
--
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/1802167
Title:
nova-manage db purge -h has weird help for --before option
Status in OpenStack Compute (nova):
Triaged
Bug description:
This is probably due to not having a metavar defined for the --before
option, but the help output is weird:
stack@stein:~/nova$ nova-manage db purge -h
/usr/local/lib/python2.7/dist-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
""")
usage: nova-manage db purge [-h] [--before ACTION_KWARG_BEFORE] [--all]
[--verbose] [--all-cells]
optional arguments:
-h, --help show this help message and exit
--before ACTION_KWARG_BEFORE
If specified, purge rows from shadow tables that are
older than this. Fuzzy time specs are allowed
--all Purge all rows in the shadow tables
--verbose Print information about purged records
--all-cells Run against all cell databases
stack@stein:~/nova$
Notably the "ACTION_KWARG_BEFORE" thing.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1802167/+subscriptions
Follow ups