Bug 1401592

Summary: Imported product repository sometimes isn't the one that was selected
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Radek Bíba <rbiba>
Component: RHUAAssignee: bizhang
Status: CLOSED ERRATA QA Contact: Radek Bíba <rbiba>
Severity: high Docs Contact:
Priority: high    
Version: 3.0.0CC: bizhang, pcreech
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-01 22:14:33 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:
Bug Depends On: 1396093    
Bug Blocks:    

Description Radek Bíba 2016-12-05 16:01:55 UTC
Description of problem:
When you use rhui-manager to add a Red Hat repo, you may notice that rhui-manager imports a different repo instead. I've been able to reproduce this behavior with a couple of repos so far.

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

How reproducible:
Always with certain repos. I'd say it happens when there are two architectures for the given repo. See below for an example.

Steps to Reproduce:
1. Run rhui-manager. Log in if necessary.
2. Select 'r' to manage repositories.
3. Select 'a' to add a new Red Hat content repository.
4. Select '3  - By Repository'
5. Select '238: Red Hat Update Infrastructure 2.0 (RPMs) (6Server-x86_64) (Yum)'.
6. Select 'c' to confirm the repo.
7. Select 'y' to proceed.

Actual results:
"Importing product repository Red Hat Update Infrastructure 2.0 (RPMs) (6Server-i386)..."

Expected results:
"Importing product repository Red Hat Update Infrastructure 2.0 (RPMs) (6Server-x86_64)...

Additional info:
Bihan says this might be caused by the way the repos are sorted.

Other examples of this discrepancy are "Red Hat Enterprise Linux Server 6 Optional (RPMs)" and "Red Hat Enterprise Linux Server 5 (Beta RPMs)".

Comment 2 Radek Bíba 2016-12-07 12:40:04 UTC
Fix confirmed in 20161206. The selected repo gets imported as expected. However, because sorting is no longer performed (bug 1396093 failed QA), I'll leave this one in ON_QA because it will need retesting when bug 1396093 is resolved.

Comment 3 Radek Bíba 2016-12-14 11:21:20 UTC
Confirmed again in 20161213, which also resolves the sorting regression. Moving to VERIFIED.

Comment 4 errata-xmlrpc 2017-03-01 22:14:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0367