[Spacewalk-list] child channel packages is not replicated

Tomas Lestach tlestach at redhat.com
Wed Dec 9 17:37:09 UTC 2015


If you export to /var/satellite/sync/ directory,
you should satellite-sync from the same directory, not from 
/var/satellite/dump/var/satellite/sync


Try using API for getting number of packages - like channel.listAllChannels or similar.


Regards,
--
Tomas Lestach
Red Hat Satellite Engineering, Red Hat


----- Original Message -----
> Hi All
> 
> i have got 2 questions:
> 
> 1)I am writing script to replicate satellite 5.6 to spacewalk 2.2 in dmz
> I am using the below commands on the script :
> i=base channel label
> 
> exporting the channel on satellite
> rhn-satellite-exporter --hard-links -c $i --dir=/var/satellite/sync/
> copy the dump to dmz spacwalk ,and import it
> satellite-sync --mount-point=/var/satellite/dump/var/satellite/sync -c '$i'\
> 
> the base channel was replicated and the number of packages on the existing
> base
> channel was updated .
> 
> but while i am running the same commands to replicated the child channels
> of the above mail
> 
> the package count on the child channel ,didn't got updated
> i was trying to add the following arguments to the satellite-sync command:
> satellite-sync --force-all-packages
> --mount-point=/var/satellite/dump/var/satellite/sync -c '$i'\
> but it didn't got no deference ,the package count wasn't updated.
> 
> Please let me know ,how to make it work
> 
> 2) in that script ,i am checking the number of packages on a channel
> and replicating accordingly .
> i am using this methods to get the package count:
> spacewalk-report channel-packages |grep $i |wc -l
> 
> is there more graceful way to get the package count per channel .
> 
> Thanks
> 
> Max_il
> 
> 
> 
> 
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list




More information about the Spacewalk-list mailing list