Bug 834215

Summary: service lm_sensor cannot be started, modprobe: Error: missing parameters. See -h
Product: Red Hat Enterprise Linux 7 Reporter: Petr Sklenar <psklenar>
Component: lm_sensorsAssignee: Jaromír Cápík <jcapik>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Sklenar <psklenar>
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: jscotka, ovasik, psklenar
Target Milestone: beta   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lm_sensors-3.3.4-4.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-08 19:20:52 UTC Type: Bug
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: 816135    

Description Petr Sklenar 2012-06-21 09:05:03 UTC
Description of problem:
service lm_sensor cannot be started on the latest rhel7.
are there wrong parameters?

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

lm_sensors-3.3.2-2.el7.ppc64
kmod-7-2.el7.ppc64
systemd-44-12.el7.ppc64


How reproducible:
deterministic

Steps to Reproduce:
1. service lm_sensors start

  
Actual results:
# systemctl start lm_sensors.service
Job failed. See system journal and 'systemctl status' for details.

# systemctl status lm_sensors.service
lm_sensors.service - Initialize hardware monitoring sensors
	  Loaded: loaded (/usr/lib/systemd/system/lm_sensors.service; disabled)
	  Active: failed (Result: exit-code) since Thu, 21 Jun 2012 17:47:35 +0900; 4s ago
	 Process: 3807 ExecStart=/usr/bin/sensors -s (code=exited, status=1/FAILURE)
	 Process: 3805 ExecStart=/sbin/modprobe -qab $BUS_MODULES $HWMON_MODULES (code=exited, status=1/FAILURE)
	  CGroup: name=systemd:/system/lm_sensors.service

Jun 21 17:47:35 MY.X.Y.Z.redhat.com modprobe[3805]: Error: missing parameters. See -h.


Expected results:
service is started

Additional info:

Comment 3 Jaromír Cápík 2013-07-25 14:06:53 UTC
Ahoj Petře.

It seems you haven't run the sensors-detect script in order to generate the variables. This also happens when no sensors are detected by the script.

It's questionable if this is a correct behaviour or not. It has no sense to start the service without configuring it first. And it has no sense to run the service when there are no sensors detected.

Please, check that and let me know.

Thanks,
Jaromir.

Comment 4 Jaromír Cápík 2013-07-30 13:07:55 UTC
As Petr stated, he hadn't configured the sensors when he tried to start the service. But we agreed that the error message is pretty confusing. The service file needs to be redesigned in order to tell users the real reason why it fails and what to do in order to prevent that from happening.

Comment 5 Jaromír Cápík 2013-07-30 16:46:57 UTC
Ahoj Petře.

Please, test, whether the latest build behaves like expected.
Thanks in advance.

Regards,
Jaromir.

Comment 7 Jaromír Cápík 2013-08-08 19:20:52 UTC
Thanks ... closing.