Bug 1314205

Summary: "WARNING" info is error when refresh interval below 60s
Product: Red Hat Enterprise Linux 6 Reporter: Liushihui <shihliu>
Component: virt-whoAssignee: Chris Snyder <csnyder>
Status: CLOSED ERRATA QA Contact: Eko <hsun>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.8CC: ldai, rbalakri, sgao
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: virt-who-0.18-1.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-21 10:29:04 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:

Description Liushihui 2016-03-03 08:41:29 UTC
Description of problem:
When run virt-who with refresh interval below to 60s at CLI mode, it will show a ambiguous warning info

Version-Release number of selected component (if applicable):
virt-who-0.16-5.el6.noarch
subscription-manager-1.16.8-3.el6.x86_64
python-rhsm-1.16.6-1.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Register system to satellite6.
2. Run virt-who with refresh interval 3s at CLI mode.
[root@sgi-xe270-01 ~]# virt-who --hyperv --hyperv-owner=xxxxxx --hyperv-env=xxxxx --hyperv-server=10.73.5.227 --hyperv-username=administrator --hyperv-password=Welcome1 -i 3
2016-03-03 03:33:10,240 WARNING: Interval value may not be set below the default of 60 seconds. Will use default value.

Actual results:
It will show warning info as the following:
WARNING: Interval value may not be set below the default of 60 seconds. Will use default value.

Expected results:
It should throw warning info as the following:
WARNING: Interval value maybe set below the default of 60 seconds. Will use default value.

Additional info:

Comment 1 Radek Novacek 2016-03-10 15:28:34 UTC
"WARNING: Interval value maybe set below the default of 60 seconds. Will use default value." - this is also a bit confusing.

What about this wording:

WARNING: Interval value can't be lower than 60 seconds. Default value of 60 seconds will be used.

Comment 2 Radek Novacek 2016-03-10 15:29:08 UTC
Nevertheless, this is very minor issue, let's move it to 6.9.

Comment 4 Radek Novacek 2016-10-13 08:15:50 UTC
Fixed in virt-who-0.18-1.el6.

Comment 6 Eko 2016-12-07 02:39:57 UTC
verified in virt-who-0.18-1.el6.

when interval < 60s, it will show:
[virtwho.init WARNING] MainProcess(30487):MainThread @parser.py:parseOptions:279 - Interval value can't be lower than 60 seconds. Default value of 60 seconds will be used.

Comment 8 errata-xmlrpc 2017-03-21 10:29:04 UTC
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.

https://rhn.redhat.com/errata/RHBA-2017-0675.html