Bug 1159338

Summary: Cannot sync RHUI 2 RPM's from rhua servers
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Bell IaaS <cloud>
Component: RHUAAssignee: John Matthews <jmatthew>
Status: CLOSED NOTABUG QA Contact: mkovacik
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.1.2CC: cloud, dgao, jboutaud, tsanders
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-31 17:44:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bell IaaS 2014-10-31 15:18:07 UTC
Description of problem:

when attempting to sync the RHUI repo's from the rhui-manager both repo's fail. Grinder log shows exceptions...

2014-10-31 15:08:47,583 13768:140437406832384: grinder.YumInfo:ERROR: activeobject:160 Caught exception when trying to fetch repomd.xml from [https://cdn.redhat.com//content/dist/rhel/rhui/server/6/6Server/i386/rhui/2/os]: Cannot retrieve repository metadata (repomd.xml) for repository: . Please verify its path and try again
2014-10-31 15:08:47,584 13768:140437406832384: grinder.Retry:ERROR: activeobject:160 Attempt 4: Caught exception: Cannot retrieve repository metadata (repomd.xml) for repository: . Please verify its path and try again. Will retry in 20 seconds.
2014-10-31 15:08:47,915 13768:140437417322240: grinder.YumInfo:ERROR: activeobject:160 Caught exception when trying to fetch repomd.xml from [https://cdn.redhat.com//content/dist/rhel/rhui/server/6/6Server/x86_64/rhui/2/os]: Cannot retrieve repository metadata (repomd.xml) for repository: . Please verify its path and try again
2014-10-31 15:08:47,917 13768:140437417322240: grinder.Retry:ERROR: activeobject:160 Attempt 4: Caught exception: Cannot retrieve repository metadata (repomd.xml) for repository: . Please verify its path and try again. Will retry in 20 seconds.
^C


Version-Release number of selected component (if applicable):

2.1.2

How reproducible:

rhui-manager
-> s
--> sr
Select both RHUI repo's to sync
--> dr


Steps to Reproduce:
1.
2.
3.

Actual results:

Red Hat Update Infrastructure 2 (RPMs) (6Server-i386)
10-31-2014 18:23             10-30-2014 18:44             Error

Red Hat Update Infrastructure 2 (RPMs) (6Server-x86_64)
10-31-2014 18:23             10-30-2014 18:45             Error


Expected results:

ed Hat Enterprise Linux 6 Server from RHUI (RPMs) (6Server-i386)
10-31-2014 19:25             10-31-2014 13:39             Success

Red Hat Enterprise Linux 6 Server from RHUI (RPMs) (6Server-x86_64)
10-31-2014 19:25             10-31-2014 13:45             Success

Red Hat Enterprise Linux 7 Server from RHUI (RPMs) (7Server-x86_64)
10-31-2014 19:25             10-31-2014 13:31             Success


Additional info:

Comment 2 John Matthews 2014-10-31 15:34:05 UTC
Hello,

Please check if the certificate is valid and you are able to fetch content from the CDN.

You may check the certificate against the CDN by running a command like the below
curl -k --cert ${PATH_TO_CERT} https://cdn.redhat.com//content/dist/rhel/rhui/server/6/6Server/x86_64/rhui/2/os/repodata/repomd.xml

Comment 4 Bell IaaS 2014-10-31 15:48:58 UTC
This worked yesterday.... I was able to download the repo. Only started earlier today.



[root@bnhs03rhua01 pulp]# curl -k --cert /root/private/8a85f98148169d2d014822d869b040af.pem  https://cdn.redhat.com//content/dist/rhel/rhui/server/6/6Server/x86_64/rhui/2/os/repodata/repomd.xml
<HTML><HEAD>
<TITLE>Access Denied</TITLE>
</HEAD><BODY>
<H1>Access Denied</H1>

You don't have permission to access "http&#58;&#47;&#47;cdn&#46;redhat&#46;com&#47;content&#47;dist&#47;rhel&#47;rhui&#47;server&#47;6&#47;6Server&#47;x86&#95;64&#47;rhui&#47;2&#47;os&#47;repodata&#47;repomd&#46;xml" on this server.<P>
Reference&#32;&#35;18&#46;f171aad1&#46;1414770078&#46;4666cbb
</BODY>
</HTML>
[root@bnhs03rhua01 pulp]# curl -k --cert /etc/rhui/rhui.crt  https://cdn.redhat.com//content/dist/rhel/rhui/server/6/6Server/x86_64/rhui/2/os/repodata/repomd.xml

Comment 5 John Matthews 2014-10-31 16:25:36 UTC
It appears the certificate you have has been invalidated.

Please regenerate a new RHUI certificate from the customer portal and install on your RHUA.  That should fix your problem.

Please leave a comment on this BZ afterwards to let us know if your issue is resolved.

Thank you,
John

Comment 6 Bell IaaS 2014-10-31 17:15:46 UTC
WOOOOOOOOOOOOOOOOOOOOOO! It appears to have worked.


Red Hat Update Infrastructure 2 (RPMs) (6Server-i386)
10-31-2014 18:23             10-31-2014 17:14             Success

Red Hat Update Infrastructure 2 (RPMs) (6Server-x86_64)
10-31-2014 18:23             10-31-2014 17:14             Success

Comment 7 John Matthews 2014-10-31 17:44:39 UTC
Excellent :)