[Bug 660236] New: Command order in /usr/lib/pm-utils/sleep.d/99nut wrong
https://bugzilla.novell.com/show_bug.cgi?id=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c0 Summary: Command order in /usr/lib/pm-utils/sleep.d/99nut wrong Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: All OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: suse+build@de-korte.org QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=405383) --> (http://bugzilla.novell.com/attachment.cgi?id=405383) Patch for /usr/lib/pm-utils/sleep.d/99nut User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101026 SUSE/3.6.12-0.7.1 Firefox/3.6.12 In order to successfully run '/etc/init.d/upsd try-powerdown', you need to run 'stopservice upsd' (so the order is wrong). Otherwise the (backgrounded) drivers that are still running will keep the drivers locked and it is not possible to start the drivers with the '-k' flag to signal them to power-off the load. To work around race conditions, it is adviseable to introduce a small delay between the two: Reproducible: Always Steps to Reproduce: 1. 2. 3. -- 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=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c1 --- Comment #1 from Arjen de Korte <suse+build@de-korte.org> 2010-12-18 08:58:59 UTC --- See also the 'docs/suspend-to-disk.txt' document from the source distribution, where I wrote why this particular order is important. -- 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=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c2 --- Comment #2 from Arjen de Korte <suse+build@de-korte.org> 2010-12-18 20:26:32 UTC --- Created an attachment (id=405517) --> (http://bugzilla.novell.com/attachment.cgi?id=405517) Suspend to disk instructions NUT -- 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=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c wei wang <wewang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wewang@novell.com AssignedTo|bnc-team-screening@forge.pr |coolo@novell.com |ovo.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=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c3 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|coolo@novell.com |sbrabec@novell.com Severity|Normal |Critical --- Comment #3 from Stephan Kulow <coolo@novell.com> 2011-01-12 12:21:27 CET --- sounds like possible data loss -- 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=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c4 --- Comment #4 from Arjen de Korte <suse+build@de-korte.org> 2011-01-12 11:56:17 UTC --- Data loss might occur if the grace period of the UPS is too small (but this is not the essence of this bug report). The default configuration in '/etc/ups/upsmon.conf' will initiate system shutdown: # -------------------------------------------------------------------------- # SHUTDOWNCMD "<command>" # # upsmon runs this command when the system needs to be brought down. # # This should work just about everywhere ... if it doesn't, well, change it. SHUTDOWNCMD "/sbin/shutdown -h +0" Only if this command is changed to suspend to disk, people will be at risk: SHUTDOWNCMD "/usr/sbin/s2disk" I'm not sure if the above command is the preferred method of calling suspend to disk, it's been a while since I last tested this. -- 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=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c5 --- Comment #5 from Arjen de Korte <suse+build@de-korte.org> 2011-01-14 10:23:49 UTC --- The above shutdown command should be SHUTDOWNCMD /usr/sbin/pm-hibernate By using that (and the above mentioned patch) the system hibernates when the UPS battery is getting low and resumes when the power comes back. There is one snag worth mentioning however. Due to ordering of the scripts, there will be no network capabilities at the time the system hibernates and resumes. This means two things: 1) It will be impossible to send a shutdown signal to the UPS. This is not a big deal, since the existing network connected UPS drivers (snmp-ups and netxml-ups) don't support this at the moment. 2) When resuming, 'restartservice nut' is guaranteed to fail, because there is no network at the time the script runs. Worse, since the service no longer runs, you'll also be unaware of the status of the UPS and will be vulnerable to power failures. Note that the above two problems only exist for the network connected drivers. There is no problem with serial or USB connected ones. This means there only is a problem if a system is running a upsd server that listens to either a snmp-ups or netxml-ups driver. -- 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=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c6 --- Comment #6 from Arjen de Korte <suse+build@de-korte.org> 2011-03-14 20:11:15 UTC --- What does it take to finally fix this? I noticed that this bug has still not been solved in 11.4... :-( -- 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=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c9 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:running:41633:low --- Comment #9 from Swamp Workflow Management <swamp@suse.com> 2011-06-16 16:55:04 UTC --- The SWAMPID for this issue is 41633. This issue was rated as low. Please submit fixed packages until 2011-07-14. Also create a patchinfo file using this link: https://swamp.suse.de/webswamp/wf/41633 -- 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=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c11 --- Comment #11 from Arjen de Korte <suse+build@de-korte.org> 2011-06-16 19:34:31 UTC ---
The SWAMPID for this issue is 41633. This issue was rated as low. Please submit fixed packages until 2011-07-14.
I have already submitted a patch in the FIRST report!
Also create a patchinfo file using this link: https://swamp.suse.de/webswamp/wf/41633
Connection times out (tries several times). I have better things to do than to keep posting the same info over and over again... :-( -- 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=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c12 --- Comment #12 from Christian Dengler <cdengler@novell.com> 2011-06-16 23:23:22 UTC ---
I have already submitted a patch in the FIRST report!
Yes, thanks for your patch. This auto-generated comment is a information specially for the maintainer of the package / Assignee. Normally, he will prepare the update (write a patchinfo file, apply the patch, ...). But you can also do it by yourself. See: http://en.opensuse.org/openSUSE:Package_maintenance But for this bug, I think, Stanislav will prepare the update. :-)
Also create a patchinfo file using this link: https://swamp.suse.de/webswamp/wf/41633
Connection times out (tries several times). I have better things to do than to keep posting the same info over and over again... :-(
This URL is only for internal use. For submitting updates, you can use osc. The only interesting thing from this auto-comment is the SwampID. -- 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=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c13 Stanislav Brabec <sbrabec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High Status|NEW |ASSIGNED --- Comment #13 from Stanislav Brabec <sbrabec@novell.com> 2011-06-17 15:33:24 CEST --- openSUSE:11.3: created request id 74037 openSUSE:11.4: created request id 74038 openSUSE:Factory: created request id 74042 (together with bug 698152). Patchinfo was created. Summary: Fix UPS control during hibernation Description: Fix UPS powerdown process during hibernation (#660236). Command order in /usr/lib/pm-utils/sleep.d/99nut was wrong, which may let system off when power is back or cause nut failures after resume. -- 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=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c15 --- Comment #15 from Bernhard Wiedemann <bwiedemann@novell.com> 2011-06-17 16:00:20 CEST --- This is an autogenerated message for OBS integration: This bug (660236) was mentioned in https://build.opensuse.org/request/show/74037 11.3 / nut https://build.opensuse.org/request/show/74038 11.4 / nut https://build.opensuse.org/request/show/74040 Factory / nut https://build.opensuse.org/request/show/74042 Factory / nut https://build.opensuse.org/request/show/74044 Factory / nut -- 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=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c17 --- Comment #17 from Bernhard Wiedemann <bwiedemann@novell.com> 2011-06-20 22:00:15 CEST --- This is an autogenerated message for OBS integration: This bug (660236) was mentioned in https://build.opensuse.org/request/show/74234 11.4 / nut https://build.opensuse.org/request/show/74235 11.3 / nut -- 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=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c19 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:41633:low |maint:running:41633:low | |maint:released:11.3:41644 | |maint:released:11.4:41644 --- Comment #19 from Swamp Workflow Management <swamp@suse.com> 2011-06-30 13:54:42 UTC --- Update released for: nut-classic Products: openSUSE 11.3 (debug, i586, x86_64) openSUSE 11.4 (debug, i586, x86_64) -- 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=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c20 Stanislav Brabec <sbrabec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #20 from Stanislav Brabec <sbrabec@novell.com> 2011-07-11 16:31:52 CEST --- Everything was fixed => closing. -- 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=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c21 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:41633:low |maint:running:41633:low |maint:released:11.3:41644 |maint:released:11.3:41644 |maint:released:11.4:41644 |maint:released:11.4:41644 | |maint:released:sle11-sp1:41 | |645 --- Comment #21 from Swamp Workflow Management <swamp@suse.de> 2011-07-26 18:08:34 UTC --- Update released for: libupsclient1, nut, nut-cgi, nut-classic, nut-debuginfo, nut-debugsource, nut-devel, nut-drivers-net, nut-hal Products: SLE-DEBUGINFO 11-SP1 (i386, ia64, ppc64, s390x, x86_64) SLE-SDK 11-SP1 (i386, ia64, ppc64, s390x, x86_64) SLE-SERVER 11-SP1 (i386, ia64, ppc64, s390x, x86_64) SLES4VMWARE 11-SP1 (i386, x86_64) -- 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=660236 https://bugzilla.novell.com/show_bug.cgi?id=660236#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:41633:low |maint:released:11.3:41644 |maint:released:11.3:41644 |maint:released:11.4:41644 |maint:released:11.4:41644 |maint:released:sle11-sp1:41 |maint:released:sle11-sp1:41 |645 |645 | -- 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