Bug 1449617

Summary: satellite-sync (iss) - enhancements to channel selection
Product: Red Hat Satellite 5 Reporter: Pavel Studeník <pstudeni>
Component: Satellite SynchronizationAssignee: Jan Dobes <jdobes>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Hutař <jhutar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 580CC: jhutar, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-backend-2.5.3-128 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-21 12:14:21 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: 1358815    

Description Pavel Studeník 2017-05-10 11:23:19 UTC
Description of problem:
Channel selection of channels to sync can be improved for inter satellite sync. For example when I want to sync rhel channels with same architecture rhel-x86_64-server-? or I want to sync all rhel channels "rhel-*" from parent.

using:

>> satellite-sync --iss-parent=spaecwalk.hostname.example --no-ssl -c "rhel-x86_64-*"

* 	matches everything
? 	matches any single character
[seq] 	matches any character in seq
[!seq] 	matches any character not in seq

[1] https://docs.python.org/2/library/fnmatch.html

Comment 2 Pavel Studeník 2017-05-10 13:03:25 UTC
Expected behaviour:


>> satellite-sync --iss-parent=hostname.example --no-ssl -c "channeldoesntexist"
...
09:00:34 ERROR: these channels either do not exist or are not available:
09:00:34        channeldoesntexist
09:00:34        (to see a list of channel labels: /usr/bin/satellite-sync --list-channels)


>> satellite-sync --iss-parent=hostname.example --no-ssl -c "channeldoesntexist" -c rhn-tools-rhel-*
...
09:00:34 ERROR: these channels either do not exist or are not available:
09:00:34        channeldoesntexist
09:00:34        (to see a list of channel labels: /usr/bin/satellite-sync --list-channels)


>> satellite-sync --iss-parent=hostname.example --no-ssl -c rhn-tools-rhel-*
...
p = previously imported/synced channel
. = channel not yet imported/synced
e = channel no longer supported (end-of-service)
base-channels:
     NONE RELEVANT                                 
rhel-x86_64-as-4:
   p rhn-tools-rhel-4-as-x86_64               1170       full import from ...
rhel-x86_64-server-5:
   p rhn-tools-rhel-x86_64-server-5            629       full import from ...
rhel-x86_64-server-6:
   p rhn-tools-rhel-x86_64-server-6            195       full import from ...
rhel-x86_64-server-7:
   p rhn-tools-rhel-x86_64-server-7            103       full import from ...
rhel-x86_64-workstation-7:
   p rhn-tools-rhel-x86_64-workstation-7       103       full import from ...
end-of-service:
...

Comment 3 Jan Dobes 2017-05-10 14:30:13 UTC
accepting into spacewalk master:

dc225c1208f14af5b0a5b10c9ca2fd1943b85f80