Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1867934

Summary: List of a repository set's available repositories does not include 6Server
Product: Red Hat Satellite Reporter: Stephen Wadeley <swadeley>
Component: RepositoriesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Stephen Wadeley <swadeley>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: jsherril
Target Milestone: 6.8.0Keywords: Regression, Triaged
Target Release: Unused   
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: 2020-08-20 18:10:27 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 Stephen Wadeley 2020-08-11 08:47:26 UTC
Description of problem:

Hammer and API checks for a repository-set's available-repositories does not return 6Server in the list

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

~]# rpm -q satellite
satellite-6.8.0-0.7.beta.el7sat.noar

How reproducible:
Test fails every time.
https://github.com/SatelliteQE/robottelo/blob/9a54d8feb91f433a315f840137289fb4b133ad56/tests/foreman/api/test_repository_set.py#L39

Steps to Reproduce:
1. Enable this repo:

Red Hat Enterprise Virtualization Agents for RHEL 6 Server RPMs x86_64 6Server 
rhel-6-server-rhev-agent-rpms

2. Confirm its enabled:

~]# hammer --csv repository list --organization-id 83
Id,Name,Product,Content Type,URL
266,Red Hat Enterprise Virtualization Agents for RHEL 6 Server RPMs x86_64 6Server,Red Hat Enterprise Linux Server,yum,https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/rhev-agent/3/os

3. List available-repositories:

~]# hammer --csv repository-set available-repositories --name "Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs)" --product "Red Hat Enterprise Linux Server" --organization-id 83
Name,Arch,Release,Enabled
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6.10,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6.8,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6.1,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),i386,6.10,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),i386,6.8,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),i386,6.1,false

Actual results:

This line is missing from above list:
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6Server,true


Expected results:
As onn Satellite 6.7

[root@dhcp-3-77 ~]# hammer --csv repository list --organization-id 7
Id,Name,Product,Content Type,URL
44,Red Hat Enterprise Virtualization Agents for RHEL 6 Server RPMs x86_64 6Server,Red Hat Enterprise Linux Server,yum,https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/rhev-agent/3/os
[root@dhcp-3-77 ~]# hammer --csv repository-set available-repositories --name "Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs)" --product "Red Hat Enterprise Linux Server" --organization-id 7
Name,Arch,Release,Enabled
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6Server,true
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6.10,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6.9,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6.8,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6.7,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6.6,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6.5,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6.4,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6.3,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6.2,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6.1,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),i386,6Server,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),i386,6.10,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),i386,6.9,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),i386,6.8,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),i386,6.7,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),i386,6.6,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),i386,6.5,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),i386,6.4,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),i386,6.3,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),i386,6.2,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),i386,6.1,false

Comment 3 Stephen Wadeley 2020-08-12 08:33:22 UTC
Hello

seems the cause is change in Satellite

"Resource Type does not have blank selection anymore in the role filters page. It's changed to '(Miscellaneous)' when creating a role for a user for access_dashboard."[1]

After pulling in the changes from [1] my API test passes

[1]
Filter: Resourch Type changes for roles #7928
https://github.com/SatelliteQE/robottelo/pull/7928/files

Comment 4 Stephen Wadeley 2020-08-12 08:38:14 UTC
further to comment 3

I think this is now just a Hammer issue

[root@cloud-qe-20 ~]# hammer --csv repository list --organization-id 85
Id,Name,Product,Content Type,URL
268,Red Hat Enterprise Virtualization Agents for RHEL 6 Server RPMs x86_64 6Server,Red Hat Enterprise Linux Server,yum,https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/rhev-agent/3/os
[root@cloud-qe-20 ~]# hammer --csv repository-set available-repositories --name "Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs)" --product "Red Hat Enterprise Linux Server" --organization-id 85
Name,Arch,Release,Enabled
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6.10,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6.8,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),x86_64,6.1,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),i386,6.10,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),i386,6.8,false
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs),i386,6.1,false

Comment 5 Stephen Wadeley 2020-08-12 17:50:13 UTC
(In reply to Stephen Wadeley from comment #3)
> Hello
> 
> seems the cause is change in Satellite
> 
> "Resource Type does not have blank selection anymore in the role filters
> page. It's changed to '(Miscellaneous)' when creating a role for a user for
> access_dashboard."[1]
> 
> After pulling in the changes from [1] my API test passes
> 
> [1]
> Filter: Resourch Type changes for roles #7928
> https://github.com/SatelliteQE/robottelo/pull/7928/files

Posted to soon, the change that fixed the API test was this

Fix API permission search for name and resource_type #7885 
https://github.com/SatelliteQE/robottelo/pull/7885/files

Comment 6 Justin Sherrill 2020-08-20 18:10:27 UTC

*** This bug has been marked as a duplicate of bug 1838917 ***