--help is non-functional
Bug #647728 reported by
Todd Willey
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Eric Day |
Bug Description
Calling any of the bin/nova-* commands with --help will not actually print help. This behavior is built into python-gflags, so we should have it available, but something with the way nova/flags.py wraps gflags is probably interfering.
-network and -compute give errors relating to help, but the others silently ignore it.
Once this issue is resolved we will still have a problem with flags that are defined in drivers not being visible in help files, since the driver files (for example the ldap driver for the auth manager) are loaded dynamically, and may not have been loaded when the help flag is processed.
Related branches
lp://staging/~eday/nova/flags-help
- Jay Pipes (community): Approve
- Devin Carlen (community): Approve
-
Diff: 12 lines (+2/-0)1 file modifiednova/flags.py (+2/-0)
Changed in nova: | |
assignee: | nobody → Eric Day (eday) |
status: | Confirmed → Fix Committed |
Changed in nova: | |
milestone: | none → 2011.1 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Some hopefully helpful output:
(.nova- venv)jpipes@ serialcoder: ~/repos/ nova/glance- image-service$ python bin/nova-compute --help serve(_ _file__ ) jpipes/ repos/nova/ glance- image-service/ nova/twistd. py", line 223, in serve parseOptions( ) jpipes/ repos/nova/ glance- image-service/ nova/twistd. py", line 149, in parseOptions postOptions( ) jpipes/ repos/nova/ glance- image-service/ nova/twistd. py", line 158, in postOptions _doHandlers( ) jpipes/ repos/nova/ glance- image-service/ nova/twistd. py", line 126, in _doHandlers jpipes/ repos/nova/ glance- image-service/ .nova-venv/ lib/python2. 6/site- packages/ twisted/ python/ usage.py" , line 180, in opt_help jpipes/ repos/nova/ glance- image-service/ nova/twistd. py", line 132, in __str__ jpipes/ repos/nova/ glance- image-service/ .nova-venv/ lib/python2. 6/site- packages/ gflags. py", line 1077, in __str__ jpipes/ repos/nova/ glance- image-service/ .nova-venv/ lib/python2. 6/site- packages/ gflags. py", line 1096, in GetHelp __RenderOurModu leFlags( module, helplist) jpipes/ repos/nova/ glance- image-service/ .nova-venv/ lib/python2. 6/site- packages/ gflags. py", line 1119, in __RenderOurModu leFlags __RenderModuleF lags(module, flags, output_lines, prefix) jpipes/ repos/nova/ glance- image-service/ .nova-venv/ lib/python2. 6/site- packages/ gflags. py", line 1113, in __RenderModuleFlags __RenderFlagLis t(flags, output_lines, prefix + " ") jpipes/ repos/nova/ glance- image-service/ .nova-venv/ lib/python2. 6/site- packages/ gflags. py", line 1171, in __RenderFlagList syntactic_ help:
Traceback (most recent call last):
File "bin/nova-compute", line 40, in <module>
twistd.
File "/home/
argv = options.
File "/home/
self.
File "/home/
self.
File "/home/
handler()
File "/home/
print self.__str__()
File "/home/
return str(FLAGS)
File "/home/
return self.GetHelp()
File "/home/
self.
File "/home/
self.
File "/home/
self.
File "/home/
if flag.parser.
AttributeError: 'FlagParser' object has no attribute 'syntactic_help'