[fuel-master][centos7] Argparse EntryPoint.parse error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
High
|
Dmitry Teselkin |
Bug Description
Looks like something wrong with python compatability on centos7
Upgrading argparse to latest with pip - fixes problem.
###Issue
[root@nailgun ~]# fuel2 --help
usage: fuel2 [--version] [-v] [--log-file LOG_FILE] [-q] [-h] [--debug]
Command line interface and Python API wrapper for Fuel.
optional arguments:
--version show program's version number and exit
-v, --verbose Increase verbosity of output. Can be repeated.
--log-file LOG_FILE Specify a file to log output. Disabled by default.
-q, --quiet suppress output except warnings and errors
-h, --help show this help message and exit
--debug show tracebacks on errors
--fuel-version show Fuel server's version number and exit. WARNING:
Commands:
complete print bash completion command
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
help print detailed help for another command
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
Could not load EntryPoint.
### Version
cat /etc/fuel/
VERSION:
feature_groups:
- mirantis
production: "docker"
release: "8.0"
api: "1.0"
build_number: "286"
build_id: "286"
fuel-nailgun_sha: "eb187d0eed9622
python-
fuel-agent_sha: "2f18b7596bc7da
fuel-
astute_sha: "e8c753d6ce1405
fuel-library_sha: "15d966e164a8b8
fuel-ostf_sha: "632730169e8c01
fuel-mirror_sha: "31b9df814960ec
fuelmenu_sha: "680b720291ff57
shotgun_sha: "a0bd0650806793
network-
fuel-upgrade_sha: "1e894e26d4e142
fuelmain_sha: "1577a306c2c9e7
tags: |
added: feature-centos7 team-centos removed: python |
tags: |
added: team-linux removed: team-centos |
Looks like issue with 'cliff'.
vi /usr/lib/ python2. 7/site- packages/ cliff/help. py write(' Could not load %r\n' % ep) print_exc( file=app. stdout)
---
21 try:
22 factory = ep.load()
23 except Exception as err:
24 app.stdout.
25 if namespace.debug:
26 traceback.
27 continue
---
It could be fixed by the code below (see line 25) write(' Could not load %r\n' % ep) print_exc( file=app. stdout)
---
21 try:
22 factory = ep.load()
23 except Exception as err:
24 app.stdout.
25 if getattr(namespace, 'debug', False):
26 traceback.
27 continue
---