JSON/YAML formatter cannot be used in stable/kilo if cliff-tablib 2.0 is installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-neutronclient |
Invalid
|
Undecided
|
Unassigned | ||
Kilo |
Fix Released
|
High
|
Unassigned |
Bug Description
Failed to run tox for neutronclient in stable/kilo,details as follows:
/opt/backups/
... ...
=======
FAIL: neutronclient.
tags: worker-0
-------
Empty attachments:
stdout
stderr: {{{
usage: list_agents [-h] [-f {csv,html,table}] [-c COLUMN]
list_agents: error: argument -f/--format: invalid choice: 'json' (choose from 'csv', 'html', 'table')
}}}
Traceback (most recent call last):
File "neutronclient/
self.
File "neutronclient/
shell.
File "neutronclient/
known_args, _values_specs = cmd_parser.
File "/usr/lib/
self.
File "/usr/lib/
self.exit(2, _('%s: error: %s\n') % (self.prog, message))
File "/usr/lib/
_sys.
SystemExit: 2
=======
FAIL: process-returncode
tags: worker-0
-------
returncode 2
Ran 347 tests in 8.580s (+0.591s)
FAILED (id=2, failures=2)
error: testr failed (1)
ERROR: InvocationError: '/opt/backups/
_______
ERROR: py27: commands failed
Check the version of cliff,after updating,it can be run successfully.
Changed in python-neutronclient: | |
assignee: | nobody → Bao Fangyan (baofangyan) |
Changed in python-neutronclient: | |
assignee: | Bao Fangyan (baofangyan) → nobody |
This is because cliff-tablib 2.0 has been released recently to deal with bug 1531574. 11.0,>= 1.10.0 and this version does not provide JSON/YAML formatter.
In Kilo, we are using cliff<1.
To fix this we need to update global-requirements (stable/kilo) to use cliff-tablib <2.0 first.