Bug 1404033

Summary: when cdn-sync prints "Channel rhel-x86_64-server-7.3.eus has no URL associated", this message is not in the "/var/log/rhn/cdnsync/rhel-x86_64-server-7.3.eus.log"
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: Satellite SynchronizationAssignee: Gennadii Altukhov <galtukho>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Korbel <mkorbel>
Severity: low Docs Contact:
Priority: unspecified    
Version: 580CC: galtukho, mkorbel, tkasparek, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-backend-2.5.3-38-sat Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-21 12:09:41 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:
Bug Depends On:    
Bug Blocks: 1340444    

Description Jan Hutař 2016-12-12 22:17:43 UTC
Description of problem:
When cdn-sync prints "Channel rhel-x86_64-server-7.3.eus has no URL associated", this message is not in the "/var/log/rhn/cdnsync/rhel-x86_64-server-7.3.eus.log"


Version-Release number of selected component (if applicable):
spacewalk-backend-cdn-2.5.3-32.el6sat.noarch


How reproducible:
always


Steps to Reproduce:
1. With cdn-sync-mappings-0.2-1.el6sat.noarch attempt to sync that channel:
   # cdn-sync --no-rpms --no-kickstarts -c rhel-x86_64-server-7.3.eus


Actual results:
# cdn-sync --no-rpms --no-kickstarts -c rhel-x86_64-server-7.3.eus
17:12:13 ======================================
17:12:13 | Channel: rhel-x86_64-server-7.3.eus
17:12:13 ======================================
17:12:13 Sync of channel started.
17:12:13 Channel rhel-x86_64-server-7.3.eus has no URL associated
17:12:13 Sync of channel completed in 0:00:00.
17:12:13 Total time: 0:00:00
# cat /var/log/rhn/cdnsync/rhel-x86_64-server-7.3.eus.log 
2016/12/12 03:52:52 -04:00 Command: ['/usr/bin/cdn-sync', '--no-rpms', '--no-kickstarts', '-c', 'rhel-x86_64-server-7.3.eus']
2016/12/12 03:52:52 -04:00 Sync of channel started.
2016/12/12 03:52:52 -04:00 Sync of channel completed in 0:00:00.


Expected results:
All messages I get on command-line should be in the log file - or at least this one which explains why nothing was synced.

Comment 1 Gennadii Altukhov 2016-12-13 16:26:02 UTC
Taking...

Comment 2 Gennadii Altukhov 2016-12-15 11:04:57 UTC
Patch is available in upstream. spacewalk.git:
6d7f01a05306c18dacd43ef30a2623c23843aa84

Comment 4 Martin Korbel 2017-05-30 13:01:21 UTC
Verified on spacewalk-backend-2.5.3-137

Reproducer: I have to manually simulate this problem with URL, because cdn-mapping is already fixed.


> tail /var/log/rhn/cdnsync/rhel-x86_64-server-7.3.eus.log
2017/05/30 08:59:59 -04:00 Command: ['/usr/bin/cdn-sync', '--no-rpms', '--no-kickstarts', '-c', 'rhel-x86_64-server-7.3.eus']
2017/05/30 08:59:59 -04:00 Sync of channel started.
2017/05/30 08:59:59 -04:00 Channel rhel-x86_64-server-7.3.eus has no URL associated
2017/05/30 09:00:00 -04:00 Sync of channel completed in 0:00:00.