[Spacewalk-list] Repositories fail to sync

Dimitar Yordanov dyordano at redhat.com
Wed Oct 1 13:05:33 UTC 2014


Hi all, 

 Sorry for the trouble.
 For the new SW release spacewalk-repo-sync was enhanced with several new features, and this issue was discovered right after the release and addressed in:
 Bug 1128893 - spacewalk-repo-sync does not work for channels that are children of non-custom parents
 https://bugzilla.redhat.com/show_bug.cgi?id=1128893

Dimi

----- Original Message -----
> From: "John Trump" <trumpjk at gmail.com>
> To: spacewalk-list at redhat.com
> Sent: Monday, September 29, 2014 5:15:02 PM
> Subject: Re: [Spacewalk-list] Repositories fail to sync
> 
> Actually the following command fails no matter what options I try:
> 
> 
> 
> /usr/bin/spacewalk-repo-sync
> 
> Traceback (most recent call last):
> 
> File "/usr/bin/spacewalk-repo-sync", line 187, in <module>
> 
> sys.exit(abs(main() or 0))
> 
> File "/usr/bin/spacewalk-repo-sync", line 107, in main
> 
> l_ch_custom=reposync.getCustomChannels()
> 
> File
> "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py",
> line 99, in getCustomChannels
> 
> d_parents = getParentsChilds()
> 
> File
> "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py",
> line 93, in getParentsChilds
> 
> d_parents[parent_channel].append(row['label'])
> 
> KeyError: 'rhel-x86_64-server-6'
> 
> On Mon, Sep 29, 2014 at 11:07 AM, John Trump < trumpjk at gmail.com > wrote:
> 
> 
> 
> Can't find it in git repo. Hopefully someone will view posting and have
> suggestions. Everything worked prior to upgrading.
> 
> On Sat, Sep 27, 2014 at 4:43 AM, Alexander Innes < senni at necurity.co.uk >
> wrote:
> 
> 
> 
> Humm that could be just because im on centos rather than RH,
> 
> The git / svn should have it in :) not sure where that lives nowadays
> 
> On 26 September 2014 17:31, John Trump < trumpjk at gmail.com > wrote:
> 
> 
> 
> Where can I download the current reposync.py file?
> 
> On Fri, Sep 26, 2014 at 11:16 AM, John Trump < trumpjk at gmail.com > wrote:
> 
> 
> 
> 
> 
> /usr/lib/python2.6/site-packages/spacewalk/satellite_tools
> 
> md5sum reposync.py
> 
> b1b9cc03f214e831618f2342fa30e922 reposync.py
> 
> On Fri, Sep 26, 2014 at 10:37 AM, Alexander Innes < senni at necurity.co.uk >
> wrote:
> 
> 
> 
> Hmm, any different error messages when you do it manually? Off top of my head
> : Is disk space okay? / whats the md5sum o reposync, it could have not been
> updated (maybe :s?)
> 
> 6ed54a17e9f3953054d36a02d5968b49
> /usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py
> (sorry I can't of be more help!)
> 
> On 26 September 2014 15:06, John Trump < trumpjk at gmail.com > wrote:
> 
> 
> 
> Yes, tried manually and it fails.
> 
> On Fri, Sep 26, 2014 at 3:15 AM, Alexander Innes < senni at necurity.co.uk >
> wrote:
> 
> 
> 
> you tried syncing it manually?
> 
> $ spacewalk-repo-sync --channel centos_6.5_x64_updates
> 
> On 25 September 2014 21:21, John Trump < trumpjk at gmail.com > wrote:
> 
> 
> 
> I recently upgraded to spacewalk 2.2 from 1.8. When I try to sync custom
> channels I get the following:
> 
> Traceback (most recent call last):
> File "/usr/bin/spacewalk-repo-sync", line 187, in <module>
> sys.exit(abs(main() or 0))
> File "/usr/bin/spacewalk-repo-sync", line 107, in main
> l_ch_custom=reposync.getCustomChannels()
> File
> "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py",
> line 99, in getCustomChannels
> d_parents = getParentsChilds()
> File
> "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py",
> line 93, in getParentsChilds
> d_parents[parent_channel].append(row['label'])
> KeyError: 'rhel-x86_64-server-6'
> 
> 
> Any suggestions on how to solve this?
> 
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
> 
> 
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
> 
> 
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
> 
> 
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
> 
> 
> 
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
> 
> 
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
> 
> 
> 
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list

-- 
Dimitar Yordanov
System Management Quality Engineer
Red Hat Satellite | Spacewalk 





More information about the Spacewalk-list mailing list