RHEL8 repo sync's
#1
Hi,

We are using PULP 2.18  on a CentOS 7.6 server and currently synchronize a number of CentOS / RHEL 7 repositories. I have been trying to setup a new RHEL8  repo but seem to be getting "forbidden 403" errors.

I followed the below "how to" link which includes obtaining the required CACert/Cert/Key files from an existing registered RHEL8 server using Subscription manager but am having no joy. Could you please advise if i'm missing something? 

https://projectlinux.com/advancedpulp.php

Command used to create REPO...

pulp-admin rpm repo create --repo-id rhel-x86_64-server-8 --feed https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/baseos/os --feed-ca-cert /root/repoconfig/certs/redhat-uep.pem --feed-cert /root/repoconfig/certs/8517629927282862959.pem --feed-key /root/repoconfig/certs/8517629927282862959-key.pem --generate-sqlite true --serve-http true --serve-https true --relative-url rhel/8/rhel-x86_64-server-8 --checksum-type sha256

Logfile output..

Aug 15 10:00:13 plonindcms13 pulp: celery.worker.strategy:INFO: Received task: pulp.server.async.tasks._queue_reserved_task[3323b96c-cf9d-44bc-a5d9-f569933def1a]
Aug 15 10:00:13 plonindcms13 pulp: celery.worker.strategy:INFO: Received task: pulp.server.managers.repo.sync.sync[01839758-4b21-4d0a-bb63-e597fc4ad768]
Aug 15 10:00:13 plonindcms13 pulp: celery.app.trace:INFO: [3323b96c] Task pulp.server.async.tasks._queue_reserved_task[3323b96c-cf9d-44bc-a5d9-f569933def1a] succeeded in 0.0160555019975s: None
Aug 15 10:00:13 plonindcms13 pulp: celery.worker.strategy:INFO: Received task: pulp.server.async.tasks._release_resource[384c7b91-0cc9-49c4-bc3b-a4c557841cf6]
Aug 15 10:00:13 plonindcms13 pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [01839758] Downloading metadata from https://cdn.redhat.com/content/dist/rhel...baseos/os/.
Aug 15 10:00:13 plonindcms13 pulp: requests.packages.urllib3.connectionpool:INFO: Starting new HTTPS connection (1): cdn.redhat.com
Aug 15 10:00:13 plonindcms13 pulp: nectar.downloaders.threaded:INFO: Download failed: Download of https://cdn.redhat.com/content/dist/rhel...repomd.xml failed with code 403: Forbidden
Aug 15 10:00:14 plonindcms13 pulp: requests.packages.urllib3.connectionpool:INFO: [01839758] Starting new HTTPS connection (1): cdn.redhat.com
Aug 15 10:00:14 plonindcms13 pulp: nectar.downloaders.threaded:INFO: [01839758] Download failed: Download of https://cdn.redhat.com/content/dist/rhel.../baseos/os failed with code 403: Forbidden
Aug 15 10:00:14 plonindcms13 pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [01839758] Downloading metadata from https://cdn.redhat.com/content/dist/rhel...baseos/os/.
Aug 15 10:00:14 plonindcms13 pulp: requests.packages.urllib3.connectionpool:INFO: Starting new HTTPS connection (1): cdn.redhat.com
Aug 15 10:00:15 plonindcms13 pulp: nectar.downloaders.threaded:INFO: Download failed: Download of https://cdn.redhat.com/content/dist/rhel...repomd.xml failed with code 403: Forbidden
Aug 15 10:00:15 plonindcms13 pulp: requests.packages.urllib3.connectionpool:INFO: [01839758] Starting new HTTPS connection (1): cdn.redhat.com
Aug 15 10:00:16 plonindcms13 pulp: nectar.downloaders.threaded:INFO: [01839758] Download failed: Download of https://cdn.redhat.com/content/dist/rhel.../baseos/os failed with code 403: Forbidden
Aug 15 10:00:16 plonindcms13 pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [01839758] Downloading metadata from https://cdn.redhat.com/content/dist/rhel...baseos/os/.
Aug 15 10:00:16 plonindcms13 pulp: requests.packages.urllib3.connectionpool:INFO: Starting new HTTPS connection (1): cdn.redhat.com
Aug 15 10:00:16 plonindcms13 pulp: nectar.downloaders.threaded:INFO: Download failed: Download of https://cdn.redhat.com/content/dist/rhel...repomd.xml failed with code 403: Forbidden
Aug 15 10:00:17 plonindcms13 pulp: requests.packages.urllib3.connectionpool:INFO: [01839758] Starting new HTTPS connection (1): cdn.redhat.com
Aug 15 10:00:17 plonindcms13 pulp: nectar.downloaders.threaded:INFO: [01839758] Download failed: Download of https://cdn.redhat.com/content/dist/rhel.../baseos/os failed with code 403: Forbidden
Aug 15 10:00:17 plonindcms13 pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [01839758] Downloading metadata from https://cdn.redhat.com/content/dist/rhel...baseos/os/.
Aug 15 10:00:17 plonindcms13 pulp: requests.packages.urllib3.connectionpool:INFO: Starting new HTTPS connection (1): cdn.redhat.com
Aug 15 10:00:18 plonindcms13 pulp: nectar.downloaders.threaded:INFO: Download failed: Download of https://cdn.redhat.com/content/dist/rhel...repomd.xml failed with code 403: Forbidden
Aug 15 10:00:18 plonindcms13 pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [01839758] Downloading additional units.
Aug 15 10:00:18 plonindcms13 pulp: requests.packages.urllib3.connectionpool:INFO: Starting new HTTPS connection (1): cdn.redhat.com
Aug 15 10:00:18 plonindcms13 pulp: nectar.downloaders.threaded:INFO: Download failed: Download of https://cdn.redhat.com/content/dist/rhel.../.treeinfo failed with code 403: Forbidden
Aug 15 10:00:19 plonindcms13 pulp: requests.packages.urllib3.connectionpool:INFO: Starting new HTTPS connection (1): cdn.redhat.com
Aug 15 10:00:19 plonindcms13 pulp: nectar.downloaders.threaded:INFO: Download failed: Download of https://cdn.redhat.com/content/dist/rhel...s/treeinfo failed with code 403: Forbidden
Aug 15 10:00:20 plonindcms13 pulp: pulp.server.async.tasks:INFO: [01839758] Task failed : [01839758-4b21-4d0a-bb63-e597fc4ad768] : Error retrieving metadata: Forbidden
Aug 15 10:00:20 plonindcms13 pulp: celery.app.trace:INFO: [01839758] Task pulp.server.managers.repo.sync.sync[01839758-4b21-4d0a-bb63-e597fc4ad768] raised expected: PulpCodedException()
Aug 15 10:00:20 plonindcms13 pulp: celery.app.trace:INFO: [384c7b91] Task pulp.server.async.tasks._release_resource[384c7b91-0cc9-49c4-bc3b-a4c557841cf6] succeeded in 0.00132100598421s: None

Thanks
Lee

Apologies, I run the following and all seems to be working, Now sure if it was the following command or I was using the wrong URL but all working now.

subscription-manager refresh
Reply


Messages In This Thread
RHEL8 repo sync's - by leepayne - 08-15-2019, 09:03 AM
RE: RHEL8 repo sync's - by meggiman - 08-15-2019, 09:31 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)