Bug 756310

Summary: When sort by ID, get AttributeError of 'vmmConnection' object.
Product: Red Hat Enterprise Linux 5 Reporter: Daisy Wu <jwu>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 5.8CC: 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-12-08 16:01:14 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-11-23 08:32:44 UTC
Description of problem:
When sort by ID, get AttributeError of 'vmmConnection' object.

Version-Release number of selected component (if applicable):
virt-manager-0.6.1-15.el5
libvirt-0.8.2.24.el5
python-virtinst-0.400.3-13.el5
kvm-83-243.el5

# uname -a
Linux wjw.redhat.com 2.6.18-294.el5 #1 SMP Tue Oct 25 16:30:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

How reproducible:
always

Steps to Reproduce:
1). Launch virt-manager and active local qemu connection. # virt-manager --debug --no-fork
2). Make sure some guests running. # virsh list --all
Id Name State
----------------------------------
2 4u9-1 running
3 4u9 running

3). Click ID table on the main virtual machine manager screen.
4). Virtual machine will be ordered by ID, but there is AttributeError with 'vmmConnection' object.
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/manager.py", line 968, in vmlist_domain_id_sorter
return cmp(model.get_value(iter1, ROW_HANDLE).get_id(), model.get_value(iter2, ROW_HANDLE).get_id())
AttributeError: 'vmmConnection' object has no attribute 'get_id'

Actual results:
As above.

Expected results:
The ID sort function should remove 'vmmConnection' object and only sort the guest ID.

Comment 1 Cole Robinson 2011-12-08 16:01:14 UTC
Thanks for the report. However at this point in the RHEL5 cycle this bug isn't really worth fixing unless there is a customer report. Closing as WONTFIX for RHEL5