"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?
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>?
@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).
@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)