Mailinglist Archive: opensuse-bugs (4069 mails)

< Previous Next >
[Bug 703592] 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#c28


Liu Shukui <skliu@xxxxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |skliu@xxxxxxxxxx

--- Comment #28 from Liu Shukui <skliu@xxxxxxxxxx> 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.

< Previous Next >