wsgi_script based ceilometer-api binary does not support the same CLI arguments as console_script version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Invalid
|
Undecided
|
Unassigned | ||
ceilometer (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
python-pbr (Ubuntu) |
Fix Released
|
High
|
Corey Bryant |
Bug Description
For newton rc1, ceilometer switch to providing the ceilometer-api binary using the new pbr wsgi_script stanza; this new binary is not directly compatible with the CLI of the previous console script version.
The daemon fails to start as the only CLI options it recognises are -P port
ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: ceilometer-api 1:7.0.0~
ProcVersionSign
Uname: Linux 4.4.0-9136-generic x86_64
ApportVersion: 2.20.3-0ubuntu7
Architecture: amd64
Date: Wed Sep 21 07:51:45 2016
PackageArchitec
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
SourcePackage: ceilometer
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in python-pbr (Ubuntu): | |
importance: | Undecided → High |
assignee: | nobody → Corey Bryant (corey.bryant) |
status: | New → Triaged |
Running ceilometer-api from the CLI:
$ ceilometer-api ceilometer- api", line 20, in <module> python2. 7/dist- packages/ ceilometer/ api/app. py", line 85, in load_app file(cfg_ path) python2. 7/dist- packages/ oslo_config/ cfg.py" , line 2580, in find_file rror() cfg.NotInitiali zedError: call expression on parser has not been invoked
Traceback (most recent call last):
File "/usr/bin/
server = wss.make_server('', args.port, load_app())
File "/usr/lib/
cfg_file = CONF.find_
File "/usr/lib/
raise NotInitializedE
oslo_config.
and from the systemd service:
Sep 21 10:55:02 adapted-tahr ceilometer- api[4932] : usage: ceilometer-api [-h] [--port PORT] api[4932] : ceilometer-api: error: unrecognized arguments: --config- file=/etc/ ceilometer/ ceilometer. conf --log-file= /var/log/ ceilometer/ ceilometer- api.log
Sep 21 10:55:02 adapted-tahr ceilometer-
Currently we pass in --config-file and --log-file - the new binary does not support these options.