Bug #10387
CertificateVerificationException on Capsule attempting to sync content from Satellite 6.1 server
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1218390
Description of problem:
Capsule can not sync content from Satellite 6.1. Error Message in /var/log/messages on capsule
Version-Release number of selected component (if applicable):
Satellite 6.1 GA Snap 2 on RHEL 7.1
How reproducible:
Perf system + QE System was able to reproduce
Steps to Reproduce:
1. Add life-cycle environment to capsule
2. Attempt to sync content to capsule
3.
Actual results:
capsule sync hammer command fails
/var/log/messages on capsule:
May 4 11:48:39 capsule-r7-001 goferd: [INFO][worker-0] gofer.rmi.dispatcher:600 - call: Content.update() sn=d0bdd1d7-5479-4fc3-9a16-14de8aa0f09d data={'task_id': '8799ddad-51f5-407e-b891-fe8d84e79948', 'consumer_id': 'f5e7ec38-4d71-4a99-8b07-02a8abc45d46'}
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - synchronization failed
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - Traceback (most recent call last):
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - File "/usr/lib/python2.7/site-packages/pulp_node/handlers/strategies.py", line 116, in synchronize
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - validator.validate(request.bindings)
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - File "/usr/lib/python2.7/site-packages/pulp_node/handlers/validation.py", line 54, in validate
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - self.report.errors.extend(self._validate_plugins(bindings))
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - File "/usr/lib/python2.7/site-packages/pulp_node/handlers/validation.py", line 70, in _validate_plugins
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - child = ChildServer()
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - File "/usr/lib/python2.7/site-packages/pulp_node/handlers/validation.py", line 88, in init
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - self.importers = self._importers()
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - File "/usr/lib/python2.7/site-packages/pulp_node/handlers/validation.py", line 99, in _importers
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - http = bindings.server_info.get_importers()
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - File "/usr/lib/python2.7/site-packages/pulp/bindings/server_info.py", line 44, in get_importers
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - return self.server.GET
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 92, in GET
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - return self._request('GET', path, queries)
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 142, in _request
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - response_code, response_body = self.server_wrapper.request(method, url, body)
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - File "/usr/lib/python2.7/site-packages/pulp/bindings/server.py", line 330, in request
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - raise exceptions.CertificateVerificationException()
May 4 11:48:40 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.strategies:129 - CertificateVerificationException
May 4 11:48:41 capsule-r7-001 goferd: [ERROR][worker-0] pulp_node.handlers.handler:111 - An unexpected error occurred. repo_id=None
Expected results:
Content to sync.
Additional info:
This is with the workaround from BZ 1217828
Associated revisions
fixes #10387 - set apache certs properly on crane module
due to an ordering issue the apache certs were not being set properly
splitting up this class would likely make the fix more declarative (as this is
a fairly imperative fix). I have written a unit test to make sure we do not
regress.
fixes #10387 - backporting capsule module to fix bad certs on capsule
History
#1
Updated by Justin Sherrill almost 8 years ago
- Legacy Backlogs Release (now unused) set to 23
- Triaged changed from No to Yes
#2
Updated by The Foreman Bot almost 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello-installer/pull/223 added
- Pull request deleted (
)
#3
Updated by Justin Sherrill almost 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello-installer|676283602e91ad460fe85043010e370a439e04ea.
fixes #10387 - set apache certs properly on crane module
due to an ordering issue the apache certs were not being set properly
splitting up this class would likely make the fix more declarative (as this is
a fairly imperative fix). I have written a unit test to make sure we do not
regress.