RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 922676 - Virt-manager error:ValueError: list.remove(x): x not in list after create lxc guest
Summary: Virt-manager error:ValueError: list.remove(x): x not in list after create lxc...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: virt-manager
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: rc
: ---
Assignee: Martin Kletzander
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 887106
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-18 09:30 UTC by hyao@redhat.com
Modified: 2014-04-18 11:08 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 887106
Environment:
Last Closed: 2014-04-18 11:08:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description hyao@redhat.com 2013-03-18 09:30:34 UTC
+++ This bug was initially created as a clone of Bug #887106 +++

Created attachment 663314 [details]
Dedub info from virt-manager

Description of problem:
Virt-manager error:ValueError: list.remove(x): x not in list after create lxc guest

Version-Release number of selected component (if applicable):
libvirt-0.10.2-12.el6.x86_64
virt-manager-0.9.0-18.el6.x86_64
qemu-kvm-0.12.1.2-2.340.el6.x86_64
kernel:2.6.32-345.el6.x86_64

How reproducible:
90%

Steps to Reproduce:
1.Launch virt-manager,there is a local qemu/kvm connection.
# virt-manager --debug

2.Add a lxc connection from virt-manager,create a new lxc guest,choose container type:Application container,use other default configurations.

3.Destroy the new created lxc guest,and delete the guest.

4.Disconnect the lxc connection,delete the lxc connection.

5.From the local qemu/kvm connection,New a guest,there is error shows in GUI:Error:list.remove(x): x not in list
debug info:
(virt-manager:12473): libglade-WARNING **: unknown attribute `swapped' for <signal>.
/usr/share/virt-manager/virtManager/baseclass.py:124: Warning: gsignal.c:2387: instance `0x3987280' has no handler with id `1360'
  ret = GObject.disconnect(self, handle)
2012-12-13 19:45:09,115 (create:352): Error setting create wizard conn state.
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/create.py", line 350, in reset_state
    self.set_conn(activeconn, force_validate=True)
  File "/usr/share/virt-manager/virtManager/create.py", line 205, in set_conn
    self.remove_conn()
  File "/usr/share/virt-manager/virtManager/create.py", line 197, in remove_conn
    self.conn.disconnect(signal)
  File "/usr/share/virt-manager/virtManager/baseclass.py", line 125, in disconnect
    self._gobject_handles.remove(handle)
ValueError: list.remove(x): x not in list

Actual results:
As steps show.

Expected results:
No error shows.

Additional info: 
1.Detailed debug info attached.
2.When new a lxc guest,then destroy and delete the guest,there is error messages in debug info,details refer the debug info.
2012-12-13 19:44:54,458 (serialcon:150): Error receiving stream data
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/serialcon.py", line 148, in _event_on_stream
    got = self.stream.recv(1024 * 100)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 4249, in recv
    if ret == None: raise libvirtError ('virStreamRecv() failed')
libvirtError: stream had unexpected termination
2012-12-13 19:44:54,461 (serialcon:209): Error finishing stream
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/serialcon.py", line 207, in close
    self.stream.finish()
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 4101, in finish
    if ret == -1: raise libvirtError ('virStreamFinish() failed')
libvirtError: stream had unexpected termination



The bug is reproduced on RHEL7, so clone the bug. 
Version-Release number of selected component (if applicable):
libvirt-1.0.3-1.el7.x86_64
virt-manager-0.9.4-4.el7
python-virtinst-0.600.3-2.el7
qemu-kvm-1.3.0-6.el7.x86_64
kernel-3.7.0-0.36.el7.x86_64

Comment 1 Martin Kletzander 2013-06-11 08:21:22 UTC
Possible duplicate of bug #968896, could you check if this will be fixed in next build of virt-manager?  Thanks, Martin.

Comment 2 hyao@redhat.com 2013-06-13 07:21:28 UTC
Hi Martin, 

Can't check the bug now due to bug 968896. I'll check this later once 968896 is fixed. 
Thanks

Comment 3 hyao@redhat.com 2013-11-15 09:40:22 UTC
Recheck the bug with the following packages, the bug still reproduce: 
# rpm -qa libvirt virt-manager
virt-manager-0.10.0-7.el7.noarch
libvirt-1.1.1-12.el7.x86_64


Steps:
1.Launch virt-manager,there is a local qemu/kvm connection.
# virt-manager --debug

2.Add a lxc connection from virt-manager,create a new lxc guest,choose container type:Application container,use other default configurations.

3.Destroy the new created lxc guest,and delete the guest.

4.Disconnect the lxc connection,delete the lxc connection.

5.From the local qemu/kvm connection,New a guest,there is error shows in new guest GUI:Error:list.remove(x): x not in list

Note: Close virt-manager GUI and relaunch virt-manager, the error doesn't display on the GUI.

Comment 5 Giuseppe Scrivano 2014-04-18 11:08:01 UTC
This error seems to be gone under Fedora 20 (at least I could not hit it) using the virt-manager upstream version.  Closing it as CLOSED/UPSTREAM.  Please re-open if you can still reproduce it.


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