Bug 1404033 - 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"
Summary: when cdn-sync prints "Channel rhel-x86_64-server-7.3.eus has no URL associate...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Satellite Synchronization
Version: 580
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Gennadii Altukhov
QA Contact: Martin Korbel
URL:
Whiteboard:
Depends On:
Blocks: 1340444
TreeView+ depends on / blocked
 
Reported: 2016-12-12 22:17 UTC by Jan Hutař
Modified: 2017-06-21 12:09 UTC (History)
4 users (show)

Fixed In Version: spacewalk-backend-2.5.3-38-sat
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-21 12:09:41 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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