Bug 83997

Summary: multiple problems with nut
Product: [Retired] Red Hat Linux Beta Reporter: Joshua Jensen <joshua>
Component: nutAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: beta4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-02-13 21:03:16 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:
Bug Depends On:    
Bug Blocks: 79579    

Description Joshua Jensen 2003-02-10 21:24:03 UTC
Description of problem:

service ups start starts three daemons, all of which have problems:

/sbin/$MODEL (as set in /etc/sysconfig/ups) can't read /dev/ttyS0 as it runs as
nobody, and ttyS0 is owned by root and group-owned by uucp.  This is a problem,
and "chown nobody /dev/ttyS0" helps, but doesn't seem like the right thing to do.

The next daemon /usr/sbin/upsd looks for a non-existant /etc/ups/ups.conf, and
refuses to run after not finding it.  We need to fix this with at least an
example config file.

Last, the /usr/sbin/upsmon daemon won't start at all, becuase it can't find the
upsd daemon running.  This should be fixed when problem #2 is fixed.


Version-Release number of selected component (if applicable):

8.0 with all updates as of 02/10/2003

How reproducible:


Steps to Reproduce:
1.  change MODEL=none to MODEL=apcsmart in /etc/sysconfig/ups
2.  "service ups start"
    
Actual results:

Starting apcsmart: Network UPS Tools - APC Smart protocol driver 0.60 (0.45.4)
This program is currently running as nobody (UID 99)
/dev/ttyS0 is owned by user root (UID 0), mode 0660

Change the port name, or fix the permissions or ownership
of /dev/ttyS0 and try again.

Unable to open /dev/ttyS0: Permission denied
                                                           [FAILED]

Starting upsd: Network UPS Tools upsd 0.45.4
/var/lib/ups is world readable
Warning: no UPS definitions in ups.conf
Fatal error: you need to define at least one UPS in your ups.conf!

                                                           [FAILED]


Starting UPS monitor (master): Network UPS Tools upsmon 0.45.4

Fatal error: insufficient power configured!

Sum of power values........: 0
Minimum value (MINSUPPLIES): 1

Edit your upsmon.conf and change the values.
Using power down flag file /etc/killpower

                                                           [FAILED]



Expected Results:

A lot different ;-)

Comment 1 Joshua Jensen 2003-02-10 21:39:35 UTC
Being able to read /dev/ttyS0 (as user "nobody") is still a problem in pre-beta5
for Phoebe.

Also, while /etc/ups.conf now exists, upsd still complains that "/var/lib/ups is
world readable".  Please fix!

Comment 2 Ngo Than 2003-02-11 22:58:03 UTC
1.2.0-5 should fix all this problem. Please test it again, thanks.

Comment 3 Joshua Jensen 2003-02-13 20:32:41 UTC
I still get this error with version 1.2.0-5:

/var/lib/ups is world readable


Comment 4 Ngo Than 2003-02-13 21:03:16 UTC
1.2.0-6 should fix this problem. Could you please try again. Thanks