Hi,

 

Below are the steps I performed to configure RHEL 5.6 system ( configured repository for RHEL 5.7 to upgrade RHEL 5.6 OS ).

 

katello> product create --org BPM --provider katello --name RHEL_57

Successfully created product [ RHEL_57 ]

katello>

katello>

katello> repo create --org BPM --product RHEL_57 --name base --url "http://hostname/repos/redhat-5.7.x86_64/20110801/Server/"

Successfully created repository [ base ]

katello>

katello> provider synchronize --org BPM --name katello

Progress: [                                                  ] 0.0%

Progress: [                                                  ] 0.0%

Provider [ katello ] synchronized

katello>

katello>

katello> changeset create --org BPM --name "RHEL57" --environment DEV

Successfully created changeset [ RHEL57 ] for environment [ DEV ]

katello>

katello> changeset update --org BPM --name "RHEL57" --environment DEV --add_product RHEL_57

Successfully updated changeset [ RHEL57 ]

 

I have register the client, ( subscription-manager-gui command is not working for me )  with subscription-manager register.

 

Created changeset and promoted

 

Issue is still not able to see any packages in system tab also don't see any errata

 

Packages on server :-

katello-all-0.2.39-1.el6.noarch

katello-glue-candlepin-0.2.39-1.el6.noarch

katello-certs-tools-1.1.6-1.el6.noarch

katello-cli-common-0.2.37-1.el6.noarch

katello-common-0.2.39-1.el6.noarch

katello-glue-foreman-0.2.39-1.el6.noarch

katello-qpid-broker-key-pair-1.0-1.noarch

katello-configure-0.2.25-1.el6.noarch

katello-cli-0.2.37-1.el6.noarch

katello-selinux-0.2.5-1.el6.noarch

katello-0.2.39-1.el6.noarch

katello-qpid-client-key-pair-1.0-1.noarch

katello-glue-pulp-0.2.39-1.el6.noarch

katello-repos-0.2.4-1.el6.noarch

katello-candlepin-cert-key-pair-1.0-1.noarch

 

Client :-

subscription-manager-gnome-0.95.5.21-1.el5

subscription-manager-0.95.5.21-1.el5

 

rpm -qa |grep -i katello

katello-agent-1.0.3-1

 

Error message when running yum repolist ( /etc/yum.repos.d/redhat.repos file was blank I have added entries manually as I have mention below ).

 

Yum repolist :-

https://hostname/pulp/repos/BPM/DEV/custom/RHEL_57/base/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden

Trying other mirror.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: RHEL_57. Please verify its path and try again

 

Messages in gofer agent logs.

 

2012-06-20 19:07:46,842 [INFO][PathMonitor1] @ connection.py:333 - Using certificate authentication: key = /etc/pki/consumer/key.pem, cert = /etc/pki/consumer ca = /etc/rhsm/ca/, insecure = False

2012-06-20 19:07:46,842 [INFO][PathMonitor1] @ connection.py:337 - Connection Established: host: lonlx90020, port: 443, handler: /katello/api

2012-06-20 19:07:46,842 [INFO][PathMonitor1] @ katelloplugin.py:382 - reporting: {'enabled_repos': {'repos': [{'repositoryid': 'RHEL_57'}]}}

2012-06-20 19:07:46,842 [ERROR][PathMonitor1] @ pmon.py:150 - /etc/yum.repos.d/redhat.repo

Traceback (most recent call last):

  File "/usr/lib/python2.4/site-packages/gofer/pmon.py", line 148, in __notify

    cb(path)

  File "/usr/lib64/gofer/plugins/katelloplugin.py", line 143, in changed

    uep.report_enabled(uuid, report.content)

  File "/usr/lib64/gofer/plugins/katelloplugin.py", line 383, in report_enabled

    method = '/systems/%s/enabled_repos' % self.sanitize(uuid)

AttributeError: UEP instance has no attribute 'sanitize'

 

 

Summary of issues I am facing

 

1)     Got blank /etc/yum.repos.d/redhat.repo

2)     Not able to see any packages in system also not able to see any software or errata available

3)     Issue while running yum repolist command

4)     Not getting any option how to upgrade packages on system ?

 

Regards,
Dhaval

 

 

From: Joshi, Dhaval (IT/IN)
Sent: Wednesday, June 20, 2012 7:27 PM
To: 'katello@lists.fedorahosted.org'
Subject: katello yumrepolist issue

 

Hi,

 

I am facing issue when I run yum repolist command on client

 

https://hostname/pulp/repos/BPM/DEV/custom/RHEL_57/base/repodata/repomd.xml: [Errno 14] HTTP Error 403: Forbidden

Trying other mirror.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: RHEL57. Please verify its path and try again

 

Under /etc/yum.repos.d there is file created redhat.repo ( I have manually added contents, it should be automatically added by Katello is it ? )

 

#

# Red Hat Repositories

# Managed by (rhsm) subscription-manager

#

[RHEL57]

name = RHEL57

baseurl = https://hostname/pulp/repos/BPM/DEV/custom/RHEL_57/base

enabled = 1

sslverify = 0

#sslcacert = /etc/rhsm/ca/redhat-uep.pem

gpgkeycheck = 1

gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

 

 

can you suggest what is missing for yum to list this pulp repository using katello ?

 

Regards,
Dhaval

This e-mail (including any attachments) is confidential, may contain
proprietary or privileged information and is intended for the named
recipient(s) only. Unintended recipients are prohibited from taking
action on the basis of information in this e-mail and must delete all
copies. Nomura will not accept responsibility or liability for the
accuracy or completeness of, or the presence of any virus or disabling
code in, this e-mail. If verification is sought please request a hard
copy. Any reference to the terms of executed transactions should be
treated as preliminary only and subject to formal written confirmation
by Nomura. Nomura reserves the right to monitor e-mail communications
through its networks (in accordance with applicable laws). No
confidentiality or privilege is waived or lost by Nomura by any
mistransmission of this e-mail. Any reference to "Nomura" is a
reference to any entity in the Nomura Holdings, Inc. group.
Please read our Electronic Communications Legal Notice which forms
part of this e-mail: http://www.Nomura.com/email_disclaimer.htm