Bug 1212517 - Missing ssl context initialization breaks beaker xmlrpc on F22
Summary: Missing ssl context initialization breaks beaker xmlrpc on F22
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: command line
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 20.2
Assignee: Dan Callaghan
QA Contact: tools-bugs
URL:
Whiteboard:
: 1230810 1236524 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-16 14:41 UTC by Martin Kyral
Modified: 2018-02-06 00:41 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-14 08:04:37 UTC
Embargoed:


Attachments (Terms of Use)

Comment 1 Dan Callaghan 2015-04-20 04:19:55 UTC
Steps to reproduce:
1. Install beaker-client on Fedora 22
2. Run bkr whoami

Actual results:
Traceback (most recent call last):
  File "bkr/client/main.py", line 86, in <module>
    sys.exit(main())
  File "bkr/client/main.py", line 64, in main
    return cmd.run(*cmd_args, **cmd_opts.__dict__)
  File "bkr/client/commands/cmd_whoami.py", line 56, in run
    self.set_hub(**kwargs)
  File "bkr/client/__init__.py", line 71, in set_hub
    proxy_user=proxy_user)
  File "bkr/client/command.py", line 279, in set_hub
    self.hub = HubProxy(conf=self.conf, auto_login=auto_login)
  File "bkr/common/hub.py", line 62, in __init__
    self._login()
  File "bkr/common/hub.py", line 89, in _login
    if force or self._hub.auth.renew_session():
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1591, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/site-packages/bkr/common/xmlrpc.py", line 560, in request
    result = transport_class.request(self, *args, **kwargs)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1273, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/site-packages/bkr/common/xmlrpc.py", line 427, in _single_request
    h = self.make_connection(host)
  File "/usr/lib/python2.7/site-packages/bkr/common/xmlrpc.py", line 522, in make_connection
    conn = xmlrpclib.SafeTransport.make_connection(self, host)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1509, in make_connection
    self._connection = host, HTTPS(chost, None, context=self.context, **(x509 or {}))
AttributeError: SafeCookieTransport instance has no attribute 'context'

Comment 2 Dan Callaghan 2015-04-20 04:57:55 UTC
http://gerrit.beaker-project.org/4156

Comment 3 Dan Callaghan 2015-04-24 05:50:28 UTC
This bug fix is included in beaker-client-21.0-0.git.8.0ec1fde.el6eng which is currently available for download here:

https://beaker-project.org/nightlies/develop/

Comment 5 Stanislav Graf 2015-04-27 19:45:22 UTC
(In reply to Dan Callaghan from comment #3)

$ rpm -qa 'beaker-c*'
beaker-common-21.0-0.git.8.0ec1fde.fc19.noarch
beaker-client-21.0-0.git.8.0ec1fde.fc19.noarch

Thanks! Fixed the issue for me.

Comment 8 Lukas Slebodnik 2015-06-08 13:58:09 UTC
(In reply to Dan Callaghan from comment #3)
> This bug fix is included in beaker-client-21.0-0.git.8.0ec1fde.el6eng which
> is currently available for download here:
> 
> https://beaker-project.org/nightlies/develop/

It would be good If you could prepare nightly repo in copr[1]
Packages will be signed and there would not be "fc19" in package name.

[1] https://copr.fedoraproject.org/

Comment 9 Dan Callaghan 2015-06-12 00:47:49 UTC
*** Bug 1230810 has been marked as a duplicate of this bug. ***

Comment 10 Dan Callaghan 2015-07-14 08:04:37 UTC
Beaker 20.2 has been released.

Comment 13 Martin Frodl 2016-03-01 14:11:34 UTC
*** Bug 1236524 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.