On 10/18/2013 08:13 AM, Dennis Gregorovic wrote:
On Thu, 2013-10-17 at 21:44 -0500, Paul Jochum wrote:
Hi All:

      I have been asked to add Red Hat's HTB (high touch beta) feeds to
my pulp server.  Does anyone know the feed paths for them?  I did try
Dennis Gregorovic's sugestion of "subscription-manager repos --list",
but that didn't help for the HTB feeds.

thanks in advance,

Paul
Hi Paul,

Grep for /htb in the output of "subscription-manager repos --list".  If
you don't see anything, you'll need to get a HTB subscription.

Cheers
-- Dennis
Hi Dennis:

    I added the htb subscription:
[root@lss-pulp01 ~]# subscription-manager --proxy=http://ih.proxy.lucent.com:8000 attach --pool=8a85f982419ee8900141a30f640b6f08 Successfully attached a subscription for: High Touch Beta for Red Hat Enterprise Linux Server (4 sockets)

and can now grep for them:
[root@lss-pulp01 ~]# subscription-manager --proxy=http://ih.proxy.lucent.com:8000 repos --list > /tmp/repos
[root@lss-pulp01 ~]# grep -i htb /tmp/repos
Repo ID:   rhel-6-server-optional-htb-rpms
Repo Name: Red Hat Enterprise Linux 6 Server - Optional HTB (RPMs)
Repo URL: https://cdn.redhat.com/content/htb/rhel/server/6/$releasever/$basearch/optional/os
Repo ID:   rhel-scalefs-for-rhel-6-server-htb-debug-rpms
Repo Name: Red Hat Enterprise Linux Scalable File System (for RHEL 6 Server) HTB (Debug RPMs) Repo URL: https://cdn.redhat.com/content/htb/rhel/server/6/$releasever/$basearch/scalablefilesystem/debug
Repo ID:   rhel-rs-for-rhel-6-server-htb-debug-rpms
Repo Name: Red Hat Enterprise Linux Resilient Storage (for RHEL 6 Server) HTB (Debug RPMs) Repo URL: https://cdn.redhat.com/content/htb/rhel/server/6/$releasever/$basearch/resilientstorage/debug
...

I can also perform the repo create (note, replaced the real key file names with xxx): [root@lss-pulp01 ~]# pulp-admin -u admin -p admin rpm repo create --proxy-host=https://ih.proxy.lucent.com --proxy-port=8000 --repo-id=rhel-x86_64-server-6-htb --feed=https://cdn.redhat.com/content/htb/rhel/server/6/6Server/x86_64/os --feed-ca-cert=/etc/rhsm/ca/redhat-uep.pem --feed-key=/etc/pki/entitlement/xxx-key.pem --feed-cert=/etc/pki/entitlement/xxx.pem
Successfully created repository [rhel-x86_64-server-6-htb]

but, when I attempt to sync them, they fail:
[root@lss-pulp01 ~]# pulp-admin -u admin -p admin rpm repo sync run --repo-id=rhel-x86_64-server-6-htb
+----------------------------------------------------------------------+
          Synchronizing Repository [rhel-x86_64-server-6-htb]
+----------------------------------------------------------------------+

This command may be exited by pressing ctrl+c without affecting the actual
operation on the server.

Downloading metadata...
[\]
... failed

Forbidden


The following is from /var/log/pulp/pulp.log:
2013-10-18 12:14:09,023 nectar.downloaders.threaded:ERROR: Download of https://cdn.redhat.com/content/htb/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml failed with code 403: Forbidden 2013-10-18 12:14:09,023 pulp_rpm.plugins.importers.yum.sync:ERROR: sync failed
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/importers/yum/sync.py", line 109, in run
    metadata_files = self.get_metadata()
File "/usr/lib/python2.6/site-packages/pulp_rpm/plugins/importers/yum/sync.py", line 194, in get_metadata
    raise FailedException(str(e))
FailedException: Forbidden
2013-10-18 12:14:09,028 pulp.server.dispatch.task:ERROR: Importer indicated a failed response
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/pulp/server/dispatch/task.py", line 138, in _run
    result = call(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/pulp/server/managers/repo/sync.py", line 117, in sync
    raise PulpExecutionException(_('Importer indicated a failed response'))
PulpExecutionException: Importer indicated a failed response
2013-10-18 12:14:09,028 pulp.server.dispatch.task:INFO: FAILURE: Task e6baf8fc-cc94-4bbb-968b-bef7ab30e8d4: CallRequest: RepoSyncManager.sync(u'rhel-x86_64-server-6-htb', sync_config_override=None)



_______________________________________________
Pulp-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-list

Reply via email to