nicolas-r / katello-centos-errata-import

Imports CentOS (from http://cefs.steve-meier.de/) errata into Katello
28 stars 11 forks source link

Errata info is processed and obviously assigned to rpms, but not imported #13

Open ronnybremer opened 3 years ago

ronnybremer commented 3 years ago

I see debug info with the correct RPMs being associated to the errata, but it will not be imported into Katello 3.17. Here is an extract of the log:

2020-12-01 19:20:43,591 :: DEBUG :: Processing errata CESA-2020:3906
2020-12-01 19:20:43,591 :: DEBUG :: Working on OS release 7
2020-12-01 19:20:43,591 :: DEBUG :: Packages list for errata CESA-2020:3906 for OS release 7: ['qemu-img-1.5.3-175.el7.x86_64.rpm', 'qemu-kvm-1.5.3-175.el7.x86_64.rpm', 'qemu-kvm-common-1.5.3-175.el7.x86_64.rpm', 'qemu-kvm-tools-1.5.3-175.el7.x86_64.rpm']
2020-12-01 19:20:43,591 :: DEBUG :: Working on repository CentOS_7

2020-12-01 19:20:43,593 :: DEBUG :: Processing errata CESA-2020:3714
2020-12-01 19:20:43,593 :: DEBUG :: Working on OS release 7
2020-12-01 19:20:43,593 :: DEBUG :: Packages list for errata CESA-2020:3714 for OS release 7: None

2020-12-01 19:20:43,593 :: DEBUG :: Processing errata CEBA-2020:3897
2020-12-01 19:20:43,593 :: DEBUG :: Working on OS release 7
2020-12-01 19:20:43,594 :: DEBUG :: Packages list for errata CEBA-2020:3897 for OS release 7: ['screen-4.1.0-0.26.20120314git3c2946.el7.x86_64.rpm']
2020-12-01 19:20:43,594 :: DEBUG :: Working on repository CentOS_7

2020-12-01 19:20:43,594 :: DEBUG :: Processing errata CEBA-2020:3992
2020-12-01 19:20:43,594 :: DEBUG :: Working on OS release 7
2020-12-01 19:20:43,594 :: DEBUG :: Packages list for errata CEBA-2020:3992 for OS release 7: ['pykickstart-1.99.66.22-1.el7.noarch.rpm']
2020-12-01 19:20:43,594 :: DEBUG :: Working on repository CentOS_7

2020-12-01 19:20:43,595 :: INFO :: 0 errata(s) added to CentOS_7
2020-12-01 19:20:43,595 :: INFO :: Start the synchonization for CentOS_7
2020-12-01 19:20:43,601 :: DEBUG :: Starting new HTTPS connection (1): aibsll17.bsl.ch.almanid.com:443
2020-12-01 19:20:45,525 :: DEBUG :: https://foreman.local.lan:443 "POST /katello/api/v2/repositories/1/sync HTTP/1.1" 202 None
2020-12-01 19:20:45,533 :: INFO :: Task id: 288f740e-5d22-41cb-bc34-06f9341a9a72, started at: 2020-12-01 18:20:43 UTC, state: planned

No errors are shown and the Katello task is correctly executed without errors too. The repo is the CentOS 7 repo and I checked for the RPMs, they are all in there. What am I missing?

Nascire commented 3 years ago

I have the same issue, and after some troubleshooting, this is my current knowledge:

The part searching for the packages in the repositories has problems, as the list of packages from Katello gets returned with "Packages/....". I managed to work around this by editing the code, which leads to another problem - with 3.17 it uses Pulp3, which cannot be administered by pulp-admin.

So, until someone find´s a way to publish errata directly via API, none of the "old" tools can be used.

ronnybremer commented 3 years ago

I see, thank you for the update. I will check on the Foreman/Katello forums, if there is any current solution.

thefretrunner commented 3 years ago

I downgraded to 3.14 to solve this. I do believe you can configure Foreman to use pulp2 but I have not tried it yet.