Bug 1591128 - [Sat5.8] "cdn-sync -l" displays a package count that does not match with the WEBUI
Summary: [Sat5.8] "cdn-sync -l" displays a package count that does not match with the...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Satellite Synchronization
Version: 580
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat58-errata
TreeView+ depends on / blocked
 
Reported: 2018-06-14 06:46 UTC by jalviso
Modified: 2021-09-09 14:34 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-13 15:01:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 1 Jan Dobes 2018-06-14 12:51:57 UTC
"cdn-sync -l" in 5.8 shows cached packages numbers. If you run "cdn-sync --count-packages" first, are correct package counts displayed in the list then?

Comment 2 Tomas Lestach 2018-06-14 13:52:35 UTC
I thing the 'cache' gets refreshed also with cdn-sync -c <channel> for that particular channel.
What do you get if you run cdn-sync -l right after cdn-sync -c <channel>?

Comment 3 jalviso 2018-06-15 00:19:21 UTC
@Tomas on Comment#2:

- So when I run 

# cdn-sync -c rhel-x86_64-server-6
19:30:36 ======================================
19:30:36 | Channel: rhel-x86_64-server-6
19:30:36 ======================================
19:30:36 Sync of channel started.
19:30:37 
19:30:37   Processing repository with URL: https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os
19:30:50     Packages in repo:             20096
:

- The output for "cdn-sync -l" is:

# cdn-sync -l

19:40:29     p rhel-x86_64-server-6                20031 packages   (38.9G)
:
19:40:30     p rhel-x86_64-server-7                20127 packages   (27.4G)

@Jan on Comment#1

- After I run "cdn-sync --count-packages" the output is:

# cdn-sync -l

:
20:08:56     p rhel-x86_64-server-6                  20031 packages   (38.9G)
:
20:08:56     p rhel-x86_64-server-7                  20501 packages   (28.4G)

- RHEL6 package number remains the same (wrong count) as before running with
  option "--count-packages"

- RHEL7 interestingly has package count changed: from 20127 to 20501
  However, from the WEBUI, it shows 20490 (info provided in Description).

Comment 4 jalviso 2018-06-15 01:20:53 UTC
@Jan, further info, after I synced RHEL7, it displays correct number in WEBUI and "cdn-sync -l". The issue persisting is with RHEL6 (removing reposync cache does not help either):

# rm -rf /var/cache/rhn/reposync/NULL/rhel-6-server-rpms__6Server__x86_64/*
# cdn-sync -c rhel-x86_64-server-6
20:39:04 ======================================
20:39:04 | Channel: rhel-x86_64-server-6
20:39:04 ======================================
20:39:04 Sync of channel started.
20:39:05 
20:39:05   Processing repository with URL: https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os
20:39:40     Packages in repo:             20096
:

# rm -rf /var/cache/rhn/reposync/NULL/rhel-7-server-rpms__7Server__x86_64/*
# cdn-sync -c rhel-x86_64-server-7
20:55:33 ======================================
20:55:33 | Channel: rhel-x86_64-server-7
20:55:33 ======================================
20:55:33 Sync of channel started.
20:55:33 
20:55:33   Processing repository with URL: https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os
20:55:44     Packages in repo:             20501
20:57:47     Packages already synced:      20490
20:57:47     Packages to sync:                11
20:57:47     New packages to download:        11
20:57:47   Downloading packages:
20:57:49     1/11 : kernel-3.10.0-862.3.3.el7.x86_64.rpm
20:57:50     2/11 : kernel-doc-3.10.0-862.3.3.el7.noarch.rpm
20:57:51     3/11 : kernel-headers-3.10.0-862.3.3.el7.x86_64.rpm
20:57:52     4/11 : kernel-debug-devel-3.10.0-862.3.3.el7.x86_64.rpm
20:57:52     5/11 : kernel-tools-3.10.0-862.3.3.el7.x86_64.rpm
20:57:53     6/11 : kernel-tools-libs-3.10.0-862.3.3.el7.x86_64.rpm
20:57:53     7/11 : perf-3.10.0-862.3.3.el7.x86_64.rpm
20:57:54     8/11 : python-perf-3.10.0-862.3.3.el7.x86_64.rpm
20:57:54     9/11 : kernel-debug-3.10.0-862.3.3.el7.x86_64.rpm
20:57:59     10/11 : kernel-abi-whitelists-3.10.0-862.3.3.el7.noarch.rpm
20:58:10     11/11 : kernel-devel-3.10.0-862.3.3.el7.x86_64.rpm
20:58:11 
20:58:11   Importing packages to DB:
               Importing packages:     |####
:

# cdn-sync -l
:
21:16:40     p rhel-x86_64-server-6                                    20031 packages   (38.9G)
:
21:16:40     p rhel-x86_64-server-7                                    20501 packages   (28.4G)


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