[Bug 413059] New: cryptsetup loops on /dev/.udev/uevent_seqnum on shutdown
https://bugzilla.novell.com/show_bug.cgi?id=413059 Summary: cryptsetup loops on /dev/.udev/uevent_seqnum on shutdown Product: openSUSE 11.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: ro@novell.com ReportedBy: jblunck@novell.com QAContact: qa@suse.de CC: fehr@novell.com, kasievers@novell.com Found By: --- During shutdown, cryptsetup remove $name is called to remove the encrypted lvm device. This is waiting for udev to process the event which loops on /dev/.udev/uevent_seqnum to find out if udev has dealed with the event yet. Since udevd gets killed before the /etc/init.d/boot.d/K* scripts are run, this loops forever. A possible solution would be to call the /etc/init.d/boot.d/K* scripts before sending SIGTERM to all running processes. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413059 User ro@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413059#c1 Ruediger Oertel <ro@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|ro@novell.com |werner@novell.com --- Comment #1 from Ruediger Oertel <ro@novell.com> 2008-11-05 08:31:47 MST --- werner, your call -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413059 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mkoenig@novell.com, werner@novell.com, | |ro@novell.com AssignedTo|werner@novell.com |mkoenig@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413059 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413059#c2 --- Comment #2 from Dr. Werner Fink <werner@novell.com> 2008-11-05 08:49:30 MST --- IMHO this is a wrong dependency -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413059 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413059#c3 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mkoenig@novell.com |xwhu@novell.com --- Comment #3 from Dr. Werner Fink <werner@novell.com> 2008-11-05 08:52:26 MST --- /etc/init.d/boot.device-mapper should depend on boot.udev at shutdown! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413059 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413059#c4 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Major Status|NEW |NEEDINFO Info Provider| |jblunck@novell.com Priority|P5 - None |P2 - High --- Comment #4 from Dr. Werner Fink <werner@novell.com> 2008-11-05 08:53:52 MST --- Jan: Does it help if you replace `$null' at Required-Stop with `boot.udev', and run insserv afterwards? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413059 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413059#c5 --- Comment #5 from Dr. Werner Fink <werner@novell.com> 2008-11-05 09:02:25 MST --- Just submitted a changed device-mapper package -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413059 User xwhu@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413059#c6 --- Comment #6 from Xinwei Hu <xwhu@novell.com> 2008-11-06 00:39:53 MST --- We don't have nice way to detect if udev's running, so current solution's wait 6 seconds everytime. How about letting the boot.udev remove /dev/.udev on stopping itself. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413059 User kasievers@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413059#c7 --- Comment #7 from Kay Sievers <kasievers@novell.com> 2008-11-06 00:43:33 MST --- If we stop it with the script, we can solve that with dependencies, right? Isn't it that it just gets killed at that time? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413059 User xwhu@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413059#c8 --- Comment #8 from Xinwei Hu <xwhu@novell.com> 2008-11-06 01:43:36 MST --- I'm not sure about the dependencies solution's right. For example, udev's killed while switching to "init 1". But device-mapper & dmraid shouldn't. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413059 User xwhu@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413059#c9 --- Comment #9 from Xinwei Hu <xwhu@novell.com> 2008-11-06 02:14:08 MST --- Created an attachment (id=250214) --> (https://bugzilla.novell.com/attachment.cgi?id=250214) unlink /dev/.udev/uevent_seqnum on exiting of udevd After running several iterators, I think it can't be resolve by scripts dependencies. Kays, would you consider the attached patch a solution ? So that we can have a way to see if udevd's running ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413059 User kasievers@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413059#c10 --- Comment #10 from Kay Sievers <kasievers@novell.com> 2008-11-06 06:11:23 MST --- Sure, I will add that. Sounds fine to do that. But killing udev on shutdown is still something that should be fixed, I guess. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413059 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413059#c11 --- Comment #11 from Dr. Werner Fink <werner@novell.com> 2008-11-06 06:20:51 MST --- This is fixed ... nevertheless the job of udevd is more a job of a real kernel thread as IMHO this is a system relevant challenge. This would avoid the problem of killing a user space job ... an other option would be a `plugin' for /sbin/init. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413059 User xwhu@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413059#c12 Xinwei Hu <xwhu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Info Provider|jblunck@novell.com |kasievers@novell.com --- Comment #12 from Xinwei Hu <xwhu@novell.com> 2008-11-06 07:50:51 MST --- Kay, please notify me after you committing the update, so that I can close this as FIXED ;) Thank you all for the help ;) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413059 User kasievers@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413059#c13 Kay Sievers <kasievers@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Info Provider|kasievers@novell.com |jblunck@novell.com --- Comment #13 from Kay Sievers <kasievers@novell.com> 2008-11-06 07:51:30 MST --- (In reply to comment #11 from Dr. Werner Fink)
This is fixed ...
Nice. Thanks!
nevertheless the job of udevd is more a job of a real kernel thread as IMHO this is a system relevant challenge. This would avoid the problem of killing a user space job ... an other option would be a `plugin' for /sbin/init.
Sounds right, yes. Unrelated to the killing of udevd, I've added the "unlink /dev/.udev/uevent_seqnum" patch, it sounds fine to clean that up on exit. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413059 User jblunck@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413059#c14 Jan Blunck <jblunck@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|jblunck@novell.com | --- Comment #14 from Jan Blunck <jblunck@novell.com> 2008-11-13 05:05:57 MST --- The boot.device-mapper script now requires boot.udev on shutdown. So scripting wise this is fixed with sending the SIGTERM/SIGKILL after executing the shutdown scripts. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413059 User werner@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413059#c15 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #15 from Dr. Werner Fink <werner@novell.com> 2008-11-13 05:47:27 MST --- In other words: this bug is fixed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com