Bug 744512 - "--debug" option does not work in virt-top.
Summary: "--debug" option does not work in virt-top.
Keywords:
Status: CLOSED DUPLICATE of bug 680349
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-top
Version: 6.2
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-09 06:50 UTC by Daisy Wu
Modified: 2011-10-24 08:39 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-09 09:44:02 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.