Bug 744512

Summary: "--debug" option does not work in virt-top.
Product: Red Hat Enterprise Linux 6 Reporter: Daisy Wu <jwu>
Component: virt-topAssignee: Richard W.M. Jones <rjones>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: jwu, mzhan, rwu, zpeng
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-09 09:44:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Daisy Wu 2011-10-09 06:50:38 UTC
Description of problem:
"--debug" option does not work in virt-top.

Version-Release number of selected component (if applicable):
virt-manager-0.9.0-6.el6
libvirt-0.9.4-16.el6
python-virtinst-0.600.0-3.el6
virt-top-1.0.4-3.11.el6.x86_64

# uname -a
Linux wjw.nay.redhat.com 2.6.32-198.el6.x86_64 #1 SMP Thu Sep 15 23:40:38 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

How reproducible:
always

Steps to Reproduce:
1. Assume there are some running guest.
# virsh list --all
Id Name                 State
----------------------------------
 45 6.2new               running
 46 xp                   running
 47 5.7-x86_64           running

2. Run virt-top --debug debug-file in gnome-terminal
# virt-top --debug debug-1

3. Press 0/1/2/3.
4. Press q to exit.
5. Check the file "debug-1", there is no message, the file is blank.
# cat debug-1
# ll debug-1
-rw-r--r--. 1 root root 2164 Oct  0 00:33 debug-1

6. Run virt-top with the wrong parameter.

# virt-top -c qemu+ssh://ip/system --debug debug-2
: Connection reset by peer recv data: ssh: Could not resolve hostname ip: Name or service not known
: Connection reset by peerROR: VIR_FROM_RPC: Cannot recv data: ssh: Could not resolve hostname ip: Name or service not known

7. Check the file "debug-2".
# cat debug-2
cat: debug-2: No such file or directory

  
Actual results:
As above.

Expected results:
Send debug info to debug-1.
debug-2 should be generated in current directory to store debug and error messages. 

Additional info:
this issue also occur in below build:
virt-top-1.0.4-3.8.el6.x86_64
virt-top-1.0.4-3.1.el6.x86_64

Comment 2 Richard W.M. Jones 2011-10-09 09:44:02 UTC

*** This bug has been marked as a duplicate of bug 680349 ***

Comment 3 Richard W.M. Jones 2011-10-09 09:44:22 UTC
No debug file is created if there are no debug messages.