Bug 1642925 - ScanCdn task displays inconsistent results
Summary: ScanCdn task displays inconsistent results
Keywords:
Status: CLOSED DUPLICATE of bug 1630548
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Repositories
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Roman Plevka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-25 10:23 UTC by Roman Plevka
Modified: 2018-10-26 21:03 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-26 21:03:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.