-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No longer compatible with Uyuni 2021 04 following RPC changes. #33
Comments
@lucidd is this something we need to fix on the Uyuni side? |
@digdilem Could you post more context from the debug log, please? Thanks |
Certainly - I ran with --debug and redirected to a file, attached. Output to stdio was:
|
Doing some quick digging, it seems that Uyuni has introduced a new mandatory field: Changes were commit here very recently -> https://github.com/uyuni-project/uyuni/commits/master/java/code/src/com/redhat/rhn/frontend/xmlrpc/errata/ErrataHandler.java According to the source code documentation: However, I could find no API documentation that references this. Back in Spacewalk there were API docs for each release but I don't know how this is handled for Uyuni. |
Ah, that's because of the support for retracted patches we have recently added. This is a SUSE-specific feature, we will talk about it tomorrow at Uyuni Community Hours: API docs here: @hustodemon what should be the right value for CentOS errata? "final" or "stable"? |
@paususe Shouldn't the API version number have been bumped up for this kind of change? |
Indeed. And we discussed it but I don't know why we did not bump it. FYI: for CentOS, just use |
I haven't followed Uyuni development but from what little I know it seems that there is now a version The first doesn't understand |
I'm afraid this time exception handling might be the only solution: try to insert one errata with advisory_status. If you get an error, try without. |
What about using |
That might work. It should report 2021.04 for Uyuni 2021.04. But then you should also check for the SUSE Manager version: 4.1.8 and 4.2.0 Beta3 include this modified API. |
@digdilem Could you give the attached version a try? This should check for the Uyuni version and set |
@stevemeier Thank you very much for your prompt attention in sorting this. Attached is the output from the run. No errors reported and returned a clean exit. centos-import.-nondebug-20210501SA.txt (Unrelated and possibly transient error - am getting a 404 on http://cefs.steve-meier.de/errata.latest.xml this morning, but was able to run the tests with a previous copy) |
I confirm, so far so good, worked for me too. Thanks ! |
@digdilem The 404 probably appeared while an updated XML file was being deployed. I have changed the process slightly to hopefully prevent that in the future. |
Hello everyone! In the end this got handled as a bug in Uyuni (because of the breakage of backwards-compatibility) and has been fixed in this PR: uyuni-project/uyuni#3750. Uyuni will default to |
Not an issue with the script itself, but this no longer works with Uyuni - the forked Spacewalk replacement.
Uyuni changed api version to 25 last year, and --ignore-api-version allowed the script to continue working.
However, as of the latest 2021 04 version of Uyuni, they have removed some API calls which now breaks the script.
Running the script returns this at the end and no errata is imported
Fault returned from XML RPC Server, fault code 2609: redstone.xmlrpc.XmlRpcFault: A required patch attribute (advisory_status) was missing.
Uyuni reference: https://www.uyuni-project.org/doc/2021.04/release-notes-uyuni-server.html#_removal_of_deprecated_xmlrpc_api_methods
The text was updated successfully, but these errors were encountered: