Project

Profile

Help

Issue #3689

closed

Pulp 2 tests are failing on Fedora 27: BIOError: padding check failed

Added by daviddavis almost 6 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

======================================================================
ERROR: test_get_certs_from_string_empty (test_repo_cert_utils.TestCertVerify)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/workspace/unittest-pulp-pr/node-type/f27-np/pulp/repoauth/test/test_repo_cert_utils.py", line 392, in test_get_certs_from_string_empty
    certs = self.utils.get_certs_from_string("")
  File "/home/jenkins/workspace/unittest-pulp-pr/node-type/f27-np/pulp/repoauth/pulp/repoauth/repo_cert_utils.py", line 358, in get_certs_from_string
    bio = BIO.MemoryBuffer(data)
  File "/usr/lib64/python2.7/site-packages/M2Crypto/BIO.py", line 191, in __init__
    m2.bio_write(self.bio, data)
BIOError: padding check failed

See this PR: https://github.com/pulp/pulp/pull/3499

Looks like there was a new release on Fedora of m2crypto back in March.

Actions #1

Updated by dalley almost 6 years ago

  • Priority changed from Normal to High
  • Triaged changed from No to Yes
Actions #2

Updated by daviddavis almost 6 years ago

Gotten a little bit closer to finding the cause. It appears to be rooted in the test_not_validated test in unit.server.agent.test_auth.TestAuthentication. If you skip this test or run it after test_repo_cert_utils, the problem goes away.

Actions #3

Updated by dalley almost 6 years ago

  • Sprint set to Sprint 37
Actions #4

Updated by daviddavis almost 6 years ago

I think this is a problem in m2crypto so I've opened an issue with a failing test:

https://gitlab.com/m2crypto/m2crypto/issues/217

Actions #5

Updated by daviddavis almost 6 years ago

Opened up PR to skip failing unit test until m2crypto issue is resolved:

https://github.com/pulp/pulp/pull/3503

Added by daviddavis almost 6 years ago

Revision 44e29931 | View on GitHub

Temporarily skip failing test until m2crypto issue is resolved

ref #3689 https://pulp.plan.io/issues/3689

Actions #6

Updated by rchan almost 6 years ago

  • Sprint changed from Sprint 37 to Sprint 38
Actions #7

Updated by daviddavis almost 6 years ago

Matej responded to the m2crypto issue but I am not sure what his response means for us. I'm also not clear on what our tests are actually testing.

Actions #8

Updated by dalley almost 6 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dalley
Actions #9

Updated by dalley almost 6 years ago

  • Priority changed from High to Normal
  • Sprint deleted (Sprint 38)

Looks like Jeremy Cline also ran into this issue 2 years ago: https://gitlab.com/m2crypto/m2crypto/issues/95

Going by that explanation of the issue, I think we should just leave the test disabled until upstream fixes their error handling. The issue is simply that M2Crypto is returning an error generated (correctly) by a previous test, and not clearing out its error stack properly.

Removing from the sprint, moving to normal Prio, and leaving assigned as I will track what is going on upstream with this issue.

Actions #10

Updated by bmbouter about 5 years ago

  • Status changed from ASSIGNED to CLOSED - WONTFIX
Actions #11

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF