+++ This bug was initially created as a clone of Bug #188171 +++ Description of problem: Fedora doesn't put /sbin and /usr/sbin into a non-root path, so if a user does sudo /usr/sbin/xm top you get a python traceback (a simple command not found error message, would also be much nicer). Version-Release number of selected component (if applicable): xen-3.0.1-4 How reproducible: always
This is still happening in RHEL 5 nightly: [root@localhost console]# /usr/sbin/xm top Unexpected error: exceptions.OSError Please report to xen-devel.com Traceback (most recent call last): File "/usr/sbin/xm", line 10, in ? main.main(sys.argv) File "/usr/lib64/python2.4/site-packages/xen/xm/main.py", line 1460, in main rc = cmd(args) File "/usr/lib64/python2.4/site-packages/xen/xm/main.py", line 1037, in xm_top os.execvp('xentop', ['xentop']) File "/usr/lib64/python2.4/os.py", line 341, in execvp _execvpe(file, args) File "/usr/lib64/python2.4/os.py", line 379, in _execvpe func(fullname, *argrest) OSError: [Errno 2] No such file or directory but: [root@localhost console]# PATH=/usr/sbin:$PATH xm top (works)
Use virt-top instead of xm top.