[Bug 1670291] Re: Landscape: Upgrade 14.04.5 to 16.04.2 fails unable to reboot
Dimitri John Ledkov
launchpad at surgut.co.uk
Mon Sep 3 16:40:54 UTC 2018
/sbin/shutdown, post upgrade not working, imho is a severe bug. I'll
investigate that. I suspect that because we cannot restart dbus things
don't show up there, but /sbin/shutdown should be smart enough to do
something. I guess the scheduling of timeout is failing, but
/sbin/shutdown now works?
Re differences between halt & poweroff, in systemd, eventually it
results in:
case ACTION_HALT:
(void) reboot(RB_HALT_SYSTEM);
case ACTION_POWEROFF:
(void) reboot(RB_POWER_OFF);
For completeness reboot typically is:
(void) reboot(RB_AUTOBOOT);
of if parameter was specified (aka androidish - reboot recovery):
(void) raw_reboot(LINUX_REBOOT_CMD_RESTART2, parameter);
This is the same as with upstart's implementation:
case REBOOT:
reboot (RB_AUTOBOOT);
case HALT:
reboot (RB_HALT_SYSTEM);
case POWEROFF:
reboot (RB_POWER_OFF);
case REBOOTCOMMAND:
syscall (SYS_reboot,
LINUX_REBOOT_MAGIC1,
LINUX_REBOOT_MAGIC2,
LINUX_REBOOT_CMD_RESTART2,
rebootcommand);
Differences between RB_HALT_SYSTEM and RB_POWER_OFF can be read in the
linux manpage here:
http://manpages.ubuntu.com/manpages/bionic/en/man2/reboot.2.html
I have not read kernel code in a while for this, but if i'm not mistaken
poweroff fallsback to halt, in the kernel, if there is no hardware
support to kill power.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1670291
Title:
Landscape: Upgrade 14.04.5 to 16.04.2 fails unable to reboot
Status in landscape-client package in Ubuntu:
Fix Committed
Status in systemd package in Ubuntu:
Incomplete
Status in landscape-client source package in Xenial:
Confirmed
Status in systemd source package in Xenial:
Incomplete
Bug description:
Used Landscape (Paid Canonical Subscription) to upgrade one of my
machines.
Landscape only shows "In Progress" for more than 8 hours now and asked
for a reboot of the machine in a second alert.
In the reboot attempt I get the message:
=========================
Failed to set wall message, ignoring: Method "SetWallMessage" with signature "sb" on interface "org.freedesktop.login1.Manager" doesn't exist
Failed to call ScheduleShutdown in logind, proceeding with immediate shutdown: Method "ScheduleShutdown" with signature "st" on interface "org.freedesktop.login1.Manager" doesn't exist
=========================
Steps to reproduce:
* Fully updated 14.04.5 machine
* Open Landscape
* Choose the machine
* Choose Packages
* This computer can be upgraded to a newer release
* Apply
* Wait 2 hours
* Alert comes in a seperate Landscape message Machine is ready for reboot
* Choose Info... Power
* Deliver to selected computers as soon as possible
* Error message
I found this thread on reddit about this issue maybe the solution can be built into the upgrade script
https://www.reddit.com/r/linuxquestions/comments/4wy3go/trying_to_run_as_user_instance_but_the_system_has/
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/landscape-client/+bug/1670291/+subscriptions
More information about the foundations-bugs
mailing list