Bug 1399645

Summary: cdn-sync does not work with --no-rpms but NO --no-packages
Product: Red Hat Satellite 5 Reporter: Lukáš Hellebrandt <lhellebr>
Component: Satellite SynchronizationAssignee: Jan Dobes <jdobes>
Status: CLOSED DUPLICATE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 580CC: jdobes, lhellebr, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-20 10:28:45 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 Lukáš Hellebrandt 2016-11-29 13:48:49 UTC
Description of problem:
When running cdn-sync with --no-rpms argument but without --no-packages argument:
1) The packages are not visible in WebUI (while the correct behavior is they are shown but not downloaded/downloadable)
2) The command itself ends "successfully" but with error message (shown for cdn-sync -c rhel-x86_64-server-6 --no-kickstarts --no-errata --no-rpms):
---
08:28:39 failure: Packages/389-ds-base-1.2.11.15-65.el6_7.x86_64.rpm from content_dist_rhel_server_6_6Server_x86_64_os: [Errno 256] No more mirrors to try.
08:28:39 ERROR: failure: Packages/389-ds-base-1.2.11.15-65.el6_7.x86_64.rpm from content_dist_rhel_server_6_6Server_x86_64_os: [Errno 256] No more mirrors to try.
---

How reproducible:
Deterministic

Steps to Reproduce:
1. cdn-sync -c rhel-x86_64-server-6 --no-kickstarts --no-errata --no-rpms
2. View channel packages in WebUI, there are none
3. Notice the command, although ending with "08:28:39 Sync of channel completed in..." and returning 0, shows error mentioned above.

Actual results:
cdn-sync actually fails

Expected results:
No error message, packages in WebUI

Comment 6 Jan Dobes 2016-12-20 10:28:45 UTC

*** This bug has been marked as a duplicate of bug 1397427 ***