[Openstack-poc] [Bug 915039] Re: flags.FLAGS( crashes bpython
** Changed in: openstack-common Status: Fix Committed => Fix Released ** Changed in: openstack-common Milestone: None => 2012.1 -- You received this bug notification because you are a member of OpenStack Common Drivers, which is the registrant for openstack-common. https://bugs.launchpad.net/bugs/915039 Title: flags.FLAGS( crashes bpython Status in OpenStack Compute (Nova): Fix Released Status in openstack-common: Fix Released 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/share/python/bpython", line 9, in load_entry_point('bpython==0.10.1', 'console_scripts', 'bpython')() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1756, in main banner=banner) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1658, in curses_wrapper return func(stdscr, *args, **kwargs) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1727, in main_curses clirepl.repl() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1015, in repl inp = self.get_line() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 600, in get_line if self.p_key(key) is None: File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 911, in p_key self.addstr(key) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 290, in addstr self.complete() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 383, in complete self.list_win_visible = repl.Repl.complete(self, tab) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/repl.py", line 540, in complete if not self.get_args(): File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/repl.py", line 511, in get_args self.argspec = inspection.getargspec(func, f) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/inspection.py", line 229, in getargspec func_name = getattr(f, '__name__', None) File "nova/flags.py", line 114, in __getattr__ return getattr(self._conf, name) File "nova/common/cfg.py", line 777, in __getattr__ return self._substitute(self._get(name)) File "nova/common/cfg.py", line 930, in _get info = self._get_opt_info(name, group) File "nova/common/cfg.py", line 1010, in _get_opt_info raise NoSuchOptError(opt_name, group) nova.common.cfg.NoSuchOptError: no such option: __name__ To test, you do: bpython then at prompt: >>> from nova import flags >>> flags.FLAGS( To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/915039/+subscriptions ___ Mailing list: https://launchpad.net/~openstack-poc Post to : openstack-poc@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack-poc More help : https://help.launchpad.net/ListHelp
[Openstack-poc] [Bug 915039] Re: flags.FLAGS( crashes bpython
** Changed in: nova Milestone: essex-3 => 2012.1 -- You received this bug notification because you are a member of OpenStack Common Drivers, which is the registrant for openstack-common. https://bugs.launchpad.net/bugs/915039 Title: flags.FLAGS( crashes bpython Status in OpenStack Compute (Nova): Fix Released Status in openstack-common: Fix Committed 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/share/python/bpython", line 9, in load_entry_point('bpython==0.10.1', 'console_scripts', 'bpython')() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1756, in main banner=banner) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1658, in curses_wrapper return func(stdscr, *args, **kwargs) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1727, in main_curses clirepl.repl() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1015, in repl inp = self.get_line() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 600, in get_line if self.p_key(key) is None: File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 911, in p_key self.addstr(key) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 290, in addstr self.complete() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 383, in complete self.list_win_visible = repl.Repl.complete(self, tab) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/repl.py", line 540, in complete if not self.get_args(): File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/repl.py", line 511, in get_args self.argspec = inspection.getargspec(func, f) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/inspection.py", line 229, in getargspec func_name = getattr(f, '__name__', None) File "nova/flags.py", line 114, in __getattr__ return getattr(self._conf, name) File "nova/common/cfg.py", line 777, in __getattr__ return self._substitute(self._get(name)) File "nova/common/cfg.py", line 930, in _get info = self._get_opt_info(name, group) File "nova/common/cfg.py", line 1010, in _get_opt_info raise NoSuchOptError(opt_name, group) nova.common.cfg.NoSuchOptError: no such option: __name__ To test, you do: bpython then at prompt: >>> from nova import flags >>> flags.FLAGS( To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/915039/+subscriptions ___ Mailing list: https://launchpad.net/~openstack-poc Post to : openstack-poc@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack-poc More help : https://help.launchpad.net/ListHelp
[Openstack-poc] [Bug 915039] Re: flags.FLAGS( crashes bpython
** Tags added: cfg -- You received this bug notification because you are a member of OpenStack Common Drivers, which is the registrant for openstack-common. https://bugs.launchpad.net/bugs/915039 Title: flags.FLAGS( crashes bpython Status in OpenStack Compute (Nova): Fix Released Status in openstack-common: Fix Committed 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/share/python/bpython", line 9, in load_entry_point('bpython==0.10.1', 'console_scripts', 'bpython')() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1756, in main banner=banner) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1658, in curses_wrapper return func(stdscr, *args, **kwargs) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1727, in main_curses clirepl.repl() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1015, in repl inp = self.get_line() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 600, in get_line if self.p_key(key) is None: File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 911, in p_key self.addstr(key) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 290, in addstr self.complete() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 383, in complete self.list_win_visible = repl.Repl.complete(self, tab) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/repl.py", line 540, in complete if not self.get_args(): File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/repl.py", line 511, in get_args self.argspec = inspection.getargspec(func, f) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/inspection.py", line 229, in getargspec func_name = getattr(f, '__name__', None) File "nova/flags.py", line 114, in __getattr__ return getattr(self._conf, name) File "nova/common/cfg.py", line 777, in __getattr__ return self._substitute(self._get(name)) File "nova/common/cfg.py", line 930, in _get info = self._get_opt_info(name, group) File "nova/common/cfg.py", line 1010, in _get_opt_info raise NoSuchOptError(opt_name, group) nova.common.cfg.NoSuchOptError: no such option: __name__ To test, you do: bpython then at prompt: >>> from nova import flags >>> flags.FLAGS( To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/915039/+subscriptions ___ Mailing list: https://launchpad.net/~openstack-poc Post to : openstack-poc@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack-poc More help : https://help.launchpad.net/ListHelp
[Openstack-poc] [Bug 915039] Re: flags.FLAGS( crashes bpython
Reviewed: https://review.openstack.org/3721 Committed: http://github.com/openstack/openstack-common/commit/d383f78f8ca27eaf982d150fd8c955f8bd451690 Submitter: Jenkins Branch:master commit d383f78f8ca27eaf982d150fd8c955f8bd451690 Author: Vishvananda Ishaya Date: Thu Feb 2 23:25:53 2012 + Makes common/cfg.py raise AttributeError * fixes bug 915039 * includes test Change-Id: I67b886be3b5af3763f52fffe54085975d61d61eb ** Changed in: openstack-common Status: In Progress => Fix Committed -- You received this bug notification because you are a member of OpenStack Common Drivers, which is the registrant for openstack-common. https://bugs.launchpad.net/bugs/915039 Title: flags.FLAGS( crashes bpython Status in OpenStack Compute (Nova): Fix Released Status in openstack-common: Fix Committed 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/share/python/bpython", line 9, in load_entry_point('bpython==0.10.1', 'console_scripts', 'bpython')() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1756, in main banner=banner) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1658, in curses_wrapper return func(stdscr, *args, **kwargs) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1727, in main_curses clirepl.repl() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1015, in repl inp = self.get_line() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 600, in get_line if self.p_key(key) is None: File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 911, in p_key self.addstr(key) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 290, in addstr self.complete() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 383, in complete self.list_win_visible = repl.Repl.complete(self, tab) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/repl.py", line 540, in complete if not self.get_args(): File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/repl.py", line 511, in get_args self.argspec = inspection.getargspec(func, f) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/inspection.py", line 229, in getargspec func_name = getattr(f, '__name__', None) File "nova/flags.py", line 114, in __getattr__ return getattr(self._conf, name) File "nova/common/cfg.py", line 777, in __getattr__ return self._substitute(self._get(name)) File "nova/common/cfg.py", line 930, in _get info = self._get_opt_info(name, group) File "nova/common/cfg.py", line 1010, in _get_opt_info raise NoSuchOptError(opt_name, group) nova.common.cfg.NoSuchOptError: no such option: __name__ To test, you do: bpython then at prompt: >>> from nova import flags >>> flags.FLAGS( To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/915039/+subscriptions ___ Mailing list: https://launchpad.net/~openstack-poc Post to : openstack-poc@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack-poc More help : https://help.launchpad.net/ListHelp
[Openstack-poc] [Bug 915039] Re: flags.FLAGS( crashes bpython
Fix proposed to branch: master Review: https://review.openstack.org/3721 ** Changed in: openstack-common Status: New => In Progress ** Changed in: openstack-common Assignee: (unassigned) => Mark McLoughlin (markmc) -- You received this bug notification because you are a member of OpenStack Common Drivers, which is the registrant for openstack-common. https://bugs.launchpad.net/bugs/915039 Title: flags.FLAGS( crashes bpython Status in OpenStack Compute (Nova): Fix Released Status in openstack-common: In Progress 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/share/python/bpython", line 9, in load_entry_point('bpython==0.10.1', 'console_scripts', 'bpython')() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1756, in main banner=banner) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1658, in curses_wrapper return func(stdscr, *args, **kwargs) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1727, in main_curses clirepl.repl() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1015, in repl inp = self.get_line() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 600, in get_line if self.p_key(key) is None: File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 911, in p_key self.addstr(key) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 290, in addstr self.complete() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 383, in complete self.list_win_visible = repl.Repl.complete(self, tab) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/repl.py", line 540, in complete if not self.get_args(): File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/repl.py", line 511, in get_args self.argspec = inspection.getargspec(func, f) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/inspection.py", line 229, in getargspec func_name = getattr(f, '__name__', None) File "nova/flags.py", line 114, in __getattr__ return getattr(self._conf, name) File "nova/common/cfg.py", line 777, in __getattr__ return self._substitute(self._get(name)) File "nova/common/cfg.py", line 930, in _get info = self._get_opt_info(name, group) File "nova/common/cfg.py", line 1010, in _get_opt_info raise NoSuchOptError(opt_name, group) nova.common.cfg.NoSuchOptError: no such option: __name__ To test, you do: bpython then at prompt: >>> from nova import flags >>> flags.FLAGS( To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/915039/+subscriptions ___ Mailing list: https://launchpad.net/~openstack-poc Post to : openstack-poc@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack-poc More help : https://help.launchpad.net/ListHelp
[Openstack-poc] [Bug 915039] Re: flags.FLAGS( crashes bpython
** Changed in: nova Status: Fix Committed => Fix Released ** Changed in: nova Milestone: None => essex-3 -- You received this bug notification because you are a member of OpenStack Common Drivers, which is the registrant for openstack-common. https://bugs.launchpad.net/bugs/915039 Title: flags.FLAGS( crashes bpython Status in OpenStack Compute (Nova): Fix Released Status in openstack-common: New 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/share/python/bpython", line 9, in load_entry_point('bpython==0.10.1', 'console_scripts', 'bpython')() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1756, in main banner=banner) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1658, in curses_wrapper return func(stdscr, *args, **kwargs) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1727, in main_curses clirepl.repl() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1015, in repl inp = self.get_line() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 600, in get_line if self.p_key(key) is None: File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 911, in p_key self.addstr(key) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 290, in addstr self.complete() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 383, in complete self.list_win_visible = repl.Repl.complete(self, tab) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/repl.py", line 540, in complete if not self.get_args(): File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/repl.py", line 511, in get_args self.argspec = inspection.getargspec(func, f) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/inspection.py", line 229, in getargspec func_name = getattr(f, '__name__', None) File "nova/flags.py", line 114, in __getattr__ return getattr(self._conf, name) File "nova/common/cfg.py", line 777, in __getattr__ return self._substitute(self._get(name)) File "nova/common/cfg.py", line 930, in _get info = self._get_opt_info(name, group) File "nova/common/cfg.py", line 1010, in _get_opt_info raise NoSuchOptError(opt_name, group) nova.common.cfg.NoSuchOptError: no such option: __name__ To test, you do: bpython then at prompt: >>> from nova import flags >>> flags.FLAGS( To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/915039/+subscriptions ___ Mailing list: https://launchpad.net/~openstack-poc Post to : openstack-poc@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack-poc More help : https://help.launchpad.net/ListHelp
[Openstack-poc] [Bug 915039] Re: flags.FLAGS( crashes bpython
Reviewed: https://review.openstack.org/2980 Committed: http://github.com/openstack/nova/commit/4d01531f91e4b20db2cb6ff738ee9af724ed2bf1 Submitter: Jenkins Branch:master commit 4d01531f91e4b20db2cb6ff738ee9af724ed2bf1 Author: Vishvananda Ishaya Date: Wed Jan 11 13:22:36 2012 -0800 Makes common/cfg.py raise AttributeError * fixes bug 915039 * includes test Change-Id: I67b886be3b5af3763f52fffe54085975d61d61eb ** Changed in: nova Status: In Progress => Fix Committed -- You received this bug notification because you are a member of OpenStack Common Drivers, which is the registrant for openstack-common. https://bugs.launchpad.net/bugs/915039 Title: flags.FLAGS( crashes bpython Status in OpenStack Compute (Nova): Fix Committed Status in openstack-common: New 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/share/python/bpython", line 9, in load_entry_point('bpython==0.10.1', 'console_scripts', 'bpython')() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1756, in main banner=banner) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1658, in curses_wrapper return func(stdscr, *args, **kwargs) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1727, in main_curses clirepl.repl() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 1015, in repl inp = self.get_line() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 600, in get_line if self.p_key(key) is None: File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 911, in p_key self.addstr(key) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 290, in addstr self.complete() File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/cli.py", line 383, in complete self.list_win_visible = repl.Repl.complete(self, tab) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/repl.py", line 540, in complete if not self.get_args(): File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/repl.py", line 511, in get_args self.argspec = inspection.getargspec(func, f) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/bpython/inspection.py", line 229, in getargspec func_name = getattr(f, '__name__', None) File "nova/flags.py", line 114, in __getattr__ return getattr(self._conf, name) File "nova/common/cfg.py", line 777, in __getattr__ return self._substitute(self._get(name)) File "nova/common/cfg.py", line 930, in _get info = self._get_opt_info(name, group) File "nova/common/cfg.py", line 1010, in _get_opt_info raise NoSuchOptError(opt_name, group) nova.common.cfg.NoSuchOptError: no such option: __name__ To test, you do: bpython then at prompt: >>> from nova import flags >>> flags.FLAGS( To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/915039/+subscriptions ___ Mailing list: https://launchpad.net/~openstack-poc Post to : openstack-poc@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack-poc More help : https://help.launchpad.net/ListHelp