-
Notifications
You must be signed in to change notification settings - Fork 103
Document uptodate
recurring action update command
#3773
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
Labels
docs backlog
In the docs backlog
Comments
Merged
11 tasks
keichwa
added a commit
that referenced
this issue
Mar 24, 2025
keichwa
added a commit
that referenced
this issue
May 12, 2025
* Documented uptodate action in Common Workflows * SUSE/spacewalk#26678 * #3773 Co-authored-by: Marek Czernek <[email protected]>
keichwa
added a commit
that referenced
this issue
May 12, 2025
* Documented uptodate action in Common Workflows * SUSE/spacewalk#26678 * #3773 Co-authored-by: Marek Czernek <[email protected]>
keichwa
added a commit
that referenced
this issue
May 13, 2025
…3941) * SUSE/spacewalk#26678 * #3773 Co-authored-by: Marek Czernek <[email protected]>
keichwa
added a commit
that referenced
this issue
May 13, 2025
…3941) * SUSE/spacewalk#26678 * #3773 Co-authored-by: Marek Czernek <[email protected]>
keichwa
added a commit
that referenced
this issue
May 14, 2025
…3941) (#3947) * SUSE/spacewalk#26678 * #3773 Co-authored-by: Marek Czernek <[email protected]>
Thanks for background info and preparing the documentation enhancement. It is now merged and backported to 5.0 and 4.3. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Documentation Update Required
This is a followup of [1].
Currently, we mention the
uptodate
recurring action in [2], but we don't document what exactly that action does. I'll leave up to you whether that's the proper place for enhancing that doc, or whether you want to create a new one.Notes for documentation.
Prerequisites
At first, for SUSE-based systems, the action applies critical security patches by executing
zypper --non-interactive patch --updatestack-only
.Then, the action updates:
Salt
or theSalt Bundle
.dnf
,yum
,apt
, orzypper
based on what is available on the client OS.Finding upgradeable packages
Then, this action lists all of the remaining packages that can be upgraded.
Package upgrade
Then, the action upgrades the packages to their latest available versions (depending on the synchronized repositories in SUMULIMA) by using system package manager.
This is different depending on the operating system of the client:
apt dist-upgrade -q -y $PACKAGES
.yum --quiet -y update $PACKAGES
ordnf --quiet -y upgrade $PACKAGES
(depending on what package manager the system is using).zypper --non-interactive --auto-agree-with-licenses update $PACKAGES
.Reboot if necessary
Finally, if SUMULIMA detects that reboot is necessary, for 4.3.x, it will automatically reboot that client.
For 5.0.x and newer versions, we newly have the
reboot
andrebootifneeded
actions that customers can use if they want to enable the reboot. The following text is related torebootifneeded
.Reboot detection is, again, specific to the client OS. I'm not sure if this is documented somewhere, but IMHO we should. I think this should have its own documentation page, but I'll leave it up to you.
For Debian/Ubuntu, we could just link to [3].
For non-transactional SUSE clients, we check if any of the patches require reboot by using
zypper -x list-patches
, and reboot if so.For transactional SUSE clients, we check if there's a pending transaction, and reboot if so.
For the Red Hat-based clients, we use
dnf -q needs-restarting -r
orneeds-restarting -r
.Customers can see the
reboot_info.py
module for more information [4].Further notes
pkg.hold
. Customers should see [5] for more information.dist-update
and notupdate
(since version 5.0.4). They can seeman apt
for more information. This is also described in [6].[1] https://suse.slack.com/archives/C02D78LLS04/p1740389323062609
[2] https://documentation.suse.com/suma/4.3/en/suse-manager/common-workflows/workflow-clients-update-rec-actions.html
[3] https://www.debian.org/doc/debian-policy/ch-opersys.html#signaling-that-a-reboot-is-required
[4] https://github.com/uyuni-project/uyuni/blob/master/susemanager-utils/susemanager-sls/src/modules/reboot_info.py
[5] https://docs.saltproject.io/en/latest/ref/states/all/salt.states.pkg.html#salt.states.pkg.held
[6] uyuni-project/uyuni#9839 (comment)
CC @admd @juliogonzalez
Subject Matter Expert (SME)
Version
This documentation is applicable for all SUMULIMA/Uyuni versions.
The text was updated successfully, but these errors were encountered: