Bug 1401488

Summary: Errata no longer imported at the end of reposync in Spacewalk 2.6 while it worked before upgrade in 2.5
Product: [Community] Spacewalk Reporter: Jan-Albert van Ree <j.a.v.ree>
Component: ServerAssignee: Jan Dobes <jdobes>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.5CC: eherget, jdobes, nuno, redhat
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1409576 (view as bug list) Environment:
Last Closed: 2017-09-27 19:28:42 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: 1409576, 1484117    

Description Jan-Albert van Ree 2016-12-05 12:21:05 UTC
Description of problem:

Errata are not imported so while there are many new updates available after a reposync they have no associated erratum

Version-Release number of selected component (if applicable):

spacewalk-backend-tools-2.6.74-1.el7.noarch

How reproducible:

100% by doing a sync

Steps to Reproduce:
1. Upgrade working 2.5 Spacewalk server to 2.6
2. Do a sync of repository with errata such as EPEL

Actual results:

From /var/log/rhn/rhn_taskomatic_daemon.log
INFO   | jvm 1    | 2016/12/05 04:02:42 | 2016-12-05 04:02:41,943 [Thread-32261] ERROR com.redhat.rhn.taskomatic.task.RepoSyncTask - 04:02:41 ERROR: cannot concatenate 'str' and 'int' objects
And no erratum for dec 2016

Expected results:

New errata available dated december 2016

Additional info:

Seen this on 2 servers, both otherwise succesfully upgraded from 2.5 to 2.6 (both running Scientific Linux 7.2 as OS)

Comment 1 Patrick Hurrelmann 2016-12-29 14:13:00 UTC
I tried to fix it with https://github.com/spacewalkproject/spacewalk/pull/497

Comment 2 Jan-Albert van Ree 2016-12-29 22:10:51 UTC
I confirm the fix Patrick posted in Comment 1 solves the issue.

Comment 3 Jan Dobes 2017-01-02 13:54:31 UTC
Reproduced with https://dl.fedoraproject.org/pub/epel/7/x86_64/ repository.

fixed in spacewalk master:

8f15be928e87bff607854aa9543ac39ef90c6d36

I moved the str() in your patch into the fix_notice function - where the conversion to number is performed. Thank you.

Comment 4 Nuno Higgs 2017-06-29 12:32:44 UTC
Is there any information when will this patch be available on the RHEL7 RPM's?

Comment 5 Eric Herget 2017-09-27 19:28:42 UTC
Spacewalk 2.7 has been released.

https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes27