-
Notifications
You must be signed in to change notification settings - Fork 51
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
Apply erratas to Debian / Ubuntu systems (resolve package names and version listed in a debian advisory) #416
base: openSUSE/release/3002.2
Are you sure you want to change the base?
Conversation
This is Uyuni specific. The salt master on a Uyuni server needs to be prepared to allow minions to access the 'spacewalk' API via a runner. In case the advisory is found, it will return the package names of already installed packages, but with the versions listed within the advisory. This basically replaces the 'errata.py' script in older, traditional clients.
I wonder if we should better solve this in the java side, without the need of calling back from the client to the server. |
HI @mcalmer could you point me to some direction to this "old" code that might still be there? |
CC @lucidd - AFAIK you are currently looking into this as well. Do you have a pointer to the code? |
@rpasche we seem to have had some code for this in the past https://github.com/SUSE/spacewalk/blob/Manager-3.0-MU-201705-release/java/code/src/com/suse/manager/webui/services/SaltServerActionService.java#L331-L355 but its not in the current version anymore. I think this was removed at a time when deb was not supported. It looks like |
@lucidd is that available in a public repository? I have been unable to find it in in older Uyuni commits. |
@an0nz in the meantime we implemented ubuntu errata management and its already merged in uyuni uyuni-project/uyuni#4733. It uses the old method i linked above with some modifications. Let me know if anything is unclear. |
@lucidd thanks for the great work, I just spent the day updating rpasche’s aptpkg code to work with salt 3002 and Uyuni 2022.01 and was considering pushing it out to our minions so I’ll hold off and wait until the next release. |
Hi everybody,
great to see, that Ubuntu errata can now be directly downloaded, created and applied within uyuni.
The next step would be to finalize this to also work with Debian. They also provide a full JSON file, that should include all information. https://security-tracker.debian.org/tracker/data/json
Sadly,I never had the time to change my code to use this for errata preparation.
sent from my mobile device
…-------- Originale Nachricht --------
Von: an0nz ***@***.***>
Gesendet: Fri Feb 18 10:40:40 GMT+01:00 2022
An: openSUSE/salt ***@***.***>
Cc: Robert Paschedag ***@***.***>, Mention ***@***.***>
Betreff: Re: [openSUSE/salt] Apply erratas to Debian / Ubuntu systems (resolve package names and version listed in a debian advisory) (#416)
@lucidd thanks for the great work, I just spent the day updating rpasche’s aptpkg code to work with salt 3002 and Uyuni 2022.01 and was considering pushing it out to our minions so I’ll hold off and wait until the next release.
--
Reply to this email directly or view it on GitHub:
#416 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Hello, I encounter a python error on a Debian 10 client when I want to apply a patch. I'm using @rpasche aptpkg.py:
The salt agent is : venv-salt-minion 3006.0-21.8.uyuni Uyuni version 2023.10 It's been working on Uyuni version 2022.11 Any ideas? Regards, Paul |
Sorry... I'm out on this topic since April 2022. My first guess was, that maybe the advisory was found, but does not include packages. But...I don't know. Thought that this topic is meanwhile done by uyuni itself. Hope you can fix it. |
You might be able and try to check |
Hi! |
Ok, I run some test today, but i can't figure out how to test the python script out of Uyuni. I'm running into various import error. Is there a way to execute the script from uyuni master, and see the result of some 'print' i put into the script? |
My mistake, i'm working on new integration uyuni server, and i forgot to configure the runner with spacewalk.py. It's ok now. |
This is basically a copy of uyuni-project/uyuni#2068
cc @brejoc , @paususe
I applied this fix to a running Debian minion having
salt-minon-3002.2+ds-1+142.2.uyuni
This is Uyuni specific. The salt master on a Uyuni server needs to be
prepared to allow minions to access the
spacewalk
API via a runner.In case the advisory is found, it will return the package names
of already installed packages, but with the versions listed within
the advisory.
This basically replaces the
errata.py
script in older, traditionalclients.
What does this PR do?
If applied to a Debian minion (connected to a Uyuni server),
allows the installation of errata on Debian systems.
This basically replaces the old
errata.py
on traditional Debian clients.What issues does this PR fix or reference?
Fixes:
Previous Behavior
Remove this section if not relevant
New Behavior
Remove this section if not relevant
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
Commits signed with GPG?
No
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.