On 07/12/2013 07:26 PM, Cypher wrote:
Hi guys,
is there a way to import / create errata via the API ? I couldnt seem
to find the right API call.
For Spacewalk there exists a script that parses the centos-announce
mailinglist and creates erratas over the API because the CentOS repo
doesnt have errata like EPEL does.
(
https://github.com/davidnutter/Centos-Errata)
I'd like to port that feature-script to Katello. Maybe using Redhat
OVAL instead of the mailinglist.
If there is no way over the API, I'd appreciate a description on how
errata is layouted in the database.
Best, Phil
_______________________________________________
katello mailing list
katello(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/katello Hi Phil,
There isn't currently a way to create errata via the api within katello
proper, but you can construct a fairly simple XML file within the yum
repository, it will get synced down with the repo. As an added bonus,
the yum security plugin will also utilize it. If you would like more
information on that, let me know.
However, since this is centos you likely don't control the upstream
repo. Talking with the centos guys, there are plans to publish this
file in the future, sounds like there are just some issues that are
being worked out.
If you are adventurous, pulp does provide a way to upload errata
information outside of a repository sync. More info about the api is
provided here:
https://pulp-dev-guide.readthedocs.org/en/latest/rest-api/content/upload....
(although the documentation is very generic).
You can also use the pulp-admin utility to create these using the
'pulp-admin rpm repo uploads erratum' command. Feel free to drop into
#katello or #pulp on freenode if you need assistance.
If you choose to use pulp directly to upload the errata, katello won't
know to reindex the content for faster displaying (so it won't show up
within the UI). If you simply start a new sync of the repo after adding
errata it should reindex everything automatically.
-Justin