Closed mbussolotto closed 2 years ago
the package is correctly installed but the snaphot is not activated. The error in
/var/log/salt/minion
is:stderr: The system couldn't be rebooted using method 'auto'. Please reboot the system
I'm sorry, I just realized that this message is a bogus message - it appears even when the reboot was successfully triggered. Fixing.
That, however, shouldn't prevent the snapshot from being activated. Are you sure this doesn't work?
I think the problem is in the
tukit
command itself, since the commandtukit reboot auto
does not work.
I couldn't reproduce the tukit reboot auto
command not working; what didn't work as expected for me (with the message from above) is calling transactional-update reboot
.
What does rebootmgrctl status
say?
Same issue using
rebootmgr
andsalt
(this one does not appear intukit
but it's present intransactional-update.conf
).
salt
still appearing in the configuration file is an oversight; that reboot method has been used for CaaSP and has been removed since then. Removing.
Workaround The only reboot method that works properly is
systemd
(I tested it via salt ad using tukit and works fine in both cases).
Probably because systemd is faster in rebooting the system than the shell in showing the error message - and that's most likely the reason why I haven't noticed it.
Thanks for your help @laenion ! You're right, it was just the misleading message (and the salt
oversight) :) The reason why tukit reboot auto
was not working ws for a misconfiguration in /etc/rebootmgr.conf
:
strategy=now
it's supposed to be
strategy=instantly
I had other test setting the maintenance window and it works as expected.
So briefly, besides the log message and and salt
oversight, there're no issue.
Feel free to close the issue, thanks!
Will close after submitting the two fixes - there are still two bugs in here :-)
Sorry for using this issue for this but where can I find more information about the reboot method salt
which has been removed now @laenion ?
@admd: That reboot method has been removed a long time ago in https://github.com/openSUSE/transactional-update/commit/e10429cc8dc993109def0dd7f79e545c3f5e117d, transactional-update 2.22 was the last version to contain it. It didn't use any general Salt functionality either, it was completely CaaSP specific. Nothing of interest here :-)
Fixes submitted and part of transactional-update 4.1.0.
Environment
uyuni.tf.local
min-slemicro52.tf.local
Issue
Running from salt master:
the package is correctly installed but the snaphot is not activated. The error in
/var/log/salt/minion
is:/etc/transactional-update.conf
is:and
/etc/rebootmgr.conf
is:I think the problem is in the
tukit
command itself, since the commandtukit reboot auto
does not work. Same issue usingrebootmgr
andsalt
(this one does not appear intukit
but it's present intransactional-update.conf
).Workaround The only reboot method that works properly is
systemd
(I tested it via salt ad using tukit and works fine in both cases).