Bug 1161100 - shutdown ends up in restart
Summary: shutdown ends up in restart
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1160971 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-06 11:30 UTC by joerg.lechner
Modified: 2014-11-12 02:38 UTC (History)
18 users (show)

Fixed In Version: kmod-18-4.fc21
Clone Of:
Environment:
Last Closed: 2014-11-12 02:38:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description joerg.lechner 2014-11-06 11:30:06 UTC
Description of problem:
there is something strange going on. On an Acer Aspire E15 Laptop I installed F21 Beta Final TC1 x86_64 workstation on an external disk. Yum update. Kernel 3.17.2-300.fc21. When I shut down with the "shut down menue" the system always restarts,I have to do a power off, to end my session.

Version-Release number of selected component (if applicable):
Kernel 3.17.2-300.fc21 x86_64
gnome-shell 3.14.1.5-1.fc21 x86_64

How reproducible:
on my laptop always.
boot F21, shutdown -> ends in restart

Steps to Reproduce:
1.boot F21 Final TC1
2.shutdown
3.

Actual results:
shutdown ends in restart

Expected results:
shutdown completed

Additional info:

Comment 1 Josh Boyer 2014-11-06 13:11:07 UTC
If you run 'shutdown -h now' on the command line does it shutdown?

Comment 2 joerg.lechner 2014-11-06 13:55:15 UTC
Tried "shutdown -h now" as user and as admin, same result as via menue -> restart

Comment 3 Josh Boyer 2014-11-06 14:41:44 UTC
Which systemd package do you have installed?

Comment 4 joerg.lechner 2014-11-06 15:39:35 UTC
systemd 216-10.fc21 x86_64

Comment 5 Josh Boyer 2014-11-06 15:48:24 UTC
If you downgrade that package does it work again?  You'll likely need to rebuild the initramfs for the kernel with 'dracut -f <kernel version>'

Comment 6 joerg.lechner 2014-11-06 16:46:24 UTC
Silly question of user (none expert):
I did:
su
dracut -f kernel-3.17.2-300.fc21
seems to be successful, the term showed the next line, but didn't say anything.
but yum shows still kernel-3.17.2-300.fc21
still no shutdown -> only restart

But it may be, that I did not the right thing?

Comment 7 Josh Boyer 2014-11-06 16:50:14 UTC
Did you run 'yum downgrade systemd' first?  Do that, then do the steps you specified above and make sure the corresponding initramfs file in /boot seems to have an appropriately current timestamp, then reboot.  After you log back in, then try to shutdown.

Comment 8 joerg.lechner 2014-11-06 20:22:40 UTC
ok, I tried to do, what You have said, but i think unsuccessfully. Therefore I took another spare disk (You know "my" F21 is on an external disk plugged via usb). New installation, Yum installed, display of installed packages
- kernel 3.17.2-300.fc21 x86_64
- systemd 216-8.fc21 x86_64

Shutdown successful

update only the systemd pakage systemd to 216-10.fc21 x86_64

shutdown unsuccessful -> restart

Comment 9 Josh Boyer 2014-11-06 20:35:42 UTC
OK, thank you for doing that test.

Comment 10 joerg.lechner 2014-11-06 20:45:32 UTC
Mathiew Miller asked:
Have you updated to the latest of everything (and done a distro-sync)?
We're way past TC1.

I did not a distro-sync, it was a new installation, not an upgrade. So far  -as it is possible- I use for updating Yum extender package, i did not update with yum in an terminal, I do this as user, not as an expert.

Comment 11 Michal Schmidt 2014-11-06 21:37:15 UTC
Found the bug and fixed upstream:

http://cgit.freedesktop.org/systemd/systemd/commit/?id=4b5d8d0f22ae61ceb45a25391354ba53b43ee992

Comment 12 Zbigniew Jędrzejewski-Szmek 2014-11-06 22:06:52 UTC
*** Bug 1160971 has been marked as a duplicate of this bug. ***

Comment 13 Greg` 2014-11-06 23:24:45 UTC
i can confirm systemd 216-11 fix's the shutdown Bug

Comment 14 Fedora Update System 2014-11-07 00:36:24 UTC
kmod-18-4.fc21, systemd-216-11.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/FEDORA-2014-14307/kmod-18-4.fc21,systemd-216-11.fc21

Comment 15 Andre Robatino 2014-11-07 01:06:19 UTC
This happens in Rawhide as well, but I don't see a koji build for that - the last one is http://koji.fedoraproject.org/koji/buildinfo?buildID=590324 .

Comment 16 joerg.lechner 2014-11-07 04:25:07 UTC
updated to following modules from http://koji.fedoraproject.org/koji/buildinfo?buildID=590732

x86_64 	(build logs)
	libgudev1-216-11.fc21.x86_64.rpm (info) (download)
	libgudev1-devel-216-11.fc21.x86_64.rpm (info) (download)
	systemd-216-11.fc21.x86_64.rpm (info) (download)
	systemd-compat-libs-216-11.fc21.x86_64.rpm (info) (download)
	systemd-devel-216-11.fc21.x86_64.rpm (info) (download)
	systemd-journal-gateway-216-11.fc21.x86_64.rpm (info) (download)
	systemd-libs-216-11.fc21.x86_64.rpm (info) (download)
	systemd-python-216-11.fc21.x86_64.rpm (info) (download)
	systemd-python3-216-11.fc21.x86_64.rpm (info) (download)
	systemd-debuginfo-216-11.fc21.x86_64.rpm (info) (download) 

with this update shutdown is currently ok.

Comment 17 Fedora Update System 2014-11-07 05:32:23 UTC
Package kmod-18-4.fc21, systemd-216-11.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kmod-18-4.fc21 systemd-216-11.fc21'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-14307/kmod-18-4.fc21,systemd-216-11.fc21
then log in and leave karma (feedback).

Comment 18 Andre Robatino 2014-11-07 06:59:56 UTC
The new rawhide build http://koji.fedoraproject.org/koji/buildinfo?buildID=590764 makes no mention of fixing this bug in its changelog, so I'll check tomorrow whether it fixes this. The F21 build, which mentions this bug in its changelog, does fix this.

Comment 19 Zbigniew Jędrzejewski-Szmek 2014-11-07 13:07:30 UTC
Yeah, it mentions #1159448, which is the same as this one, except for rawhide.

Comment 20 Andre Robatino 2014-11-07 13:14:03 UTC
Confirmed that systemd-217-4.fc22.x86_64 in Rawhide does fix this bug. Thanks.

Comment 21 joerg.lechner 2014-11-07 14:36:44 UTC
installed systemd 216-11.fc21 x86_64 with Yum extender. Now shutdown is ok.

Comment 22 Fedora Update System 2014-11-12 02:38:28 UTC
kmod-18-4.fc21, systemd-216-11.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.