Bug 544947

Summary: xm pci-list cann`t show pci devices assigned to PV guest
Product: Red Hat Enterprise Linux 5 Reporter: Yufang Zhang <yuzhang>
Component: xenAssignee: Xen Maintainance List <xen-maint>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 5.4CC: clalance, xen-maint
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-23 02:57:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
xend.log none

Description Yufang Zhang 2009-12-07 05:26:49 UTC
Description of problem:
When assign a pci device to PV guest, xm pci-list doesn`t show the pci device identifier but error outputs:

# xm pci-list PvDomain
VSlt domain   bus   slot   func
Unexpected error: exceptions.TypeError

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 1598, in main
    rc = cmd(args)
  File "/usr/lib64/python2.4/site-packages/xen/xm/main.py", line 1266, in xm_pci_list
    print ( fmt_str % x )
TypeError: int argument required



Version-Release number of selected component (if applicable):
xen-3.0.3-94.el5

How reproducible:
Always

Steps to Reproduce:
1.
# xm pci-list-assignable-devices
0000:03:00.0

2.
# xm cr /etc/xen/test_pv pci="0000:03:00.0"
Using config file "/etc/xen/test_pv".
file /root/pv.img
Started domain PvDomain

3.
# xm pci-list PvDomain
VSlt domain   bus   slot   func
Unexpected error: exceptions.TypeError

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 1598, in main
    rc = cmd(args)
  File "/usr/lib64/python2.4/site-packages/xen/xm/main.py", line 1266, in xm_pci_list
    print ( fmt_str % x )
TypeError: int argument required

  
Actual results:


Expected results:


Additional info:

Comment 1 Yufang Zhang 2009-12-07 05:28:01 UTC
Created attachment 376584 [details]
xend.log

Comment 2 Yufang Zhang 2009-12-23 02:57:31 UTC

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

Comment 3 Paolo Bonzini 2010-04-08 15:43:04 UTC
This bug was closed during 5.5 development and it's being removed from the internal tracking bugs (which are now for 5.6).

Comment 4 Chris Lalancette 2010-07-19 13:34:02 UTC
Clearing out old flags for reporting purposes.

Chris Lalancette