Description of problem: I got this error when running task which contains rhts-submit-log call: :: [06:22:53] :: [ INFO ] :: Sending /tmp/logs.__.tar.gz as tmp-logs.__.tar.gz Traceback (most recent call last): File "/usr/bin/rhts-submit-log", line 24, in <module> import rhts File "/usr/lib/python2.7/site-packages/rhts/__init__.py", line 17, in <module> import OpenSSL.SSL ImportError: No module named OpenSSL.SSL OpenSSL.SSL module comes from pyOpenSSL packge - rhts-test-env should require it. Version-Release number of selected component (if applicable): rhts-test-env-4.48-1.el7.noarch
Bulk reassignment of issues as Bill has moved to another team.
We don't ever use pyOpenSSL directly in the RHTS code, it's only imported so we can handle an exception type from it. We can probably just make the import conditional.
*** Bug 905948 has been marked as a duplicate of this bug. ***
I can see pyOpenSSL is installed by default on RHEL7 while running beaker jobs, so there should be not problem for depending on the OpenSSL.SSL module. Hi Patrik, Could you give the job's url which you encountered the issue?
Actually I did not face this problem on beaker machine but on a virtual machine hosted on my PC. It is quite common to tune beaker test locally. We just need to install the right rhts*rpm and beaker*rpm packages and all used to work up to now.
(In reply to comment #5) > Actually I did not face this problem on beaker machine but on a virtual > machine hosted on my PC. It is quite common to tune beaker test locally. We > just need to install the right rhts*rpm and beaker*rpm packages and all used > to work up to now. OK, I understand it now, thanks for your reply. So we just need to add rpm dependency of pyOpenSSL for rhts.
on gerrit: http://gerrit.beaker-project.org/#/c/1685/
(In reply to comment #6) > (In reply to comment #5) > > Actually I did not face this problem on beaker machine but on a virtual > > machine hosted on my PC. It is quite common to tune beaker test locally. We > > just need to install the right rhts*rpm and beaker*rpm packages and all used > > to work up to now. > > OK, I understand it now, thanks for your reply. > So we just need to add rpm dependency of pyOpenSSL for rhts. Yes, that should ensure that also on non-beaker machines all is installed properly.
patch re-post: http://gerrit.beaker-project.org/#/c/1686/
When pyOpenSSL is installed: >>> rhts.ssl_error <class 'OpenSSL.SSL.Error'> And, when pyOpenSSL is not installed: >>> rhts.ssl_error <class 'ssl.SSLError'>
Beaker 0.12 has been released.