flags.FLAGS( crashes bpython
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Vish Ishaya | ||
openstack-common |
Fix Released
|
Undecided
|
Mark McLoughlin |
Bug Description
Bpython tries to do some fancy stuff like lookup obj.__name__ and check for AttributeError. The code in common/cfg.py has a special getattr that raises a non AttributeError exception so it leads to a crash and stack trace in bpython:
Traceback (most recent call last):
File "/usr/local/
load_
File "/usr/local/
banner=banner)
File "/usr/local/
return func(stdscr, *args, **kwargs)
File "/usr/local/
clirepl.repl()
File "/usr/local/
inp = self.get_line()
File "/usr/local/
if self.p_key(key) is None:
File "/usr/local/
self.
File "/usr/local/
self.complete()
File "/usr/local/
self.
File "/usr/local/
if not self.get_args():
File "/usr/local/
self.argspec = inspection.
File "/usr/local/
func_name = getattr(f, '__name__', None)
File "nova/flags.py", line 114, in __getattr__
return getattr(self._conf, name)
File "nova/common/
return self._substitut
File "nova/common/
info = self._get_
File "nova/common/
raise NoSuchOptError(
nova.common.
To test, you do:
bpython
then at prompt:
>>> from nova import flags
>>> flags.FLAGS(
Changed in nova: | |
status: | New → In Progress |
importance: | Undecided → Low |
assignee: | nobody → Vish Ishaya (vishvananda) |
Changed in nova: | |
milestone: | none → essex-3 |
status: | Fix Committed → Fix Released |
tags: | added: cfg |
Changed in nova: | |
milestone: | essex-3 → 2012.1 |
Changed in openstack-common: | |
status: | Fix Committed → Fix Released |
milestone: | none → 2012.1 |
Fix proposed to branch: master /review. openstack. org/2980
Review: https:/