Project

Profile

Help

Issue #4062

closed

Unable to sync using SSL certs

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

Status:
CLOSED - CURRENTRELEASE
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:
Sprint:
Sprint 44
Quarter:

Description

I tried to sync from CDN https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/,
I set ssl_client_certificate and ssl_client_key on a Remote.
SSL cert/key are in PEM format.

Sync failed:

Oct 05 15:04:13 pulp3 rq[18441]: Traceback (most recent call last):
Oct 05 15:04:13 pulp3 rq[18441]:   File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/models/remote.py", line 40, in download_factory
Oct 05 15:04:13 pulp3 rq[18441]:     return self._download_factory
Oct 05 15:04:13 pulp3 rq[18441]: AttributeError: 'RpmRemote' object has no attribute '_download_factory'
Oct 05 15:04:13 pulp3 rq[18441]: During handling of the above exception, another exception occurred:
Oct 05 15:04:13 pulp3 rq[18441]: Traceback (most recent call last):
Oct 05 15:04:13 pulp3 rq[18441]:   File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/worker.py", line 793, in perform_job
Oct 05 15:04:13 pulp3 rq[18441]:     rv = job.perform()
Oct 05 15:04:13 pulp3 rq[18441]:   File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/job.py", line 599, in perform
Oct 05 15:04:13 pulp3 rq[18441]:     self._result = self._execute()
Oct 05 15:04:13 pulp3 rq[18441]:   File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/rq/job.py", line 605, in _execute
Oct 05 15:04:13 pulp3 rq[18441]:     return self.func(*self.args, **self.kwargs)
Oct 05 15:04:13 pulp3 rq[18441]:   File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/synchronizing.py", line 70, in synchronize
Oct 05 15:04:13 pulp3 rq[18441]:     loop.run_until_complete(pipeline)
Oct 05 15:04:13 pulp3 rq[18441]:   File "/usr/lib64/python3.6/asyncio/base_events.py", line 468, in run_until_complete
Oct 05 15:04:13 pulp3 rq[18441]:     return future.result()
Oct 05 15:04:13 pulp3 rq[18441]:   File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/stages/api.py", line 128, in create_pipeline
Oct 05 15:04:13 pulp3 rq[18441]:     await asyncio.gather(*futures)
Oct 05 15:04:13 pulp3 rq[18441]:   File "/home/vagrant/devel/pulp_rpm/pulp_rpm/app/tasks/synchronizing.py", line 192, in __call__
Oct 05 15:04:13 pulp3 rq[18441]:     'repodata/repomd.xml'))
Oct 05 15:04:13 pulp3 rq[18441]:   File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/models/remote.py", line 61, in get_downloader
Oct 05 15:04:13 pulp3 rq[18441]:     return self.download_factory.build(url, **kwargs)
Oct 05 15:04:13 pulp3 rq[18441]:   File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/models/remote.py", line 42, in download_factory
Oct 05 15:04:13 pulp3 rq[18441]:     self._download_factory = DownloaderFactory(self)
Oct 05 15:04:13 pulp3 rq[18441]:   File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/download/factory.py", line 59, in __init__
Oct 05 15:04:13 pulp3 rq[18441]:     self._session = self._make_aiohttp_session_from_remote()
Oct 05 15:04:13 pulp3 rq[18441]:   File "/home/vagrant/devel/pulp/plugin/pulpcore/plugin/download/factory.py", line 84, in _make_aiohttp_session_from_remote
Oct 05 15:04:13 pulp3 rq[18441]:     self._remote.ssl_client_certificate.name
Oct 05 15:04:13 pulp3 rq[18441]: ssl.SSLError: [SSL] PEM lib (_ssl.c:3423)

This issue is to track SSL error only.
AttributeError is tracked separately: https://pulp.plan.io/issues/4063


Related issues

Related to Pulp - Test #4240: Test sync from CDN using certificatesCLOSED - WONTFIXActions
Actions #2

Updated by CodeHeeler about 6 years ago

  • Triaged changed from No to Yes
  • Sprint set to Sprint 44
Actions #3

Updated by jortel@redhat.com about 6 years ago

  • Status changed from NEW to ASSIGNED
Actions #4

Updated by jortel@redhat.com about 6 years ago

  • Status changed from ASSIGNED to POST

Added by jortel@redhat.com about 6 years ago

Revision ca75fc89 | View on GitHub

Fix SSL error and correct handling of Remote.ssl_validation. closes #4062

Added by jortel@redhat.com about 6 years ago

Revision ca75fc89 | View on GitHub

Fix SSL error and correct handling of Remote.ssl_validation. closes #4062

Actions #5

Updated by jortel@redhat.com about 6 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by kersom almost 6 years ago

  • Related to Test #4240: Test sync from CDN using certificates added
Actions #7

Updated by daviddavis over 5 years ago

  • Sprint/Milestone set to 3.0.0
Actions #8

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3)
Actions #9

Updated by ttereshc over 5 years ago

  • Description updated (diff)
Actions #10

Updated by bmbouter almost 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF