Bug 1387591

Summary: '(Yum)' is added to repo name when 'add a RH repo by Repository'
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Irina Gulina <igulina>
Component: ToolsAssignee: Patrick Creech <pcreech>
Status: CLOSED NOTABUG QA Contact: Irina Gulina <igulina>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.0.0CC: bizhang, pcreech
Target Milestone: ---   
Target Release: 3.0.0   
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: 2016-11-16 14:32:55 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:

Description Irina Gulina 2016-10-21 10:43:32 UTC
Description of problem:
'(Yum)' is added to the repo name when one wants to add a RH repo and choose Import repositories '3 - By Repository'. '(Yum)' is not added when choosing '1  - All in Certificate' or '2  - By Product'.


Version-Release number of selected component (if applicable):
RHEL6 and RHEL7 RHUI3 Beta1 

How reproducible:
always

Steps to Reproduce:
1. upload the certificate to be able to add RH repos
2. go to a repo screen
3. 'a' - add a new Red Hat content repository
3. '3' - by Repository
5. Notice '(Yum)' in the end of every Repo name string

Actual results:
rhui (repo) => a

Loading latest entitled products from Red Hat...
... listings loaded
Determining undeployed products...
... product list calculated

Import Repositories:
  1  - All in Certificate
  2  - By Product
  3  - By Repository
Enter value (1-3) or 'b' to abort: 3

Select the product repositories to be deployed to the RHUI (only undeployed
products are displayed):
  Red Hat Enterprise Linux 5 Update Infrastructure MRG 2.0 (SRPMS)
    -  1 : Red Hat Enterprise Linux 5 Update Infrastructure MRG 2.0 (SRPMS) (5Server-x86_64) (Yum)
    -  2 : Red Hat Enterprise Linux 5 Update Infrastructure MRG 2.0 (SRPMS) (5Server-i386) (Yum)

  Red Hat Storage 2 VSA Beta (RPMs) from RHUI
    -  3 : Red Hat Storage 2 VSA Beta (RPMs) from RHUI (x86_64) (Yum)

  RHEL RHUI Server 7 Rh-common OS
    -  4 : RHEL RHUI Server 7 Rh-common OS (7Server-x86_64) (Yum)

  RHEL RHUI Server 6 Rhscl 1 Debug
    -  5 : RHEL RHUI Server 6 Rhscl 1 Debug (6Server-i386) (Yum)
    -  6 : RHEL RHUI Server 6 Rhscl 1 Debug (6Server-x86_64) (Yum)

  RHEL RHUI Server 7 Optional Debug
    -  7 : RHEL RHUI Server 7 Optional Debug (7Server-x86_64) (Yum)

  RHEL RHUI Server 7 Source Srpms
    -  8 : RHEL RHUI Server 7 Source Srpms (7Server-x86_64) (Yum)

  RHEL RHUI Server 6 Rhs-server 3 Debug
    -  9 : RHEL RHUI Server 6 Rhs-server 3 Debug (6Server-x86_64) (Yum)
    -  10: RHEL RHUI Server 6 Rhs-server 3 Debug (6Server-i386) (Yum)

  Red Hat Storage 2.0 for RHUI Scalable Filesystem 6.2 (RPMs)
    -  11: Red Hat Storage 2.0 for RHUI Scalable Filesystem 6.2 (RPMs) (x86_64) (Yum)

  RHEL RHUI Server 6 Rhs-server 3 OS
    -  12: RHEL RHUI Server 6 Rhs-server 3 OS (6Server-i386) (Yum)
    -  13: RHEL RHUI Server 6 Rhs-server 3 OS (6Server-x86_64) (Yum)


Expected results:
Do we really need '(Yum)' there? That '(Yum)' is not displayed when listing repositories or detailed info on a repo. E.g.:
rhui (repo) => l

Red Hat Repositories
  Red Hat Update Infrastructure 2.0 (RPMs) (6Server-i386)
  Red Hat Update Infrastructure 2.0 (RPMs) (6Server-x86_64)


------------------------------------------------------------------------------
rhui (repo) => i

Select one or more repositories:

  Custom Repositories

  Red Hat Repositories
    -  1 : Red Hat Update Infrastructure 2.0 (RPMs) (6Server-i386)
    -  2 : Red Hat Update Infrastructure 2.0 (RPMs) (6Server-x86_64)

Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: 1-2

Select one or more repositories:

  Custom Repositories

  Red Hat Repositories
    x  1 : Red Hat Update Infrastructure 2.0 (RPMs) (6Server-i386)
    x  2 : Red Hat Update Infrastructure 2.0 (RPMs) (6Server-x86_64)

Enter value (1-2) to toggle selection, 'c' to confirm selections, or '?' for more commands: c


Name:                Red Hat Update Infrastructure 2.0 (RPMs) (6Server-i386)
Type:                Red Hat
Relative Path:       content/dist/rhel/rhui/server/6/6Server/i386/rhui/2.0/os
GPG Check:           Yes
Custom GPG Keys:     (None)
Red Hat GPG Key:     Yes
Package Count:       0
Last Sync:           Never
Next Sync:           10-21-2016 12:41

Name:                Red Hat Update Infrastructure 2.0 (RPMs) (6Server-x86_64)
Type:                Red Hat
Relative Path:       content/dist/rhel/rhui/server/6/6Server/x86_64/rhui/2.0/os
GPG Check:           Yes
Custom GPG Keys:     (None)
Red Hat GPG Key:     Yes
Package Count:       0
Last Sync:           Never
Next Sync:           10-21-2016 12:41



Additional info: '(Yum)' is not added to a repo name when 'add a RH repo by '1  - All in Certificate' or '2  - By Product'.

Comment 2 Irina Gulina 2016-11-16 08:36:06 UTC
Patrick, I reported this BZ when we didn't have Atomic/OSTree repos. Now if the cert contains Atomic/OSTree repos and one wants to 'a - add a RH content repo, 3 - by repository', (Atomic) and (Yum) is shown next to the repos' names. 

  RHEL RHUI Server 6 6server X86_64 Jbeap 7.0 Debug
    -  161: RHEL RHUI Server 6 6server X86_64 Jbeap 7.0 Debug (Yum)
 
  Beta RHEL RHUI Everything 7 Debug
    -  162: Beta RHEL RHUI Everything 7 Debug (x86_64) (Yum)
 
  RHEL RHUI Atomic 7 Ostree Repo
    -  163: RHEL RHUI Atomic 7 Ostree Repo (Version 7.3) (Atomic)
 
  RHEL RHUI Server 6 Oso 2 OS
    -  164: RHEL RHUI Server 6 Oso 2 OS (6Server-x86_64) (Yum)
    -  165: RHEL RHUI Server 6 Oso 2 OS (6Server-i386) (Yum)
 
The question is whether to keep the fix for this BZ (as neither Yum nor Atomic is shown in build 20161115) or revoke it and display (Atomic) and (Yum) next to the repo names.

Comment 3 Irina Gulina 2016-11-16 14:32:55 UTC
Reverted based on comment #2