Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1082080

Summary: RHEL7 CPUScaling Userspace Governor Failure
Product: [Retired] Red Hat Hardware Certification Program Reporter: HP Enterprise Cert team <redhat_cert>
Component: Test Suite (tests)Assignee: Greg Nichols <gnichols>
Status: CLOSED ERRATA QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 1.7.0CC: brose, ctatman, gnichols, nicholsonr, prarit, qcai, redhat_cert, rlandry
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hwcert-client 1.7.0-20140413 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-13 14:45:01 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: 1052374    
Attachments:
Description Flags
BL680c G7 results
none
results.xml
none
cpuscaling test patch to use /sys/../available-frequencies if present
none
patched cpuscaling.py
none
patched syscpufreq.py
none
file error
none
updated hwcert-client-info package
none
updated hwcert-client package
none
/proc/cpuinfo for this system
none
cpuscaling xml.gz passing results none

Description HP Enterprise Cert team 2014-03-28 15:56:15 UTC
Created attachment 879916 [details]
BL680c G7 results

Description of problem:
On the ProLiant BL680cG7 and DL585G7 servers with RHEL7 snapshot 10 or snapshot 11 the hwcert-client-1.7.0-20140317 cpuscaling test fails b/c it is not able to set the governor to userspace.
    Error setting new values. Common errors:
     - Do you have proper administration rights? (super-user?)
     - Is the governor you requested available and modprobed?
     - Trying to set an invalid policy?
     - Trying to set a specific frequency, but userspace governor is not
       available, for example because of hardware which cannot be set to a
       specific frequency or because the userspace governor isn't loaded?
    Error: can't set the governor:

The available governors reported via the scaling_available_governors is as follows:
   conservative userspace powersave ondemand performance

All procs can be set to the userspace governor via the following command:
   cpupower frequency-set -g userspace

Governor setting verified as follows:
   watch more /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

Since the server and OS appear to behave normally, this appears to be a problem with the cpuscaling test, but so far we have only seen this behavior on the BL680cG7 and the DL585G7.

Version-Release number of selected component (if applicable):
hwcert-client-1.7.0-20140317 with RHEL7 snapshot 10 and 11.
hwcert-client-1.7.0-20140220 with RHEL7 snapshot 10.

How reproducible: always

Steps to Reproduce:
1. Set the RBSU Power Regulator to OS Control Mode
2. Install RHEL7 per cert requirements
3. Install the cert kit dependencies and hwcert-client cert kit.
4. Run the cpuscaling test

Actual results: The cpuscaling test fails b/c the governor cannot be set to userspace.

Expected results: The cpuscaling test should pass as the userspace governor is available and can be set manually.

Additional info: BL680cG7 results package and sosreport in attachment.

Comment 1 Greg Nichols 2014-03-28 17:02:28 UTC
Please attach the test results (/var/hwcert/results.xml)

Thanks!

Comment 2 HP Enterprise Cert team 2014-03-28 18:33:03 UTC
Created attachment 879983 [details]
results.xml

The BL680cG7 /var/hwcert/results.xml

Comment 3 Greg Nichols 2014-04-11 18:14:43 UTC
(In reply to HP Enterprise Cert team from comment #2)
> Created attachment 879983 [details]
> results.xml
> 
> The BL680cG7 /var/hwcert/results.xml

There are no cpuscaling results in this file.  Could you attach cpuscaling test results?  

Thanks!

Comment 4 HP Enterprise Cert team 2014-04-11 18:43:35 UTC
The first attachment, "BL680c G7 results" contains the cpuscaling xml.gz results package.

Comment 7 Greg Nichols 2014-04-11 19:28:09 UTC
Could you try the following commands to set frequency:

cpupower -c all frequency-set --governor powersave --min 1060000 --max 1060000

and also:

cpupower -c all frequency-set --governor powersave --min 1064000 --max 1064000

Thanks!

Comment 8 HP Enterprise Cert team 2014-04-11 22:01:49 UTC
Referring to comment 7 the 1st command returned the following error:
Setting cpu: 0
Error setting new values. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not available,
   for example because of hardware which cannot be set to a specific frequency
   or because the userspace governor isn't loaded?

The 2nd command was successful.

Comment 10 Greg Nichols 2014-04-13 18:23:41 UTC
Created attachment 885899 [details]
cpuscaling test patch to use /sys/../available-frequencies if present

Comment 11 Greg Nichols 2014-04-13 18:24:38 UTC
Could you test the above patch?

- Thanks!

Comment 13 HP Enterprise Cert team 2014-04-14 15:26:58 UTC
I'll test it if you can attach the updated cpuscaling.py file.

Comment 14 Greg Nichols 2014-04-14 23:35:04 UTC
Created attachment 886314 [details]
patched cpuscaling.py

Comment 15 Greg Nichols 2014-04-14 23:35:56 UTC
Created attachment 886315 [details]
patched syscpufreq.py

Comment 16 Greg Nichols 2014-04-14 23:38:17 UTC
Here you go!

Comment 18 HP Enterprise Cert team 2014-04-16 13:37:20 UTC
When launching hwcert 1.7.0-20140317 with the two updated files there is a line error at 228. See attachment 'file error' for screenshot of error and the two files which were copied to /usr/share/hwcert/tests/cpuscaling/. Due to code error did not start the test.

Comment 19 HP Enterprise Cert team 2014-04-16 13:38:11 UTC
Created attachment 886900 [details]
file error

Comment 21 Greg Nichols 2014-04-16 14:11:30 UTC
(In reply to HP Enterprise Cert team from comment #18)
> When launching hwcert 1.7.0-20140317 with the two updated files there is a
> line error at 228. See attachment 'file error' for screenshot of error and
> the two files which were copied to /usr/share/hwcert/tests/cpuscaling/. Due
> to code error did not start the test.

It looks like the file was opened and/or edited with some sort of Windows program - control-M's are on each line, causing the error.  

Could you re-download the file or remove the control-M's retry?

Also, please attach a copy of /proc/cpuinfo

Thanks!

Comment 22 Greg Nichols 2014-04-16 14:48:12 UTC
Created attachment 886919 [details]
updated hwcert-client-info package

Comment 23 Greg Nichols 2014-04-16 14:48:57 UTC
Created attachment 886920 [details]
updated hwcert-client package

Comment 24 Greg Nichols 2014-04-16 14:49:53 UTC
Rather than updating files, please install the updated packages.

Thanks!

Comment 25 Greg Nichols 2014-04-16 14:55:29 UTC
Created attachment 886922 [details]
/proc/cpuinfo for this system

Comment 27 HP Enterprise Cert team 2014-04-16 18:40:22 UTC
Retest passed using the attached hwcert-client-info-1.7.0-20140415.1 and 
hwcert-client-1.7.0-20140415.1 kit rpms.
Used the same BL680c_G7 setup this issue was originally seen on so it has the same processors as the cpuinfo file in comment 25.
See the attached cpuscaling xml.gz passing results package for details.

Comment 28 HP Enterprise Cert team 2014-04-16 18:41:19 UTC
Created attachment 886970 [details]
cpuscaling xml.gz passing results