Bug 1350959
Summary: | Uncaought IOError when cert file missing, HubProxy.__del__ AttributeError | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | mulhern <amulhern> |
Component: | command line | Assignee: | Roman Joost <rjoost> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 22 | CC: | dcallagh, dowang, mfuruta, mjia, rjoost |
Target Milestone: | 23.2 | Keywords: | Patch, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-09-02 07:01:23 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
mulhern
2016-06-28 20:23:45 UTC
I can reproduce the problem. If CA_CERT in the configuration points to a non-existing file I run into the same Traceback. Took a chance of catching this problem before bkr connects to the hub... not sure if I found the right spot. So patch is up http://gerrit.beaker-project.org/5060 This bug fix is included in beaker-client-23.1-0.git.12.aa72972 which is currently available for download here: https://beaker-project.org/nightlies/release-23/ (In reply to wangdong from comment #6) > [root@dhcp-140-87 tmp]# bkr whoami > Traceback (most recent call last): > File "/usr/bin/bkr", line 9, in <module> > load_entry_point('bkr.client==23.1.git.12.aa72972', 'console_scripts', > 'bkr')() > File "/usr/lib/python2.6/site-packages/bkr/client/main.py", line 83, in > main > return cmd.run(*cmd_args, **cmd_opts.__dict__) > File "/usr/lib/python2.6/site-packages/bkr/client/commands/cmd_whoami.py", > line 56, in run > self.set_hub(**kwargs) > File "/usr/lib/python2.6/site-packages/bkr/client/__init__.py", line 73, > in set_hub > proxy_user=proxy_user) > File "/usr/lib/python2.6/site-packages/bkr/client/command.py", line 282, > in set_hub > self.error('CA_CERT configuration points to non-existing file: %s' % > cacert) > AttributeError: 'BeakerCommandContainer' object has no attribute 'error' Just noticed this... This is not the expected result. Looks like a typo, should be self.parser.error() I think. The expected result is a nice error message saying: CA_CERT configuration points to non-existing file: /etc/whatever not a traceback. *doh My fault for missing this. New patch: https://gerrit.beaker-project.org/#/c/5123/ This bug fix is included in beaker-client-23.2-0.git.12.5a78967 which is currently available for download here: https://beaker-project.org/nightlies/release-23/ Beaker 23.2 has been released. |