Bug 1642925

Summary: ScanCdn task displays inconsistent results
Product: Red Hat Satellite Reporter: Roman Plevka <rplevka>
Component: RepositoriesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Roman Plevka <rplevka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: cdonnell
Target Milestone: UnspecifiedKeywords: PrioBumpGSS
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: 2018-10-26 21:03:25 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 Roman Plevka 2018-10-25 10:23:19 UTC
Description of problem:
the backend CDN response is probably paginated with unordered set. It also seems to limit the number of results per page to 14.

this leads to inconsitent results from scancdn task for each run.


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

How reproducible:
always

Steps to Reproduce:
1. upload the manifest
2. pick some reposet that contains many (>14) repos
3. try to list the available repos continuously
3b. give it some delay between the retries as cdn seems to deny the service when polled too often (causing hammer to return an empty set)
4. observe the results differ (in below example, the 6Server release is not shown in the first output, but appears in the last one, while 
6.4 disappears)


# hammer -v -u admin -p changeme repository-set available-repositories --name="Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs)" --organization-id="88" --product-id="1761"
------------------------------------------------------------------|--------|---------|---------------|--------
NAME                                                              | ARCH   | RELEASE | REGISTRY NAME | ENABLED
------------------------------------------------------------------|--------|---------|---------------|--------
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | i386   | 6.1     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | x86_64 | 6.1     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | i386   | 6.4     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | x86_64 | 6.4     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | i386   | 6.5     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | x86_64 | 6.5     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | i386   | 6.6     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | x86_64 | 6.6     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | i386   | 6.7     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | x86_64 | 6.7     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | i386   | 6.8     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | x86_64 | 6.8     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | x86_64 | 6.9     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | i386   | 6.9     |               | no     
------------------------------------------------------------------|--------|---------|---------------|--------
[root@qe-sat63-rhel7-tier3 ~]# 
[root@qe-sat63-rhel7-tier3 ~]# hammer -v -u admin -p changeme repository-set available-repositories --name="Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs)" --organization-id="88" --product-id="1761"
-----|------|---------|---------------|--------
NAME | ARCH | RELEASE | REGISTRY NAME | ENABLED
-----|------|---------|---------------|--------
[root@qe-sat63-rhel7-tier3 ~]# hammer -v -u admin -p changeme repository-set available-repositories --name="Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs)" --organization-id="88" --product-id="1761"
------------------------------------------------------------------|--------|---------|---------------|--------
NAME                                                              | ARCH   | RELEASE | REGISTRY NAME | ENABLED
------------------------------------------------------------------|--------|---------|---------------|--------
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | i386   | 6.1     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | x86_64 | 6.1     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | i386   | 6.5     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | x86_64 | 6.5     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | i386   | 6.6     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | x86_64 | 6.6     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | i386   | 6.7     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | x86_64 | 6.7     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | i386   | 6.8     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | x86_64 | 6.8     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | x86_64 | 6.9     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | i386   | 6.9     |               | no     
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | x86_64 | 6Server |               | yes    
Red Hat Enterprise Virtualization Agents for RHEL 6 Server (RPMs) | i386   | 6Server |               | no     
------------------------------------------------------------------|--------|---------|---------------|--------



Actual results:
inconsistent output, user can't see all the available repos

Expected results:
all of the repos are shown

Additional info:

Comment 1 Roman Plevka 2018-10-25 10:36:09 UTC
6.4 seems not to have this issue, but i was unable to track down the BZ

Comment 3 Brad Buckingham 2018-10-26 21:03:25 UTC

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