Skip to content

qa/rgw: renamed ssl task to openssl_keys - #20863

Merged
cbodley merged 1 commit into
ceph:masterfrom
rjfd:wip-qa-fix-ssl-conflict
Mar 16, 2018
Merged

cbodley merged 1 commit into
ceph:masterfrom
rjfd:wip-qa-fix-ssl-conflict

Conversation

@rjfd

@rjfd rjfd commented Mar 13, 2018 •

Copy link
Copy Markdown
Contributor

The ssl task located in a python file called ssl.py will generate
python module loading conflicts with the ssl system module, when
running QA tests using vstart_runner.py.

Traceback (most recent call last):
  File "vstart_runner.py", line 45, in <module>
    from teuthology.orchestra.run import Raw, quote
  File "/tmp/tmp.2q6u5iqppn/teuthology/teuthology/__init__.py", line 19, in <module>
    subprocess=False,
  File "/tmp/tmp.2q6u5iqppn/venv/lib/python2.7/site-packages/gevent/monkey.py", line 621, in patch_all
    patch_ssl()
  File "/tmp/tmp.2q6u5iqppn/venv/lib/python2.7/site-packages/gevent/monkey.py", line 463, in patch_ssl
    patch_module('ssl')
  File "/tmp/tmp.2q6u5iqppn/venv/lib/python2.7/site-packages/gevent/monkey.py", line 152, in patch_module
    gevent_module = getattr(__import__('gevent.' + name), name)
  File "/tmp/tmp.2q6u5iqppn/venv/lib/python2.7/site-packages/gevent/ssl.py", line 20, in <module>
    from gevent import _ssl2 as _source # pragma: no cover
  File "/tmp/tmp.2q6u5iqppn/venv/lib/python2.7/site-packages/gevent/_ssl2.py", line 16, in <module>
    _ssl = __ssl__._ssl
AttributeError: 'module' object has no attribute '_ssl'

Signed-off-by: Ricardo Dias [email protected]

@theanalyst theanalyst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

@sebastian-philipp

Copy link
Copy Markdown
Contributor

This fixes vstart_runner.py. Without this PR, I'm getting:

  File "../qa/tasks/vstart_runner.py", line 45, in <module>
    from teuthology.orchestra.run import Raw, quote
  File "/tmp/tmp.JMxJMZvBFT/teuthology/teuthology/__init__.py", line 19, in <module>
    subprocess=False,
  File "/tmp/tmp.JMxJMZvBFT/venv/local/lib/python2.7/site-packages/gevent/monkey.py", line 621, in patch_all
    patch_ssl()
  File "/tmp/tmp.JMxJMZvBFT/venv/local/lib/python2.7/site-packages/gevent/monkey.py", line 463, in patch_ssl
    patch_module('ssl')
  File "/tmp/tmp.JMxJMZvBFT/venv/local/lib/python2.7/site-packages/gevent/monkey.py", line 152, in patch_module
    gevent_module = getattr(__import__('gevent.' + name), name)
  File "/tmp/tmp.JMxJMZvBFT/venv/local/lib/python2.7/site-packages/gevent/ssl.py", line 20, in <module>
    from gevent import _ssl2 as _source # pragma: no cover
  File "/tmp/tmp.JMxJMZvBFT/venv/local/lib/python2.7/site-packages/gevent/_ssl2.py", line 16, in <module>
    _ssl = __ssl__._ssl
AttributeError: 'module' object has no attribute '_ssl'

@cbodley

cbodley commented Mar 13, 2018

Copy link
Copy Markdown
Contributor

maybe openssl_keys or something? i'm not familiar with the term sslayer

@rjfd

rjfd commented Mar 13, 2018

Copy link
Copy Markdown
Contributor Author

@cbodley I'm fine with openssl_keys, will change that.

The ssl task located in a python file called `ssl.py` will generate
python module loading conflicts with the `ssl` system module, when
running QA tests using vstart_runner.py.

Signed-off-by: Ricardo Dias <[email protected]>
@rjfd
rjfd force-pushed the wip-qa-fix-ssl-conflict branch from c172c5c to 98e4b33 Compare March 13, 2018 14:41
@rjfd

rjfd commented Mar 13, 2018

Copy link
Copy Markdown
Contributor Author

@cbodley pushed renaming to openssl_keys

@rjfd rjfd changed the title qa/rgw: renamed ssl task to sslayer qa/rgw: renamed ssl task to openssl_keys Mar 13, 2018
@rjfd

rjfd commented Mar 16, 2018

Copy link
Copy Markdown
Contributor Author

@cbodley this issue is blocking dashboard backend developers from running the QA tests locally, are we still missing something, or can we merge the PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants