Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1427993

Summary: cdn-sync: can't sync available child channel if parent channel is unavailable
Product: Red Hat Satellite 5 Reporter: Pavel Studeník <pstudeni>
Component: Satellite SynchronizationAssignee: Jan Dobes <jdobes>
Status: CLOSED DEFERRED QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 580CC: 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: 2018-04-09 15:27:31 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1450940    

Description Pavel Studeník 2017-03-01 16:34:39 UTC
Description of problem:
I created new manifest and activated Satellite  5.8 with this manifest. Everything looks good, because when I show list of channels then I see what I need. For example "redhat-rhn-satellite-5.6-server-s390x-5" in "rhel-s390x-server-6". But when I try to sync this channel I receive error 

>> cdn-sync -c redhat-rhn-satellite-5.6-server-s390x-5
SYNC ERROR: Invalid import, this parents need to be imported: rhel-s390x-server-5. Exiting.

I try to sync base channel and I receive  "these channels either do not exist or are not available". and "to see a list of channel labels: /usr/bin/cdn-sync --list-channels". But I see the channel in list of labels. 

>> cdn-sync -c rhel-s390x-server-6
ERROR: these channels either do not exist or are not available:
  rhel-s390x-server-6
(to see a list of channel labels: /usr/bin/cdn-sync --list-channels)

I allow sync child channel "redhat-rhn-satellite-5.7-server-s390x-6" but i couldn't because missing "rhel-s390x-server-6".

I think that I should be notify about missing base cahne

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

How reproducible:
always

Steps to Reproduce:
1. create manifest with child channel without base channel
2. >> cdn-sync -l | grep rhel-s390x-server-6
11:18:29 rhel-s390x-server-6:
3. >> cdn-sync -c rhel-s390x-server-6
ERROR: these channels either do not exist or are not available:
  rhel-s390x-server-6
(to see a list of channel labels: /usr/bin/cdn-sync --list-channels)


Actual results:
Child channels are shown in list of channels but it is not possible to sync them.

Expected results:
Some solutions:

1) I see only channels that are possible to sync
2) Empty base channel is created for this child channel
3) I see warning that child channels can't be sync without base channel.

Comment 2 Jan Dobes 2017-05-18 15:28:23 UTC
This is expected. According to "cdn-sync -l" you are not allowed to list the base channel. However, if RHSM allows such product configurations in Satellite manifest resulting in this state where we are blocked by Satellite 5 channel 2-level design. Such cases could be possibly solved by allowing to create empty base channel without any content only as a placeholder to be able to sync available child products.

Comment 3 Tomas Lestach 2018-04-09 15:27:31 UTC
We have re-reviewed this bug, as part of an ongoing effort to improve Satellite/Proxy feature and bug updates, review and backlog.

This is a low priority bug and has no currently open customer cases. While this bug may still valid, we do not see it being implemented prior to the EOL of the Satellite 5.x product. As such, this is being CLOSED DEFERRED. 

Closing now to help set customer expectations as early as possible. You are welcome to re-open this bug if needed.