[Spacewalk-list] Unable to sync Red Hat errata incorrect metadata

Jan Dobes jdobes at redhat.com
Thu Oct 6 12:23:28 UTC 2016


Hello,

plan is to release Spacewalk 2.6 in a month.

On 5.10.2016 18:32 Ahmed Sajid wrote:
> Hi,
>
> Jan, thanks for the patch! I assume this will be part of Spacewalk 2.6 release. Do we have a date for the release yet?
>
> Tony, I am doing the following:
>
> cd /var/cache/rhn/reposync/rhel-6-x86_64/
> gunzip c98304f7c9e142a93ff1ef2ef8b70a4ca06fdca3f71efc49bf7e3cdd57cec29c-updateinfo.xml
> sed -i 's/=\([0-9]*\)\(" type="bugzilla" id="\)RH[BSE]A-[0-9]\{4\}:[0-9]\{4\}/=\1\2\1/' c98304f7c9e142a93ff1ef2ef8b70a4ca06fdca3f71efc49bf7e3cdd57cec29c-updateinfo.xml
> # update repomd.xml with new updateinfo.xml
> modifyrepo /var/cache/rhn/reposync/rhel-6-x86_64/c98304f7c9e142a93ff1ef2ef8b70a4ca06fdca3f71efc49bf7e3cdd57cec29c-updateinfo.xml /var/cache/rhn/reposync/rhel-6-x86_64/repodata
>
> And then run spacewalk-repo-sync
>
> I hope this helps.
>
> Thanks,
> Ahmed.
>
> -----Original Message-----
> From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Jan Dobes
> Sent: Wednesday, October 05, 2016 11:40 AM
> To: spacewalk-list at redhat.com
> Subject: Re: [Spacewalk-list] Unable to sync Red Hat errata incorrect metadata
>
> Hello,
>
> I implemented workaround in spacewalk-repo-sync.
>
> https://github.com/spacewalkproject/spacewalk/commit/47d82a693ac26a25970732c10aee8731eb92fe82
>
> On 5.10.2016 17:25 Tony Dufour wrote:
>> Dear Spacewalk users,
>>
>> For weeks now I'm unable to sync Red Hat errata from RHSM, when I perform a reposync I have the following error:
>> ERROR: invalid literal for int() with base 10: 'RHSA-2015:0087'
>>
>> There is an open bug at Red Hat since it seems to be a formatting issue on their side:
>> https://bugzilla.redhat.com/show_bug.cgi?id=1354496
>>
>> But the bug has been opened for quite a month and still no solution.
>> So I'm wondering if a workaround is possible since I really need to get and apply errata on my servers.
>>
>> As described on bug page, I'm able to find and modify the "corrupted" file, for example :
>> /var/cache/rhn/reposync/rhel-6-x86_64/c98304f7c9e142a93ff1ef2ef8b70a4ca06fdca3f71efc49bf7e3cdd57cec29c-updateinfo.xml.gz
>> Gunzip to XML > apply the sed command on bug page > gzip the XML back.
>>
>> But when I have this modified file in /var/cache/reposync I don't know if there's a way to push the errata into my Spacewalk ?
>> Or maybe another workaround is possible ?
>>
>> Any kind of idea or comment will be appreciated :)
>>
>> Best Regards,
>>
>> Tony
>> ________________________________
>>  This message and any attachments are intended solely for the addressees and may contain confidential information. Any unauthorized use or disclosure, either whole or partial, is prohibited.
>> E-mails are susceptible to alteration. Our company shall not be liable for the message if altered, changed or falsified. If you are not the intended recipient of this message, please delete it and notify the sender.
>> Although all reasonable efforts have been made to keep this transmission free from viruses, the sender will not be liable for damages caused by a transmitted virus.
>>
>> _______________________________________________
>> Spacewalk-list mailing list
>> Spacewalk-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>
>


-- 
Jan Dobes
Satellite Engineering, Red Hat




More information about the Spacewalk-list mailing list