[Bug 703592] New: openSUSE:11.4/apcupsd: Bug "/etc/init.d/apcupsd powerdown" doesn't work due to path/test issue
https://bugzilla.novell.com/show_bug.cgi?id=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c0 Summary: openSUSE:11.4/apcupsd: Bug "/etc/init.d/apcupsd powerdown" doesn't work due to path/test issue Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: x86-64 OS/Version: openSUSE 11.4 Status: NEW Severity: Major Priority: P5 - None Component: 3rd party software AssignedTo: sbrabec@novell.com ReportedBy: chris@ccburton.com QAContact: opensuse-communityscreening@forge.provo.novell.com Found By: Consulting Blocker: --- chris burton <chris@ccburton.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flag| |SHIP_STOPPER?, CCB_Review? 2 Issues close together, one masking the other. 1/ Path to apcupsd-lite incorrectly configured as:- /usr/sbin/apcupsd-lite instead of as :- /sbin/apcupsd-lite where it is correctly located by the rpm. This allows powerdown of the ups at the end of OS shutdown, with only / mounted and /usr dismounted, though /lib or /lib64 are still needed. 2/ -o instead of -a in test for both executables, so previous error is not trapped. diff -u of patch --- /etc/init.d/apcupsd.old 2011-02-19 07:37:54.000000000 +0000 +++ /etc/init.d/apcupsd 2011-07-02 17:43:35.000000000 +0100 @@ -26,8 +26,8 @@ ### END INIT INFO APCUPSD=/usr/sbin/apcupsd -APCUPSD_LITE=/usr/sbin/apcupsd-lite -test -x $APCUPSD -o -x $APCUPSD_LITE || exit 5 +APCUPSD_LITE=/sbin/apcupsd-lite +test -x $APCUPSD -a -x $APCUPSD_LITE || exit 5 # Shell functions sourced from /etc/rc.status: # rc_check check and set local and overall rc status Quick explanation of consequences of this bug. When a power failure occurs, the UPS notifies the UPS daemon on the computer, which waits for delay TIMEOUT set in /etc/apcupsd/apcupsd.conf for a power reconnected notification, else it initiates a shutdown of the computer. Once the computer has started to shut down, it will continue untill it actually has shut down, and won't restart until it's power supply is cycled off and on again by the UPS. This means that once the shutdown process has started, in order to power the computer off and on again,(even if the supply has already been reconnected), just before the OS shuts down, the UPS daemon on the computer must tell the UPS to switch off the power. Once the computer is powered off, the UPS can then reconnect power back to the computer, as soon as it's own supply has been reconnected for WAKEUP no of seconds, set in /etc/apcupsd/apcupsd.conf. As most volumes will be dismounted, the software and its associated libraries which tell the UPS to power off must be contained only in the / partition, so a cut down utility called apcupsd-lite is provided, installed in /sbin rather than /usr/sbin This bug will leave the UPS running, so the computer will not get power-cycled (unless the battery runs down and the UPS shuts its-self off) and the computer will not be restarted without manual intervention, even though the power supply has been restored . -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c1 Stanislav Brabec <sbrabec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED Version|unspecified |Factory Component|3rd party software |Basesystem AssignedTo|sbrabec@novell.com |bnc-team-screening@forge.pr | |ovo.novell.com Product|openSUSE.org |openSUSE 11.4 QAContact|opensuse-communityscreening |qa@suse.de |@forge.provo.novell.com | --- Comment #1 from Stanislav Brabec <sbrabec@novell.com> 2011-07-04 20:39:38 CEST --- Confirming. Different problem, but very similar consequence as bug 660236 => A candidate for online update. -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c3 --- Comment #3 from Stanislav Brabec <sbrabec@novell.com> 2011-07-04 20:50:07 CEST --- Packages for testing: https://build.opensuse.org/project/show?project=home%3Asbrabec%3Abranches%3A... for openSUSE 11.4: http://download.opensuse.org/repositories/home:/sbrabec:/branches:/OBS_Maint... for openSUSE 11.3: http://download.opensuse.org/repositories/home:/sbrabec:/branches:/OBS_Maint... openSUSE Factory will get this fix together with the update to version 3.14.8. -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c4 --- Comment #4 from Stanislav Brabec <sbrabec@novell.com> 2011-07-04 21:23:26 CEST --- Submit requests: openSUSE Factory: request id 75353 openSUSE 11.3: request id 75354 openSUSE 11.4: request id 75355 -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c5 --- Comment #5 from Stanislav Brabec <sbrabec@novell.com> 2011-07-04 21:29:44 CEST --- OOPS. Missed fix for isssue 2. Now fixed as well: openSUSE Factory: request id 75356 openSUSE 11.3: request id 75357 openSUSE 11.4: request id 75358 -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c zj jia <zjjia@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@novell.com AssignedTo|bnc-team-screening@forge.pr |sbrabec@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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c6 --- Comment #6 from Bernhard Wiedemann <bwiedemann@novell.com> 2011-07-05 12:00:33 CEST --- This is an autogenerated message for OBS integration: This bug (703592) was mentioned in https://build.opensuse.org/request/show/75353 Factory / apcupsd https://build.opensuse.org/request/show/75354 11.3 / apcupsd https://build.opensuse.org/request/show/75355 11.4 / apcupsd https://build.opensuse.org/request/show/75357 Factory / apcupsd https://build.opensuse.org/request/show/75358 11.4 / apcupsd -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c7 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:running:42065:moderat | |e --- Comment #7 from Swamp Workflow Management <swamp@suse.de> 2011-07-05 11:32:06 UTC --- The SWAMPID for this issue is 42065. This issue was rated as moderate. Please submit fixed packages until 2011-07-19. Also create a patchinfo file using this link: https://swamp.suse.de/webswamp/wf/42065 -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c8 Christian Dengler <cdengler@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED CC| |cdengler@novell.com InfoProvider|maint-coord@suse.de | --- Comment #8 from Christian Dengler <cdengler@novell.com> 2011-07-05 11:33:23 UTC --- update started. -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c10 Stanislav Brabec <sbrabec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |cdengler@novell.com --- Comment #10 from Stanislav Brabec <sbrabec@novell.com> 2011-07-08 18:25:11 CEST --- SLE11: created request id 13467 SLE10: Here it is more problematic. apcupsd-lite was created to fix bug 186606 (If /usr is on a separate partition, apcupsd fails to stop UPS power.), but it seems to be affected also by bug 187454 (Powerdown called on each halt, not only if power is failing.). So we can let it as it is or fix all three bugs (i. e. introduce apcupsd-lite, add try-powerdown in the init script and change HALT_POWERDOWN_INSERT accordingly). -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c Dirk Mueller <dmueller@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|cdengler@novell.com |maint-coord@suse.de -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c13 Bruno Friedmann <bruno@ioda-net.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bruno@ioda-net.ch --- Comment #13 from Bruno Friedmann <bruno@ioda-net.ch> 2011-07-13 09:08:35 UTC --- There's also another minor trouble with the patch used for example here https://build.opensuse.org/package/view_file?file=apcupsd-powersave.patch&package=apcupsd&project=openSUSE%3A11.4&srcmd5=40379e63086188c9d6b7bb3282f6b135 The usage of /usr/lib/powersave/script/notify is now obsolete as there's no more powervave package. This need to be reviewed. Wall message are correctly send, but none of the alert email goes outside. Found by starting the dameon in -T -b -d1000 /etc/apcupsd/apccontrol: line 61: /usr/lib/powersave/powersave-notify: No such file or directory -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c14 --- Comment #14 from Stanislav Brabec <sbrabec@novell.com> 2011-07-13 16:46:10 CEST --- Good hint. This was already fixed for Factory by: %if %suse_version <= 1110 %patch3 %endif (In fact, 11.1 did not have powersave, 11.0 did, so the correct expression is %if %suse_version < 1110.) If the update is not yet released, it is a good time to apply it for 11.3 and 11.4 and SLE11. Resubmitting: 11.3: created OBS request id 76196 11.4: created OBS request id 76197 SLE11: created IBS request id 13510 -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c15 --- Comment #15 from Bernhard Wiedemann <bwiedemann@novell.com> 2011-07-13 17:00:22 CEST --- This is an autogenerated message for OBS integration: This bug (703592) was mentioned in https://build.opensuse.org/request/show/76196 11.3 / apcupsd https://build.opensuse.org/request/show/76197 11.4 / apcupsd -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c17 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:42065:moderat |maint:running:42065:moderat |e |e maint:released:11.4:42188 | |maint:released:11.3:42188 --- Comment #17 from Swamp Workflow Management <swamp@suse.de> 2011-07-19 13:22:45 UTC --- Update released for: apcupsd, apcupsd-debuginfo, apcupsd-debugsource, apcupsd-gui, apcupsd-gui-debuginfo 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c18 Stanislav Brabec <sbrabec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |rguenther@novell.com --- Comment #18 from Stanislav Brabec <sbrabec@novell.com> 2011-07-19 20:17:26 CEST --- Well, there is a problem for SLE10. Older versions of apcupsd are written in C++ (well, just a C++ as a language, they do not use any stdlib classes). And binaries that are linked against libstdc++ cannot reside in /sbin. So we have two possible solution: 1. Version update to any version written in C. 2. Do some magic that will prevent linking against libstdc++. I have tried -nostdlib flag, but there is a problem with: apcupsd.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0' (the same single unresolved symbol is in all objects) Richard, is there a way to work-around this problem? -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c19 --- Comment #19 from Stanislav Brabec <sbrabec@novell.com> 2011-07-19 20:24:15 CEST --- Tried following: echo >cxx.c <EOF void __gxx_personality_v0(){} EOF gcc -c cxx.c -o cxx.o And then change link command from g++ -nostdlib to gcc and add cxx.o as an argument. It seems to work, but I don't know whether it is a safe approach. -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c20 --- Comment #20 from Bernhard Wiedemann <bwiedemann@novell.com> 2011-07-20 08:00:43 CEST --- This is an autogenerated message for OBS integration: This bug (703592) was mentioned in https://build.opensuse.org/request/show/76507 Evergreen:11.2 / apcupsd -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c21 Richard Guenther <rguenther@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|rguenther@novell.com | --- Comment #21 from Richard Guenther <rguenther@novell.com> 2011-07-20 08:55:18 UTC --- (In reply to comment #19)
Tried following:
echo >cxx.c <EOF void __gxx_personality_v0(){} EOF gcc -c cxx.c -o cxx.o
And then change link command from g++ -nostdlib to gcc and add cxx.o as an argument.
It seems to work, but I don't know whether it is a safe approach.
It will work as long as no exceptions are thrown. __gxx_personality_v0 is provided by libsupc++ (which is a static library). You can do -nostdlib -lsupc++, but -nostdlib also prevents adding of the crt* and libgcc stuff, so I'd do g++ -o partially-linked.o your-object-files.o ... -r -nostdlib -lsupc++ gcc -o final-executable partially-linked.o that should get you a working executable (hopefully). -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c22 --- Comment #22 from Stanislav Brabec <sbrabec@novell.com> 2011-07-20 20:32:49 CEST --- Following "compiler" seems to work: #!/bin/bash if test "$1" = "-c" ; then set -x g++ "$@" else ARGS=( "$@" ) LINK1ARGS=( ) LINK2ARGS=( ) for ARG in "${ARGS[@]}" ; do if test "$ARG" = "-o" ; then break fi LINKARG="${ARG##-l*}" if test -n "$LINKARG" ; then LINK1ARGS[${#LINK1ARGS[@]}]="$LINKARG" fi LINKARG="${ARG#*.o}" LINKARG="${LINKARG#*.a}" if test -n "$LINKARG" ; then LINK2ARGS[${#LINK2ARGS[@]}]="$LINKARG" fi done OUT=${ARGS[${#ARGS[@]}-1]} OUTI="${ARGS[${#ARGS[@]}-1]}-intermediate.o" set -x g++ "${LINK1ARGS[@]}" -o "$OUTI" -r -nostdlib -lsupc++ gcc -o "$OUT" "${LINK2ARGS[@]}" "$OUTI" fi -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c23 --- Comment #23 from Stanislav Brabec <sbrabec@novell.com> 2011-08-02 16:40:03 CEST --- I just did extended tests on SLE10 package. Proposed fix in comment 0 is incorrect: +test -x $APCUPSD -a -x $APCUPSD_LITE || exit 5 It does not work - when try-powerdown is called, /usr may be already unmounted, and test -x $APCUPSD fails. We should not test for it and maybe test for /etc/apcupsd/apcupsd.conf instead. I'll all products with this fix and the submit complex SLE10 fix. -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c24 --- Comment #24 from Stanislav Brabec <sbrabec@novell.com> 2011-08-02 18:11:17 CEST --- Issue in comment #23 fixed for: openSUSE:11.3: OBS request id 77707 openSUSE:11.4: OBS request id 77708 openSUSE:Factory: OBS request id 77706 SLE11: IBS request id 13961 SLE10: All fixes submitted together with IBS request id 13963 -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c25 --- Comment #25 from Stanislav Brabec <sbrabec@novell.com> 2011-08-02 18:36:27 CEST --- As I am not sure whether test team has a dedicated supported UPS, I did hardware dependent test cases by myself. Tests were done on SLE10, where the largest change was done. SLE11 should be OK (only minor change was done and it is exactly the same as now SLE10 will have). Prerequisites: - Install apcupsd, turn it on by default (in runlevel editor) and configure it for tested UPS - Have a supported APC UPS that is capable of power cycling - Configure BIOS to power on after power loss - Define short enough delays to make testing comfortable (in apcupsd.conf and in the UPS hardware, if possible). Test 1: Simple powerdown. Before: Works with delay and errors. UPS powerdown is called, UPS communication is established, but softtware is smart enough to ignore powerdown request. Error is displayed instead and system continues with powering off. After: Works without problems. UPS powerdown is not called. Test 2: Simple reboot. Before: Works with delay and errors. UPS powerdown is called, UPS communication is established, but softtware is smart enough to ignore powerdown request. Error is displayed instead and system continues with reboot. After: Works without problems. UPS powerdown is not called. Test 3: System with /usr on system partition. Power fails. Power returns in the moment when system initiated shutdown. Before: Works. After a grant period (configured in the UPS hardware) UPS turns power off, and returns power after defined amount of time. After: Works. After a grant period (configured in the UPS hardware) UPS turns power off, and returns power after defined amount of time. Test 4: System with /usr on system partition. Power fails. Power returns when shutdown is already complete. Before: Works. If the battery did not went totally depleted, when power returns or after a grant period (what comes later) UPS turns power off, and returns power after defined amount of time. (Behavior when battery is totally depleted depends only on hardware configuration.) After: Works. If the battery did not went totally depleted, when power returns or after a grant period (what comes later) UPS turns power off, and returns power after defined amount of time. Test 5: System with /usr on a separate partition. Power fails. Power returns in the moment when system initiated shutdown. Before: Broken. apcupsd (or apcupsd-lite in SLE11 and openSUSE) binary is not found and nothing happens. After: Works. After a grant period (configured in the UPS hardware) UPS turns power off, and returns power after defined amount of time. Test 6: System with /usr on a separate partition. Power fails. Power returns when shutdown is already complete. Before: Broken. apcupsd (or apcupsd-lite in SLE11 and openSUSE) binary is not found and nothing happens. After: Works. If the battery did not went totally depleted, when power returns or after a grant period (what comes later) UPS turns power off, and returns power after defined amount of 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c26 --- Comment #26 from Stanislav Brabec <sbrabec@novell.com> 2011-08-02 18:51:51 CEST --- And here is an elaborate for the update text: WARNING: Be prepared that your UPS will significantly change its behavior on emergency shutdown! Users that have SLE10 and /usr on a separate partition and all users of apcupsd on SLE11 and openSUSE were affected by this bug. Now it will be fixed and apcupsd will cycle power on your UPS. It has following consequences: - If your BIOS is configured to power-on after power outage, your system will be consistently after power return. - If the power returns before the battery goes totally depleted, never turn your machine on manually before passing the UPS grace period!!! Wait for the UPS power cycle. If you don't like the grace period duration, configure your UPS to use a better value. (See /etc/apcupsd/apcupsd.conf for more, use apctest.) If you ignore this warning, your UPS may turn power off in the middle of booting process! Typo fix for the previous comment: grant period => grace period -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c27 Stanislav Brabec <sbrabec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #27 from Stanislav Brabec <sbrabec@novell.com> 2011-08-05 13:51:18 CEST --- I think that everything was done from my side. Closing the bug and expecting the update release. -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c28 Liu Shukui <skliu@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |skliu@novell.com --- Comment #28 from Liu Shukui <skliu@novell.com> 2011-08-09 09:11:57 UTC --- we have no UPS here. I can only see the patch has been applied. Is this test enough for sles11-sp1? (In reply to comment #25)
As I am not sure whether test team has a dedicated supported UPS, I did hardware dependent test cases by myself.
Tests were done on SLE10, where the largest change was done. SLE11 should be OK (only minor change was done and it is exactly the same as now SLE10 will have).
Prerequisites: - Install apcupsd, turn it on by default (in runlevel editor) and configure it for tested UPS - Have a supported APC UPS that is capable of power cycling - Configure BIOS to power on after power loss - Define short enough delays to make testing comfortable (in apcupsd.conf and in the UPS hardware, if possible).
Test 1: Simple powerdown.
Before: Works with delay and errors. UPS powerdown is called, UPS communication is established, but softtware is smart enough to ignore powerdown request. Error is displayed instead and system continues with powering off.
After: Works without problems. UPS powerdown is not called.
Test 2: Simple reboot.
Before: Works with delay and errors. UPS powerdown is called, UPS communication is established, but softtware is smart enough to ignore powerdown request. Error is displayed instead and system continues with reboot.
After: Works without problems. UPS powerdown is not called.
Test 3: System with /usr on system partition. Power fails. Power returns in the moment when system initiated shutdown.
Before: Works. After a grant period (configured in the UPS hardware) UPS turns power off, and returns power after defined amount of time.
After: Works. After a grant period (configured in the UPS hardware) UPS turns power off, and returns power after defined amount of time.
Test 4: System with /usr on system partition. Power fails. Power returns when shutdown is already complete.
Before: Works. If the battery did not went totally depleted, when power returns or after a grant period (what comes later) UPS turns power off, and returns power after defined amount of time. (Behavior when battery is totally depleted depends only on hardware configuration.)
After: Works. If the battery did not went totally depleted, when power returns or after a grant period (what comes later) UPS turns power off, and returns power after defined amount of time.
Test 5: System with /usr on a separate partition. Power fails. Power returns in the moment when system initiated shutdown.
Before: Broken. apcupsd (or apcupsd-lite in SLE11 and openSUSE) binary is not found and nothing happens.
After: Works. After a grant period (configured in the UPS hardware) UPS turns power off, and returns power after defined amount of time.
Test 6: System with /usr on a separate partition. Power fails. Power returns when shutdown is already complete.
Before: Broken. apcupsd (or apcupsd-lite in SLE11 and openSUSE) binary is not found and nothing happens.
After: Works. If the battery did not went totally depleted, when power returns or after a grant period (what comes later) UPS turns power off, and returns power after defined amount of 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c29 --- Comment #29 from Stanislav Brabec <sbrabec@novell.com> 2011-08-09 17:01:19 CEST --- To be absolutely sure, I can install SLE11 here and test with a real UPS if you want. I don't expect problems in SLE11 - I just did a two lines fix in SLE11 and backported this fixed apcupsd init script from SLE11 to SLE10. -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c30 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:42065:moderat |maint:running:42065:moderat |e maint:released:11.4:42188 |e maint:released:11.4:42188 |maint:released:11.3:42188 |maint:released:11.3:42188 | |maint:released:11.3:42484 | |maint:released:11.4:42484 --- Comment #30 from Swamp Workflow Management <swamp@suse.de> 2011-08-09 15:41:40 UTC --- Update released for: apcupsd, apcupsd-debuginfo, apcupsd-debugsource, apcupsd-gui, apcupsd-gui-debuginfo 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c31 Christian Dengler <cdengler@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #31 from Christian Dengler <cdengler@novell.com> 2011-08-09 16:20:01 UTC --- (In reply to comment #28)
we have no UPS here. I can only see the patch has been applied.
Hi Heiko, do we have a APC USV for testing in Nuremberg? -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c Christian Dengler <cdengler@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |rommel@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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c32 --- Comment #32 from Liu Shukui <skliu@novell.com> 2011-08-10 03:53:13 UTC --- (In reply to comment #29)
To be absolutely sure, I can install SLE11 here and test with a real UPS if you want.
I don't expect problems in SLE11 - I just did a two lines fix in SLE11 and backported this fixed apcupsd init script from SLE11 to SLE10.
Hi, Stanislav Brabec, Because there is no UPS here in Beijing, nor regression test case for this package, I think we need to test the patch to confirm that the bug has been fixed. This test progress can also act as the regression test case. After a short discuss with my manager, we want you to test this patch on sles11sp1, can you help me? You can install apcupsd and apcupsd-gui after adding the repositories to your machines. 32bit: http://you.suse.de/download/i386/update/SLE-SERVER/11-SP1/ 64bit: http://you.suse.de/download/x86_64/update/SLE-SERVER/11-SP1/ -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c33 --- Comment #33 from Liu Shukui <skliu@novell.com> 2011-08-10 03:57:49 UTC --- Thank you very much for helping testing, Stanislav Brabec. -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c34 --- Comment #34 from Liu Shukui <skliu@novell.com> 2011-08-12 07:33:06 UTC --- Hi Stanislav Brabec, Did you test it? what'is the result? thank you. -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c Dirk Mueller <dmueller@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|rommel@novell.com |sbrabec@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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c38 --- Comment #38 from Stanislav Brabec <sbrabec@novell.com> 2011-08-24 17:44:02 CEST --- Testing on SLE11 SP1 x86_64 passed, both with /usr on / partition and /usr on separated partition (emulated by mv /usr /usrx and bind mount in fstab). apcupsd now correctly initiates UPS power cycling on emergency halt. Do I need to retest in with i586? It is only a paths issue in SLE11, so I don't expect any differences. -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c39 --- Comment #39 from Stanislav Brabec <sbrabec@novell.com> 2011-08-24 18:36:38 CEST --- SLE11's apcupsd documents how to hibernate on battery failure, so I decided to test it as well. I found two important problems: - Documentation is outdated and described method does not work at all. - UPS powerdown is not called by pm-utils. I can fix this problem as well (probably introduce a better way how to enable it than editing a script (sysconfig variable?). -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c42 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:42065:moderat |maint:running:42065:moderat |e maint:released:11.4:42188 |e maint:released:11.4:42188 |maint:released:11.3:42188 |maint:released:11.3:42188 |maint:released:11.3:42484 |maint:released:11.3:42484 |maint:released:11.4:42484 |maint:released:11.4:42484 | |maint:released:sle11-sp1:42 | |481 --- Comment #42 from Swamp Workflow Management <swamp@suse.de> 2011-08-26 03:54:22 UTC --- Update released for: apcupsd, apcupsd-debuginfo, apcupsd-debugsource, apcupsd-gui Products: SLE-DEBUGINFO 11-SP1 (i386, ia64, ppc64, s390x, x86_64) SLE-SERVER 11-SP1 (i386, ia64, ppc64, s390x, x86_64) SLE-SERVER 11-SP1-TERADATA (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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c44 Stanislav Brabec <sbrabec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #44 from Stanislav Brabec <sbrabec@novell.com> 2011-08-26 16:25:43 CEST --- New feature was implemented. Sysconfig editor has a new option that allows to configure power fail behavior. The default is shutdown, hibernate is an option. SLE11: created IBS request id 14465 Factory: created OBS request id 79878 The new feature was tested on 11.4 and SLE11 and in both cases works correctly: Test 7: Run YaST Sysconfig editor, change Hardware->UPS->APCUPSD_POWERFAIL_BEHAVIOR to "hibernate". Power fails. The machine goes to hibernate. UPS cycles power and machine goes back. Before: Not implemented, instructions in README.SUSE break the emergency suspend. After: Works. -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c45 --- Comment #45 from Bernhard Wiedemann <bwiedemann@suse.com> 2011-08-26 17:00:14 CEST --- This is an autogenerated message for OBS integration: This bug (703592) was mentioned in https://build.opensuse.org/request/show/79878 Factory / apcupsd -- 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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c46 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:42065:moderat |maint:running:42065:moderat |e maint:released:11.4:42188 |e maint:released:11.4:42188 |maint:released:11.3:42188 |maint:released:11.3:42188 |maint:released:11.3:42484 |maint:released:11.3:42484 |maint:released:11.4:42484 |maint:released:11.4:42484 |maint:released:sle11-sp1:42 |maint:released:sle11-sp1:42 |481 |481 | |maint:released:sle11-sp1:42 | |899 --- Comment #46 from Swamp Workflow Management <swamp@suse.de> 2011-08-31 02:52:48 UTC --- Update released for: apcupsd, apcupsd-debuginfo, apcupsd-debugsource, apcupsd-gui Products: SLE-DEBUGINFO 11-SP1 (i386, ia64, ppc64, s390x, x86_64) SLE-SERVER 11-SP1 (i386, ia64, ppc64, s390x, x86_64) SLE-SERVER 11-SP1-TERADATA (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=703592 https://bugzilla.novell.com/show_bug.cgi?id=703592#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:42065:moderat |maint:released:11.4:42188 |e maint:released:11.4:42188 |maint:released:11.3:42188 |maint:released:11.3:42188 |maint:released:11.3:42484 |maint:released:11.3:42484 |maint:released:11.4:42484 |maint:released:11.4:42484 |maint:released:sle11-sp1:42 |maint:released:sle11-sp1:42 |481 |481 |maint:released:sle11-sp1:42 |maint:released:sle11-sp1:42 |899 |899 | -- 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