Description of problem: Export of channel to directory which already contains export of another (group of) channels may break satellite-sync. This kind of incremental export should work. Version-Release number of selected component (if applicable): spacewalk-backend-tools-0.5.28-13.el4sat How reproducible: always Steps to Reproduce: 1. install 2 satellites, sat1 registered to webqa, sa2 disconnected make sure you have entitlements for rhel-i386-server-5 and rhel-i386-server-5.0.z on both satellites as root@sat1: 2. sync rhel-i386-server-5 and rhel-i386-server-5.0.z channel from webqa 3. rhn-satellite-exporter -c rhel-i386-server-5 -d /shared/dir 4. rhn-satellite-exporter -c rhel-i386-server-5.0.z -d /shared/dir as root@sat2: 5. satelilte-sync -c rhel-i386-server-5 -d /shared/dir 6. satelilte-sync -c rhel-i386-server-5.0.z -d /shared/dir as root@sat1: 7. rhn-satellite-exporter -c rhel-i386-server-5 -d /shared/dir as root@sat2: 8. satelilte-sync -c rhel-i386-server-5 -d /shared/dir 9. satelilte-sync -c rhel-i386-server-5.0.z -d /shared/dir Actual results: 1.- 4. ok 5. ... ERROR: you are not entitled to sync a channel in this set of channels. Please contact your sales rep or RHN contact rhel-i386-server-5 6. ok (rhel-i386-server-5.0.z synced) 7. ok 8. ok (this time rhel-i386-server-5 synced) 9. ... ERROR: you are not entitled to sync a channel in this set of channels. Please contact your sales rep or RHN contact rhel-i386-server-5.0.z Expected results: both channels synced ok everytime Additional info: see channel_families.xml.gz
Created attachment 344167 [details] channel_families.xml.gz from step 4.
Created attachment 344397 [details] channel_families.xml.gz from step 7.
IMHO channel_families.xml.gz should not be overwritten but new channel families should be appended to the file.
Prad, how hard would this be to fix? We know its not a regression from previous behavior, but its still bad.
Yea currently we don't support appending new exports to existing exported directory. If you point to an already existing directory, it will obviously overwrite. If you want to include multiple channel the use case is do $ rhn-satellite-export -c ch1 -c ch2 I dont see an easy non hacky way to fix this for 530. This will need some rewrite to the Channel family dumper.
is this going to be fixed? Ran into this today - at least there should be a warning from the export if it is not fixed.
Fixed in Spacewalk master d860824b6db4787aa6e0f9d53a9bb479bee43466.
satellite.git: 44ef9849b594d3af16c62d2abb1877b8109d9cc3
spacewalk-backend-0.5.28-40.1
Taking.
spacewalk-backend-0.5.28-48
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0160.html