Project

General

Profile

Bug #13503

Need to fix katello post sync url

Added by Partha Aji over 4 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Try syncing any repo with pulp 2.8 you get an error from pulp in /var/log/messages

Feb  1 09:51:34 katello-yoda pulp: requests.packages.urllib3.connectionpool:INFO: Starting new HTTPS connection (1): localhost
Feb  1 09:51:34 katello-yoda celery: Exception in thread Thread-463:
Feb  1 09:51:34 katello-yoda celery: Traceback (most recent call last):
Feb  1 09:51:34 katello-yoda celery: File "/usr/lib64/python2.7/threading.py", line 811, in __bootstrap_inner
Feb  1 09:51:34 katello-yoda celery: self.run()
Feb  1 09:51:34 katello-yoda celery: File "/usr/lib64/python2.7/threading.py", line 764, in run
Feb  1 09:51:34 katello-yoda celery: self.__target(*self.__args, **self.__kwargs)
Feb  1 09:51:34 katello-yoda celery: File "/usr/lib/python2.7/site-packages/pulp/server/event/http.py", line 56, in _send_post
Feb  1 09:51:34 katello-yoda celery: response = post(url, data=data, auth=auth)
Feb  1 09:51:34 katello-yoda celery: File "/usr/lib/python2.7/site-packages/requests/api.py", line 94, in post
Feb  1 09:51:34 katello-yoda celery: return request('post', url, data=data, json=json, **kwargs)
Feb  1 09:51:34 katello-yoda celery: File "/usr/lib/python2.7/site-packages/requests/api.py", line 49, in request
Feb  1 09:51:34 katello-yoda celery: return session.request(method=method, url=url, **kwargs)
Feb  1 09:51:34 katello-yoda celery: File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 457, in request
Feb  1 09:51:34 katello-yoda celery: resp = self.send(prep, **send_kwargs)
Feb  1 09:51:34 katello-yoda celery: File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 569, in send
Feb  1 09:51:34 katello-yoda celery: r = adapter.send(request, **kwargs)
Feb  1 09:51:34 katello-yoda celery: File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 420, in send
Feb  1 09:51:34 katello-yoda celery: raise SSLError(e, request=request)
Feb  1 09:51:34 katello-yoda celery: SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)


Basically the post sync url is not working properly. We need the following things need to happen to fix this
  1. Update katello koji to NOT include python-requests and instead rely on base. We python-requests 2.6 and above
  2. Update https://github.com/Katello/puppet-katello/blob/master/templates/katello.yaml.erb#L11 to point to https://<%=@fqdn %><%= @deployment_url %>/api/v2/repositories/sync_complete?token=<%= @post_sync_token %>
  3. Make the installer install katello-server ca crt in the central ca of the sat.

Related issues

Related to Katello - Tracker #13282: Pulp 2.8Resolved2016-01-19

Blocked by Katello - Bug #13634: make katello server cert trusted by CA storeClosed2016-02-09

Associated revisions

Revision fbaec7fe (diff)
Added by Partha Aji over 4 years ago

Fixes #13503 - Updating post sync url

Updating server post sync url to fqdn since it needs to match the cn in
the katello cert and not (localhost)

Revision a3155d66
Added by Eric D Helms over 4 years ago

Merge pull request #101 from parthaa/post-sync

Fixes #13503 - Updating post sync url

History

#1 Updated by Partha Aji over 4 years ago

#2 Updated by Partha Aji over 4 years ago

  • Blocked by Bug #13634: make katello server cert trusted by CA store added

#3 Updated by Partha Aji over 4 years ago

  • Assignee set to Partha Aji

#4 Updated by Partha Aji over 4 years ago

  • Status changed from New to Closed
  • Pull request https://github.com/Katello/puppet-katello/pull/101 added

#5 Updated by Eric Helms over 4 years ago

  • Legacy Backlogs Release (now unused) set to 86

Also available in: Atom PDF