[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
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c1
Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c3
--- Comment #3 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c4
--- Comment #4 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c5
--- Comment #5 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c6
--- Comment #6 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c7
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c8
Christian Dengler
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c10
Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c13
Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c14
--- Comment #14 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c15
--- Comment #15 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c17
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c18
Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c19
--- Comment #19 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c20
--- Comment #20 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c21
Richard Guenther
Tried following:
echo >cxx.c
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
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c23
--- Comment #23 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c24
--- Comment #24 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c25
--- Comment #25 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c26
--- Comment #26 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c27
Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c28
Liu Shukui
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
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c30
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c31
Christian Dengler
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
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c32
--- Comment #32 from Liu Shukui
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
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c34
--- Comment #34 from Liu Shukui
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c38
--- Comment #38 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c39
--- Comment #39 from Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c42
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c44
Stanislav Brabec
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c45
--- Comment #45 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c46
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=703592
https://bugzilla.novell.com/show_bug.cgi?id=703592#c
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com