On Fri, Mar 11, 2011 at 09:40:25AM +0100, Jan Pazdziora wrote: > > By the way, when I've removed some safechecks to actually see some > erratas being created from > > > http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/7/i386/repodata/updateinfo.xml.gz > > I get traceback > > No cheksum found for hydrogen-0.9.3-9.fc7.1.src. Skipping Patch > FEDORA-2007-3554-1.4-channel-ia32 > Traceback (most recent call last): > File "/usr/bin/spacewalk-repo-sync", line 69, in <module> > sys.exit(abs(main() or 0)) > File "/usr/bin/spacewalk-repo-sync", line 63, in main > sync.main() > File > "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py", > line 111, in main > self.import_updates(plugin, url) > File > "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py", > line 146, in import_updates > self.upload_updates(notices) > File > "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py", > line 297, in upload_updates > importer.run() > File > "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/importLib.py", > line 622, in run > self.submit() > File > "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/errataImport.py", > line 196, in submit > dml = self.backend.processErrata(self.batch) > File > "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/backend.py", > line 682, in processErrata > transactional=1) > File > "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/backend.py", > line 1364, in __processObjectCollection > return self.__processObjectCollection__(objColl, parentTable, > childDict, **kwargs) > File > "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/backend.py", > line 1450, in __processObjectCollection__ > _buildExternalValue(extObject, object, parentTableObj) > File > "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/backend.py", > line 1982, in _buildExternalValue > dict[f] = sanitizeValue(entry[attr], datatype) > File > "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/backendLib.py", > line 494, in sanitizeValue > return int(value) > ValueError: invalid literal for int() with base 10: '1.4' > > I assume the 1.4 value is the version you've put to the errata > name as the updateinfo.xml.gz has 1.4 in version -- it starts like > > <?xml version="1.0"?> > <updates> > <update from="bodhiadmin-memb...@fedoraproject.org" status="stable" > type="bugfix" version="1.4"> > <id>FEDORA-2007-2609</id> > <title>filezilla-3.0.2.1-1.fc7</title> > <release>Fedora 7</release> > <issued date="2007-11-20 17:45:27"/> > <references/> > > I further assume that that value somehow gets massaged into epoch > column somewhere, or some other integer field.
It turns out, the e['advisory_rel'] = notice['version'] is at fault -- at least in that Fedora 7 updateinfo, the version is not integer. When I've changed the line to e['advisory_rel'] = 1 things went much better. -- Jan Pazdziora Principal Software Engineer, Satellite Engineering, Red Hat _______________________________________________ Spacewalk-devel mailing list Spacewalk-devel@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-devel