Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test/dashboard: fix segfault when importing dm.xmlsec.binding #25139

Merged
merged 1 commit into from
Nov 19, 2018

Conversation

tchaikov
Copy link
Contributor

@tchaikov tchaikov commented Nov 16, 2018

python-saml depends on dm.xmlsec.binding which is a python binding of
xmlsec C library. but without -DXMLSEC_NO_SIZE_T the compiled
dm.xmlsec.binding segfaults when import dm.xmlsec.binding. see
SAML-Toolkits/python-saml#30 and
4teamwork/ftw.saml2auth#3 .

in long term, we might want to switch to python-pysaml2, see
http://tracker.ceph.com/issues/37081

Signed-off-by: Kefu Chai kchai@redhat.com

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

python-saml depends on dm.xmlsec.binding which is a python binding of
xmlsec C library. but without -DXMLSEC_NO_SIZE_T the compiled
dm.xmlsec.binding segfaults when `import dm.xmlsec.binding`. see
SAML-Toolkits/python-saml#30 and
4teamwork/ftw.saml2auth#3 .

in long term, we might want to switch to python-saml, see
http://tracker.ceph.com/issues/37081

Signed-off-by: Kefu Chai <kchai@redhat.com>
@tchaikov
Copy link
Contributor Author

this should fix "make check" failures like

ERROR: InvocationError: '/home/jenkins-build/build/workspace/ceph-pull-requests/build/py27-cov/bin/py.test --cov=. --cov-report= --junitxml=junit.py27-cov.xml --doctest-modules controllers/rbd.py services/ tests/ tools.py'
py27-lint create: /home/jenkins-build/build/workspace/ceph-pull-requests/build/py27-lint
Fatal Python error: Segmentation fault

Current thread 0x00007f3b6e7ab740 <py.test> (most recent call first):
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/build/py27-cov/lib/python2.7/site-packages/dm/xmlsec/binding/__init__.py", line 19 in <genexpr>
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/build/py27-cov/lib/python2.7/site-packages/dm/xmlsec/binding/__init__.py", line 19 in <module>
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/build/py27-cov/lib/python2.7/site-packages/onelogin/saml2/utils.py", line 33 in <module>
  File "/home/jenkins-build/build/workspace/ceph-pull-requests/build/py27-cov/lib/python2.7/site-packages/onelogin/saml2/metadata.py", line 17 in <module>

see also #25053.

@alfonsomthd
Copy link
Contributor

this should fix "make check" failures like

Yes, but once we have the appropriate python-saml/pysaml2 installation method for CentOS (and similar ones),
this workaround should be removed.

@tchaikov tchaikov merged commit c6bf622 into ceph:master Nov 19, 2018
@tchaikov tchaikov deleted the wip-xmlsec branch November 19, 2018 08:54
b-ranto pushed a commit to b-ranto/ceph that referenced this pull request Nov 28, 2018
Duplicate error messages currently appear if the task wrapper service is
used. It calls 'notifyTask' on a failed task, this would be fine if
we didn't have the API interceptor, which watches all API requests and
triggers 'notifyTask' itself if an error appears.

Fixes issue ceph#25139

Signed-off-by: Stephan Müller <smueller@suse.com>
(cherry picked from commit 70d47a5)
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants