Traceback (most recent call last): File "/usr/bin/beaker-import", line 9, in <module> load_entry_point('bkr.labcontroller==0.12.0', 'console_scripts', 'beaker-import')() File "/usr/lib/python2.6/site-packages/bkr/labcontroller/distro_import.py", line 1879, in main build.process(urls, opts) File "/usr/lib/python2.6/site-packages/bkr/labcontroller/distro_import.py", line 1734, in process raise BX('failed to add %s to beaker: %s' % (self.tree['name'],e)) File "/usr/lib/python2.6/site-packages/bkr/common/bexceptions.py", line 4, in __init__ self.value = value % args TypeError: not enough arguments for format string Exception is from bug 951981, the server-side exception contained a % from the parametrised MySQL query string from sqlalchemy. I actually never noticed this behaviour in BX's constructor before, it's a little bit unconventional/unexpected. It means we may need to audit all usages of it to check for this same problem (passing non-constant strings as the message).
http://gerrit.beaker-project.org/#/c/1884/
Base on https://bugzilla.redhat.com/show_bug.cgi?id=951981#c4 and I also check the code from beaker-devel environment. [root@lab-devel-03 ~]# cat /usr/lib/python2.6/site-packages/bkr/common/bexceptions.py class BeakerException(Exception): def __init__(self, value): self.value = value def __str__(self): return repr(self.value) class BX(BeakerException): pass Version: [root@lab-devel-03 ~]# rpm -qf /usr/lib/python2.6/site-packages/bkr/common/bexceptions.py beaker-0.12.1-1.git.133.6c74a92.el6.noarch
Beaker 0.13.1 has been released.