Thank you for the quick response.
I did not use any credential as I don’t know what to supply as Upstream Username and Upstream Password; so, I left it blank.
I am a too new discovering and learning using Katello /Foreman; I did not now that I need to install pulp_deb and pulpcore; please point me to the right wiki so I can install them.
The error message I am getting is: “RuntimeError: A sub task failed”
When creating the Ubuntu Repository
On the Repository I filled out the fields as follow:
Label: Ubuntu 18.04-main
Upstream URL: Index of /ubuntu
Publish via HTTP is checked
GPG Key Ubuntu-18.04-GPG-key
SS CA Cert
SS Client Key
If Katello allowed you to select deb for repository type, then you already have Pulp (as well as the Debian plugin) installed.
You can check if you are running Pulp 2 or Pulp 3 by going on the Administer > About page. In the “System Status” area, on the “Smart Proxies” tab, there should be a list of “Features” that your smart proxy (you probably only have one) provides. If it says “Pulp” you are on Pulp 2 if it says “pulpcore” (I think) you are on Pulp 3.
If you have a task that says “A sub task failed”, you should also be able to find that sub task to find the actual error message. I am not sure where exactly you are in the UI, but look for things like “More Details” or the “Sub Tasks” button. Alternatively go to the Monitor > Tasks page, and filter by result != success (Assuming you don’t have a lot of failed tasks it should be easy to find the one you want).
Once you find the right failed task, you can also switch to the “Errors” tab to find not just the final error but the entire back trace.
Administer >> About is showing.
Pulp, Pulpcore, Puppet CA, Puppet, Logs, and Registration 2.3.3
For searching errors
I select Ubuntu 18.04 Repository and undern the Sync status section, I click on warning >> then I click on the Errors tab and the following sections:
a) Action section: showing b Actions::Pulp3::Repository::Sync
b) Output section : if I search for Result =
File “/usr/lib64/python3.6/asyncio/base_events.py”, line 484, in run_until_complete\n" +
" return future.result()\n" +
" File “/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py”, line 225, in create_pipeline\n" +
" await asyncio.gather(*futures)\n" +
" File “/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py”, line 43, in call\n" +
" await self.run()\n" +
" File “/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/artifact_stages.py”, line 152, in run\n" +
" pb.done += task.result() # download_count\n" +
" File “/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/artifact_stages.py”, line 178, in _handle_content_unit\n" +
" await asyncio.gather(*downloaders_for_content)\n" +
" File “/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/models.py”, line 88, in download\n" +
" download_result = await downloader.run(extra_data=self.extra_data)\n" +
c) Exception section: Katello::Errors::Pulp3Error: Server disconnected
d) Backtrace section: the search for “error” is showing
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:569:in block in execute_run' /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:472:in block in with_error_handling’
/opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:472:in catch' /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:472:in with_error_handling’
Yes can successfully synchronize with RPM repositories
A can now successfully synchronize with deb repositories.
You pointed to the right direction as I did not know where to search for logs errors, After some tests it worked fine
The whole mistake was on the Upstream URL ; I had to check the right url from the /etc/apt/sources.list
example: for Ubuntu 18.04 the right setting is (depending on the packages to synchronize with)
Upstream URL = http://archive.ubuntu.com/ubuntu
Publish via HTTP
All work fine now,
Thank you very much and you may close the case
I don’t see a mainbionic-updates component for the bionic Release (a.k.a. distribution) of the http://archive.ubuntu.com/ubuntu/ repo. I only see main, multiverse, restricted, and universe, but you can also just leave the Components: field blank to sync all of them.
synchronizing yum and deb repositories work fine now.
Now I need to register Ubuntu clients to the Foreman server.
I was able to register a CentOS server using wiki found on the Internet , but I did search for any procedure with steps on how to register Ubuntu / Debian servers but I can’t find any.