--help is non-functional

Bug #647728 reported by Todd Willey
6
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

Revision history for this message
Jay Pipes (jaypipes) wrote :

Some hopefully helpful output:

(.nova-venv)jpipes@serialcoder:~/repos/nova/glance-image-service$ python bin/nova-compute --help
Traceback (most recent call last):
  File "bin/nova-compute", line 40, in <module>
    twistd.serve(__file__)
  File "/home/jpipes/repos/nova/glance-image-service/nova/twistd.py", line 223, in serve
    argv = options.parseOptions()
  File "/home/jpipes/repos/nova/glance-image-service/nova/twistd.py", line 149, in parseOptions
    self.postOptions()
  File "/home/jpipes/repos/nova/glance-image-service/nova/twistd.py", line 158, in postOptions
    self._doHandlers()
  File "/home/jpipes/repos/nova/glance-image-service/nova/twistd.py", line 126, in _doHandlers
    handler()
  File "/home/jpipes/repos/nova/glance-image-service/.nova-venv/lib/python2.6/site-packages/twisted/python/usage.py", line 180, in opt_help
    print self.__str__()
  File "/home/jpipes/repos/nova/glance-image-service/nova/twistd.py", line 132, in __str__
    return str(FLAGS)
  File "/home/jpipes/repos/nova/glance-image-service/.nova-venv/lib/python2.6/site-packages/gflags.py", line 1077, in __str__
    return self.GetHelp()
  File "/home/jpipes/repos/nova/glance-image-service/.nova-venv/lib/python2.6/site-packages/gflags.py", line 1096, in GetHelp
    self.__RenderOurModuleFlags(module, helplist)
  File "/home/jpipes/repos/nova/glance-image-service/.nova-venv/lib/python2.6/site-packages/gflags.py", line 1119, in __RenderOurModuleFlags
    self.__RenderModuleFlags(module, flags, output_lines, prefix)
  File "/home/jpipes/repos/nova/glance-image-service/.nova-venv/lib/python2.6/site-packages/gflags.py", line 1113, in __RenderModuleFlags
    self.__RenderFlagList(flags, output_lines, prefix + " ")
  File "/home/jpipes/repos/nova/glance-image-service/.nova-venv/lib/python2.6/site-packages/gflags.py", line 1171, in __RenderFlagList
    if flag.parser.syntactic_help:
AttributeError: 'FlagParser' object has no attribute 'syntactic_help'

Changed in nova:
status: New → Confirmed
importance: Undecided → Low
Eric Day (eday)
Changed in nova:
assignee: nobody → Eric Day (eday)
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.