Bug 1356881

Summary: "srv-list" still outputs extra informational messages in quiet mode
Product: Red Hat Enterprise Linux 7 Reporter: Fangge Jin <fjin>
Component: libvirtAssignee: Erik Skultety <eskultet>
Status: CLOSED ERRATA QA Contact: Lili Zhu <lizhu>
Severity: low Docs Contact:
Priority: low    
Version: 7.3CC: dyuan, jdenemar, mzhan, rbalakri, xuzhang, yafu, zpeng
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-2.5.0-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 17:11:42 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:

Description Fangge Jin 2016-07-15 08:16:56 UTC
Description of problem:
"srv-list" still outputs extra informational messages in quiet mode

Version-Release number of selected component:
libvirt-2.0.0-2.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
# virt-admin srv-list
 Id    Name          
---------------
 0     admin          
 1     libvirtd      


# virt-admin -q srv-list
 Id    Name          
---------------  ===> these two lines should not appear in quiet mode
 0     admin          
 1     libvirtd      


Actual results:
As steps

Expected results:
# virt-admin -q srv-list
 0     admin          
 1     libvirtd

Comment 2 Erik Skultety 2016-07-26 08:05:55 UTC
This is a non-critical issue which is identical to BZ reported for virsh: https://bugzilla.redhat.com/show_bug.cgi?id=1358181, so I suppose these could be fixed at the same time.

Comment 3 Erik Skultety 2016-11-14 11:24:26 UTC
Fixed upstream by:

commit bdd6899b553fed5a39e8e5297c11773e69425f10
Author:     Erik Skultety <eskultet>
AuthorDate: Fri Nov 4 15:22:26 2016 +0100
Commit:     Erik Skultety <eskultet>
CommitDate: Mon Nov 14 12:14:11 2016 +0100

    tools: Replace vshPrint with vshPrintExtra on places we forgot about
    
    Although there already was an effort (b620bdee) to replace vshPrint occurrences
    with vshPrintExtra due to '--quiet' flag, there were still some leftovers. So
    this patch fixes them, hopefully for good.
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1356881
    
    Signed-off-by: Erik Skultety <eskultet>

v2.4.0-112-gbdd6899

Comment 5 Lili Zhu 2017-06-12 02:56:16 UTC
Reproduce this bug with libvirt-2.0.0-2.el7.x86_64

# virt-admin -q srv-list 
 Id    Name           
---------------
 0     libvirtd       
 1     admin          

Verify this bug with libvirt-2.0.0-2.el7.x86_64

# virt-admin -q srv-list 
 0     admin          
 1     libvirtd     

The first two lines of output is missing now.

Since the results are as expected, mark this bug as verified.

Comment 6 errata-xmlrpc 2017-08-01 17:11:42 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://access.redhat.com/errata/RHEA-2017:1846

Comment 7 errata-xmlrpc 2017-08-01 23:53:19 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://access.redhat.com/errata/RHEA-2017:1846