Bug 754984
Summary: | Missing apcupsd support in halt script | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Robert Scheck <redhat-bugzilla> | ||||||
Component: | initscripts | Assignee: | initscripts Maintenance Team <initscripts-maint-list> | ||||||
Status: | CLOSED ERRATA | QA Contact: | qe-baseos-daemons | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 6.1 | CC: | azelinka, ddumas, jboyce, lnykryn, notting, pmali, pyaduvan, rbinkhor, rdassen, robert.scheck, sghosh, syeghiay, vincent | ||||||
Target Milestone: | rc | Keywords: | EasyFix, Patch | ||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | initscripts-9.03.28-1.el6 | Doc Type: | Bug Fix | ||||||
Doc Text: |
Previous version of initscripts did not contain support for apcupsd. This version turns off UPS in powerfail situation.
|
Story Points: | --- | ||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2012-06-20 13:09:26 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Robert Scheck
2011-11-18 13:44:29 UTC
Created attachment 534395 [details]
initscripts-9.03.23-apcupsd.patch
I have cross-filled case 00564055 and 00564056 (different customers) in the customer portal at the Red Hat Network. Given we don't ship/support apcupsd in RHEL, I'd be inclined to leave this sort of support for halt.local. I know nut is there, but that predates the RHEL fork. This patch is really micro and does definately not hurt any existing customers of RHEL. See also comment #2, this issue affects paying customers. By the way.../sbin/halt.local is NOT suitable for us in this case, because it is unfortunately executed too early. Remounting remaining filesystems readonly has to be performed first, otherwise it will cause some other trouble. So, various suggestions: - Use nut instead. That support is already integrated, and it *should* work for most of the same models, if I'm reading the support page right. - Use halt.local. You'd need some sleep commands, which would be racy, but it may be hacked to work. (not really recommended) - Create a custom /etc/init.d/halt script... we don't upgrade that script much, and they'd have to patch it back in place across upgrades, but it could work as a hot fix. - The code to support nut in /etc/init.d/halt has: # Shutdown UPS drivers if [ "$command" = /sbin/halt -a -f /etc/sysconfig/ups ]; then . /etc/sysconfig/ups There's nothing that states that an administrator's /etc/sysconfig/ups couldn't run apcupsd shutdown comamnds when sourced in this way. (Hooray, hacks!) Again, this is RHEL and thus IMHO not the place for such hackish suggestions, that are either racy or not upgrade-safe. I'm not going to put such stuff on productive machines as long as paid RHEL subscriptions are used. I will push this further on via the customer portal now... *** Bug 759573 has been marked as a duplicate of this bug. *** Created attachment 548645 [details]
Content of /etc/sysconfig/ups
Hackish suggestion via Red Hat Support Team by abusing /etc/sysconfig/ups
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Previous version of initscripts did not contain support for apcupsd. This version turns off UPS in powerfail situation. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0816.html |